mirror of
https://github.com/Xkeeper0/jul.git
synced 2025-05-19 08:40:21 -07:00
parent
0c24f7a669
commit
22c951e47f
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
// Set this right away to hopefully prevent fuckups
|
||||
ini_set("default_charset", "ISO-8859-1");
|
||||
ini_set("default_charset", "UTF-8");
|
||||
|
||||
$startingtime = microtime(true);
|
||||
|
||||
@ -177,7 +177,7 @@
|
||||
$loguser['powerlevel'] = max($loguser['powerlevel'], 3);
|
||||
}
|
||||
else {
|
||||
$loguserid = NULL;
|
||||
$loguserid = null;
|
||||
$loguser = array();
|
||||
$loguser['viewsig'] = 1;
|
||||
$loguser['powerlevel'] = 0;
|
||||
@ -367,9 +367,11 @@ function calclvl($exp){
|
||||
|
||||
function generatenumbergfx($num,$minlen=0,$double=false){
|
||||
global $numdir;
|
||||
$nw = 8;
|
||||
if ($double) $nw *= 2;
|
||||
$num=strval($num);
|
||||
|
||||
$nw = 8 * ($double ? 2 : 1);
|
||||
$num = strval($num);
|
||||
$gfxcode = "";
|
||||
|
||||
if($minlen>1 && strlen($num) < $minlen) {
|
||||
$gfxcode = '<img src=images/_.gif width='. ($nw * ($minlen - strlen($num))) .' height='. $nw .'>';
|
||||
}
|
||||
@ -476,22 +478,6 @@ function doreplace2($msg, $options='0|0'){
|
||||
$smiliesoff = $options[0];
|
||||
$htmloff = $options[1];
|
||||
|
||||
if ($options[2] == 37 && !$_GET['lol'] && false) {
|
||||
|
||||
$msg = str_split($msg);
|
||||
foreach($msg as $n => $letter) {
|
||||
$y = round(sin($n / 15) * 10);
|
||||
$letter = htmlspecialchars($letter);
|
||||
$rot = "-transform:rotate({$y}deg)";
|
||||
$msg2 .= "<span style='position:relative;top:{$y}px;line-height:400%;-o$rot;-mos$rot;-webkit$rot;'>$letter</span>";
|
||||
}
|
||||
|
||||
$msg2 = str_replace("\n\n", "<br>", $msg2);
|
||||
$msg2 = str_replace("\n", "<br>", $msg2);
|
||||
|
||||
return $msg2;
|
||||
}
|
||||
|
||||
|
||||
$list = array("<", "\\\"" , "\\\\" , "\\'", "[", ":", ")", "_");
|
||||
$list2 = array("<", "\"", "\\", "\'", "[", ":", ")", "_");
|
||||
@ -549,11 +535,16 @@ function doreplace2($msg, $options='0|0'){
|
||||
return $msg;
|
||||
}
|
||||
function settags($text,$tags){
|
||||
|
||||
// @TODO: FIX THIS SHIT
|
||||
return $text;
|
||||
|
||||
global $hacks;
|
||||
if ($hacks['noposts']) {
|
||||
if (filter_bool($hacks['noposts'])) {
|
||||
$badtags = array("&5000&", "&20000&", "&30000&", "&numposts&", );
|
||||
}
|
||||
|
||||
$p1 = 0;
|
||||
for($i=0;$p1<strlen($tags) and $i<100;$i++){
|
||||
$p1+=2;
|
||||
$p2=@strpos($tags,"\xAB\xB0",$p1) or $p2=strlen($tags);
|
||||
@ -598,6 +589,7 @@ function cmicrotime(){return microtime(true)+3*3600;}
|
||||
|
||||
function getrank($rankset,$title,$posts,$powl){
|
||||
global $hacks, $sql;
|
||||
$rank = "";
|
||||
if ($rankset == 255) { //special code for dots
|
||||
if (!$hacks['noposts']) {
|
||||
$pr[5] = 5000;
|
||||
@ -900,9 +892,11 @@ function fonlineusers($id){
|
||||
else
|
||||
$sql->query("UPDATE guests SET lastforum=$id WHERE ip='$userip'");
|
||||
|
||||
$forumname=@$sql->resultq("SELECT title FROM forums WHERE id=$id",0,0);
|
||||
$onlinetime=ctime()-300;
|
||||
$onusers=$sql->query("SELECT id,name,lastactivity,minipic,lasturl,aka,sex,powerlevel FROM users WHERE lastactivity>$onlinetime AND lastforum=$id ORDER BY name");
|
||||
$forumname =@$sql->resultq("SELECT title FROM forums WHERE id=$id",0,0);
|
||||
$onlinetime =ctime()-300;
|
||||
$onusers =$sql->query("SELECT id,name,lastactivity,minipic,lasturl,aka,sex,powerlevel,birthday FROM users WHERE lastactivity>$onlinetime AND lastforum=$id ORDER BY name");
|
||||
|
||||
$onlineusers = "";
|
||||
|
||||
for($numon=0;$onuser=$sql->fetch($onusers);$numon++){
|
||||
if($numon) $onlineusers.=', ';
|
||||
@ -912,11 +906,11 @@ function fonlineusers($id){
|
||||
} */
|
||||
|
||||
$namelink = getuserlink($onuser);
|
||||
$onlineusers.='<nobr>';
|
||||
$onuser['minipic']=str_replace('>','>',$onuser['minipic']);
|
||||
if($onuser['minipic']) $onlineusers.="<img width=16 height=16 src=$onuser[minipic] align=top> ";
|
||||
if($onuser['lastactivity']<=$onlinetime) $namelink="($namelink)";
|
||||
$onlineusers.="$namelink</nobr>";
|
||||
$onlineusers .='<nobr>';
|
||||
$onuser['minipic'] =str_replace('>','>',$onuser['minipic']);
|
||||
if($onuser['minipic']) $onlineusers .="<img width=16 height=16 src=$onuser[minipic] align=top> ";
|
||||
if($onuser['lastactivity'] <=$onlinetime) $namelink="($namelink)";
|
||||
$onlineusers .="$namelink</nobr>";
|
||||
}
|
||||
$p = ($numon ? ':' : '.');
|
||||
$s = ($numon != 1 ? 's' : '');
|
||||
@ -1056,8 +1050,8 @@ function sizelimitjs(){
|
||||
|
||||
function loadtlayout(){
|
||||
global $log,$loguser,$tlayout,$sql;
|
||||
$tlayout = ($loguser['layout'] ? $loguser['layout'] : 1);
|
||||
$layoutfile = $sql->resultq("SELECT file FROM tlayouts WHERE id=$tlayout",0,0);
|
||||
$tlayout = (filter_int($loguser['layout']) ? $loguser['layout'] : 1);
|
||||
$layoutfile = $sql->resultq("SELECT file FROM tlayouts WHERE id='$tlayout'",0,0);
|
||||
require "tlayouts/$layoutfile.php";
|
||||
}
|
||||
|
||||
@ -1204,7 +1198,7 @@ function include_js($fn, $as_tag = false) {
|
||||
function dofilters($p){
|
||||
global $hacks;
|
||||
$temp = $p;
|
||||
if ($_GET['t'] && false) {
|
||||
if (filter_bool($_GET['t']) && false) {
|
||||
$p=preg_replace("'<script(.*?)</script>'si",'',$p);
|
||||
$p=preg_replace("'<script'si",'',$p);
|
||||
$p=preg_replace("'\b\s(on[^=]*?=.*)\b'si",'',$p);
|
||||
@ -1242,10 +1236,6 @@ function dofilters($p){
|
||||
//$p=preg_replace("'position\s*:\s*(absolute|fixed)'si", "display:none", $p);
|
||||
$p=preg_replace("'position\s*:\s*fixed'si", "display:none", $p);
|
||||
|
||||
$p=preg_replace("'filter:alpha'si",'falpha',$p);
|
||||
$p=preg_replace("'filter:'si",'x:',$p);
|
||||
if (!$_GET['nofilter']) $p=preg_replace("'opacity'si",'opacity',$p);
|
||||
$p=preg_replace("'falpha'si",'filter:alpha',$p);
|
||||
|
||||
//$p=preg_replace("':awesome:'","<small>[unfunny]</small>", $p);
|
||||
|
||||
@ -1278,7 +1268,7 @@ function dofilters($p){
|
||||
// $p=preg_replace("'card games on motorcycles'si",'bard dames on rotorcycles',$p);
|
||||
|
||||
$p=str_replace("ftp://teconmoon.no-ip.org", 'about:blank', $p);
|
||||
if ($hacks['comments']) {
|
||||
if (filter_bool($hacks['comments'])) {
|
||||
$p=str_replace("<!--", '<font color=#80ff80><!--', $p);
|
||||
$p=str_replace("-->", '--></font>', $p);
|
||||
}
|
||||
|
@ -372,7 +372,7 @@
|
||||
$metatag .= "<meta name=\"robots\" content=\"noindex,follow\" />";
|
||||
|
||||
if (filter_bool($meta['description']))
|
||||
$metatag .= "<meta name=\"description\" content=\"{$meta[description]}\" />";
|
||||
$metatag .= "<meta name=\"description\" content=\"{$meta['description']}\" />";
|
||||
|
||||
if (filter_bool($x_hacks['smallbrowse']) and false) {
|
||||
$css = "";
|
||||
|
@ -11,37 +11,37 @@
|
||||
$userlink = getuserlink($post, array('id'=>'uid'), $linkclass);
|
||||
unset($postuser);
|
||||
|
||||
$set['userrank'] = getrank($post['useranks'],str_replace("<div", "<<z>idiot", $post[title]),$post[posts],$post[powerlevel]);
|
||||
$set['userrank'] = getrank($post['useranks'],str_replace("<div", "<<z>idiot", $post['title']),$post['posts'],$post['powerlevel']);
|
||||
$set['userlink'] = "<a name={$p}></a>{$userlink}";
|
||||
$set['date'] = date($dateformat,$post[date]+$tzoff);
|
||||
$set['date'] = date($dateformat,$post['date']+$tzoff);
|
||||
|
||||
if($post['location']) { $set[location]="<br>From: $post[location]"; }
|
||||
if($post['location']) { $set['location']="<br>From: {$post['location']}"; }
|
||||
|
||||
if($post['picture'] || ($post['moodid'] && $post['moodurl'])){
|
||||
$post['picture'] = str_replace('>','%3E',$post[picture]);
|
||||
$set['userpic'] = "<img src=\"$post[picture]\">";
|
||||
$post['picture'] = str_replace('>','%3E',$post['picture']);
|
||||
$set['userpic'] = "<img src=\"{$post['picture']}\">";
|
||||
$set['picture'] = $post['picture'];
|
||||
|
||||
if ($post['moodid'] && $post['moodurl']) {
|
||||
$set['userpic'] = "<img src=\"". str_replace(array('$', '>'), array($post['moodid'], '%3E'), $post['moodurl']) ."\">";
|
||||
$set['picture'] = str_replace(array('$', '>'), array($post['moodid'], '%3E'), $post['moodurl']);
|
||||
}
|
||||
// $userpicture="<img src=\"$user[picture]\" name=pic$p onload=sizelimit(pic$p,60,100)>";
|
||||
// $userpicture="<img src=\"$user['picture']\" name=pic$p onload=sizelimit(pic$p,60,100)>";
|
||||
}
|
||||
|
||||
if($post['signtext']) {
|
||||
$post[signtext]=$sep[$loguser[signsep]].$post[signtext];
|
||||
$post['signtext']=$sep[$loguser['signsep']].$post['signtext'];
|
||||
}
|
||||
|
||||
if($pthread) {
|
||||
$set['threadlink'] = "<a href=thread.php?id=$pthread[id]>$pthread[title]</a>";
|
||||
$set['threadlink'] = "<a href=thread.php?id={$pthread['id']}>{$pthread['title']}</a>";
|
||||
}
|
||||
|
||||
$post[text]=doreplace2($post[text], $post[options]);
|
||||
$post['text']=doreplace2($post['text'], $post['options']);
|
||||
// if (strpos($post['text'], "http://hyperhacker.no-ip.org/b/smilies/lolface.png") || strpos($post['text'], "images/smilies/roflx.gif")) $post['text'] = "<img src=images/smilies/roflx.gif><br><br><small>(Excessive post content hidden)</small>";
|
||||
|
||||
if ($post['editdate']) {
|
||||
$post['edited'] = " (last edited by $post[edited] at ".date($dateformat,$post['editdate']+$tzoff).")";
|
||||
$post['edited'] = " (last edited by {$post['edited']} at ".date($dateformat,$post['editdate']+$tzoff).")";
|
||||
}
|
||||
|
||||
$return=dofilters(postcode($post,$set));
|
||||
@ -103,13 +103,14 @@
|
||||
}
|
||||
$post['headtext']=doreplace2($post['headtext']);
|
||||
$post['signtext']=doreplace2($post['signtext']);
|
||||
// $post[text]=doreplace2($post[text], $post[options]);
|
||||
// $post['text']=doreplace2($post['text'], $post['options']);
|
||||
return $post;
|
||||
}
|
||||
|
||||
function syndrome($num, $double=false, $bar=true){
|
||||
$bar = false;
|
||||
$a='>Affected by';
|
||||
$a = '>Affected by';
|
||||
$syn = "";
|
||||
if($num>=75) { $syn="83F3A3$a 'Reinfors Syndrome'"; $last= 75; $next= 25; }
|
||||
if($num>=100) { $syn="FFE323$a 'Reinfors Syndrome' +"; $last= 100; $next= 50; }
|
||||
if($num>=150) { $syn="FF5353$a 'Reinfors Syndrome' ++"; $last= 150; $next= 50; }
|
||||
|
36
thread.php
36
thread.php
@ -1,20 +1,25 @@
|
||||
<?php
|
||||
|
||||
require_once 'lib/function.php';
|
||||
$id = intval($_GET['id']);
|
||||
$user = intval($_GET['user']);
|
||||
|
||||
$id = filter_int($_GET['id']);
|
||||
$user = filter_int($_GET['user']);
|
||||
$gotopost = null;
|
||||
|
||||
// Skip to last post/end thread
|
||||
if ($_GET['lpt'])
|
||||
if (filter_int($_GET['lpt'])) {
|
||||
$gotopost = $sql->resultq("SELECT MIN(`id`) FROM `posts` WHERE `thread` = '{$id}' AND `date` > '".intval($_GET['lpt'])."'");
|
||||
if ($_GET['end'] || ($_GET['lpt'] && !$gotopost))
|
||||
} elseif (filter_int($_GET['end']) || (filter_int($_GET['lpt']) && !$gotopost)) {
|
||||
$gotopost = $sql->resultq("SELECT MAX(`id`) FROM `posts` WHERE `thread` = '{$id}'");
|
||||
if ($gotopost)
|
||||
}
|
||||
if ($gotopost) {
|
||||
return header("Location: ?pid={$gotopost}#{$gotopost}");
|
||||
}
|
||||
|
||||
// Poll votes
|
||||
if ($id && ($_GET['addvote'] || $_GET['delvote'])) {
|
||||
if ($id && (filter_int($_GET['addvote']) || filter_int($_GET['delvote']))) {
|
||||
$option = (($_GET['addvote']) ? 'addvote' : 'delvote');
|
||||
$choice = intval($_GET[$option]);
|
||||
$choice = filter_int($_GET[$option]);
|
||||
|
||||
$pollid = $sql->resultq("SELECT poll FROM threads WHERE id='{$id}'");
|
||||
if (!$pollid)
|
||||
@ -38,11 +43,11 @@
|
||||
return header("Location: ?id={$id}#{$id}");
|
||||
}
|
||||
|
||||
$ppp = (($_GET['ppp']) ? intval($_GET['ppp']) : (($log) ? $loguser['postsperpage'] : 20));
|
||||
$ppp = filter_int($_GET['ppp']) ? $_GET['ppp'] : ($log ? $loguser['postsperpage'] : 20);
|
||||
$ppp = max(min($ppp, 500), 1);
|
||||
|
||||
if ($_GET['pid']) {
|
||||
$pid = intval($_GET['pid']);
|
||||
if (filter_int($_GET['pid'])) {
|
||||
$pid = $_GET['pid'];
|
||||
$id = $sql->resultq("SELECT `thread` FROM `posts` WHERE `id` = '{$pid}'");
|
||||
if (!$id) {
|
||||
$meta['noindex'] = true; // prevent search engines from indexing
|
||||
@ -179,10 +184,9 @@
|
||||
$fonline = "";
|
||||
if ($id && !$thread_error) {
|
||||
$fonline = fonlineusers($forumid);
|
||||
if (@mysql_num_rows($sql->query("SELECT user FROM forummods WHERE forum=$forumid and user=$loguserid")))
|
||||
if (mysql_num_rows($sql->query("SELECT user FROM forummods WHERE forum='$forumid' and user='$loguserid'")))
|
||||
$ismod = true;
|
||||
}
|
||||
|
||||
$modfeats = '';
|
||||
if ($id && $ismod) {
|
||||
$trashid = 27;
|
||||
@ -218,6 +222,7 @@
|
||||
$errormsgs = "<tr><td style='background:#cc0000;color:#eeeeee;text-align:center;font-weight:bold;'>$errortext</td></tr>";
|
||||
}
|
||||
|
||||
$polltbl = "";
|
||||
if ($forum['pollstyle'] != -2 && $thread['poll']) {
|
||||
$poll = $sql->fetchq("SELECT * FROM poll WHERE id='$thread[poll]'");
|
||||
|
||||
@ -347,7 +352,7 @@
|
||||
}
|
||||
$threadforumlinks .= '</table>';
|
||||
|
||||
$page = max(0, $page);
|
||||
$page = max(0, filter_int($page));
|
||||
$min = $ppp * $page;
|
||||
|
||||
if ($user) $searchon = "user={$user}";
|
||||
@ -379,6 +384,9 @@
|
||||
if ($isadmin)
|
||||
$ip = " | IP: <a href=ipsearch.php?ip=$post[ip]>$post[ip]</a>";
|
||||
|
||||
|
||||
$pforum = null;
|
||||
$pthread = null;
|
||||
if (!$id) {
|
||||
// Enable caching for these
|
||||
$pthread = $sql->fetchq("SELECT id,title,forum FROM threads WHERE id=$post[thread]", MYSQL_BOTH, true);
|
||||
@ -386,7 +394,7 @@
|
||||
}
|
||||
$post['act'] = $act[$post['user']];
|
||||
|
||||
if ($pforum['minpower'] <= $power or ! $pforum['minpower'])
|
||||
if (!$pforum || $pforum['minpower'] <= $power)
|
||||
$postlist .= threadpost($post, $bg, $pthread);
|
||||
else
|
||||
$postlist .=
|
||||
|
@ -1,84 +1,86 @@
|
||||
<?php
|
||||
function userfields(){return 'posts,sex,powerlevel,birthday,aka,picture,moodurl,title,useranks,location,lastposttime,lastactivity,imood';}
|
||||
|
||||
function userfields(){
|
||||
return 'posts,sex,powerlevel,birthday,aka,picture,moodurl,title,useranks,location,lastposttime,lastactivity,imood';
|
||||
}
|
||||
|
||||
|
||||
function postcode($post,$set){
|
||||
if ($_GET['uhoh']) die($post['id']);
|
||||
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>';
|
||||
$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);
|
||||
|
||||
} 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(!$post['num']){
|
||||
$postnum = '';
|
||||
|
||||
if($postlayout==1) $posttotal="<img src=numgfx.php?n=$post[posts]&f=$numfil&l=4 height=8>";
|
||||
}
|
||||
if($post[icq]) $icqicon="<a href=http://wwp.icq.com/$post[icq]#pager><img src=http://wwp.icq.com/scripts/online.dll?icq=$post[icq]&img=5 border=0 width=13 height=13 align=absbottom></a>";
|
||||
if($post[imood]) $imood="<img src=http://www.imood.com/query.cgi?email=$post[imood]&type=1&fg=$textcolor&trans=1 height=15 align=absbottom>";
|
||||
$reinf=syndrome($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);
|
||||
if($set[threadlink]) $threadlink=", in $set[threadlink]";
|
||||
|
||||
if($post[edited]){
|
||||
// $set[edited].="<hr>$smallfont$post[edited]";
|
||||
|
||||
$reinf=syndrome($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);
|
||||
|
||||
# $edit .= " | <a href=\"#". $post['id'] ."\" %BZZZ%". $post['id'] .")\"><img src='http://xkeeper.net/img/soccerball.png' align='absmiddle' title='guess what this does'></a>";
|
||||
// Large block of user-specific hacks follows //
|
||||
|
||||
// global $loguser;
|
||||
// if ($loguser['id'] == 1 || $_GET['stupid']) {
|
||||
// $sidebars[] = 16;
|
||||
// }
|
||||
|
||||
/*
|
||||
if ($post['noob']) {
|
||||
$noobpos = floor(strlen($post['name']) * 2.5);
|
||||
// $set['userlink'] = "<div style=\"display: inline; position: relative; top: 0; left: 0;\"><img src=\"xkeeper/img/noobsticker2-". mt_rand(1,6) .".png\" style=\"position: absolute; top: -3px; left: ". $noobpos ."px;\" title=\"n00b\">". $set['userlink'] ."</div>";
|
||||
|
||||
$set['userlink'] = $set['userlink'] ."<br><img src=\"xkeeper/img/noobsticker2-". mt_rand(1,6) .".png\" style=\"position: relative; left: ". mt_rand(4, 23) ."px; bottom: ". mt_rand(14, 22) ."px;\" title=\"n00b\">";
|
||||
}
|
||||
|
||||
if ($loguser['powerlevel'] >= 1 && $post['date'] && $post['num']) {
|
||||
$edit .= " | <a href=\"editpost.php?id=". $post['id'] ."&action=noob\">". ($post['noob'] ? "de-" : "") ."n00b</a>";
|
||||
}
|
||||
|
||||
if ($post[uid] == 902 && !$x_hacks['host']) {
|
||||
$post[signtext] .= "<div style='width: 100%; text-align: right;'><a href='sendprivate.php?userid=902&subject=Wow, you are as dumb as a brick.'><img src='http://xkeeper.net/img/sendpm.png' style='margin-bottom: -193px; position: relative; top: -100px; right: -10px;'></a></div>";
|
||||
}
|
||||
*/
|
||||
|
||||
if ($post[uid] == 1 && !$x_hacks['host'] && true) {
|
||||
if ($post['uid'] == 1 && !$x_hacks['host'] && true) {
|
||||
|
||||
global $numdir;
|
||||
$numdir_ = $numdir;
|
||||
@ -107,7 +109,7 @@
|
||||
<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]$set[edited]</td>
|
||||
$set[tdbg] height=220 id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>
|
||||
$tblend";
|
||||
}
|
||||
|
||||
@ -162,7 +164,7 @@
|
||||
<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]$set[edited]</td>
|
||||
$set[tdbg] height=220 id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>
|
||||
$tblend"; */
|
||||
|
||||
// non-image old version
|
||||
@ -205,12 +207,12 @@
|
||||
<td>Posted on $postdate$threadlink$post[edited]</td>
|
||||
<td width=255><nobr>$quote$edit$ip
|
||||
</table><tr>
|
||||
$set[tdbg]{$dstyle} height=220 id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]$set[edited]</td>
|
||||
$set[tdbg]{$dstyle} height=220 id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>
|
||||
$tblend";
|
||||
}
|
||||
// End Inu's sidebar
|
||||
|
||||
if (($post[uid] == 18) && !$x_hacks['host'] && $x_hacks['mmdeath'] >= 0 && !$_GET['test2']) {
|
||||
if (($post['uid'] == 18) && !$x_hacks['host'] && $x_hacks['mmdeath'] >= 0 && !$_GET['test2']) {
|
||||
return "
|
||||
<table style=\"background: #f00 url('numgfx/red.gif');\" cellpadding=3 cellspacing=1>
|
||||
$set[tdbg] style='background: #000;' rowspan=2>
|
||||
@ -228,12 +230,12 @@
|
||||
<td>Posted on $postdate$threadlink$post[edited]</td>
|
||||
<td width=255><nobr>$quote$edit$ip
|
||||
</table><tr>
|
||||
$set[tdbg] style='background: #000;' height=220 id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]$set[edited]</td>
|
||||
$set[tdbg] style='background: #000;' height=220 id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>
|
||||
$tblend";
|
||||
}
|
||||
|
||||
// Default layout
|
||||
if (!(in_array($post[uid], $sidebars) && !$x_hacks['host']) || $loguser['viewsig'] == 0) {
|
||||
if (!(in_array($post['uid'], $sidebars) && !$x_hacks['host']) || $loguser['viewsig'] == 0) {
|
||||
return "
|
||||
<div style='position:relative'>
|
||||
$tblstart
|
||||
@ -242,11 +244,11 @@
|
||||
$set[userrank]$reinf<br>
|
||||
$level$bar<br>
|
||||
$set[userpic]<br>
|
||||
". ($hacks['noposts'] ? "" : "$poststext$postnum$posttotal<br>") ."
|
||||
". (filter_bool($hacks['noposts']) ? "" : "$poststext$postnum$posttotal<br>") ."
|
||||
$experience<br><br>
|
||||
$since<br>".str_ireplace("<br>", "<br>", substr(htmlspecialchars($set[location]),10))."<br><br>
|
||||
$since<br>".str_ireplace("<br>", "<br>", substr(htmlspecialchars($set['location']),10))."<br><br>
|
||||
$sincelastpost<br>$lastactivity<br>
|
||||
$icqicon$imood</font>
|
||||
</font>
|
||||
<br><img src=images/_.gif width=200 height=1>
|
||||
</td>
|
||||
$set[tdbg] height=1 width=100%>
|
||||
@ -254,13 +256,13 @@
|
||||
<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]$set[edited]</td>
|
||||
$set[tdbg] height=220 id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>
|
||||
$tblend
|
||||
</div>";
|
||||
}
|
||||
|
||||
elseif ($post[uid] == "1" && !$x_hacks['host']) {
|
||||
$lastactivity = 'Active </font>' .timeunits(ctime()-$post[lastactivity]) ."<font color=#bbbbbb> ago";
|
||||
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']) {
|
||||
@ -286,9 +288,9 @@
|
||||
<td>Posted on $postdate$threadlink$post[edited]</td>
|
||||
<td width=255><nobr>$quote$edit$ip
|
||||
</table><tr>
|
||||
<td valign='top' id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]$set[edited]</td>$tblend
|
||||
<td valign='top' id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>$tblend
|
||||
";
|
||||
} elseif ($post[uid] == "3" && !$x_hacks['host']) {
|
||||
} elseif ($post['uid'] == "3" && !$x_hacks['host']) {
|
||||
$lastactivity = 'Active </font>' .timeunits(ctime()-$post[lastactivity]) .'<font color=#bb0000> ago';
|
||||
$postnum = ($post['num']) ."/";
|
||||
$posttotal = $post['posts'];
|
||||
@ -311,13 +313,13 @@
|
||||
<td>Posted on $postdate$threadlink$post[edited]</td>
|
||||
<td width=255><nobr>$quote$edit$ip
|
||||
</table><tr>
|
||||
$set[tdbg] style=\"padding: 0;\" id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]$set[edited]</td>$tblend
|
||||
$set[tdbg] style=\"padding: 0;\" id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>$tblend
|
||||
";
|
||||
|
||||
// ************************************************************
|
||||
// SYAORAN COLIN
|
||||
// ************************************************************
|
||||
} elseif ($post[uid] == "45" && !$x_hacks['host']) {
|
||||
} elseif ($post['uid'] == "45" && !$x_hacks['host']) {
|
||||
|
||||
$fcol1 = "#204080";
|
||||
$fcol2 = "#3070a0";
|
||||
@ -347,11 +349,11 @@
|
||||
<td style='color: $fcol1;'>Posted on $postdate$threadlink$post[edited]</td>
|
||||
<td width=255><nobr>$quote$edit$ip
|
||||
</table><tr>
|
||||
$set[tdbg] style=\"padding: 0;\" id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]$set[edited]</td>$tblend
|
||||
$set[tdbg] style=\"padding: 0;\" id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>$tblend
|
||||
";
|
||||
|
||||
|
||||
} elseif ($post[uid] == "47" && !$x_hacks['host']) {
|
||||
} elseif ($post['uid'] == "47" && !$x_hacks['host']) {
|
||||
$fcol1 = "#204080";
|
||||
$fcol2 = "#3070a0";
|
||||
$fcol3 = "#ffffff";
|
||||
@ -387,7 +389,7 @@
|
||||
<td style='color: $fcol1;'>Posted on $postdate$threadlink$post[edited]</td>
|
||||
<td width=255><nobr>$quote$edit$ip
|
||||
</table><tr>
|
||||
$set[tdbg] style=\"padding: 0;\" id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]$set[edited]</td>$tblend
|
||||
$set[tdbg] style=\"padding: 0;\" id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>$tblend
|
||||
";
|
||||
|
||||
return "
|
||||
@ -407,13 +409,13 @@
|
||||
<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]$set[edited]</td>
|
||||
$set[tdbg] height=220 id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>
|
||||
$tblend";
|
||||
|
||||
// ************************************************************
|
||||
// SAKURA HIRYUU
|
||||
// ************************************************************
|
||||
} elseif ($post[uid] == "4xxxxxxxxxxx7" && !$x_hacks['host']) {
|
||||
} elseif ($post['uid'] == "4xxxxxxxxxxx7" && !$x_hacks['host']) {
|
||||
|
||||
$fcol1 = "#802040";
|
||||
$fcol2 = "#a07030";
|
||||
@ -443,14 +445,14 @@
|
||||
<td style=\"color: $fcol1;\">Posted on $postdate$threadlink$post[edited]</td>
|
||||
<td width=255><nobr>$quote$edit$ip
|
||||
</table><tr>
|
||||
$set[tdbg] style=\"padding: 0;\" id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]$set[edited]</td>$tblend
|
||||
$set[tdbg] style=\"padding: 0;\" id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>$tblend
|
||||
";
|
||||
|
||||
|
||||
// ************************************************************
|
||||
// REAL HIRYUU
|
||||
// ************************************************************
|
||||
} elseif ($post[uid] == "92" && !$x_hacks['host']) {
|
||||
} elseif ($post['uid'] == "92" && !$x_hacks['host']) {
|
||||
$fcol1 = "#e2bbff";
|
||||
$fcol2 = "#bb70dd";
|
||||
$fcol3 = "#220033";
|
||||
@ -491,10 +493,10 @@
|
||||
<td>Posted on $postdate$threadlink$post[edited]</td>
|
||||
<td width=255><nobr>$quote$edit$ip
|
||||
</table><tr>
|
||||
$set[tdbg] style=\"padding: 0;\" id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]$set[edited]</td>$tblend
|
||||
$set[tdbg] style=\"padding: 0;\" id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>$tblend
|
||||
";
|
||||
|
||||
} elseif ($post[uid] == "19" && !$x_hacks['host']) {
|
||||
} elseif ($post['uid'] == "19" && !$x_hacks['host']) {
|
||||
$fcol1 = "#bbbbeb";
|
||||
$fcol2 = "#8888a8";
|
||||
$fcol3 = "#080818 url('http://bloodstar.rustedlogic.net/layout/background.png')";
|
||||
@ -524,10 +526,10 @@
|
||||
<td>Posted on $postdate$threadlink$post[edited]</td>
|
||||
<td width=255><nobr>$quote$edit$ip
|
||||
</table><tr>
|
||||
$set[tdbg] style=\"padding: 0;\" id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]$set[edited]</td>$tblend
|
||||
$set[tdbg] style=\"padding: 0;\" id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>$tblend
|
||||
";
|
||||
|
||||
} elseif ($post[uid] == "4" && !$x_hacks['host']) {
|
||||
} elseif ($post['uid'] == "4" && !$x_hacks['host']) {
|
||||
$fcol1 = "#9999cc";
|
||||
$fcol2 = "#7777aa";
|
||||
$fcol3 = "#000011";
|
||||
@ -556,10 +558,10 @@
|
||||
<td>Posted on $postdate$threadlink$post[edited]</td>
|
||||
<td width=255><nobr>$quote$edit$ip
|
||||
</table><tr>
|
||||
$set[tdbg] style=\"padding: 0;\" id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]$set[edited]</td>$tblend
|
||||
$set[tdbg] style=\"padding: 0;\" id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>$tblend
|
||||
";
|
||||
|
||||
} elseif ($post[uid] == "387" && !$x_hacks['host']) {
|
||||
} 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";
|
||||
@ -587,11 +589,11 @@
|
||||
<td>Posted on $postdate$threadlink$post[edited]</td>
|
||||
<td width=255><nobr>$quote$edit$ip
|
||||
</table><tr>
|
||||
$set[tdbg] style=\"padding: 0;\" id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]$set[edited]</td>$tblend
|
||||
$set[tdbg] style=\"padding: 0;\" id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>$tblend
|
||||
";
|
||||
|
||||
|
||||
} elseif ($post[uid] == "89" && !$x_hacks['host']) {
|
||||
} elseif ($post['uid'] == "89" && !$x_hacks['host']) {
|
||||
$fcol1 = "#bbbbbb";
|
||||
$fcol2 = "#555555";
|
||||
$fcol3 = "#181818";
|
||||
@ -607,11 +609,11 @@
|
||||
<td>Posted on $postdate$threadlink$post[edited]</td>
|
||||
<td width=255><nobr>$quote$edit$ip
|
||||
</table><tr>
|
||||
$set[tdbg] style=\"background: $fcol3; padding: 0;\" id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]$set[edited]</td>$tblend
|
||||
$set[tdbg] style=\"background: $fcol3; padding: 0;\" id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>$tblend
|
||||
";
|
||||
|
||||
|
||||
} elseif (($post[uid] == "16" || $post[uid] == "5") && !$x_hacks['host']) {
|
||||
} elseif (($post['uid'] == "16" || $post['uid'] == "5") && !$x_hacks['host']) {
|
||||
|
||||
// top bg #614735
|
||||
// mid-bg #e1cfb6
|
||||
@ -719,7 +721,7 @@
|
||||
<td>Posted on $postdate$threadlink$post[edited]</td>
|
||||
<td width=255><nobr>$quote$edit$ip
|
||||
</table><tr>
|
||||
$set[tdbg] style=\"padding: 0;\" id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]$set[edited]</td>$tblend
|
||||
$set[tdbg] style=\"padding: 0;\" id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>$tblend
|
||||
";
|
||||
/*
|
||||
<!--
|
||||
@ -750,7 +752,7 @@
|
||||
<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]$set[edited]</td>
|
||||
$set[tdbg] height=220 id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>
|
||||
$tblend";
|
||||
|
||||
return $brsidebar;
|
||||
@ -771,7 +773,7 @@
|
||||
<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]$set[edited]</td>
|
||||
$set[tdbg] height=220 id=\"post". $post['id'] ."\">$post[headtext]$post[text]$post[signtext]</td>
|
||||
$tblend";
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user