$crumbs->add(new PipeMenuLinkEntry(__("Online users"), "online")); makeBreadcrumbs($crumbs); AssertForbidden("viewOnline"); // This can (and will) be turned into a permission. $showIPs = $loguser['powerlevel'] > 0; $time = (int) $_GET['time']; if (!$time) { $time = 300; } $rUsers = Query("select * from {users} where lastactivity > {0} order by lastactivity desc", time() - $time); $rGuests = Query("select * from {guests} where date > {0} and bot = 0 order by date desc", time() - $time); $rBots = Query("select * from {guests} where date > {0} and bot = 1 order by date desc", time() - $time); $spans = array(60, 300, 900, 3600, 86400); $spanList = ""; foreach ($spans as $span) { $spanList .= actionLinkTagItem(timeunits($span), "online", "", "time={$span}"); } write("\n\t<div class=\"smallFonts margin\">\n\t\t" . __("Show visitors from this far back:") . "\n\t\t<ul class=\"pipemenu\">\n\t\t\t{0}\n\t\t</ul>\n\t</div>\n", $spanList); $userList = ""; $i = 1; if (NumRows($rUsers)) { while ($user = Fetch($rUsers)) { $cellClass = ($cellClass + 1) % 2; if ($user['lasturl']) { $lastUrl = "<a href=\"" . FilterURL($user['lasturl']) . "\">" . FilterURL($user['lasturl']) . "</a>"; } else { $lastUrl = __("None"); } $userList .= "\n\t\t<tr class=\"cell{$cellClass}\">\n\t\t\t<td>{$i}</td>\n\t\t\t<td>" . UserLink($user) . "</td>\n\t\t\t<td>" . ($user['lastposttime'] ? cdate("d-m-y G:i:s", $user['lastposttime']) : __("Never")) . "</td>\n\t\t\t<td>" . cdate("d-m-y G:i:s", $user['lastactivity']) . "</td>\n\t\t\t<td>{$lastUrl}</td>"; if ($showIPs) { $userList .= "<td>" . formatIP($user['lastip']) . "</td>";
function makePost($post, $type, $params = array()) { global $loguser, $loguserid, $usergroups, $isBot, $blocklayouts; $poster = getDataPrefix($post, 'u_'); $post['userlink'] = UserLink($poster); LoadBlockLayouts(); $pltype = Settings::get('postLayoutType'); $isBlocked = $poster['globalblock'] || $loguser['blocklayouts'] || $post['options'] & 1 || isset($blocklayouts[$poster['id']]); $post['type'] = $type; $post['formattedDate'] = formatdate($post['date']); if (!HasPermission('admin.viewips')) { $post['ip'] = ''; } else { $post['ip'] = htmlspecialchars($post['ip']); } // TODO IP formatting? if ($post['deleted'] && $type == POST_NORMAL) { $post['deluserlink'] = UserLink(getDataPrefix($post, 'du_')); $post['delreason'] = htmlspecialchars($post['reason']); $links = array(); if (HasPermission('mod.deleteposts', $params['fid'])) { $links['undelete'] = actionLinkTag(__("Undelete"), "editpost", $post['id'], "delete=2&key=" . $loguser['token']); $links['view'] = "<a href=\"#\" onclick=\"replacePost(" . $post['id'] . ",true); return false;\">" . __("View") . "</a>"; } $post['links'] = $links; RenderTemplate('postbox_deleted', array('post' => $post)); return; } $links = array(); if ($type != POST_SAMPLE) { $forum = $params['fid']; $thread = $params['tid']; $notclosed = !$post['closed'] || HasPermission('mod.closethreads', $forum); $extraLinks = array(); if (!$isBot) { if ($type == POST_DELETED_SNOOP) { if ($notclosed && HasPermission('mod.deleteposts', $forum)) { $links['undelete'] = actionLinkTag(__("Undelete"), "editpost", $post['id'], "delete=2&key=" . $loguser['token']); } $links['close'] = "<a href=\"#\" onclick=\"replacePost(" . $post['id'] . ",false); return false;\">" . __("Close") . "</a>"; } else { if ($type == POST_NORMAL) { if ($notclosed) { if ($loguserid && HasPermission('forum.postreplies', $forum) && !$params['noreplylinks']) { $links['quote'] = actionLinkTag(__("Quote"), "newreply", $thread, "quote=" . $post['id']); } $editrights = 0; if ($poster['id'] == $loguserid && HasPermission('user.editownposts') || HasPermission('mod.editposts', $forum)) { $links['edit'] = actionLinkTag(__("Edit"), "editpost", $post['id']); $editrights++; } if ($poster['id'] == $loguserid && HasPermission('user.deleteownposts') || HasPermission('mod.deleteposts', $forum)) { if ($post['id'] != $post['firstpostid']) { $link = htmlspecialchars(actionLink('editpost', $post['id'], 'delete=1&key=' . $loguser['token'])); $onclick = HasPermission('mod.deleteposts', $forum) ? " onclick=\"deletePost(this);return false;\"" : ' onclick="if(!confirm(\'Really delete this post?\'))return false;"'; $links['delete'] = "<a href=\"{$link}\"{$onclick}>" . __('Delete') . "</a>"; } $editrights++; } if ($editrights < 2 && HasPermission('user.reportposts')) { $links['report'] = actionLinkTag(__('Report'), 'reportpost', $post['id']); } } // plugins should add to $extraLinks $bucket = "topbar"; include __DIR__ . "/pluginloader.php"; } } $links['extra'] = $extraLinks; } //Threadlinks for listpost.php if ($params['threadlink']) { $thread = array(); $thread['id'] = $post['thread']; $thread['title'] = $post['threadname']; $thread['forum'] = $post['fid']; $post['threadlink'] = makeThreadLink($thread); } else { $post['threadlink'] = ''; } //Revisions if ($post['revision']) { $ru_link = UserLink(getDataPrefix($post, "ru_")); $revdetail = ' ' . format(__('by {0} on {1}'), $ru_link, formatdate($post['revdate'])); if (HasPermission('mod.editposts', $forum)) { $post['revdetail'] = "<a href=\"javascript:void(0);\" onclick=\"showRevisions(" . $post['id'] . ")\">" . Format(__('rev. {0}'), $post['revision']) . "</a>" . $revdetail; } else { $post['revdetail'] = Format(__('rev. {0}'), $post['revision']) . $revdetail; } } //</revisions> } $post['links'] = $links; // POST SIDEBAR $sidebar = array(); // quit abusing custom syndromes you unoriginal fuckers $poster['title'] = preg_replace('@Affected by \'?.*?Syndrome\'?@si', '', $poster['title']); $sidebar['rank'] = GetRank($poster['rankset'], $poster['posts']); if ($poster['title']) { $sidebar['title'] = strip_tags(CleanUpPost($poster['title'], '', true), '<b><strong><i><em><span><s><del><img><a><br/><br><small>'); } else { $sidebar['title'] = htmlspecialchars($usergroups[$poster['primarygroup']]['title']); } $sidebar['syndrome'] = GetSyndrome(getActivity($poster['id'])); if ($post['mood'] > 0) { if (file_exists(DATA_DIR . "avatars/" . $poster['id'] . "_" . $post['mood'])) { $sidebar['avatar'] = "<img src=\"" . DATA_URL . "avatars/" . $poster['id'] . "_" . $post['mood'] . "\" alt=\"\">"; } } else { if ($poster['picture']) { $pic = str_replace('$root/', DATA_URL, $poster['picture']); $sidebar['avatar'] = "<img src=\"" . htmlspecialchars($pic) . "\" alt=\"\">"; } } $lastpost = $poster['lastposttime'] ? timeunits(time() - $poster['lastposttime']) : "none"; $lastview = timeunits(time() - $poster['lastactivity']); if (!$post['num']) { $sidebar['posts'] = $poster['posts']; } else { $sidebar['posts'] = $post['num'] . '/' . $poster['posts']; } $sidebar['since'] = cdate($loguser['dateformat'], $poster['regdate']); $sidebar['lastpost'] = $lastpost; $sidebar['lastview'] = $lastview; if ($poster['lastactivity'] > time() - 300) { $sidebar['isonline'] = __("User is <strong>online</strong>"); } $sidebarExtra = array(); $bucket = "sidebar"; include __DIR__ . "/pluginloader.php"; $sidebar['extra'] = $sidebarExtra; $post['sidebar'] = $sidebar; // OTHER STUFF $post['haslayout'] = false; $post['fulllayout'] = false; if (!$isBlocked) { $poster['postheader'] = $pltype ? trim($poster['postheader']) : ''; $poster['signature'] = trim($poster['signature']); $post['haslayout'] = $poster['postheader'] ? 1 : 0; $post['fulllayout'] = $poster['fulllayout'] && $post['haslayout'] && $pltype == 2; if (!$post['haslayout'] && $poster['signature']) { $poster['signature'] = '<div class="signature">' . $poster['signature'] . '</div>'; } } else { $poster['postheader'] = ''; $poster['signature'] = ''; } $post['contents'] = makePostText($post, $poster); //PRINT THE POST! RenderTemplate('postbox', array('post' => $post)); }
function postcode($post, $set) { global $tzoff, $smallfont, $ip, $quote, $edit, $dateshort, $dateformat, $tlayout, $textcolor, $numdir, $numfil, $tblstart, $hacks, $x_hacks, $loguser; $tblend = "</table>"; $exp = calcexp($post['posts'], (ctime() - $post['regdate']) / 86400); $lvl = calclvl($exp); $expleft = calcexpleft($exp); if ($tlayout == 1) { $level = "Level: {$lvl}"; $poststext = "Posts: "; $postnum = "{$post['num']}/"; $posttotal = $post['posts']; $experience = "EXP: {$exp}<br>For next: {$expleft}"; $totalwidth = 96; $barwidth = $totalwidth - round(@($expleft / totallvlexp($lvl)) * $totalwidth); if ($barwidth < 1) { $barwidth = 0; } if ($barwidth > 0) { $baron = "<img src=images/{$numdir}" . "bar-on.gif width={$barwidth} height=8>"; } if ($barwidth < $totalwidth) { $baroff = "<img src=images/{$numdir}" . 'bar-off.gif width=' . ($totalwidth - $barwidth) . ' height=8>'; } $bar = "<br><img src=images/{$numdir}" . "barleft.gif height=8>{$baron}{$baroff}<img src=images/{$numdir}" . 'barright.gif height=8>'; } else { $level = "<img src=images/{$numdir}" . "level.gif width=36 height=8><img src=numgfx.php?n={$lvl}&l=3&f={$numfil} height=8>"; $experience = "<img src=images/{$numdir}" . "exp.gif width=20 height=8><img src=numgfx.php?n={$exp}&l=5&f={$numfil} height=8><br><img src=images/{$numdir}" . "fornext.gif width=44 height=8><img src=numgfx.php?n={$expleft}&l=2&f={$numfil} height=8>"; $poststext = "<img src=images/_.gif height=2><br><img src=images/{$numdir}" . "posts.gif width=28 height=8>"; $postnum = "<img src=numgfx.php?n={$post['num']}/&l=5&f={$numfil} height=8>"; $posttotal = "<img src=numgfx.php?n={$post['posts']}&f={$numfil}" . ($post['num'] ? '' : '&l=4') . " height=8>"; $totalwidth = 56; $barwidth = $totalwidth - round(@($expleft / totallvlexp($lvl)) * $totalwidth); if ($barwidth < 1) { $barwidth = 0; } if ($barwidth > 0) { $baron = "<img src=images/{$numdir}" . "bar-on.gif width={$barwidth} height=8>"; } if ($barwidth < $totalwidth) { $baroff = "<img src=images/{$numdir}" . 'bar-off.gif width=' . ($totalwidth - $barwidth) . ' height=8>'; } $bar = "<br><img src=images/{$numdir}" . "barleft.gif width=2 height=8>{$baron}{$baroff}<img src=images/{$numdir}" . 'barright.gif width=2 height=8>'; } if (!$post['num']) { $postnum = ''; if ($postlayout == 1) { $posttotal = "<img src=numgfx.php?n={$post['posts']}&f={$numfil}&l=4 height=8>"; } } $reinf = syndrome(filter_int($post['act'])); if ($post['lastposttime']) { $sincelastpost = 'Since last post: ' . timeunits(ctime() - $post['lastposttime']); } $lastactivity = 'Last activity: ' . timeunits(ctime() - $post['lastactivity']); $since = 'Since: ' . @date($dateshort, $post['regdate'] + $tzoff); $postdate = date($dateformat, $post['date'] + $tzoff); $threadlink = ""; if (filter_string($set['threadlink'])) { $threadlink = ", in {$set['threadlink']}"; } $post['edited'] = filter_string($post['edited']); if ($post['edited']) { // .="<hr>$smallfont$post[edited]"; } $sidebars = array(1, 3, 19, 89, 387, 45, 92, 47); $sidebars = array(1, 19, 89, 387, 45, 92, 47, 1420, 1090, 2100, 2069); // Large block of user-specific hacks follows // if ($post['uid'] == 1 && !$x_hacks['host'] && true) { global $numdir; $numdir_ = $numdir; $numdir = "num3/"; if ($post['num']) { $numtext = generatenumbergfx($post['num'], 1, true) . "<br>" . generatenumbergfx($post['posts']); } else { $numtext = generatenumbergfx($post['posts'], 1, true); } $numdir = $numdir_; return "\n\t{$tblstart}\n\t{$set['tdbg']} rowspan=2 style='padding: 5px 1px 5px 1px;'>\n\t <center>{$set['userlink']}{$smallfont}<br>\n\t {$set['userrank']}\n\t\t{$reinf}\n\t\t<br>\n\t\t<br>{$set['userpic']}\n\t\t<br><br>{$numtext}</center>\n\t <br><img src=images/_.gif width=200 height=1>\n\t</td>\n\t{$set['tdbg']} height=1 width=100%>\n\t <table cellspacing=0 cellpadding=2 width=100% class=fonts>\n\t <td>Posted on {$postdate}{$threadlink}{$post['edited']}</td>\n\t <td width=255><nobr>{$quote}{$edit}{$ip}\n\t </table><tr>\n\t{$set['tdbg']} height=220 id=\"post" . $post['id'] . "\">{$post['headtext']}{$post['text']}{$post['signtext']}</td>\n\t{$tblend}"; } // Inu's sidebar // (moved up here for to display for everyone during doomclock mode!) if ($post['uid'] == "2100" && !$x_hacks['host']) { $posttable = "<table style=\"border:none;border-spacing:0px;\">"; // doomclock if (($doomclock_time = mktime(12, 20, 0, 4, 20, 2014) - cmicrotime()) >= 0) { $doomclock_secs = (int) ($doomclock_time % 60); $doomclock_mins = (int) ($doomclock_time % 3600 / 60); $doomclock_hrs = (int) ($doomclock_time / 3600); $doomclock_str = sprintf(" %d=%02d=%02d", $doomclock_hrs, $doomclock_mins, $doomclock_secs); $doomclock_desc = "{$doomclock_hrs} hours, {$doomclock_mins} minutes, {$doomclock_secs} seconds"; $posttable .= "<tr><td><img src=\"images/inu/cifont/d.gif\" title=\"Doomsday\"></td><td align='right'>"; $posttable .= inu_hexclock($doomclock_desc, $doomclock_time); $posttable .= "</td><td align='right'><img src=\"/images/inu/7sd.php?s=>FFF{$doomclock_str}\"></td></tr>"; } if ($post['num']) { $posttable .= "<tr><td><img src=\"images/inu/cifont/p.gif\" title=\"Post Number\"></td><td>"; $posttable .= inu_binaryposts($post['num'], "images/dot3.gif", "images/dot1.gif", $post['posts']); $posttable .= "</td><td align='right'><img src=\"/images/inu/7sd.php?s=" . sprintf("%4d", $post['num']) . "\"></td></tr>"; } $posttable .= "<tr><td><img src=\"images/inu/cifont/t.gif\" title=\"Total Posts\"></td><td>"; $posttable .= inu_binaryposts($post['posts'], "images/dot5.gif", "images/dot1.gif"); $posttable .= "</td><td align='right'><img src=\"/images/inu/7sd.php?s=>F90" . sprintf("%4d", $post['posts']) . "\"></td></tr></table>"; /* $lp = ((!$post['lastposttime']) ? "" : 'Last posted >fff'.timeunits(ctime()-$post['lastposttime']).' >0f0ago'); $la ='Last active >fff'.timeunits(ctime()-$post['lastactivity']).' >0f0ago'; $jd ='Joined >f11'.@date("m.d.Y",$post['regdate']+$tzoff); return "$tblstart ". str_replace('valign=top', 'valign=top', $set['tdbg']) ." rowspan=2 align=center style=\"font-size: 12px;\"> ".inu_hexclock()." <a name=$post[id]></a><a href=\"profile.php?id=2100\"><img src=\"/images/inu/7sd.php?s=- >EC1Inuyasha>0f0 -\"></a> $smallfont <br><marquee scrolldelay=250 scrollamount=30 width=30 height=8 behavior=alternate><img src=\"/images/inu/7sd.php?s=>f0012=00\"><img src=\"/images/inu/7sd.php?s=>f00 =%20%20\"></marquee> <br>$reinf $set[userpic] <br> <br>". ($hacks['noposts'] ? "" : "$posttable") ." <br> <br><img src=\"/images/inu/7sd.php?s=$jd\"> <br> <br><img src=\"/images/inu/7sd.php?s=$lp\"> <br><img src=\"/images/inu/7sd.php?s=$la\"></font> <br><img src=images/_.gif width=200 height=1> </td> $set[tdbg] height=1 width=100%> <table cellspacing=0 cellpadding=2 width=100% class=fonts> <td>Posted on $postdate$threadlink$post[edited]</td> <td width=255><nobr>$quote$edit$ip </table><tr> $set[tdbg] height=220 id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td> $tblend"; */ // non-image old version $lp = !$post['lastposttime'] ? "" : 'Last posted ' . timeunits(ctime() - $post['lastposttime']) . ' ago'; $la = 'Last active ' . timeunits(ctime() - $post['lastactivity']) . ' ago'; $jd = 'Joined ' . @date("m.d.Y", $post['regdate'] + $tzoff); $dstyle = ''; // [D]Inuyasha if ($post['moodid'] == 5) { $post['headtext'] = str_replace(array('class="inu-bg"', 'class="inu-tx"'), array('class="inu-dbg"', 'class="inu-dtx"'), $post['headtext']); $set['userlink'] = ' <a name=' . $post['id'] . '></a><a class="url2100" href="profile.php?id=2100"><font color="FF0202">[D]Inuyasha</font></a>'; $set['userrank'] = 'Now you\'ve done it...!'; $set['userpic'] = '<img src="http://inuyasha.rustedlogic.net/personal/moodav/5.png">'; $dstyle = ' style="color:#b671e8;background:black;"'; } return "{$tblstart}\n\t\t\t" . str_replace('valign=top', 'valign=top', $set['tdbg']) . "{$dstyle} rowspan=2 align=center style=\"font-size: 12px;\">\n\t\t\t\t — {$set['userlink']} —\n\t\t\t\t{$smallfont}\n\t\t\t\t" . ($set['userrank'] ? "<br>" . $set['userrank'] . "<br>" : "") . "\n\t\t\t\t{$reinf}\n\t\t\t\t<br>\n\t\t\t\t{$set['userpic']}\n\t\t\t\t<br>\n\t\t\t\t<br>" . ($hacks['noposts'] ? "" : "{$posttable}") . "\n\t\t\t\t<br>\n\t\t\t\t<br>{$jd}\n\t\t\t\t<br>\n\t\t\t\t<br>{$lp}\n\t\t\t\t<br>{$la}</font>\n\t\t\t\t<br><img src=images/_.gif width=200 height=1>\n\t\t\t</td>\n\t\t{$set['tdbg']}{$dstyle} height=1 width=100%>\n\t\t\t<table cellspacing=0 cellpadding=2 width=100% class=fonts{$dstyle}>\n\t\t\t\t<td>Posted on {$postdate}{$threadlink}{$post['edited']}</td>\n\t\t\t\t<td width=255><nobr>{$quote}{$edit}{$ip}\n\t\t\t</table><tr>\n\t\t{$set['tdbg']}{$dstyle} height=220 id=\"post" . $post['id'] . "\">{$post['headtext']}{$post['text']}{$post['signtext']}</td>\n\t\t{$tblend}"; } // End Inu's sidebar if ($post['uid'] == 18 && !$x_hacks['host'] && $x_hacks['mmdeath'] >= 0 && !$_GET['test2']) { return "\n\t<table style=\"background: #f00 url('numgfx/red.gif');\" cellpadding=3 cellspacing=1>\n\t{$set['tdbg']} style='background: #000;' rowspan=2>\n\t\t<br><center class='stupiddoomtimerhack'><img src='numgfx.php?f=numdeath&n=" . $x_hacks['mmdeath'] . "' height=32 style=\"background: #f00 url('numgfx/red.gif');\" title=\"Doom.\"></center>\n\t\t<br>\n\t <center>{$set['userlink']}{$smallfont}<br>\n\t\t<br>\n\t\t<br>{$set['userpic']}\n\t\t</center>\n\n\t\t<br><img src=images/_.gif width=194 height=1>\n\t</td>\n\t{$set['tdbg']} style='background: #000;'height=1 width=100%>\n\t <table cellspacing=0 cellpadding=2 width=100% class=fonts>\n\t <td>Posted on {$postdate}{$threadlink}{$post['edited']}</td>\n\t <td width=255><nobr>{$quote}{$edit}{$ip}\n\t </table><tr>\n\t{$set['tdbg']} style='background: #000;' height=220 id=\"post" . $post['id'] . "\">{$post['headtext']}{$post['text']}{$post['signtext']}</td>\n\t{$tblend}"; } // Default layout if (!(in_array($post['uid'], $sidebars) && !$x_hacks['host']) || $loguser['viewsig'] == 0) { return "\n\t<div style='position:relative'>\n\t{$tblstart}\n\t{$set['tdbg']} rowspan=2>\n\t {$set['userlink']}{$smallfont}<br>\n\t {$set['userrank']}{$reinf}<br>\n {$level}{$bar}<br>\n\t {$set['userpic']}<br>\n\t " . (filter_bool($hacks['noposts']) ? "" : "{$poststext}{$postnum}{$posttotal}<br>") . "\n\t {$experience}<br><br>\n\t {$since}<br>" . str_ireplace("<br>", "<br>", substr(htmlspecialchars($set['location']), 10)) . "<br><br>\n\t {$sincelastpost}<br>{$lastactivity}<br>\n\t </font>\n\t <br><img src=images/_.gif width=200 height=1>\n\t</td>\n\t{$set['tdbg']} height=1 width=100%>\n\t <table cellspacing=0 cellpadding=2 width=100% class=fonts>\n\t <td>Posted on {$postdate}{$threadlink}{$post['edited']}</td>\n\t <td width=255><nobr>{$quote}{$edit}{$ip}\n\t </table><tr>\n\t{$set['tdbg']} height=220 id=\"post" . $post['id'] . "\">{$post['headtext']}{$post['text']}{$post['signtext']}</td>\n\t{$tblend}\n\t</div>"; } elseif ($post['uid'] == "1" && !$x_hacks['host']) { $lastactivity = 'Active </font>' . timeunits(ctime() - $post['lastactivity']) . "<font color=#bbbbbb> ago"; $postnum = $post['num'] . "/"; $posttotal = $post['posts']; if (!$post['num']) { $postnum = ''; $postss = "s:"; } //". str_replace('valign=top', 'valign=top', $set[tdbg]) ." return "<table width=100% cellpadding=0 cellspacing=0 style=\"background: #004c5a; background-position: top right; background-repeat: repeat-x; border: 1px solid #000;\">\n\t\t\t<tr>\n\t\t\t<td rowspan=2 valign=top align=center style=\"font-size: 12px; color: #fff; font-family: Verdana, sans-serif; border-right: 3px double #000; background: #004c5a;\">\n\t\t\t\t— {$set['userlink']} —\n\t\t\t\t{$smallfont}\n\t\t\t\t" . ($set['userrank'] ? "<br>" . $set['userrank'] . "<br>" : "") . "\n\t\t\t\t<br>{$set['userpic']}\n\t\t\t\t<br>" . ($hacks['noposts'] ? "<font color=#cccccc>" : "<br>Post{$postss} {$postnum}<font color=#cccccc>{$posttotal}") . "\n\t\t\t\t<br>{$lastactivity}</font>\n\t\t\t\t" . (false ? "<br><a href=sendprivate.php?uid=1>PM</a> - <a href=rateuser.php?id=1>Rate</a>" : "") . "\n\t\t\t\t<br><img src=images/_.gif width=200 height=1>\n\t\t\t</td>\n\t\t\t<td height=1 width=100% style=\"font-size: 12px; color: #ddd; font-family: Verdana, sans-serif; background: #004c5a; border-bottom: 1px solid #000;\">\n\t\t\t\t<table cellspacing=0 cellpadding=2 width=100% class=fonts>\n\t\t\t\t<td>Posted on {$postdate}{$threadlink}{$post['edited']}</td>\n\t\t\t\t<td width=255><nobr>{$quote}{$edit}{$ip}\n\t\t\t</table><tr>\n\t\t\t<td valign='top' id=\"post" . $post['id'] . "\">{$post['headtext']}{$post['text']}{$post['signtext']}</td>{$tblend}\n\t\t"; } elseif ($post['uid'] == "3" && !$x_hacks['host']) { $lastactivity = 'Active </font>' . timeunits(ctime() - $post[lastactivity]) . '<font color=#bb0000> ago'; $postnum = $post['num'] . "/"; $posttotal = $post['posts']; if (!$post['num']) { $postnum = ''; $postss = "s:"; } return "{$tblstart}\n\t\t\t" . str_replace('valign=top', 'valign=top', $set[tdbg]) . " rowspan=2 align=center style=\"background: #000; font-size: 12px; color: #f00; font-family: Verdana, sans-serif;\">\n\t\t\t\t — {$set['userlink']} —\n\t\t\t\t{$smallfont}\n\t\t\t\t" . ($set['userrank'] ? "<br>" . $set['userrank'] : "") . "\n\t\t\t\t{$set['userpic']}\n\t\t\t\t<br>" . ($hacks['noposts'] ? "<font color=#bb0000>" : "<br>Post{$postss} {$postnum}<font color=#bb0000>{$posttotal}") . "\n\t\t\t\t<br>{$lastactivity}</font>\n\t\t\t\t<br><img src=images/_.gif width=200 height=1>\n\t\t\t</td>\n\t\t\t{$set['tdbg']} height=1 width=100% style=\"background: #000000; font-size: 12px; color: #ff0000; font-family: Verdana, sans-serif;\">\n\t\t\t\t<table cellspacing=0 cellpadding=2 width=100% class=fonts>\n\t\t\t\t<td>Posted on {$postdate}{$threadlink}{$post['edited']}</td>\n\t\t\t\t<td width=255><nobr>{$quote}{$edit}{$ip}\n\t\t\t</table><tr>\n\t\t\t{$set['tdbg']} style=\"padding: 0;\" id=\"post" . $post['id'] . "\">{$post['headtext']}{$post['text']}{$post['signtext']}</td>{$tblend}\n\t\t"; // ************************************************************ // SYAORAN COLIN // ************************************************************ } elseif ($post['uid'] == "45" && !$x_hacks['host']) { $fcol1 = "#204080"; $fcol2 = "#3070a0"; $fcol3 = "#f0f8ff"; $lastactivity = 'Active </font>' . timeunits(ctime() - $post[lastactivity]) . "<font color={$fcol2}> ago"; $postnum = $post['num'] . "/"; $posttotal = $post['posts']; if (!$post['num']) { $postnum = ''; $postss = "s:"; } return "{$tblstart}\n\t\t\t" . str_replace('valign=top', 'valign=top', $set[tdbg]) . " rowspan=2 align=center style=\"background: {$fcol3}; font-size: 12px; color: {$fcol1}; font-family: Verdana, sans-serif;\">\n\t\t\t\t — {$set['userlink']} —\n\t\t\t\t{$smallfont}\n\t\t\t\t" . ($set['userrank'] ? "<br>" . $set['userrank'] : "") . "\n\t\t\t\t{$reinf}\n\t\t\t\t{$set['userpic']}\n\t\t\t\t<br>" . ($hacks['noposts'] ? "<font color={$fcol2}>" : "<br>Post{$postss} {$postnum}<font color={$fcol2}>{$posttotal}") . "\n\t\t\t\t<br>{$lastactivity}</font>\n\t\t\t\t<br><img src=images/_.gif width=200 height=1>\n\t\t\t</td>\n\t\t\t{$set['tdbg']} height=1 width=100% style=\"background: {$fcol3}; font-size: 12px; color: {$fcol1}; font-family: Verdana, sans-serif;\">\n\t\t\t\t<table cellspacing=0 cellpadding=2 width=100% class=fonts>\n\t\t\t\t<td style='color: {$fcol1};'>Posted on {$postdate}{$threadlink}{$post['edited']}</td>\n\t\t\t\t<td width=255><nobr>{$quote}{$edit}{$ip}\n\t\t\t</table><tr>\n\t\t\t{$set['tdbg']} style=\"padding: 0;\" id=\"post" . $post['id'] . "\">{$post['headtext']}{$post['text']}{$post['signtext']}</td>{$tblend}\n\t\t"; } elseif ($post['uid'] == "47" && !$x_hacks['host']) { $fcol1 = "#204080"; $fcol2 = "#3070a0"; $fcol3 = "#ffffff"; $fcol1 = "#9966bb"; $fcol2 = "#ccaadd"; $fcol3 = "#000000"; if ($post['posts'] >= 20000) { $fcol1 = "#bbaadd"; $fcol2 = "#eebbff"; $fcol3 = "#000000"; } $lastactivity = 'Active </font>' . timeunits(ctime() - $post[lastactivity]) . "<font color={$fcol2}> ago"; $postnum = $post['num'] . "/"; $posttotal = $post['posts']; if (!$post['num']) { $postnum = ''; $postss = "s:"; } return "{$tblstart}\n\t\t\t" . str_replace('valign=top', 'valign=top', $set[tdbg]) . " rowspan=2 align=center style=\"background: {$fcol3}" . ($post['posts'] >= 20000 ? " url('http://www.ffalexandria.com/orlandu/anya/side_bg.jpg'); background-position:bottom left" : "") . "; font-size: 12px; color: {$fcol1}; font-family: Verdana, sans-serif;\">\n\t\t\t\t — {$set['userlink']} —\n\t\t\t\t<br>{$smallfont}\n\t\t\t\t" . ($set['userrank'] ? "<br>" . $set['userrank'] : "") . "\n\t\t\t\t{$reinf}\n\t\t\t\t<br><br>{$set['userpic']}\n\t\t\t\t<br><br>Post{$postss} {$postnum}{$posttotal}\n\t\t\t\t<br><img src=images/_.gif width=200 height=1>\n\t\t\t</td>\n\t\t\t{$set['tdbg']} height=1 width=100% style=\"background: {$fcol3}; font-size: 12px; color: {$fcol1}; font-family: Verdana, sans-serif;\">\n\t\t\t\t<table cellspacing=0 cellpadding=2 width=100% class=fonts>\n\t\t\t\t<td style='color: {$fcol1};'>Posted on {$postdate}{$threadlink}{$post['edited']}</td>\n\t\t\t\t<td width=255><nobr>{$quote}{$edit}{$ip}\n\t\t\t</table><tr>\n\t\t\t{$set['tdbg']} style=\"padding: 0;\" id=\"post" . $post['id'] . "\">{$post['headtext']}{$post['text']}{$post['signtext']}</td>{$tblend}\n\t\t"; return "\n\t\t{$tblstart}\n\t\t{$set['tdbg']} rowspan=2 style='padding: 5px;'>\n\t\t <img src='images/smilies/bigeyes.gif' title='o_O' align='absmiddle'> {$set['userlink']}{$smallfont}<br>\n\t\t " . ($set['userrank'] ? "<br>" . $set['userrank'] : "") . "\n\t\t\t\t{$reinf}\n\t\t\t\t<br>\n\t\t\t\t{$set['userpic']}\n\t\t\t\t<br>\n\t\t\t\t<br>Post{$postss} {$postnum}{$posttotal}\n\t\t </center><br><img src=images/_.gif width=190 height=1>\n\t\t</td>\n\t\t{$set['tdbg']} height=1 width=100%>\n\t\t <table cellspacing=0 cellpadding=2 width=100% class=fonts>\n\t\t\t<td>Posted on {$postdate}{$threadlink}{$post['edited']}</td>\n\t\t\t<td width=255><nobr>{$quote}{$edit}{$ip}\n\t\t </table><tr>\n\t\t{$set['tdbg']} height=220 id=\"post" . $post['id'] . "\">{$post['headtext']}{$post['text']}{$post['signtext']}</td>\n\t\t{$tblend}"; // ************************************************************ // SAKURA HIRYUU // ************************************************************ } elseif ($post['uid'] == "4xxxxxxxxxxx7" && !$x_hacks['host']) { $fcol1 = "#802040"; $fcol2 = "#a07030"; $fcol3 = "#fff0f8"; $lastactivity = 'Active </font>' . timeunits(ctime() - $post[lastactivity]) . "<font color={$fcol2}> ago"; $postnum = $post['num'] . "/"; $posttotal = $post['posts']; if (!$post['num']) { $postnum = ''; $postss = "s:"; } return "{$tblstart}\n\t\t\t" . str_replace('valign=top', 'valign=top', $set[tdbg]) . " rowspan=2 align=center style=\"background: {$fcol3}; font-size: 12px; color: {$fcol1}; font-family: Verdana, sans-serif;\">\n\t\t\t\t — {$set['userlink']} —\n\t\t\t\t{$smallfont}\n\t\t\t\t" . ($set['userrank'] ? "<br>" . $set['userrank'] : "") . "\n\t\t\t\t{$reinf}\n\t\t\t\t{$set['userpic']}\n\t\t\t\t<br>" . ($hacks['noposts'] ? "<font color={$fcol2}>" : "<br>Post{$postss} {$postnum}<font color={$fcol2}>{$posttotal}") . "\n\t\t\t\t<br>{$lastactivity}</font>\n\t\t\t\t<br><img src=images/_.gif width=200 height=1>\n\t\t\t</td>\n\t\t\t{$set['tdbg']} height=1 width=100% style=\"background: {$fcol3}; font-size: 12px; color: {$fcol1}; font-family: Verdana, sans-serif;\">\n\t\t\t\t<table cellspacing=0 cellpadding=2 width=100% class=fonts>\n\t\t\t\t<td style=\"color: {$fcol1};\">Posted on {$postdate}{$threadlink}{$post['edited']}</td>\n\t\t\t\t<td width=255><nobr>{$quote}{$edit}{$ip}\n\t\t\t</table><tr>\n\t\t\t{$set['tdbg']} style=\"padding: 0;\" id=\"post" . $post['id'] . "\">{$post['headtext']}{$post['text']}{$post['signtext']}</td>{$tblend}\n\t\t"; // ************************************************************ // REAL HIRYUU // ************************************************************ } elseif ($post['uid'] == "92" && !$x_hacks['host']) { $fcol1 = "#e2bbff"; $fcol2 = "#bb70dd"; $fcol3 = "#220033"; $fcol1 = "#ffeeaa"; $fcol2 = "#998844"; $fcol3 = "#221100"; $fcol1 = "#ffaaaa"; $fcol2 = "#ff7777"; $fcol3 = "#661111"; $fcol1 = "#ffffff"; $fcol2 = "#eeeeee"; $fcol3 = "#000000"; $lastactivity = 'Active </font>' . timeunits(ctime() - $post[lastactivity]) . "<font color={$fcol2}> ago"; $postnum = $post['num'] . "/"; $posttotal = $post['posts']; if (!$post['num']) { $postnum = ''; $postss = "s:"; } return "{$tblstart}\n\t\t\t" . str_replace('valign=top', 'valign=top', $set[tdbg]) . " rowspan=2 align=center style=\"background: {$fcol3}; font-size: 12px; color: {$fcol1}; font-family: Verdana, sans-serif;\">\n\t\t\t\t — {$set['userlink']} —\n\t\t\t\t{$smallfont}\n\t\t\t\t" . ($set['userrank'] ? "<br>" . $set['userrank'] : "") . "\n\t\t\t\t{$reinf}\n\t\t\t\t{$set['userpic']}\n\t\t\t\t<br>" . ($hacks['noposts'] ? "<font color={$fcol2}>" : "<br>Post{$postss} {$postnum}<font color={$fcol2}>{$posttotal}") . "\n\t\t\t\t<br>{$lastactivity}</font>\n\t\t\t\t<br><img src=images/_.gif width=200 height=1>\n\t\t\t</td>\n\t\t\t{$set['tdbg']} height=1 width=100% style=\"background: {$fcol3}; font-size: 12px; color: {$fcol1}; font-family: Verdana, sans-serif;\">\n\t\t\t\t<table cellspacing=0 cellpadding=2 width=100% class=fonts>\n\t\t\t\t<td>Posted on {$postdate}{$threadlink}{$post['edited']}</td>\n\t\t\t\t<td width=255><nobr>{$quote}{$edit}{$ip}\n\t\t\t</table><tr>\n\t\t\t{$set['tdbg']} style=\"padding: 0;\" id=\"post" . $post['id'] . "\">{$post['headtext']}{$post['text']}{$post['signtext']}</td>{$tblend}\n\t\t"; } elseif ($post['uid'] == "19" && !$x_hacks['host']) { $fcol1 = "#bbbbeb"; $fcol2 = "#8888a8"; $fcol3 = "#080818 url('http://bloodstar.rustedlogic.net/layout/background.png')"; $lastactivity = 'Active </font>' . timeunits(ctime() - $post[lastactivity]) . "<font color={$fcol2}> ago"; $joindate = 'Joined </font>' . date($dateshort, $post[regdate] + $tzoff) . "<font color={$fcol2}>"; $postnum = $post['num'] . "/"; $posttotal = $post['posts']; if (!$post['num']) { $postnum = ''; $postss = "s:"; } return "{$tblstart}\n\t\t\t" . str_replace('valign=top', 'valign=top', $set[tdbg]) . " rowspan=2 align=center style=\"background: {$fcol3}; font-size: 12px; color: {$fcol1}; font-family: Verdana, sans-serif;\">\n\t\t\t\t — {$set['userlink']} —\n\t\t\t\t{$smallfont}\n\t\t\t\t" . ($set['userrank'] ? "<br>" . $set['userrank'] . "<br>" : "") . "\n\t\t\t\t{$reinf}\n\t\t\t\t{$set['userpic']}\n\t\t\t\t<br>" . ($hacks['noposts'] ? "<font color={$fcol2}>" : "<br>Post{$postss} {$postnum}<font color={$fcol2}>{$posttotal}") . "\n\t\t\t\t<br>\n\t\t\t\t<br>{$joindate}\n\t\t\t\t<br>{$lastactivity}</font>\n\t\t\t\t<br><img src=images/_.gif width=200 height=1>\n\t\t\t</td>\n\t\t\t{$set['tdbg']} height=1 width=100% style=\"background: {$fcol3}; font-size: 12px; color: {$fcol1}; font-family: Verdana, sans-serif;\">\n\t\t\t\t<table cellspacing=0 cellpadding=2 width=100% class=fonts>\n\t\t\t\t<td>Posted on {$postdate}{$threadlink}{$post['edited']}</td>\n\t\t\t\t<td width=255><nobr>{$quote}{$edit}{$ip}\n\t\t\t</table><tr>\n\t\t\t{$set['tdbg']} style=\"padding: 0;\" id=\"post" . $post['id'] . "\">{$post['headtext']}{$post['text']}{$post['signtext']}</td>{$tblend}\n\t\t"; } elseif ($post['uid'] == "4" && !$x_hacks['host']) { $fcol1 = "#9999cc"; $fcol2 = "#7777aa"; $fcol3 = "#000011"; $lastactivity = 'Active </font>' . timeunits(ctime() - $post[lastactivity]) . "<font color={$fcol2}> ago"; $joindate = 'Joined </font>' . date($dateshort, $post[regdate] + $tzoff) . "<font color={$fcol2}>"; $postnum = $post['num'] . "/"; $posttotal = $post['posts']; if (!$post['num']) { $postnum = ''; $postss = "s:"; } return "{$tblstart}\n\t\t\t" . str_replace('valign=top', 'valign=top', $set[tdbg]) . " rowspan=2 align=center style=\"background: {$fcol3}; font-size: 12px; color: {$fcol1}; font-family: Verdana, sans-serif;\">\n\t\t\t\t — {$set['userlink']} —\n\t\t\t\t{$smallfont}\n\t\t\t\t" . ($set['userrank'] ? "<br>" . $set['userrank'] . "<br>" : "") . "\n\t\t\t\t{$set['userpic']}\n\t\t\t\t<br>" . ($hacks['noposts'] ? "<font color={$fcol2}>" : "<br>Post{$postss} {$postnum}<font color={$fcol2}>{$posttotal}") . "\n\t\t\t\t<br>\n\t\t\t\t<br>{$joindate}\n\t\t\t\t<br>{$lastactivity}</font>\n\t\t\t\t<br><img src=images/_.gif width=200 height=1>\n\t\t\t</td>\n\t\t\t{$set['tdbg']} height=1 width=100% style=\"background: {$fcol3}; font-size: 12px; color: {$fcol1}; font-family: Verdana, sans-serif;\">\n\t\t\t\t<table cellspacing=0 cellpadding=2 width=100% class=fonts>\n\t\t\t\t<td>Posted on {$postdate}{$threadlink}{$post['edited']}</td>\n\t\t\t\t<td width=255><nobr>{$quote}{$edit}{$ip}\n\t\t\t</table><tr>\n\t\t\t{$set['tdbg']} style=\"padding: 0;\" id=\"post" . $post['id'] . "\">{$post['headtext']}{$post['text']}{$post['signtext']}</td>{$tblend}\n\t\t"; } elseif ($post['uid'] == "387" && !$x_hacks['host']) { if (!$x_hacks['rpgstats'][$post['uid']]) { $css = "<style> .a1{ height:100%; min-height: 286px; background:#000 url(http://acmlm.rustedlogic.net/etc/nismilly/bg.jpg) 50% 0% no-repeat; } div.a2{ height:100%; min-height: 286px; background:url(http://acmlm.rustedlogic.net/etc/nismilly/map.png) 50% 226px no-repeat; font:9px tahoma; color:#FD4; text-align:center; line-height:19px; } div.a2 img{ margin-top:-5px; border:0px; } div.a2 span{ color:#DEF; } </style>"; $x_hacks['rpgstats'][$post['uid']] == "lol"; } $postnum = $post['num'] . "/"; $posttotal = $post['posts']; if (!$post['num']) { $postnum = ''; $postss = "s:"; } return "{$tblstart}\n\t\t\t" . str_replace('\' valign=top', ' a1\' valign=top', $set[tdbg]) . " rowspan=2 align=center style=\"background: {$fcol3}; font-size: 12px; color: {$fcol1}; font-family: Verdana, sans-serif;\">\n\t\t\t\t{$css}\n\t\t\t\t<div class=a2>\n\t\t\t\t\tPost{$postss} <span><b>{$postnum}</b></span><span><b>{$posttotal}</b></span> (<span>" . timeunits(ctime() - $post[lastposttime]) . "</span>),\n\t\t\t\t\tonline <span>" . timeunits(ctime() - $post[lastactivity]) . "</span> ago\n\t\t\t\t\t<a href=//jul.rustedlogic.net/profile.php?id=387>\n\t\t\t" . (strpos($_SERVER['USER_AGENT'], "MSIE 6.0") ? "<img src=_.png style=filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=http://acmlm.rustedlogic.net/etc/nismilly/stat.php)>" : "<img src=http://acmlm.rustedlogic.net/etc/nismilly/stat.php>") . "\n\t\t\t\t\t</a>\n\t\t\t\t\t<br><img src=images/_.gif width=200 height=1>\n\t\t\t\t</div>\n\t\t\t</td>\n\t\t\t{$set['tdbg']} height=1 width=100% style=\"background: {$fcol3}; font-size: 12px; color: {$fcol1}; font-family: Verdana, sans-serif;\">\n\t\t\t\t<table cellspacing=0 cellpadding=2 width=100% class=fonts>\n\t\t\t\t<td>Posted on {$postdate}{$threadlink}{$post['edited']}</td>\n\t\t\t\t<td width=255><nobr>{$quote}{$edit}{$ip}\n\t\t\t</table><tr>\n\t\t\t{$set['tdbg']} style=\"padding: 0;\" id=\"post" . $post['id'] . "\">{$post['headtext']}{$post['text']}{$post['signtext']}</td>{$tblend}\n\t\t"; } elseif ($post['uid'] == "89" && !$x_hacks['host']) { $fcol1 = "#bbbbbb"; $fcol2 = "#555555"; $fcol3 = "#181818"; return "{$tblstart}\n\t\t\t" . str_replace('valign=top', 'valign=top', $set[tdbg]) . " rowspan=2 align=center style=\"background: {$fcol3}; font-size: 14px; color: {$fcol1}; font-family: Verdana, sans-serif; padding-top: .5em;\">\n\t\t\t\t{$set['userlink']}\n\t\t\t\t<br><span style=\"letter-spacing: 0px; color: {$fcol2}; font-size: 10px;\">Collection of nobodies</span>\n\t\t\t\t<br><img src=images/_.gif width=200 height=200>\n\t\t\t</td>\n\t\t\t{$set['tdbg']} height=1 width=100% style=\"background: {$fcol3}; font-size: 12px; color: {$fcol1}; font-family: Verdana, sans-serif;\">\n\t\t\t\t<table cellspacing=0 cellpadding=2 width=100% class=fonts>\n\t\t\t\t<td>Posted on {$postdate}{$threadlink}{$post['edited']}</td>\n\t\t\t\t<td width=255><nobr>{$quote}{$edit}{$ip}\n\t\t\t</table><tr>\n\t\t\t{$set['tdbg']} style=\"background: {$fcol3}; padding: 0;\" id=\"post" . $post['id'] . "\">{$post['headtext']}{$post['text']}{$post['signtext']}</td>{$tblend}\n\t\t"; } elseif (($post['uid'] == "16" || $post['uid'] == "5") && !$x_hacks['host']) { // top bg #614735 // mid-bg #e1cfb6 // darker #d0bca4 if (!function_exists("basestat")) { require 'lib/rpg.php'; } if (!$x_hacks['rpgstats'][$post['uid']]) { $eq = array('1' => "<center style=\"text-align: center; color: #b09080;\">(Weapon)</center>", '2' => "<center style=\"text-align: center; color: #b09080;\">(Armor)</center>", '3' => "<center style=\"text-align: center; color: #b09080;\">(Shield)</center>", '4' => "<center style=\"text-align: center; color: #b09080;\">(Helm)</center>", '5' => "<center style=\"text-align: center; color: #b09080;\">(Shoes)</center>", '6' => "<center style=\"text-align: center; color: #b09080;\">(Acc.)</center>"); $user = mysql_fetch_array(mysql_query("SELECT name,posts,regdate,users_rpg.* FROM users,users_rpg WHERE id='" . $post['uid'] . "' AND uid=id")); $d = (ctime() - $user[regdate]) / 86400; $eqitems = mysql_query("SELECT * FROM items WHERE id={$user['eq1']} OR id={$user['eq2']} OR id={$user['eq3']} OR id={$user['eq4']} OR id={$user['eq5']} OR id={$user['eq6']}") or print mysql_error(); while ($item = mysql_fetch_array($eqitems)) { $items[$item[id]] = $item; $eq[$item['cat']] = $item['name']; } if ($ct) { $GPdif = floor($items[$user['eq' . $ct]][coins] * 0.6) - $items[$it][coins]; $user['eq' . $ct] = $it; } $st = getstats($user, $items); $st[GP] += $GPdif; if ($st[lvl] > 0) { $pct = 1 - calcexpleft($st[exp]) / totallvlexp($st[lvl]); } $st['expn'] = calcexpleft($st[exp]); $st['eq'] = $eq; $x_hacks['rpgstats'][$post['uid']] = $st; } else { $st = $x_hacks['rpgstats'][$post['uid']]; } $lastactivity = 'Active ' . timeunits(ctime() - $post[lastactivity]) . " ago"; $joindate = 'Joined ' . date($dateshort, $post[regdate] + $tzoff); $postnum = $post['num'] . "/"; $posttotal = $post['posts']; if (!$post['num']) { $postnum = ''; $postss = "s"; } if (!$set['picture']) { $set['picture'] = "images/_.gif"; } if ($_GET['z']) { print_r($st['eq']); } return "{$tblstart}\n\t\t\t" . str_replace('valign=top', 'valign=top', $set[tdbg]) . " rowspan=2 width=200>\n\t\t\t\t <table style=\"font-family: Tahoma; font-size: 12px; color: #000; background: #e1cfb6;\" width=100% cellspacing=0>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td style=\"background: #614735; text-align: left; padding: 2px 0px 2px 15px; font-size: 14px; letter-spacing: 1px; border: 2px outset #614735;\" colspan=4>{$set['userlink']}</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td style=\"border: 2px outset #614735;\" colspan=4>\n\t\t\t\t\t\t\t <table width=100% cellspacing=0 cellpadding=0 style=\"color: #000; font-size: 12px;\">\n\t\t\t\t\t\t\t\t<tr><td rowspan=5 width=0 style=\"padding: 0 3px 0 0;\"><img src=\"" . $set['picture'] . "\" width=80 height=80></td>\n\t\t\t\t\t\t\t\t\t<td width=100% colspan=4 style=\"font-size: 14px; letter-spacing: 1px; padding: 0 0 7px 0;\">" . $set['userrank'] . "</td></tr>\n\t\t\t\t\t\t\t\t<tr style=\"font-weight: bold;\"><td colspan=2 width=50%>Lv</td><td style=\"text-align: right;\" colspan=2 width=50%>" . $st['lvl'] . "</td></tr>\n\t\t\t\t\t\t\t\t<tr style=\"font-weight: bold;\"><td colspan=2 width=50% style=\"font-variant: small-caps;\">Post{$postss}</td><td style=\"text-align: right;\" colspan=2 width=50%>{$postnum}{$posttotal}</tr>\n\t\t\t\t\t\t\t\t<tr style=\"font-weight: bold;\"><td colspan=2 width=50% style=\"font-variant: small-caps;\">Counter</td><td style=\"text-align: right;\" colspan=2 width=50%>2</td></tr>\n\t\t\t\t\t\t\t\t<tr style=\"font-weight: bold;\"><td>Mv</td><td style=\"text-align: right;\">7</td><td style=\"padding: 0 0 0 5px;\">Jm</td><td style=\"text-align: right;\">26</td></tr>\n\t\t\t\t\t\t\t</table>\t\t\t\t\n\n\t\t\t\t\t\t\t<table width=100% cellspacing=0 cellpadding=0 style=\"color: #000; font-size: 12px; font-weight: bold;\">\n\t\t\t\t\t\t\t\t<tr style=\"background: #d0bca4;\"><td style=\"font-variant: small-caps;\">Hp</td><td style=\"text-align: right;\" colspan=3>" . $st['HP'] . "/" . $st['HP'] . "</td></tr>\n\t\t\t\t\t\t\t\t<tr ><td style=\"font-variant: small-caps;\">Sp</td><td style=\"text-align: right;\" colspan=3>" . $st['MP'] . "/" . $st['MP'] . "</td></tr>\n\t\t\t\t\t\t\t\t<tr style=\"background: #d0bca4;\">\n\t\t\t\t\t\t\t\t\t<td style=\"font-variant: small-caps;\">Atk</td><td style=\"text-align: right; padding: 0 4px 0 0;\">" . $st['Atk'] . "</td>\n\t\t\t\t\t\t\t\t\t<td style=\"font-variant: small-caps; padding: 0 0 0 4px;\">Int</td><td style=\"text-align: right;\">" . $st['Int'] . "</td></tr>\n\t\t\t\t\t\t\t\t<tr >\n\t\t\t\t\t\t\t\t\t<td style=\"font-variant: small-caps;\">Def</td><td style=\"text-align: right; padding: 0 4px 0 0;\">" . $st['Def'] . "</td>\n\t\t\t\t\t\t\t\t\t<td style=\"font-variant: small-caps; padding: 0 0 0 4px;\">Spd</td><td style=\"text-align: right;\">" . $st['Spd'] . "</td></tr>\n\t\t\t\t\t\t\t\t<tr style=\"background: #d0bca4;\">\n\t\t\t\t\t\t\t\t\t<td style=\"font-variant: small-caps;\">Hit</td><td style=\"text-align: right; padding: 0 4px 0 0;\">" . $st['Dex'] . "</td>\n\t\t\t\t\t\t\t\t\t<td style=\"font-variant: small-caps; padding: 0 0 0 4px;\">Res</td><td style=\"text-align: right;\">" . $st['MDf'] . "</td></tr>\n\t\t\t\t\t\t\t\t<tr ><td style=\"font-variant: small-caps;\">Exp</td><td style=\"text-align: right;\" colspan=3>" . $st['exp'] . "</td></tr>\n\t\t\t\t\t\t\t\t<tr style=\"background: #d0bca4;\"><td style=\"font-variant: small-caps;\">Next</td><td style=\"text-align: right;\" colspan=3>" . $st['expn'] . "</td></tr>\n\t\t\t\t\t\t\t\t<tr ><td colspan=4><img src=\"images/_.gif\" height=4 width=1></td></tr>\n\t\t\t\t\t\t\t\t<tr ><td colspan=4>" . $st['eq'][1] . "</td></tr>\n\t\t\t\t\t\t\t\t<tr ><td colspan=4>" . $st['eq'][2] . "</td></tr>\n\t\t\t\t\t\t\t\t<tr ><td colspan=4>" . $st['eq'][3] . "</td></tr>\n\t\t\t\t\t\t\t\t<tr ><td colspan=4>" . $st['eq'][4] . "</td></tr>\n\t\t\t\t\t\t\t\t<tr ><td colspan=4>" . $st['eq'][5] . "</td></tr>\n\t\t\t\t\t\t\t\t<tr ><td colspan=4>" . $st['eq'][6] . "</td></tr>\n\t\t\t\t\t\t\t</table>\t\t\t\t\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</table>\n\n\t\t\t\t<br><img src=images/_.gif width=200 height=1>\n\t\t\t</td>\n\t\t\t{$set['tdbg']} height=1 width=100% style=\"background: {$fcol3}; font-size: 12px; color: {$fcol1}; font-family: Verdana, sans-serif;\">\n\t\t\t\t<table cellspacing=0 cellpadding=2 width=100% class=fonts>\n\t\t\t\t<td>Posted on {$postdate}{$threadlink}{$post['edited']}</td>\n\t\t\t\t<td width=255><nobr>{$quote}{$edit}{$ip}\n\t\t\t</table><tr>\n\t\t\t{$set['tdbg']} style=\"padding: 0;\" id=\"post" . $post['id'] . "\">{$post['headtext']}{$post['text']}{$post['signtext']}</td>{$tblend}\n\t\t"; /* <!-- $smallfont <br>$joindate <br>$lastactivity</font> */ } elseif ($post['uid'] == 1090 && !$x_hacks['host']) { $brltype = "catgirlredux2011"; $brsidebar = "\n\t\t\t<link rel=\"stylesheet\" type=\"text/css\" href=\"http://lain.rustedlogic.net/layouts/css/_br_sidebar.css\" />\n\t\t\t{$tblstart}\n\t\t\t{$set['tdbg']} rowspan=2>\n\t\t\t\t<div class=\"brsidebar lain-sidebar-{$brltype}\">\n\t\t\t\t<div class=\"bruserlink\">— {$set['userlink']} —</div>\n\t\t\t\t<div class=\"bruserrank\">{$set['userrank']}</div>" . (!empty($reinf) ? "<div class=\"brsyndrome\">{$reinf}</div>" : "") . "\n\t\t\t\t<div class=\"bruserpic\">{$set['userpic']}</div>\n\t\t\t\t</div>\n\t\t\t</td>\n\t\t\t{$set['tdbg']} height=1 width=100%>\n\t\t\t<table cellspacing=0 cellpadding=2 width=100% class=fonts>\n\t\t\t<td>Posted on {$postdate}{$threadlink}{$post['edited']}</td>\n\t\t\t<td width=255><nobr>{$quote}{$edit}{$ip}\n\t\t\t</table><tr>\n\t\t\t{$set['tdbg']} height=220 id=\"post" . $post['id'] . "\">{$post['headtext']}{$post['text']}{$post['signtext']}</td>\n\t\t\t{$tblend}"; return $brsidebar; } else { return "\n\t{$tblstart}\n\t{$set['tdbg']} rowspan=2>\n\t {$set['userlink']}{$smallfont}<br>\n\t {$set['userrank']}{$reinf}<br>\n\t <br><img src=images/_.gif width=200 height=1>\n\t</td>\n\t{$set['tdbg']} height=1 width=100%>\n\t <table cellspacing=0 cellpadding=2 width=100% class=fonts>\n\t <td>Posted on {$postdate}{$threadlink}{$post['edited']}</td>\n\t <td width=255><nobr>{$quote}{$edit}{$ip}\n\t </table><tr>\n\t{$set['tdbg']} height=220 id=\"post" . $post['id'] . "\">{$post['headtext']}{$post['text']}{$post['signtext']}</td>\n\t{$tblend}"; } }
$tmp2 = $ms['id']; while (($tmp2 -= $posts) > $tmp1) { $poststable .= "<tr>\r\n\t\t\t\t{$tccell1}>{$tmp2}</td>\r\n\t\t\t\t{$tccell2}><i>(unknown)</i></td>\r\n\t\t\t\t{$tccell2}><i>(post deleted)</i></td>\r\n\t\t\t\t{$tccell1}>????</td>\r\n\t\t\t\t{$tccell1}>????<br>{$smallfont}(????)</td>\r\n\t\t\t</td>"; } $tmp1 = $ms['id']; if ($ms['mpl'] && $ms['mpl'] > $loguser['powerlevel']) { $forumlink = "<i>(restricted forum)</i>"; $threadlink = "<i>(restricted)</i>"; $userlink = "????"; } else { $forumlink = "<a href='forum.php?id={$ms['fid']}'>{$ms['ftitle']}</a>"; $threadlink = "<a href='thread.php?pid={$ms['id']}#{$ms['id']}'>{$ms['threadname']}</a>"; $userlink = "<a href='profile.php?id={$ms['user']}'><font " . getnamecolor($ms['usex'], $ms['upowerlevel']) . ">{$ms['uname']}</font></a>"; } if ($last) { $timetaken = "<br>{$smallfont}(" . timeunits($ms['date'] - $last) . ")"; } else { $timetaken = "<br>{$smallfont}(first post)"; } $last = $ms['date']; $timestamp = date($dateformat, $ms['date'] + $tzoff) . $timetaken; $poststable .= "<tr>\r\n\t\t\t{$tccell1}>{$ms['id']}</td>\r\n\t\t\t{$tccell2}>{$forumlink}</td>\r\n\t\t\t{$tccell2}>{$threadlink}</td>\r\n\t\t\t{$tccell1}>{$userlink}</td>\r\n\t\t\t{$tccell1}>{$timestamp}</td>\r\n\t\t</td>"; } $tmp1 = $tmp2 = 0; $milestones = $sql->query("SELECT t.*,u1.name AS name1,u1.sex AS sex1,u1.powerlevel AS power1,u2.name AS name2,u2.sex AS sex2,u2.powerlevel AS power2, f.minpower as mpl, f.title as forumtitle " . "FROM threads t,forums f,users u1,users u2 " . "WHERE (t.id % {$threads} = 0 OR t.id = 1) " . "AND f.id=t.forum " . "AND u1.id=t.user " . "AND u2.id=t.lastposter " . "ORDER BY t.id ASC"); $threadstable = "<tr>{$tccellh} colspan=7 style=\"font-weight:bold;\">Thread Milestones</td></tr><tr>\r\n\t\t\t{$tccellh} width=30></td>\r\n\t\t\t{$tccellh} colspan=2> Thread</td>\r\n\t\t\t{$tccellh} width=20%>Started by</td>\r\n\t\t\t{$tccellh} width=60> Replies</td>\r\n\t\t\t{$tccellh} width=60> Views</td>\r\n\t\t\t{$tccellh} width=180> Last post</td>\r\n </tr>"; while ($ms = $sql->fetch($milestones)) { $tmp2 = $ms['id']; while (($tmp2 -= $threads) > $tmp1) { $threadstable .= "<tr>\r\n\t\t\t\t{$tccell1}>{$tmp2}</td>\r\n\t\t\t\t{$tccell1} width=40px> </td>\r\n\t\t\t\t{$tccell2l}><i>(thread deleted)</i></td>\r\n\t\t\t\t{$tccell2}>????</td>\r\n\t\t\t\t{$tccell1}>????</td>\r\n\t\t\t\t{$tccell1}>????</td>\r\n\t\t\t\t{$tccell1}>????{$smallfont}<br>by ????</td>\r\n\t\t\t</td>"; }
// AcmlmBoard XD - Realtime visitor statistics page // Access: all $title = __("Online users"); MakeCrumbs(array(actionLink("online") => __("Online users"))); $showIPs = HasPermission('admin.viewips'); $time = (int) $_GET['time']; if (!$time) { $time = 300; } $rUsers = Query("select * from {users} where lastactivity > {0} order by lastactivity desc", time() - $time); $rGuests = Query("select * from {guests} where date > {0} and bot = 0 order by date desc", time() - $time); $rBots = Query("select * from {guests} where date > {0} and bot = 1 order by date desc", time() - $time); $spans = array(60, 300, 900, 3600, 86400); $spanList = array(); foreach ($spans as $span) { $spanList[] = $span == $time ? timeunits($span) : actionLinkTag(timeunits($span), "online", "", "time={$span}"); } $userList = array(); $i = 1; while ($user = Fetch($rUsers)) { $udata = array(); $udata['num'] = $i++; $udata['link'] = UserLink($user); $udata['lastPost'] = $user['lastposttime'] ? cdate("d-m-y G:i:s", $user['lastposttime']) : __("Never"); $udata['lastView'] = cdate("d-m-y G:i:s", $user['lastactivity']); if ($user['lasturl']) { $udata['lastURL'] = "<a href=\"" . FilterURL($user['lasturl']) . "\">" . FilterURL($user['lasturl']) . "</a>"; } else { $udata['lastURL'] = __("None"); } if ($showIPs) {
function makePost($post, $type, $params = array()) { global $loguser, $loguserid, $blocklayouts, $dataDir, $dataUrl, $mobileLayout; $sideBarStuff = ""; $poster = getDataPrefix($post, "u_"); LoadBlockLayouts(); $isBlocked = $poster['globalblock'] || $loguser['blocklayouts'] || $post['options'] & 1 || isset($blocklayouts[$poster['id']]); $links = makePostLinks($post, $type, $params); if ($post['deleted'] && $type == POST_NORMAL) { $meta = format(__("Posted on {0}"), formatdate($post['date'])); $meta .= __(', deleted'); if ($post['deletedby']) { $db_link = UserLink(getDataPrefix($post, "du_")); $meta .= __(' by ') . $db_link; if ($post['reason']) { $meta .= ': ' . htmlspecialchars($post['reason']); } } if ($mobileLayout) { $links->setClass("toolbarMenu"); echo "\n\t\t\t\t<table class=\"outline margin mobile-postBox\" id=\"post{$post['id']}\">\n\t\t\t\t\t<tr class=\"header0 mobile-postHeader\">\n\t\t\t\t\t\t<th>\n\t\t\t\t\t\t\t{$anchor}\n\t\t\t\t\t\t\t<table>\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t<div class=\"mobile-userAvatarBox\">\n\t\t\t\t\t\t\t\t\t\t\t{$picture}\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t<td class=\"mobile-postInfoCell\" style=\"width: 99%; overflow: hidden;\">\n\t\t\t\t\t\t\t\t\t\t<div style=\"position: relative; height: 40px; top: 0; left: 0;\">\n\t\t\t\t\t\t\t\t\t\t\t<div style=\"position: absolute; top: 0; left: 0;\">\n\t\t\t\t\t\t\t\t\t\t\t\t" . userLink($poster) . "<br />\n\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"date\">{$meta}</span>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<span style=\"text-align:left; display: none;\" id=\"dyna_{$post['id']}\">\n\t\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t" . $links->build(2) . "\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t</th>\n\t\t\t\t\t</tr>\n\t\t\t\t</table>\n\t\t\t"; } else { echo "\n\t\t\t\t<table class=\"post margin deletedpost\" id=\"post{$post['id']}\">\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=\"side userlink\">\n\t\t\t\t\t\t\t" . userLink($poster) . "\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td class=\"smallFonts meta right\">\n\t\t\t\t\t\t\t<div style=\"float:left\">\n\t\t\t\t\t\t\t\t{$meta}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t" . $links->build() . "\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</table>"; } return; } if ($type == POST_SAMPLE) { $meta = $params['metatext'] ? $params['metatext'] : __("Sample post"); } else { $forum = $params['fid']; $thread = $params['tid']; $canMod = CanMod($loguserid, $forum); $canReply = ($canMod || !$post['closed'] && $loguser['powerlevel'] > -1) && $loguserid; if ($type == POST_PM) { $message = __("Sent on {0}"); } else { $message = __("Posted on {0}"); } $meta = format($message, formatdate($post['date'])); //Threadlinks for listpost.php if ($params['threadlink']) { $thread = array(); $thread["id"] = $post["thread"]; $thread["title"] = $post["threadname"]; $meta .= " " . __("in") . " " . makeThreadLink($thread); } //Revisions if ($post['revision']) { if ($post['revuser']) { $ru_link = UserLink(getDataPrefix($post, "ru_")); $revdetail = " " . format(__("by {0} on {1}"), $ru_link, formatdate($post['revdate'])); } else { $revdetail = ''; } if ($canMod) { $meta .= " (<a href=\"javascript:void(0);\" onclick=\"showRevisions(" . $post['id'] . ")\">" . format(__("rev. {0}"), $post['revision']) . "</a>" . $revdetail . ")"; } else { $meta .= " (" . format(__("rev. {0}"), $post['revision']) . $revdetail . ")"; } } //</revisions> } // POST SIDEBAR $sideBarStuff .= GetRank($poster["rankset"], $poster["posts"]); if ($sideBarStuff) { $sideBarStuff .= "<br />"; } if ($poster['title']) { $sideBarStuff .= strip_tags(CleanUpPost($poster['title'], "", true), "<b><strong><i><em><span><s><del><img><a><br/><br><small>") . "<br />"; } else { $levelRanks = array(-1 => __("Banned"), 0 => "", 1 => __("Local mod"), 2 => __("Full mod"), 3 => __("Administrator")); $sideBarStuff .= $levelRanks[$poster['powerlevel']] . "<br />"; } $sideBarStuff .= GetSyndrome(getActivity($poster["id"])); $pictureUrl = ""; if ($post['mood'] > 0) { if (file_exists("{$dataDir}avatars/" . $poster['id'] . "_" . $post['mood'])) { $pictureUrl = "{$dataUrl}avatars/" . $poster['id'] . "_" . $post['mood']; } } else { if ($poster["picture"] == "#INTERNAL#") { $pictureUrl = "{$dataUrl}avatars/" . $poster['id']; } else { if ($poster["picture"]) { $pictureUrl = $poster["picture"]; } } } if ($pictureUrl) { $sideBarStuff .= "<img src=\"" . htmlspecialchars($pictureUrl) . "\" alt=\"\" />"; } $lastpost = $poster['lastposttime'] ? timeunits(time() - $poster['lastposttime']) : "none"; $lastview = timeunits(time() - $poster['lastactivity']); $sideBarStuff .= "<br />\n" . __("Karma:") . " " . $poster['karma']; if (!$params['forcepostnum'] && ($type == POST_PM || $type == POST_SAMPLE)) { $sideBarStuff .= "<br />\n" . __("Posts:") . " " . $poster['posts']; } else { $sideBarStuff .= "<br />\n" . __("Posts:") . " " . $post['num'] . "/" . $poster['posts']; } $sideBarStuff .= "<br />\n" . __("Since:") . " " . cdate($loguser['dateformat'], $poster['regdate']) . "<br />"; $bucket = "sidebar"; include "./lib/pluginloader.php"; if (Settings::get("showExtraSidebar")) { $sideBarStuff .= "<br />\n" . __("Last post:") . " " . $lastpost; $sideBarStuff .= "<br />\n" . __("Last view:") . " " . $lastview; if ($poster['lastactivity'] > time() - 300) { $sideBarStuff .= "<br />\n" . __("User is <strong>online</strong>"); } } // OTHER STUFF if ($type == POST_NORMAL) { $anchor = "<a name=\"" . $post['id'] . "\"></a>"; } if (!$isBlocked) { $pTable = "table" . $poster['id']; $row1 = "row" . $poster['id'] . "_1"; $row2 = "row" . $poster['id'] . "_2"; $topBar1 = "topbar" . $poster['id'] . "_1"; $topBar2 = "topbar" . $poster['id'] . "_2"; $sideBar = "sidebar" . $poster['id']; $mainBar = "mainbar" . $poster['id']; } $postText = makePostText($post); //PRINT THE POST! if ($mobileLayout) { $links->setClass("toolbarMenu"); if ($pictureUrl) { $picture = "<img src=\"" . htmlspecialchars($pictureUrl) . "\" alt=\"\" style=\"max-width: 40px; max-height: 40px;\"/>"; } else { $picture = ""; } echo "\n\t\t\t\t<table class=\"outline margin mobile-postBox\" id=\"post{$post['id']}\">\n\t\t\t\t<tr class=\"header0 mobile-postHeader\">\n\t\t\t\t\t<th>\n\t\t\t\t\t\t{$anchor}\n\t\t\t\t\t\t<table>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t<div class=\"mobile-userAvatarBox\">\n\t\t\t\t\t\t\t\t\t\t{$picture}\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t<td class=\"mobile-postInfoCell\" style=\"width: 99%; overflow: hidden;\">\n\t\t\t\t\t\t\t\t\t<div style=\"position: relative; height: 40px; top: 0; left: 0;\">\n\t\t\t\t\t\t\t\t\t\t<div style=\"position: absolute; top: 0; left: 0;\">\n\t\t\t\t\t\t\t\t\t\t\t" . userLink($poster) . "<br />\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"date\">{$meta}</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<span style=\"text-align:left; display: none;\" id=\"dyna_{$post['id']}\">\n\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t" . $links->build(2) . "\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t</th>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td colspan=\"3\" class=\"cell0 mobile-postBox\">\n\t\t\t\t\t\t{$postText}\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t</table>\n\t\t"; } else { echo "\n\t\t\t<table class=\"post margin {$pTable}\" id=\"post{$post['id']}\">\n\t\t\t\t<tr class=\"{$row1}\">\n\t\t\t\t\t<td class=\"side userlink {$topBar1}\">\n\t\t\t\t\t\t{$anchor}\n\t\t\t\t\t\t" . UserLink($poster) . "\n\t\t\t\t\t</td>\n\t\t\t\t\t<td class=\"meta right {$topBar2}\">\n\t\t\t\t\t\t<div style=\"float: left;\" id=\"meta_{$post['id']}\">\n\t\t\t\t\t\t\t{$meta}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div style=\"float: left; text-align:left; display: none;\" id=\"dyna_{$post['id']}\">\n\t\t\t\t\t\t\tHi.\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t" . $links->build() . "\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t\t<tr class=\"" . $row2 . "\">\n\t\t\t\t\t<td class=\"side {$sideBar}\">\n\t\t\t\t\t\t<div class=\"smallFonts\">\n\t\t\t\t\t\t\t{$sideBarStuff}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</td>\n\t\t\t\t\t<td class=\"post {$mainBar}\" id=\"post_{$post['id']}\">\n\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t{$postText}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t</table>"; } }
function MakePost($post, $thread, $forum, $ispm = 0) { global $loguser, $loguserid, $dateformat, $theme, $hacks, $isBot, $blocklayouts, $postText, $sideBarStuff, $sideBarData, $salt; $sideBarStuff = ""; if (isset($_GET['pid'])) { $highlight = (int) $_GET['pid']; } //$qBlock = "select * from blockedlayouts where user="******" and blockee=".$loguserid; //$rBlock = Query($qBlock); LoadBlockLayouts(); $isBlocked = $blocklayouts[$post['uid']] | $post['globalblock'] | $loguser['blocklayouts'] | $post['options'] & 1; $noSmilies = $post['options'] & 2; $noBr = $post['options'] & 4; if ($post['deleted'] && !$ispm) { $meta = format(__("Posted on {0}"), cdate($dateformat, $post['date'])); $links = "<ul class=\"pipemenu\"><li>" . __("Post deleted") . "</li>"; if (CanMod($loguserid, $forum)) { $key = hash('sha256', "{$loguserid},{$loguser['pss']},{$salt}"); if (IsAllowed("editPost", $post['id'])) { $links .= "<li><a href=\"editpost.php?id=" . $post['id'] . "&delete=2&key=" . $key . "\">" . __("Undelete") . "</a></li>"; } $links .= "<li><a href=\"#\" onclick=\"ReplacePost(" . $post['id'] . ",true); return false;\">" . __("View") . "</a></li>"; } $links .= "<li>" . format(__("ID: {0}"), $post['id']) . "</li></ul>"; write("\n\t\t<table class=\"post margin\" id=\"post{0}\">\n\t\t\t<tr>\n\t\t\t\t<td class=\"side userlink\" id=\"{0}\">\n\t\t\t\t\t{1}\n\t\t\t\t</td>\n\t\t\t\t<td class=\"smallFonts\" style=\"border-left: 0px none; border-right: 0px none;\">\n\t\t\t\t\t{2}\n\t\t\t\t</td>\n\t\t\t\t<td class=\"smallFonts right\" style=\"border-left: 0px none;\">\n\t\t\t\t\t{3}\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t</table>\n", $post['id'], UserLink($post, "uid"), $meta, $links); return; } if ($ispm == 1) { $thread = $ispm; } if ($thread) { $links = ""; if (!$ispm && !$isBot) { if ($post['unfoldhax']) { $key = hash('sha256', "{$loguserid},{$loguser['pss']},{$salt}"); $links = "<ul class=\"pipemenu\"><li>" . __("Post deleted") . "</li>"; if (IsAllowed("editPost", $post['id'])) { $links .= "<li><a href=\"editpost.php?id=" . $post['id'] . "&delete=2&key=" . $key . "\">" . __("Undelete") . "</a></li>"; } $links .= "<li><a href=\"#\" onclick=\"ReplacePost(" . $post['id'] . ",false); return false;\">" . __("Close") . "</a></li>"; $links .= "<li>" . format(__("ID: {0}"), $post['id']) . "</li></ul>"; } else { $links .= "<ul class=\"pipemenu\"><li><a href=\"thread.php?pid=" . $post['id'] . "#" . $post['id'] . "\">" . __("Link") . "</a></li>"; if ($thread && $loguser['powerlevel'] > -1 && $forum != -2 && IsAllowed("makeReply", $thread)) { $links .= "<li><a href=\"newreply.php?id=" . $thread . "&quote=" . $post['id'] . "\">" . __("Quote") . "</a></li>"; } if (CanMod($loguserid, $forum) || $post['uid'] == $loguserid && $loguser['powerlevel'] > -1 && !$post['closed'] && IsAllowed("editPost", $post['id'])) { $links .= "<li><a href=\"editpost.php?id=" . $post['id'] . "\">" . __("Edit") . "</a></li>"; } if (CanMod($loguserid, $forum) && IsAllowed("editPost", $post['id'])) { $key = hash('sha256', "{$loguserid},{$loguser['pss']},{$salt}"); $links .= "<li><a href=\"editpost.php?id=" . $post['id'] . "&delete=1&key=" . $key . "\">" . __("Delete") . "</a></li>"; } if ($forum != -2 && IsAllowed("makeReply", $thread)) { $links .= "<li>" . format(__("ID: {0}"), "<a href=\"newreply.php?id=" . $thread . "&link=" . $post['id'] . "\">" . $post['id'] . "</a>") . "</li>"; } else { $links .= "<li>" . format(__("ID: {0}"), $post['id']) . "</li>"; } if ($loguser['powerlevel'] > 0) { $links .= "<li>" . $post['ip'] . "</li>"; } $links .= "</ul>"; } } $meta = format(__(!$ispm ? "Posted on {0}" : "Sent on {0}"), cdate($dateformat, $post['date'])); //Threadlinks for listpost.php if ($forum == -2) { $meta .= " " . __("in") . " <a href=\"thread.php?id=" . $post['thread'] . "\">" . htmlspecialchars($post['threadname']) . "</a>"; } //Revisions if ($post['revision']) { if (CanMod($loguserid, $forum)) { $meta .= " (<a href=\"javascript:void(0);\" onclick=\"showRevisions(" . $post['id'] . ")\">" . format(__("revision {0}"), $post['revision']) . "</a>)"; } else { $meta .= " (" . format(__("revision {0}"), $post['revision']) . ")"; } } //</revisions> } else { $meta = __("Sample post"); } if ($forum == -1) { $meta = __("Posted in") . " <a href=\"thread.php?id=" . $thread['id'] . "\">" . htmlspecialchars($thread['title']) . "</a>"; } //if($post['postbg']) // $postbg = " style=\"background: url(".$post['postbg'].");\""; $sideBarStuff .= GetRank($post); if ($sideBarStuff) { $sideBarStuff .= "<br />"; } if ($post['title']) { $sideBarStuff .= strip_tags(CleanUpPost($post['title'], "", true), "<b><strong><i><em><span><s><del><img><a><br><small>") . "<br />"; } else { $levelRanks = array(-1 => __("Banned"), 0 => "", 1 => __("Local mod"), 2 => __("Full mod"), 3 => __("Administrator")); $sideBarStuff .= $levelRanks[$post['powerlevel']] . "<br />"; } $sideBarStuff .= GetSyndrome($post['activity']); if ($post['picture']) { if ($post['mood'] > 0 && file_exists("img/avatars/" . $post['uid'] . "_" . $post['mood'])) { $sideBarStuff .= "<img src=\"img/avatars/" . $post['uid'] . "_" . $post['mood'] . "\" alt=\"\" />"; } else { $sideBarStuff .= "<img src=\"" . $post['picture'] . "\" alt=\"\" />"; } } else { $sideBarStuff .= "<div style=\"width: 50px; height: 50px;\"> </div>"; } $lastpost = $post['lastposttime'] ? timeunits(time() - $post['lastposttime']) : "none"; $lastview = timeunits(time() - $post['lastactivity']); if ($post['num'] != "preview") { $sideBarStuff .= "<br />\n" . __("Posts:") . " " . $post['num'] . "/" . $post['posts']; } else { $sideBarStuff .= "<br />\n" . __("Posts:") . " " . $post['posts']; } $sideBarStuff .= "<br />\n" . __("Since:") . " " . cdate($loguser['dateformat'], $post['regdate']) . "<br />"; $bucket = "sidebar"; include "./lib/pluginloader.php"; $sideBarStuff .= "<br />\n" . __("Last post:") . " " . $lastpost; $sideBarStuff .= "<br />\n" . __("Last view:") . " " . $lastview; if ($hacks['themenames'] == 3) { $sideBarStuff = ""; $isBlocked = 1; } if ($post['lastactivity'] > time() - 3600) { $sideBarStuff .= "<br />\n" . __("User is <strong>online</strong>"); } if ($post['id'] != "preview") { $anchor = "<a name=\"" . $post['id'] . "\" />"; } if (!$isBlocked) { $topBar1 = "topbar" . $post['uid'] . "_1"; $topBar2 = "topbar" . $post['uid'] . "_2"; $sideBar = "sidebar" . $post['uid']; $mainBar = "mainbar" . $post['uid']; } $tags = array(); $rankHax = $post['posts']; //if($post['num'] == "preview") // $post['num'] = $post['posts']; $post['posts'] = $post['num']; //Disable tags by commenting/removing this part. $tags = array("numposts" => $post['num'], "numdays" => floor((time() - $post['regdate']) / 86400), "date" => cdate($dateformat, $post['date']), "rank" => GetRank($post)); $bucket = "amperTags"; include "./lib/pluginloader.php"; $post['posts'] = $rankHax; if ($post['postheader'] && !$isBlocked) { $postHeader = str_replace('$theme', $theme, ApplyTags(CleanUpPost($post['postheader'], "", $noSmilies, true), $tags)); } $postText = ApplyTags(CleanUpPost($post['text'], $post['name'], $noSmilies, $noBr), $tags); $bucket = "postMangler"; include "./lib/pluginloader.php"; if ($post['signature'] && !$isBlocked) { $postFooter = ApplyTags(CleanUpPost($post['signature'], "", $noSmilies, true), $tags); if (!$post['signsep']) { $separator = "<br />_________________________<br />"; } else { $separator = "<br />"; } } $postCode = "\n\t\t<table class=\"post margin {14}\" id=\"post{13}\">\n\t\t\t<tr>\n\t\t\t\t<td class=\"side userlink {1}\">\n\t\t\t\t\t{0}\n\t\t\t\t\t{5}\n\t\t\t\t</td>\n\t\t\t\t<td class=\"meta right {2}\">\n\t\t\t\t\t<div style=\"float: left;\" id=\"meta_{13}\">\n\t\t\t\t\t\t{7}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style=\"float: left; display: none;\" id=\"dyna_{13}\">\n\t\t\t\t\t\tHi.\n\t\t\t\t\t</div>\n\t\t\t\t\t{8}\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td class=\"side {3}\">\n\t\t\t\t\t<div class=\"smallFonts\">\n\t\t\t\t\t\t{6}\n\t\t\t\t\t</div>\n\t\t\t\t</td>\n\t\t\t\t<td class=\"post {4}\" id=\"post_{13}\">\n\n\t\t\t\t\t{9}\n\n\t\t\t\t\t{10}\n\n\t\t\t\t\t{12}\n\t\t\t\t\t{11}\n\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t</table>\n"; write($postCode, $anchor, $topBar1, $topBar2, $sideBar, $mainBar, UserLink($post, "uid"), $sideBarStuff, $meta, $links, $postHeader, $postText, $postFooter, $separator, $post['id'], $post['id'] == $highlight ? "highlightedPost" : ""); }
$title = __("Online users"); AssertForbidden("viewOnline"); $time = (int) $_GET['time']; if (!$time) { $time = 300; } $qUsers = "select * from users where lastactivity > " . (time() - $time) . " order by lastactivity desc"; $qGuests = "select * from guests where date > " . (time() - $time) . " and bot = 0 order by date desc"; $qBots = "select * from guests where date > " . (time() - $time) . " and bot = 1 order by date desc"; $rUsers = Query($qUsers); $rGuests = Query($qGuests); $rBots = Query($qBots); $spans = array(60, 300, 900, 3600, 86400); $spanList = ""; foreach ($spans as $span) { $spanList .= format("\n\t\t\t<li>\n\t\t\t\t<a href=\"online.php?time={0}\">{1}</a>\n\t\t\t</li>\n", $span, timeunits($span)); } write("\n\t<div class=\"smallFonts margin\">\n\t\t" . __("Show visitors from this far back:") . "\n\t\t<ul class=\"pipemenu\">\n\t\t\t{0}\n\t\t</ul>\n\t</div>\n", $spanList); $userList = ""; $i = 1; if (NumRows($rUsers)) { while ($user = Fetch($rUsers)) { $cellClass = ($cellClass + 1) % 2; if ($user['lasturl']) { $lastUrl = "<a href=\"" . $user['lasturl'] . "\">" . FilterURL($user['lasturl']) . "</a>"; } else { $lastUrl = __("None"); } $userList .= format("\n\t\t<tr class=\"cell{0}\">\n\t\t\t<td>\n\t\t\t\t{1}\n\t\t\t</td>\n\t\t\t<td>\n\t\t\t\t{2}\n\t\t\t</td>\n\t\t\t<td>\n\t\t\t\t{3}\n\t\t\t</td>\n\t\t\t<td>\n\t\t\t\t{4}\n\t\t\t</td>\n\t\t\t<td>\n\t\t\t\t{5}\n\t\t\t</td>\n" . ($loguser['powerlevel'] > 0 ? "\n\t\t\t<td>\n\t\t\t\t{6} {7}\n\t\t\t</td>\n" : "") . "\n\t\t</tr>\n\t", $cellClass, $i, UserLink($user), cdate("d-m-y G:i:s", $user['lastactivity']), $user['lastposttime'] ? cdate("d-m-y G:i:s", $user['lastposttime']) : __("Never"), $lastUrl, $user['lastip'], IP2C($user['lastip'])); $i++; }
$windowtitle = "{$boardname} - A revolution in posting technology™"; require 'lib/layout.php'; if ($log && !$_GET['raw']) { $headlinks .= ' - <a href=index.php?action=markallforumsread>Mark all posts read</a>'; $header = makeheader($header1, $headlinks, $header2); $forumread = $sql->getresultsbykey("SELECT forum,readdate FROM forumread WHERE user={$loguserid}", 'forum', 'readdate'); } $_counter = 1; while ($in = $sql->fetch($data, MYSQL_ASSOC)) { if (!$_GET['raw']) { if ($log && $in['date'] > max($forumread[$in['fid']], $in['treadtime'])) { $newpost = $statusicons['new'] . " "; } else { $newpost = ""; } $output .= "<tr>\r\n\t\t\t\t\t{$tccell2}>" . $in['id'] . "</td>\r\n\t\t\t\t\t{$tccell2}><a href='forum.php?id=" . $in['fid'] . "'>" . $in['ftitle'] . "</a></td>\r\n\t\t\t\t\t{$tccell1l}>{$newpost}<a href='thread.php?pid=" . $in['id'] . "&r=1#" . $in['id'] . "'>" . $in['title'] . "</a></td>\r\n\t\t\t\t\t{$tccell1}><a href='profile.php?id=" . $in['user'] . "'><font " . getnamecolor($in['usex'], $in['upowerlevel']) . ">" . $in['uname'] . "</font></a></td>\r\n\t\t\t\t\t{$tccell2}>" . timeunits(ctime() - $in['date']) . "</td>\r\n\t\t\t\t</tr>\n"; } else { $in['ucolor'] = str_replace('color=', '', getnamecolor($in['usex'], $in['upowerlevel'])); $in['title'] = str_replace("\\", "\\\\", $in['title']); $temp = array(); foreach ($outarray as $outkey) { $temp[] = '"' . $outkey . "\":\"" . htmlspecialchars($in[$outkey]) . '"'; } $temp = "{" . implode(",", $temp) . "}" . ($_counter == $_count ? "" : ","); $output .= $temp; } $_counter++; } if (!$_GET['raw']) { /* Doesn't work, as far as I'm aware? if ($_GET['fungies']) {