idiot", $post[title]),$post[posts],$post[powerlevel]); $set['userlink'] = "$post[name]"; $set['date'] = date($dateformat,$post[date]+$tzoff); if($post['location']) { $set[location]="
From: $post[location]"; } if($post['picture'] || ($post['moodid'] && $post['moodurl'])){ $post['picture'] = str_replace('>','%3E',$post[picture]); $set['userpic'] = ""; $set['picture'] = $post['picture']; if ($post['moodid'] && $post['moodurl']) { $set['userpic'] = "'), array($post['moodid'], '%3E'), $post['moodurl']) ."\">"; $set['picture'] = str_replace(array('$', '>'), array($post['moodid'], '%3E'), $post['moodurl']); } // $userpicture=""; } if($post['signtext']) { $post[signtext]=$sep[$loguser[signsep]].$post[signtext]; } if($pthread) { $set['threadlink'] = "$pthread[title]"; } $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'] = "

(Excessive post content hidden)"; $return=dofilters(postcode($post,$set)); return $return; } function setlayout($post) { global $loguser,$postl; if($loguser['viewsig']!=1) { $post[headid]=$post[signid]=0; } if(!$loguser[viewsig]){ $post[headtext]=$post[signtext]=''; return $post; } $post[tagval].="\xB0\xBB"; if($loguser[viewsig]!=2){ if($headid=$post[headid]){ if(!$postl[$headid]) $postl[$headid]=mysql_get("SELECT text FROM postlayouts WHERE id=$headid"); $post[headtext]=$postl[$headid][text]; } if($signid=$post[signid]){ if(!$postl[$signid]) $postl[$signid]=mysql_get("SELECT text FROM postlayouts WHERE id=$signid"); $post[signtext]=$postl[$signid][text]; } } $post[headtext]=settags($post[headtext],$post[tagval]); $post[signtext]=settags($post[signtext],$post[tagval]); if($loguser[viewsig]==2){ $post[headtext]=doreplace($post[headtext],$post[num],($post[date]-$post[regdate])/86400,$post[name],1); $post[signtext]=doreplace($post[signtext],$post[num],($post[date]-$post[regdate])/86400,$post[name],1); } $post[headtext]=doreplace2($post[headtext]); $post[signtext]=doreplace2($post[signtext]); // $post[text]=doreplace2($post[text], $post[options]); return $post; } function syndrome($num, $double=false, $bar=true){ $bar = false; $a='>Affected by'; 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; } if($num>=200) { $syn="CE53CE$a 'Reinfors Syndrome' +++"; $last= 200; $next= 50; } if($num>=250) { $syn="8E83EE$a 'Reinfors Syndrome' ++++"; $last= 250; $next= 50; } if($num>=300) { $syn="BBAAFF$a 'Wooster Syndrome'!!"; $last= 300; $next= 50; } if($num>=350) { $syn="FFB0FF$a 'Wooster Syndrome' +!!"; $last= 350; $next= 50; } if($num>=400) { $syn="FFB070$a 'Wooster Syndrome' ++!!"; $last= 400; $next= 50; } if($num>=450) { $syn="C8C0B8$a 'Wooster Syndrome' +++!!"; $last= 450; $next= 50; } if($num>=500) { $syn="A0A0A0$a 'Wooster Syndrome' ++++!!"; $last= 500; $next= 100; } if($num>=600) { $syn="C762F2$a 'Anya Syndrome' +++++!!!"; $last= 600; $next= 200; } if($num>=800) { $syn="62C7F2$a 'Xkeeper Syndrome' +++++!!";/* $last= 600; $next= 200; } if($num>=1000) { $syn="FFFFFF$a 'Something higher than Xkeeper Syndrome' +++++!!";*/ } if($syn) { if ($next && $bar) { $barw1 = min(round(($num - $last) / $next * 150), 150); $barw2 = 150 - $barw1; $barimg = "red.png"; if ($double == true) { $hi = 16; $barw1 *= 2; $barw2 *= 2; } else { $hi = 8; } if ($next >= 100) $barimg = "special.gif"; $bar = "
". generatenumbergfx($num, 3, $double) ."". generatenumbergfx($next - ($num - $last), 3, $double) .""; } $syn="
$bar
"; } return $syn; } ?>