e107 = e107::getInstance(); } function get_top() { return "".LAN_10.''; } function get_joined() { global $postInfo, $gen; if ($postInfo['post_user']) { return LAN_06.': '.$gen->convert_date($postInfo['user_join'], 'forum').'
'; } } function get_threaddatestamp() { global $postInfo, $gen; return " 'post', 'id' => $postInfo['post_id']))."'>".IMAGE_post." ".$gen->convert_date($postInfo['post_datestamp'], 'forum'); } function get_post() { global $postInfo; $emote = (isset($postInfo['post_options']['no_emote']) ? ',emotes_off' : ''); return $this->e107->tp->toHTML($postInfo['post_entry'], true, 'USER_BODY'.$emote, 'class:'.$post_info['user_class']); } function get_postdeleted() { global $postInfo; if($postInfo['post_status']) { $info = unserialize($postInfo['post_options']); return " Post delete on: {$info['deldate']}
reason: {$info['delreason']} "; $ret = '
'.print_r($info, true).'
'; } } function get_attachments() { global $postInfo; if($postInfo['post_attachments']) { $attachments = explode(',', $postInfo['post_attachments']); $txt = ''; foreach($attachments as $a) { $info = explode('*', $a); switch($info[0]) { case 'file': $txt .= IMAGE_attachment." {$info[2]}
"; break; case 'img': //if image has a thumb, show it and link to main if(isset($info[2])) { $txt .= ""; } else { $txt .= ""; } } } return $txt; } } function get_privmessage() { global $postInfo; if(plugInstalled('pm') && ($postInfo['post_user'] > 0)) { return $this->e107->tp->parseTemplate("{SENDPM={$postInfo['post_user']}}"); } } function get_avatar() { global $postInfo; if ($postInfo['post_user']) { if(!$avatar = getcachedvars('forum_avatar_'.$postInfo['post_user'])) { if ($postInfo['user_image']) { require_once(e_HANDLER.'avatar_handler.php'); $avatar = "

"; } else { $avatar = ''; } cachevars('forum_avatar_'.$postInfo['post_user'], $avatar); } return $avatar; } return ''; } function get_anon_ip() { global $postInfo; if($postInfo['post_user_anon'] && (ADMIN || MODERATOR)) { return $this->e107->ipDecode($postInfo['post_ip']); } } function get_ip() { global $postInfo; if((ADMIN || MODERATOR) && !$postInfo['user_admin']) { return $this->e107->ipDecode($postInfo['post_ip']); } } function get_poster() { global $postInfo; if($postInfo['user_name']) { return " 'profile', 'id' => $postInfo['post_user']))."'>{$postInfo['user_name']}"; } else { return ''.$this->e107->tp->toHTML($postInfo['post_user_anon']).''; } } function get_emailimg() { global $postInfo; if($postInfo['user_name']) { return (!$post_info['user_hideemail'] ? $this->e107->tp->parseTemplate("{EMAILTO={$postInfo['user_email']}}") : ''); } return ''; } function get_emailitem() { if($postInfo['thread_start']) { return $this->e107->tp->parseTemplate("{EMAIL_ITEM=".FORLAN_101."^plugin:forum.{$postInfo['post_thread']}}"); } } function get_printitem() { global $postInfo; if($postInfo['thread_start']) { return $this->e107->tp->parseTemplate("{PRINT_ITEM=".FORLAN_102."^plugin:forum.{$postInfo['post_thread']}}"); } } function get_signature() { if(!USER) { return ''; } global $postInfo, $pref; static $forum_sig_shown; if(varsettrue($pref['forum_sig_once'])) { $_tmp = 'forum_sig_shown_'.$postInfo['post_user']; if(getcachedvars($_tmp)) { return ''; } cachevars($_tmp, 1); } return ($postInfo['user_signature'] ? "

".$this->e107->tp->toHTML($postInfo['user_signature'], true).'' : ''); } function get_profileimg() { global $postInfo; if (USER && $postInfo['user_name']) { return $this->e107->tp->parseTemplate("{PROFILE={$postInfo['post_user']}}"); } } function get_posts() { global $postInfo; if ($postInfo['post_user']) { return LAN_67.': '.(int)$postInfo['user_plugin_forum_posts'].'
'; } } function get_visits() { global $postInfo; if ($postInfo['user_name']) { return LAN_09.': '.$postInfo['user_visits'].'
'; } } function get_customtitle() { global $postInfo; if ($postInfo['user_customtitle']) { return $this->e107->tp->toHTML($postInfo['user_customtitle']).'
'; } } function get_website() { global $postInfo; if ($postInfo['user_homepage']) { return LAN_08.': '.$postInfo['user_homepage'].'
'; } } function get_websiteimg() { global $postInfo; if ($postInfo['user_homepage'] && $postInfo['user_homepage'] != 'http://') { return "".IMAGE_website.''; } } function get_editimg() { global $postInfo, $threadInfo; if (USER && $postInfo['post_user'] == USERID && $threadInfo['thread_active']) { return " 'edit', 'id' => $postInfo['post_id']))."'>".IMAGE_edit.' '; } } function get_quoteimg() { global $postInfo, $forum; if($forum->checkperm($postInfo['post_forum'], 'post')) { return " 'quote', 'id' => $postInfo['post_id']))."'>".IMAGE_quote.' '; } } function get_reportimg() { global $postInfo, $page; if (USER) { return "".IMAGE_report.' '; } } function get_rpg() { global $postInfo; return rpg($postInfo['user_join'],$postInfo['user_plugin_forum_posts']); } function get_memberid() { global $post_info, $ldata, $pref, $forum_info; if ($post_info['anon']) { return ''; } $fmod = ($post_info['user_class'] != '' && check_class($forum_info['forum_moderators'], $post_info['user_class'], TRUE)); if(!$fmod && $forum_info['forum_moderators'] == e_UC_ADMIN) { $fmod = $post_info['user_admin']; } if (!array_key_exists($post_info['user_id'],$ldata)) { $ldata[$post_info['user_id']] = get_level($post_info['user_id'], $post_info['user_forums'], $post_info['user_comments'], $post_info['user_chats'], $post_info['user_visits'], $post_info['user_join'], $post_info['user_admin'], $post_info['user_perms'], $pref, $fmod); } return $ldata[$post_info['user_id']][0]; } function get_level() { global $post_info, $ldata, $pref, $forum_info; if ($post_info['anon']) { return ''; } $fmod = ($post_info['user_class'] != "" && check_class($forum_info['forum_moderators'], $post_info['user_class'], TRUE)); if(!$fmod && $forum_info['forum_moderators'] == e_UC_ADMIN) { $fmod = $post_info['user_admin']; } if (!array_key_exists($post_info['user_id'],$ldata)) { $ldata[$post_info['user_id']] = get_level($post_info['user_id'], $post_info['user_forums'], $post_info['user_comments'], $post_info['user_chats'], $post_info['user_visits'], $post_info['user_join'], $post_info['user_admin'], $post_info['user_perms'], $pref, $fmod); } if($parm == 'pic') { return $ldata[$post_info['user_id']]['pic']; } if($parm == 'name') { return $ldata[$post_info['user_id']]['name']; } if($parm == 'special') { return $ldata[$post_info['user_id']]['special']; } if($parm == 'userid') { return $ldata[$post_info['user_id']]['userid']; } return $ldata[$post_info['user_id']][1]; } function get_modoptions() { if (MODERATOR) { return showmodoptions(); } } function get_lastedit() { global $postInfo, $gen; if ($postInfo['post_edit_datestamp']) { return $gen->convert_date($postInfo['post_edit_datestamp'],'forum'); } } function get_lasteditby() { global $postInfo; if(isset($postInfo['edit_name'])) { if($parm == 'link') { $e107 = e107::getInstance(); $url = $e107->url->getUrl('core:user', 'main', 'func=profile&id='.$postInfo['post_edit_user']); return "{$postInfo['edit_name']}"; } return $postInfo['edit_name']; } } function get_poll() { global $pollstr; return $pollstr; } function get_newflag() { // Defined in case an indicator is required return ''; } } ?>