apparently Rambly did a bunch of stuff regarding the F.A.Q. page yesterday, so I decided to update it a bit more and then update the pull request branch itself

in the process i managed to make all the branches be about four times more complicated because reasons
This commit is contained in:
RanAwaySuccessfully 2018-02-09 21:05:08 -02:00 committed by GitHub
commit 7437bee57d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
50 changed files with 527 additions and 585 deletions

3
.gitignore vendored
View File

@ -1,7 +1,8 @@
.rem/ .rem/
.old/ .old/
.well-known/
board/ board/
xkeeper/ xkeeper/
version.txt version.txt
lib/config.php lib/config.php
lib/firewall.php lib/firewall.php

View File

@ -7,7 +7,7 @@
$dd = mktime(0,0,0,substr($vd,0,2),substr($vd,3,2),substr($vd,6,2)); $dd = mktime(0,0,0,substr($vd,0,2),substr($vd,3,2),substr($vd,6,2));
$days = floor((ctime()-$dd)/86400); $days = floor((ctime()-$dd)/86400);
$scalex = 2; $scalex = 1;
$scaley = 20; $scaley = 20;
$m = $max / $scaley; $m = $max / $scaley;

View File

@ -17,21 +17,23 @@
$days=ceil((ctime()-$dd)/86400); $days=ceil((ctime()-$dd)/86400);
$scalex = 1; $scalex = 1;
$scaley = 200; $scaley = 500;
$m = $max / $scaley; $m = $max / $scaley;
$xs = $days * $scalex; $xs = $days * $scalex;
$img=ImageCreateTrueColor($xs,$m); $img=ImageCreateTrueColor($xs,$m);
$c[bg]= ImageColorAllocate($img, 0, 0, 0); $c['bg']= ImageColorAllocate($img, 0, 0, 0);
$c[bg1]=ImageColorAllocate($img, 0, 0, 60); $c['bg1']=ImageColorAllocate($img, 0, 0, 60);
$c[bg2]=ImageColorAllocate($img, 0, 0, 80); $c['bg2']=ImageColorAllocate($img, 0, 0, 80);
$c[bg3]=ImageColorAllocate($img, 40, 40,100); $c['bg3']=ImageColorAllocate($img, 40, 40,100);
$c[bg4]=ImageColorAllocate($img,100, 40, 40); $c['bg4']=ImageColorAllocate($img,100, 40, 40);
$c[mk1]=ImageColorAllocate($img, 60, 60,130); $c['mk1']=ImageColorAllocate($img, 60, 60,130);
$c[mk2]=ImageColorAllocate($img, 80, 80,150); $c['mk2']=ImageColorAllocate($img, 80, 80,150);
$c[bar]=ImageColorAllocate($img,250,190, 40); $c['mk3']=ImageColorAllocate($img,160, 90, 90);
$c[pt] =ImageColorAllocate($img,250,250,250); $c['mk4']=ImageColorAllocate($img,180,110,110);
$c['bar']=ImageColorAllocate($img,250,190, 40);
$c['pt'] =ImageColorAllocate($img,250,250,250);
for($i=0;$i<$days;$i++){ for($i=0;$i<$days;$i++){
$num=date('m',$dd+$i*86400)%2+1; $num=date('m',$dd+$i*86400)%2+1;
if(date('m-d',$dd+$i*86400)=='01-01') $num=3; if(date('m-d',$dd+$i*86400)=='01-01') $num=3;
@ -41,44 +43,25 @@
} }
for($i=0;$i<=($m / 50);$i++){ for($i=0;$i<=($m / 50);$i++){
ImageLine($img,0,$m-$i*100+50,($days + 1) * $scalex - 1,$m-$i*100+50,$c[mk1]); ImageLine($img,0,$m-$i*100+50,($days + 1) * $scalex - 1,$m-$i*100+50,$c['mk1']);
ImageLine($img,0,$m-$i*100,($days + 1) * $scalex - 1,$m-$i*100,$c[mk2]); ImageLine($img,0,$m-$i*100,($days + 1) * $scalex - 1,$m-$i*100,$c['mk2']);
imagestring($img, 3, 3, $m-$i*100+1, ($i * 100) * $scaley, $c[bg]); imagestring($img, 3, 3, $m-$i*100+1, ($i * 100) * $scaley, $c['bg']);
imagestring($img, 3, 3, $m-$i*100+51, ($i * 100 - 50) * $scaley, $c[bg]); imagestring($img, 3, 3, $m-$i*100+51, ($i * 100 - 50) * $scaley, $c['bg']);
imagestring($img, 3, 2, $m-$i*100, ($i * 100) * $scaley, $c[mk2]); imagestring($img, 3, 2, $m-$i*100, ($i * 100) * $scaley, $c['mk2']);
imagestring($img, 3, 2, $m-$i*100+50, ($i * 100 - 50) * $scaley, $c[mk1]); imagestring($img, 3, 2, $m-$i*100+50, ($i * 100 - 50) * $scaley, $c['mk1']);
imagestring($img, 3, $xs - 71, $m-$i*100+1, sprintf("%10d", ($i * 100) * $scaley), $c[bg]); imagestring($img, 3, $xs - 81, $m-$i*100+1, sprintf("%10d", ($i * 100)), $c['bg']);
imagestring($img, 3, $xs - 71, $m-$i*100+51, sprintf("%10d", ($i * 100 - 50) * $scaley), $c[bg]); imagestring($img, 3, $xs - 81, $m-$i*100+51, sprintf("%10d", ($i * 100 - 50)), $c['bg']);
imagestring($img, 3, $xs - 72, $m-$i*100, sprintf("%10d", ($i * 100) * $scaley), $c[mk2]); imagestring($img, 3, $xs - 82, $m-$i*100, sprintf("%10d", ($i * 100)), $c['mk4']);
imagestring($img, 3, $xs - 72, $m-$i*100+50, sprintf("%10d", ($i * 100 - 50) * $scaley), $c[mk1]); imagestring($img, 3, $xs - 82, $m-$i*100+50, sprintf("%10d", ($i * 100 - 50)), $c['mk3']);
} }
$users = array( $users = array(
1 => array('name' => "Total posts ", 'color' => imagecolorallocate($img, 255, 255, 255)), 1 => array('name' => "Total posts ", 'color' => imagecolorallocate($img, 255, 255, 255)),
-1 => array('name' => "$alen-day average x 200", 'color' => 0xFF8888), -1 => array('name' => "$alen-day average", 'color' => 0xFF8888),
/* 50 => array('name' => "Hyperhacker ", 'color' => imagecolorallocate($img, 50, 255, 50)),
61 => array('name' => "E. Prime ", 'color' => imagecolorallocate($img, 200, 200, 0)),
18 => array('name' => "Hiryuu ", 'color' => imagecolorallocate($img, 255, 50, 50)),
17 => array('name' => "NightKev ", 'color' => imagecolorallocate($img, 200, 0, 200)),
/ 5 => array('name' => "Hydrapheetz ", 'color' => imagecolorallocate($img, 50, 50, 255)),
3 => array('name' => "cpubasic13 ", 'color' => imagecolorallocate($img, 0, 200, 255)),
52 => array('name' => "Shadic ", 'color' => imagecolorallocate($img, 100, 50, 200)),
57 => array('name' => "Kles ", 'color' => imagecolorallocate($img, 50, 200, 100)),
12 => array('name' => "Dorito ", 'color' => imagecolorallocate($img, 200, 100, 50)),
36 => array('name' => "Erika ", 'color' => imagecolorallocate($img, 220, 100, 170)),
100 => array('name' => "Kas ", 'color' => imagecolorallocate($img, 220, 170, 100)),
117 => array('name' => "Rydain ", 'color' => imagecolorallocate($img, 220, 220, 79)),
118 => array('name' => "Aiya ", 'color' => imagecolorallocate($img, 170, 150, 255)),
175 => array('name' => "Tina ", 'color' => imagecolorallocate($img, 255, 100, 255)),
387 => array('name' => "Acmlm ", 'color' => imagecolorallocate($img, 233, 190, 153)),
49 => array('name' => "Dr. Sophie ", 'color' => imagecolorallocate($img, 193, 210, 233)),
*/
// 2 => array('name' => "Drag ", 'color' => imagecolorallocate($img, 255, 0, 0)),
); );
/* /*
$users = array(); $users = array();
$userq = $sql -> query("SELECT id, name FROM `users` ORDER BY `posts` DESC LIMIT 0, 10"); $userq = $sql -> query("SELECT id, name FROM `users` ORDER BY `posts` DESC LIMIT 0, 10");
@ -90,9 +73,9 @@
$z = count($users); $z = count($users);
$namespace = 12; $namespace = 12;
imagerectangle( $img, 61, 11, 174 + 6 * 5, 15 + $z * $namespace, $c[bg]); imagerectangle( $img, 61, 11, 174 + 6 * 5, 15 + $z * $namespace, $c['bg']);
imagefilledrectangle($img, 60, 10, 173 + 6 * 5, 14 + $z * $namespace, $c[bg2]); imagefilledrectangle($img, 60, 10, 173 + 6 * 5, 14 + $z * $namespace, $c['bg2']);
imagerectangle( $img, 60, 10, 173 + 6 * 5, 14 + $z * $namespace, $c[mk2]); imagerectangle( $img, 60, 10, 173 + 6 * 5, 14 + $z * $namespace, $c['mk2']);
$z = 0; $z = 0;
@ -101,9 +84,9 @@
$data = getdata($uid); $data = getdata($uid);
drawdata($data, $userx['color']); drawdata($data, $userx['color']);
} }
imageline($img, 66, $z * $namespace + 19, 76, $z * $namespace + 19, $c[bg]); imageline($img, 66, $z * $namespace + 19, 76, $z * $namespace + 19, $c['bg']);
imageline($img, 65, $z * $namespace + 18, 75, $z * $namespace + 18, $userx['color']); imageline($img, 65, $z * $namespace + 18, 75, $z * $namespace + 18, $userx['color']);
imagestring($img, 2, 80 + 1, $z * $namespace + 12, $userx['name'], $c[bg]); imagestring($img, 2, 80 + 1, $z * $namespace + 12, $userx['name'], $c['bg']);
imagestring($img, 2, 80, $z * $namespace + 11, $userx['name'], $userx['color']); imagestring($img, 2, 80, $z * $namespace + 11, $userx['name'], $userx['color']);
$z++; $z++;
} }
@ -120,7 +103,7 @@
die(); die();
} }
drawdata($xdata2, $users[-1]['color']); drawdata($xdata2, $users[-1]['color']);
Header('Content-type:image/png'); Header('Content-type:image/png');
ImagePNG($img); ImagePNG($img);
ImageDestroy($img); ImageDestroy($img);
@ -147,12 +130,12 @@
while ($n = $sql -> fetch($nn)) { while ($n = $sql -> fetch($nn)) {
$p[$n['d']]=$n['c']; $p[$n['d']]=$n['c'];
for ($temp = $n['d']; $temp > $n['d'] - $alen; $temp--) { for ($temp = $n['d']; $temp > $n['d'] - $alen; $temp--) {
$xdata[$n['d']] += $p[$temp]; $xdata[$n['d']] += $p[$temp];
} }
$xdata[$n['d']] /= $alen; $xdata[$n['d']] /= $alen;
} }
$dat = $sql -> query( $dat = $sql -> query(
@ -170,4 +153,4 @@
} }
?> ?>

View File

@ -1,10 +1,10 @@
<?php <?php
function timedelta($array1, $array2) { function timedelta($array1, $array2) {
$time = array(); $time = array();
$time['seconds'] = 60 - abs($array1['seconds'] - $array2['seconds']); $time['seconds'] = 60 - abs($array1['seconds'] - $array2['seconds']);
$time['minutes'] = abs($array1['minutes'] - $array2['minutes']); $time['minutes'] = abs($array1['minutes'] - $array2['minutes']);
$time['hours'] = abs($array1['hours'] - $array2['hours']); $time['hours'] = abs($array1['hours'] - $array2['hours']);
return $time; return $time;
} }
?> ?>

View File

@ -4,12 +4,12 @@
header("Cache-Control: no-cache"); header("Cache-Control: no-cache");
if ($_GET['z']) { if ($_GET['z']) {
die( "<body bgcolor=#111122><META HTTP-EQUIV=REFRESH CONTENT=0;URL=newyear.php?z=". rand(0,9999) ."><center><br><br><br><br><img src=newyear.php width=100%>"); die( "<body bgcolor=#111122><META HTTP-EQUIV=REFRESH CONTENT=1;URL=newyear.php?z=". rand(0,9999) ."><center><br><br><br><br><img src=newyear.php width=100%>");
} }
// require "lib/function.php"; // require "lib/function.php";
$bombday = mktime(0, 0, 0, 1, 1, 2008); $bombday = mktime(0, 0, 0, 1, 1, 2010);
$time = microtime(true) + (3600 * $_GET['to']); $time = microtime(true) + (3600 * $_GET['to']);
$left = $bombday - $time; $left = $bombday - $time;
$left = max(0, $left); $left = max(0, $left);
@ -28,7 +28,7 @@
// $teststring = "00d00:00:00.01"; // $teststring = "00d00:00:00.01";
$image = imagecreate(64, 9); $image = imagecreate(64, 9);
$imagenum = imagecreatefrompng("digits8.png"); $imagenum = imagecreatefrompng("../images/digits8.png");
$bg = imagecolorallocate($image, 255, 0, 255); $bg = imagecolorallocate($image, 255, 0, 255);
$black = imagecolorallocate($image, 0, 0, 0); $black = imagecolorallocate($image, 0, 0, 0);
@ -89,7 +89,7 @@
} }
if ($w) imagecopymerge($image, $imagenum, $ofs, 0, $p, 0, $w, 7, 100); if ($w) imagecopymerge($image, $imagenum, $ofs, 0, $p, 0, $w, 7, 100);
$ofs += $of; $ofs += $of;
} }
@ -99,4 +99,4 @@
imagedestroy($image); imagedestroy($image);
imagedestroy($imagenum); imagedestroy($imagenum);
?> ?>

View File

@ -75,7 +75,7 @@
$inpc=\"nosmilies\" id=\"nosmilies\" value=\"1\" $chks[0]><label for=\"nosmilies\">Disable Smilies</label> - $inpc=\"nosmilies\" id=\"nosmilies\" value=\"1\" $chks[0]><label for=\"nosmilies\">Disable Smilies</label> -
$inpc=\"nohtml\" id=\"nohtml\" value=\"1\" $chks[1]><label for=\"nohtml\">Disable HTML</label></td></tr> $inpc=\"nohtml\" id=\"nohtml\" value=\"1\" $chks[1]><label for=\"nohtml\">Disable HTML</label></td></tr>
</FORM> </FORM>
$tblend$fonttag<a href=index.php>$boardname</a> - <a href=forum.php?id=$forum[id]>".$forum[title]."</a> - $thread[title] $tblend$fonttag<a href=index.php>$boardname</a> - <a href=forum.php?id=$forum[id]>".$forum['title']."</a> - $thread[title]
"; ";
} }
elseif (!$action) { elseif (!$action) {
@ -183,7 +183,7 @@
".redirect("thread.php?pid=$id&r=1#$id",'the post',0).'</table></table>'; ".redirect("thread.php?pid=$id&r=1#$id",'the post',0).'</table></table>';
}*/ }*/
} }
elseif ($action=='delete'){ elseif ($action=='delete'){
if (!$_POST['reallydelete']) if (!$_POST['reallydelete'])
$txt = "Are you sure you want to <b>DELETE</b> this post?<br><br><form action='editpost.php' method='post'>$inps=reallydelete value='Delete post'>$inph=action value='delete'>$inph=id value='$id'></form> - <a href='thread.php?pid=$id#$id'>Cancel</a>"; $txt = "Are you sure you want to <b>DELETE</b> this post?<br><br><form action='editpost.php' method='post'>$inps=reallydelete value='Delete post'>$inph=action value='delete'>$inph=id value='$id'></form> - <a href='thread.php?pid=$id#$id'>Cancel</a>";
@ -208,4 +208,4 @@
print $footer; print $footer;
printtimedif($startingtime); printtimedif($startingtime);
?> ?>

View File

@ -22,7 +22,7 @@
if ($loguser['sex'] == 255) if ($loguser['sex'] == 255)
$loguser['sex'] = $loguser['oldsex']; $loguser['sex'] = $loguser['oldsex'];
$descbr="</b>$smallfont<br></center>&nbsp;"; $descbr="</b>$smallfont<br>";
$checked1[$loguser['sex']]='checked=1'; $checked1[$loguser['sex']]='checked=1';
$checked2[$loguser['viewsig']]='checked=1'; $checked2[$loguser['viewsig']]='checked=1';
// $checked3[$loguser['posttool']]='checked=1'; // $checked3[$loguser['posttool']]='checked=1';
@ -51,7 +51,7 @@
$radio=pollstyle value=1 $checked6[1]> Influence"; $radio=pollstyle value=1 $checked6[1]> Influence";
if($titleopt){ if($titleopt){
// this went after this block, which makes it COMPLETELY USELESS // this went after this block, which makes it COMPLETELY USELESS
squot(0,$loguser[title]); squot(0,$loguser['title']);
$titleoption=" $titleoption="
$tccell1><b>Custom title:$descbr This title will be shown below your rank.</td> $tccell1><b>Custom title:$descbr This title will be shown below your rank.</td>
$tccell2l>$inpt=title VALUE=\"$loguser[title]\" SIZE=60 MAXLENGTH=255><tr> $tccell2l>$inpt=title VALUE=\"$loguser[title]\" SIZE=60 MAXLENGTH=255><tr>
@ -101,32 +101,34 @@
$rsetlist="<select name=useranks>$rsetlist</select>"; $rsetlist="<select name=useranks>$rsetlist</select>";
print " print "
$header<br>$tblstart $header<br>
<FORM ACTION=editprofile.php NAME=REPLIER METHOD=POST autocomplete=off> <FORM ACTION=editprofile.php NAME=REPLIER METHOD=POST autocomplete=off>
$tccellh>Login information</td>$tccellh>&nbsp<tr> $tblstart
$tccell1><b>User name:</td>$tccell2l>$loguser[name]<tr> $tccellh colspan='2'>Login information</td><tr>
$tccell1 style='width: 40%;'><b>User name:$descbr If you want to change this, ask an admin.</td>$tccell2l style='width: 60%;'>$loguser[name]<tr>
$tccell1><b>Password:</b>$descbr You can change your password by entering a new one here.</td> $tccell1><b>Password:</b>$descbr You can change your password by entering a new one here.</td>
$tccell2l>$inpp=password SIZE=13 MAXLENGTH=64 autocomplete=off><tr> $tccell2l>$inpp=password SIZE=13 MAXLENGTH=64 autocomplete=off><tr>
$tccellh> Appearance</td>$tccellh>&nbsp<tr> $tccellh colspan='2'>Appearance</td><tr>
$titleoption $titleoption
$tccell1><b>User rank:</b>$descbr You can hide your rank, or choose from different sets.</td> $tccell1><b>User rank:</b>$descbr You can hide your rank, or choose from different sets.</td>
$tccell2l>$rsetlist<tr> $tccell2l>$rsetlist<tr>
$tccell1><b>User picture:$descbr The full URL of the image showing up below your username in posts. Leave it blank if you don't want to use a picture. The limits are 200x200 pixels, and about 100KB; anything over this will be removed.</td> $tccell1><b>Avatar:$descbr The full URL of the image showing up below your username in posts. Leave it blank if you don't want to use a avatar. Anything over 200&times;200 pixels will be removed.</td>
$tccell2l>$inpt=picture VALUE=\"$loguser[picture]\" SIZE=60 MAXLENGTH=100><tr> $tccell2l>$inpt=picture VALUE=\"$loguser[picture]\" SIZE=60 MAXLENGTH=100><tr>
$tccell1><b>Mood avatar:$descbr The URL of a mood avatar set. '\$' in the URL will be replaced with the mood, e.g. <b>http://your.page/here/\$.png</b>!</td> $tccell1><b>Mood avatar:$descbr The URL of a mood avatar set. '\$' in the URL will be replaced with the mood, e.g. <b>http://your.page/here/\$.png</b>!</td>
$tccell2l>$inpt=moodurl VALUE=\"$loguser[moodurl]\" SIZE=60 MAXLENGTH=100><tr> $tccell2l>$inpt=moodurl VALUE=\"$loguser[moodurl]\" SIZE=60 MAXLENGTH=100><tr>
$tccell1><b>Minipic:$descbr The full URL of a small picture showing up next to your username on some pages. Leave it blank if you don't want to use a picture. The picture is resized to 16x16.</td> $tccell1><b>Minipic:$descbr The full URL of a small picture showing up next to your username on some pages. Leave it blank if you don't want to use a picture. The picture is resized to 16x16.</td>
$tccell2l>$inpt=minipic VALUE=\"$loguser[minipic]\" SIZE=60 MAXLENGTH=100><tr> $tccell2l>$inpt=minipic VALUE=\"$loguser[minipic]\" SIZE=60 MAXLENGTH=100><tr>
$tccell1><b>Post background:$descbr The full URL of a picture showing up in the background of your posts. Leave it blank for no background. Please make sure your text is readable on the background!</td> ". ($loguser['postbg'] ? "$tccell1><b>Post background:$descbr The full URL of a picture showing up in the background of your posts. Leave it blank for no background. Please make sure your text is readable on the background!</td>
$tccell2l>$inpt=postbg VALUE=\"$loguser[postbg]\" SIZE=60 MAXLENGTH=250><tr> $tccell2l>$inpt=postbg VALUE=\"$loguser[postbg]\" SIZE=60 MAXLENGTH=250><tr>
$tccell1><b>Post header:$descbr This will get added before the start of each post you make. This can be used to give a default font color and face to your posts (by putting a <<z>font> tag). This should preferably be kept small, and not contain too much text or images.</td> " : "") ."
$tccell2l>$txta=postheader ROWS=8 COLS=60>". htmlspecialchars($loguser[postheader]) ."</TEXTAREA><tr> $tccell1><b>Post header:$descbr HTML added here will come before your post.</td>
$tccell1><b>Signature:$descbr This will get added at the end of each post you make, below an horizontal line. This should preferably be kept to a small enough size.</td> $tccell2l>$txta=postheader ROWS=8 COLS=60 style='width: 100%;'>". htmlspecialchars($loguser['postheader']) ."</TEXTAREA><tr>
$tccell2l>$txta=signature ROWS=8 COLS=60>". htmlspecialchars($loguser[signature]) ."</TEXTAREA><tr> $tccell1><b>Footer/Signature:$descbr HTML and text added here will be added to the end of your post.</td>
$tccell2l>$txta=signature ROWS=8 COLS=60 style='width: 100%;'>". htmlspecialchars($loguser['signature']) ."</TEXTAREA><tr>
$tccellh>Personal information</td>$tccellh>&nbsp<tr> $tccellh colspan='2'>Personal information</td><tr>
$tccell1><b>Sex:$descbr Male or female. (or N/A if you don't want to tell it)</td> $tccell1><b>Gender:$descbr This determines your name color (for now).</td>
$tccell2l>$sexlist<tr> $tccell2l>$sexlist<tr>
<!-- $tccell1><b>Also known as:$descbr If you go by an alternate alias (or are constantly subjected to name changes), enter it here. It will be displayed in your profile if it doesn't match your current username.</td> <!-- $tccell1><b>Also known as:$descbr If you go by an alternate alias (or are constantly subjected to name changes), enter it here. It will be displayed in your profile if it doesn't match your current username.</td>
$tccell2l>$inpt=aka VALUE=\"$loguser[aka]\" SIZE=25 MAXLENGTH=25><tr> --> $tccell2l>$inpt=aka VALUE=\"$loguser[aka]\" SIZE=25 MAXLENGTH=25><tr> -->
@ -136,10 +138,10 @@
$tccell2l>$inpt=location VALUE=\"$loguser[location]\" SIZE=40 MAXLENGTH=60><tr> $tccell2l>$inpt=location VALUE=\"$loguser[location]\" SIZE=40 MAXLENGTH=60><tr>
$tccell1><b>Birthday:$descbr Your date of birth.</td> $tccell1><b>Birthday:$descbr Your date of birth.</td>
$tccell2l>Month: $inpt=bmonth SIZE=2 MAXLENGTH=2 VALUE=$month> Day: $inpt=bday SIZE=2 MAXLENGTH=2 VALUE=$day> Year: $inpt=byear SIZE=4 MAXLENGTH=4 VALUE=$year><tr> $tccell2l>Month: $inpt=bmonth SIZE=2 MAXLENGTH=2 VALUE=$month> Day: $inpt=bday SIZE=2 MAXLENGTH=2 VALUE=$day> Year: $inpt=byear SIZE=4 MAXLENGTH=4 VALUE=$year><tr>
$tccell1><b>Bio:$descbr Some information about yourself, showing up in your profile.</td> $tccell1><b>Bio:$descbr Some information about yourself, showing up in your profile. Accepts HTML.</td>
$tccell2l>$txta=bio ROWS=8 COLS=60>". htmlspecialchars($loguser[bio]) ."</TEXTAREA><tr> $tccell2l>$txta=bio ROWS=8 COLS=60 style='width: 100%;'>". htmlspecialchars($loguser['bio']) ."</TEXTAREA><tr>
$tccellh>Online services</td>$tccellh>&nbsp<tr> $tccellh colspan='2'>Online services</td><tr>
$tccell1><b>Email address:$descbr This is only shown in your profile; you don't have to enter it if you don't want to.</td> $tccell1><b>Email address:$descbr This is only shown in your profile; you don't have to enter it if you don't want to.</td>
$tccell2l>$inpt=email VALUE=\"$loguser[email]\" SIZE=60 MAXLENGTH=60><tr> $tccell2l>$inpt=email VALUE=\"$loguser[email]\" SIZE=60 MAXLENGTH=60><tr>
$tccell1><b>AIM screen name:$descbr Your AIM screen name, if you have one.</td> $tccell1><b>AIM screen name:$descbr Your AIM screen name, if you have one.</td>
@ -153,10 +155,10 @@
$tccell1><b>Homepage name:$descbr Your homepage name, if you have a homepage.</td> $tccell1><b>Homepage name:$descbr Your homepage name, if you have a homepage.</td>
$tccell2l>$inpt=pagename VALUE=\"$loguser[homepagename]\" SIZE=60 MAXLENGTH=100><tr> $tccell2l>$inpt=pagename VALUE=\"$loguser[homepagename]\" SIZE=60 MAXLENGTH=100><tr>
$tccellh> Options</td>$tccellh>&nbsp<tr> $tccellh colspan='2'> Options</td><tr>
$tccell1><b>Custom date format:$descbr Edit the date format here to affect how dates are displayed. Leave it blank to return to the default format (<b>$defaultdateformat</b>)<br>See the <a href='http://php.net/manual/en/function.date.php'>date() function in the PHP manual</a> for more information.</td> $tccell1><b>Custom date format:$descbr Change how dates are displayed. Uses <a href='http://php.net/manual/en/function.date.php'>date()</a> formatting. Leave blank to use the default.</td>
$tccell2l>$inpt=eddateformat value=\"$dateformat\" size=16 maxlength=32><tr> $tccell2l>$inpt=eddateformat value=\"$dateformat\" size=16 maxlength=32><tr>
$tccell1><b>Custom short date format:$descbr A shorter date format displayed on certain areas of the board. Leave it blank to return to the default format (<b>$defaultdateshort</b>).</td> $tccell1><b>Custom short date format:$descbr Change how abbreviated dates are displayed. Uses the same formatting. Leave blank to reset.</td>
$tccell2l>$inpt=eddateshort value=\"$dateshort\" size=8 maxlength=16><tr> $tccell2l>$inpt=eddateshort value=\"$dateshort\" size=8 maxlength=16><tr>
$tccell1><b>Timezone offset:$descbr How many hours you're offset from the time on the board (".date($dateformat,ctime()).").</td> $tccell1><b>Timezone offset:$descbr How many hours you're offset from the time on the board (".date($dateformat,ctime()).").</td>
$tccell2l>$inpt=timezone VALUE=$loguser[timezone] SIZE=5 MAXLENGTH=5><tr> $tccell2l>$inpt=timezone VALUE=$loguser[timezone] SIZE=5 MAXLENGTH=5><tr>
@ -166,14 +168,14 @@
$tccell2l>$inpt=threadsperpage SIZE=4 MAXLENGTH=4 VALUE=$loguser[threadsperpage]><tr>". $tccell2l>$inpt=threadsperpage SIZE=4 MAXLENGTH=4 VALUE=$loguser[threadsperpage]><tr>".
// $tccell1><b>Use textbox toolbar when posting:$descbr You can disable it here, preventing potential slowdowns or other minor problems when posting.</td> // $tccell1><b>Use textbox toolbar when posting:$descbr You can disable it here, preventing potential slowdowns or other minor problems when posting.</td>
// $tccell2l>$vtool<tr> // $tccell2l>$vtool<tr>
"$tccell1><b>Signatures and post headers:$descbr You can disable them here, which can make thread pages smaller and load faster.</td> "$tccell1><b>Post layouts:$descbr You can disable them here, which can make thread pages smaller and load faster.</td>
$tccell2l>$vsig<tr> $tccell2l>$vsig<tr>
$tccell1><b>Forum page list style:$descbr Inline (Title - Pages ...) or Seperate Line (shows more pages)</td> $tccell1><b>Forum page list style:$descbr Inline (Title - Pages ...) or Seperate Line (shows more pages)</td>
$tccell2l>$pagestyle<tr> $tccell2l>$pagestyle<tr>
$tccell1><b>Poll vote system:$descbr Normal (based on users) or Influence (based on levels)</td> $tccell1><b>Poll vote system:$descbr Normal (based on users) or Influence (based on levels)</td>
$tccell2l>$pollstyle<tr> $tccell2l>$pollstyle<tr>
$tccell1><b>Thread layout:$descbr You can choose from a few thread layouts here.</td> $tccell1><b>Thread layout:$descbr You can choose from a few thread layouts here.</td>
$tccell2l>$laylist<tr> $tccell2l>$laylist<tr>
$tccell1><b>Signature separator:$descbr You can choose from a few signature separators here.</td> $tccell1><b>Signature separator:$descbr You can choose from a few signature separators here.</td>
@ -181,8 +183,8 @@
$tccell1><b>Color scheme / layout:$descbr You can select from a few color schemes here.</td> $tccell1><b>Color scheme / layout:$descbr You can select from a few color schemes here.</td>
$tccell2l>$schlist<tr> $tccell2l>$schlist<tr>
$tccellh>&nbsp</td>$tccellh>&nbsp<tr> $tccellh colspan='2'>&nbsp;</td><tr>
$tccell1>&nbsp</td>$tccell2l> $tccell1>&nbsp;</td>$tccell2l>
$inph=action VALUE=saveprofile> $inph=action VALUE=saveprofile>
$inph=userid VALUE=$userid> $inph=userid VALUE=$userid>
$inps=submit VALUE=\"Edit profile\"></td></FORM> $inps=submit VALUE=\"Edit profile\"></td></FORM>
@ -196,7 +198,7 @@
sbr(0,$postheader); sbr(0,$postheader);
sbr(0,$signature); sbr(0,$signature);
sbr(0,$bio); sbr(0,$bio);
if(!isset($title) or !$titleopt) $title=$loguser[title]; if(!isset($title) or !$titleopt) $title=$loguser['title'];
if($sex>2 && $sex != $loguser['sex'] && $sex != $loguser['oldsex']) if($sex>2 && $sex != $loguser['sex'] && $sex != $loguser['oldsex'])
$sex=2; $sex=2;
@ -227,7 +229,7 @@
$birthday=@mktime(12,0,0,$bmonth,$bday,$byear); $birthday=@mktime(12,0,0,$bmonth,$bday,$byear);
if(!$bmonth && !$bday && !$byear) $birthday=0; if(!$bmonth && !$bday && !$byear) $birthday=0;
if(!$icq) $icq=0; if(!$icq) $icq=0;
if(!isset($useranks)) $useranks=$loguser[useranks]; if(!isset($useranks)) $useranks=$loguser['useranks'];
if ($_POST['password']) { if ($_POST['password']) {
$hash = getpwhash($_POST['password'], $loguserid); $hash = getpwhash($_POST['password'], $loguserid);
@ -283,4 +285,3 @@
print $footer; print $footer;
printtimedif($startingtime); printtimedif($startingtime);
?>

View File

@ -1,214 +1,215 @@
<?php <?php
require "lib/function.php"; chdir("../");
//$sql->selectdb("sonicret_s2bivb"); require "lib/function.php";
//$sql->selectdb("sonicret_s2bivb");
if ($_GET['s']) $size = $_GET['s'];
if ($size > 1024 || $size < 80) $size = 255; if ($_GET['s']) $size = $_GET['s'];
if ($_GET['t']) $classt = $_GET['t']; if ($size > 1024 || $size < 80) $size = 255;
if ($classt > 9999 || $classt < 10) $classt = 500; if ($_GET['t']) $classt = $_GET['t'];
if ($classt > 9999 || $classt < 10) $classt = 500;
$size = 255;
$classt = 500; $size = 255;
$class = $sql->resultq("SELECT COUNT(`id`) FROM `posts` WHERE `date` > ". (ctime() - 86400)); $classt = 500;
$class = $sql->resultq("SELECT COUNT(`id`) FROM `posts` WHERE `date` > ". (ctime() - 86400));
if ($_GET['s']) $size = numrange((int)$_GET['s'], 80, 1024);
if ($_GET['t']) $classt = numrange((int)$_GET['t'], 10, 1000); if ($_GET['s']) $size = numrange((int)$_GET['s'], 80, 1024);
if ($_GET['t']) $classt = numrange((int)$_GET['t'], 10, 1000);
$classtxt = " ppd ";
$classtxt = " ppd ";
$image = imagecreatetruecolor( $size + 1, $size + 1 );
$image = imagecreatetruecolor( $size + 1, $size + 1 );
imageantialias($image, true);
imagesavealpha($image, true); imageantialias($image, true);
imagealphablending($image, false); imagesavealpha($image, true);
imagealphablending($image, false);
$color['white'] = imagecolorallocate($image, 255, 255, 255);
$color['black'] = imagecolorallocate($image, 0, 0, 0); $color['white'] = imagecolorallocate($image, 255, 255, 255);
$color['gray1'] = imagecolorallocate($image, 40, 40, 40); $color['black'] = imagecolorallocate($image, 0, 0, 0);
$color['gray2'] = imagecolorallocate($image, 120, 120, 120); $color['gray1'] = imagecolorallocate($image, 40, 40, 40);
$color['gray3'] = imagecolorallocate($image, 230, 230, 230); $color['gray2'] = imagecolorallocate($image, 120, 120, 120);
$color['red'] = imagecolorallocate($image, 255, 100, 100); $color['gray3'] = imagecolorallocate($image, 230, 230, 230);
$color['blue'] = imagecolorallocate($image, 125, 125, 255); $color['red'] = imagecolorallocate($image, 255, 100, 100);
$color['blue'] = imagecolorallocate($image, 125, 125, 255);
imagefilledrectangle($image, 0, 0, $size+1, $size+1, imagecolorallocatealpha($image, 0, 0, 0, 127));
imagealphablending($image, true); imagefilledrectangle($image, 0, 0, $size+1, $size+1, imagecolorallocatealpha($image, 0, 0, 0, 127));
imagealphablending($image, true);
$point = anglepos($size / 3, $size/2, $size/2, 90+45);
$point = anglepos($size / 3, $size/2, $size/2, 90+45);
// drawgauge($size/2, $size/2, $size, 180, 270);
drawgauge($size/2, $size/2, $size, 180 - 45, 270); // drawgauge($size/2, $size/2, $size, 180, 270);
drawgauge($size/2, $size/2, $size, 180 - 45, 270);
// drawgauge($point['x'], $point['y'], $size / 3, 180, 270);
// drawgauge($point['x'], $point['y'], $size / 3, 180, 270);
function drawgauge($xpos, $ypos, $size, $startangle, $endangle) {
global $image, $color, $class, $classt, $classtxt; function drawgauge($xpos, $ypos, $size, $startangle, $endangle) {
global $image, $color, $class, $classt, $classtxt;
// $startangle = 90;
$endangle = $startangle + $endangle; // $startangle = 90;
$angsize = $endangle - $startangle; $endangle = $startangle + $endangle;
$angsize = $endangle - $startangle;
$radius = $size / 2;
$radius = $size / 2;
imagefilledarc($image, $xpos, $ypos, $size, $size, 0, 360, $color['gray1'], IMG_ARC_PIE);
imagearc ($image, $xpos, $ypos, $size, $size, 0, 360, $color['black']); imagefilledarc($image, $xpos, $ypos, $size, $size, 0, 360, $color['gray1'], IMG_ARC_PIE);
imagearc ($image, $xpos, $ypos, $size, $size, 0, 360, $color['black']);
for ($i = 0; $i <= 100; $i ++) {
for ($i = 0; $i <= 100; $i ++) {
if ($i % 5 == 0) {
$c = $color['white']; if ($i % 5 == 0) {
$l = 10; $c = $color['white'];
} else { $l = 10;
$c = $color['black']; } else {
$l = 0; $c = $color['black'];
} $l = 0;
}
if ($i >= 0 && $i <= 99) {
if ($i <= 24) { if ($i >= 0 && $i <= 99) {
$cx = ($i) / 25 * 255; if ($i <= 24) {
$cc = imagecolorallocate($image, 255, $cx, 0); $cx = ($i) / 25 * 255;
} elseif ($i <= 49) { $cc = imagecolorallocate($image, 255, $cx, 0);
$cx = ($i - 75) / 25 * 127; } elseif ($i <= 49) {
$cc = imagecolorallocate($image, 255 - $cx, 255 - $cx, $cx); $cx = ($i - 75) / 25 * 127;
} elseif ($i <= 74) { $cc = imagecolorallocate($image, 255 - $cx, 255 - $cx, $cx);
$cx = ($i - 50) / 25 * 31; } elseif ($i <= 74) {
$cc = imagecolorallocate($image, 128 - $cx, 128 - $cx, 128 + $cx); $cx = ($i - 50) / 25 * 31;
} else { $cc = imagecolorallocate($image, 128 - $cx, 128 - $cx, 128 + $cx);
$cx = ($i - 75) / 25 * 95; } else {
$cc = imagecolorallocate($image, 95 - $cx, 95 - $cx, 255 - $cx); $cx = ($i - 75) / 25 * 95;
} $cc = imagecolorallocate($image, 95 - $cx, 95 - $cx, 255 - $cx);
}
$r = $i * ($angsize * .01) - $startangle + ($angsize * .01);
$q[0] = anglepos($radius - 3, $xpos, $ypos, $r); $r = $i * ($angsize * .01) - $startangle + ($angsize * .01);
$q[1] = anglepos($radius - 3 - 5, $xpos, $ypos, $r); $q[0] = anglepos($radius - 3, $xpos, $ypos, $r);
$r = $i * ($angsize * .01) - $startangle - 1; $q[1] = anglepos($radius - 3 - 5, $xpos, $ypos, $r);
$q[2] = anglepos($radius - 3, $xpos, $ypos, $r); $r = $i * ($angsize * .01) - $startangle - 1;
$q[3] = anglepos($radius - 3 - 5, $xpos, $ypos, $r); $q[2] = anglepos($radius - 3, $xpos, $ypos, $r);
$q[3] = anglepos($radius - 3 - 5, $xpos, $ypos, $r);
$pts = array(
$q[0]['x'], $q[0]['y'], $pts = array(
$q[2]['x'], $q[2]['y'], $q[0]['x'], $q[0]['y'],
$q[3]['x'], $q[3]['y'], $q[2]['x'], $q[2]['y'],
$q[1]['x'], $q[1]['y'], $q[3]['x'], $q[3]['y'],
); $q[1]['x'], $q[1]['y'],
);
// imageline($image, $p1['x'], $p1['y'], $p2['x'], $p2['y'], $cc);
// imageline($image, $p1['x'], $p1['y'], $p2['x'], $p2['y'], $cc); // imageline($image, $p1['x'], $p1['y'], $p2['x'], $p2['y'], $cc);
imagefilledpolygon($image, $pts, 4, $cc); // imageline($image, $p1['x'], $p1['y'], $p2['x'], $p2['y'], $cc);
// imageline($image, $q[0]['x'], $q[0]['y'], $q[3]['x'], $q[3]['y'], $cc); imagefilledpolygon($image, $pts, 4, $cc);
} // imageline($image, $q[0]['x'], $q[0]['y'], $q[3]['x'], $q[3]['y'], $cc);
}
$r = $i * ($angsize * .01) - $startangle;
$r = $i * ($angsize * .01) - $startangle;
$p1 = anglepos($radius - 3, $xpos, $ypos, $r);
$p2 = anglepos($radius - 3 - $l, $xpos, $ypos, $r); $p1 = anglepos($radius - 3, $xpos, $ypos, $r);
$p2 = anglepos($radius - 3 - $l, $xpos, $ypos, $r);
imageline($image, $p1['x'], $p1['y'], $p2['x'], $p2['y'], $c);
imageline($image, $p1['x'], $p1['y'], $p2['x'], $p2['y'], $c);
$markers = ($size < 255 ? 25 : 10);
if ($i % $markers == 0) { $markers = ($size < 255 ? 25 : 10);
$p3 = anglepos($radius - 20, $xpos, $ypos, $r); if ($i % $markers == 0) {
$p4 = anglepos($radius - 42, $xpos, $ypos, $r); $p3 = anglepos($radius - 20, $xpos, $ypos, $r);
$p4 = anglepos($radius - 42, $xpos, $ypos, $r);
$n = round($classt * ($i/100)) ."";
$n = round($classt * ($i/100)) ."";
$nl = strlen($n);
$nl = strlen($n);
$x = 2 + (3.5 * ($nl - 1));
imagestring($image, 3, $p3['x'] - $x, $p3['y'] - 7, $n, $color['white']); $x = 2 + (3.5 * ($nl - 1));
} imagestring($image, 3, $p3['x'] - $x, $p3['y'] - 7, $n, $color['white']);
}
}
}
$rad = 45;
$rad = 45;
// imageline($image, $radius, $radius, $point['x'], $point['y'], $color['black']);
// drawneedle($houra, $radius, $radius, $radius - 30, 7, - 3, $color['black']); // imageline($image, $radius, $radius, $point['x'], $point['y'], $color['black']);
// drawneedle($mina, $radius, $radius, $radius - 5, 5, - 5, $color['black']); // drawneedle($houra, $radius, $radius, $radius - 30, 7, - 3, $color['black']);
// drawneedle($seca, $radius, $radius, $radius - 2, 4, -10, $color['red']); // drawneedle($mina, $radius, $radius, $radius - 5, 5, - 5, $color['black']);
// drawneedle($seca, $radius, $radius, $radius - 2, 4, -10, $color['red']);
$ang = @(min($classt, $class)/$classt) * $angsize - $startangle;
drawneedle($ang, $xpos, $ypos, $radius - 2, 5, -20, $color['blue']); $ang = @(min($classt, $class)/$classt) * $angsize - $startangle;
drawneedle($ang, $xpos, $ypos, $radius - 2, 5, -20, $color['blue']);
if ($size >= 128) {
imagestring($image, 1, $size / 2 - 26, $size * .7 + 4 , $classtxt, $color['white']); if ($size >= 128) {
// if (!$_GET['p']) imagestring($image, 1, $size / 2 + 14, $size * .7 + 16, "%", 0xcccccc); imagestring($image, 1, $size / 2 - 26, $size * .7 + 4 , $classtxt, $color['white']);
digits($size * .50 - 12, $size * .7 + 14, $class, 3, 0); // if (!$_GET['p']) imagestring($image, 1, $size / 2 + 14, $size * .7 + 16, "%", 0xcccccc);
} else { digits($size * .50 - 12, $size * .7 + 14, $class, 3, 0);
digits($size * .50 - 12, $size * .7 + 9, $class, 3, 0); } else {
} digits($size * .50 - 12, $size * .7 + 9, $class, 3, 0);
} }
}
// imagestring($image, 1, $size / 2 - 42, $size * .93 - 10, date("m/d/y H:i:s", time()), 0xcccccc);
header("Content-type: image/png"); // imagestring($image, 1, $size / 2 - 42, $size * .93 - 10, date("m/d/y H:i:s", time()), 0xcccccc);
imagepng($image); header("Content-type: image/png");
imagedestroy($image); imagepng($image);
imagedestroy($image);
function anglepos($radius, $origo_x, $origo_y, $angle) {
// $angle += 90; function anglepos($radius, $origo_x, $origo_y, $angle) {
$radius--; // $angle += 90;
$pont['x'] = $origo_x + ($radius * sin(deg2rad($angle))); $radius--;
$pont['y'] = $origo_y - ($radius * cos(deg2rad($angle))); $pont['x'] = $origo_x + ($radius * sin(deg2rad($angle)));
return $pont; $pont['y'] = $origo_y - ($radius * cos(deg2rad($angle)));
} return $pont;
}
function drawneedle($angle, $cx, $cy, $radius, $width, $tail, $color) {
global $image; function drawneedle($angle, $cx, $cy, $radius, $width, $tail, $color) {
$point = anglepos($tail * -1, $cx, $cy, $angle + 180); global $image;
$point = anglepos($tail * -1, $cx, $cy, $angle + 180);
$width *= .75;
$width *= .75;
$point1 = anglepos($width, $point['x'], $point['y'], $angle - 90);
$point2 = anglepos($width, $point['x'], $point['y'], $angle + 90); $point1 = anglepos($width, $point['x'], $point['y'], $angle - 90);
$point3 = anglepos($radius, $cx, $cy, $angle); $point2 = anglepos($width, $point['x'], $point['y'], $angle + 90);
// $point3 = anglepos($radius, $cx, $cy, $angle - .5); $point3 = anglepos($radius, $cx, $cy, $angle);
// $point4 = anglepos($radius, $cx, $cy, $angle + .5); // $point3 = anglepos($radius, $cx, $cy, $angle - .5);
$point9 = anglepos($radius - 4, $cx, $cy, $angle); // $point4 = anglepos($radius, $cx, $cy, $angle + .5);
$point9 = anglepos($radius - 4, $cx, $cy, $angle);
$points = array(
$point1['x'], $point1['y'], $points = array(
// $point['x'], $point['y'], $point1['x'], $point1['y'],
$point2['x'], $point2['y'], // $point['x'], $point['y'],
// $point4['x'], $point4['y'], $point2['x'], $point2['y'],
$point3['x'], $point3['y'], // $point4['x'], $point4['y'],
); $point3['x'], $point3['y'],
imagefilledpolygon($image, $points, 3, $color); );
imagepolygon($image, $points, 3, $color); imagefilledpolygon($image, $points, 3, $color);
imageline($image, $point9['x'], $point9['y'], $cx, $cy, 0xffffff); imagepolygon($image, $points, 3, $color);
// imagefilledpolygon($image, $points, 3, $color); imageline($image, $point9['x'], $point9['y'], $cx, $cy, 0xffffff);
// imagefilledpolygon($image, $points, 3, $color);
}
}
function digits($x, $y, $n, $l = 4, $d = 2, $overlay = false) {
global $image; function digits($x, $y, $n, $l = 4, $d = 2, $overlay = false) {
global $image;
$numimage = imagecreatefrompng("digits4.png");
$n = number_format($n, $d); $numimage = imagecreatefrompng("images/digits4.png");
$n = str_replace(",", "", $n); $n = number_format($n, $d);
$n2 = explode(".", $n); $n = str_replace(",", "", $n);
$n2 = explode(".", $n);
$big = str_pad($n2[0], $l, ":", STR_PAD_LEFT);
$len = strlen($big); $big = str_pad($n2[0], $l, ":", STR_PAD_LEFT);
$len = strlen($big);
for($o = 0; $o < $len; $o++) {
$chrpos = ord($big{$o}) - 48; for($o = 0; $o < $len; $o++) {
imagecopy($image, $numimage, $x + ($o * 8), $y, $chrpos * 9, 0, 8, 14); $chrpos = ord($big{$o}) - 48;
} imagecopy($image, $numimage, $x + ($o * 8), $y, $chrpos * 9, 0, 8, 14);
}
$small = $n2[1];
$slen = strlen($small) + $o - 1; $small = $n2[1];
for(; $o <= $slen; $o++) { $slen = strlen($small) + $o - 1;
$lp = $o - $len; for(; $o <= $slen; $o++) {
imagecopy($image, $numimage, $x + $o * 8, $y, $small{$lp} * 9, 14, 8, 14); $lp = $o - $len;
} imagecopy($image, $numimage, $x + $o * 8, $y, $small{$lp} * 9, 14, 8, 14);
}
$maxlen = strlen($big) + strlen($small);
imagerectangle($image, $x - 1, $y - 1, $x + $maxlen * 8, $y + 14, 0x000000); $maxlen = strlen($big) + strlen($small);
imagerectangle($image, $x - 1, $y - 1, $x + $maxlen * 8, $y + 14, 0x000000);
if ($overlay) imagefilledrectangle($image, $x, $y, $x + $maxlen * 8 - 1, $y + 13, $overlay);
} if ($overlay) imagefilledrectangle($image, $x, $y, $x + $maxlen * 8 - 1, $y + 13, $overlay);
}

View File

@ -5,8 +5,8 @@
$img = imagecreate(45, 37); $img = imagecreate(45, 37);
$bg = imagecolorallocate($img, 100, 100, 100); $bg = imagecolorallocate($img, 100, 100, 100);
$num = imagecreatefrompng("digitstiny.png"); $num = imagecreatefrompng("images/digitstiny.png");
$xk = $sql -> fetchq("SELECT * FROM `users` WHERE `id` = '1'"); $xk = $sql -> fetchq("SELECT * FROM `users` WHERE `id` = '1'");
$thread = $sql -> resultq("SELECT COUNT(`id`) FROM `threads` WHERE `user` = '1'"); $thread = $sql -> resultq("SELECT COUNT(`id`) FROM `threads` WHERE `user` = '1'");

168
faq.php
View File

@ -67,25 +67,61 @@
<br> <br>
<table class='table' cellspacing='0' style='width: auto;'> <table class='table' cellspacing='0' style='width: auto;'>
<tr> <tr>
<td class='tbl tdbgh fonts center'>Tag</th> <td class='tbl tdbgh fonts center'>Tags</td>
<td class='tbl tdbgh fonts center'>Value</th> <td class='tbl tdbgh fonts center'>Description</td>
</tr> </tr>
<tr> <tr>
<td class='tbl tdbg2 fonts'>&amp;numposts&amp;</td> <td class='tbl tdbg2 fonts'>/me</td>
<td class='tbl tdbg1 fonts'>Current post count</td> <td class='tbl tdbg1 fonts'>Your username (must have a space after it)</td>
</tr>
<tr>
<td class='tbl tdbg2 fonts'>&amp;date&amp;</td>
<td class='tbl tdbg1 fonts'>Current date</td>
</tr> </tr>
<tr> <tr>
<td class='tbl tdbg2 fonts'>&amp;numdays&amp;</td> <td class='tbl tdbg2 fonts'>&amp;numdays&amp;</td>
<td class='tbl tdbg1 fonts'>Number of days since registration</td> <td class='tbl tdbg1 fonts'>Number of days since registration</td>
</tr> </tr>
<tr> <tr>
<td class='tbl tdbg2 fonts'>&amp;level&amp;</td> <td class='tbl tdbg2 fonts'>&amp;numposts&amp;</td>
<td class='tbl tdbg1 fonts'>Level</td> <td class='tbl tdbg1 fonts'>Current post count</td>
</tr>
<tr>
<td class='tbl tdbg2 fonts'>&amp;rank&amp;</td>
<td class='tbl tdbg1 fonts'>Current rank, according to your amount of posts</td>
</tr>
<tr>
<td class='tbl tdbg2 fonts'>&amp;postrank&amp;</td>
<td class='tbl tdbg1 fonts'>Post ranking</td>
</tr>
<tr>
<td class='tbl tdbg2 fonts'>&amp;5000&amp;</td>
<td class='tbl tdbg1 fonts'>Posts left until you have 5000</td>
</tr>
<tr>
<td class='tbl tdbg2 fonts'>&amp;10000&amp;</td>
<td class='tbl tdbg1 fonts'>Posts left until you have 10000</td>
</tr>
<tr>
<td class='tbl tdbg2 fonts'>&amp;20000&amp;</td>
<td class='tbl tdbg1 fonts'>Posts left until you have 20000</td>
</tr>
<tr>
<td class='tbl tdbg2 fonts'>&amp;30000&amp;</td>
<td class='tbl tdbg1 fonts'>Posts left until you have 30000</td>
</tr> </tr>
<tr> <tr>
<td class='tbl tdbg2 fonts'>&amp;exp&amp;</td> <td class='tbl tdbg2 fonts'>&amp;exp&amp;</td>
<td class='tbl tdbg1 fonts'>EXP</td> <td class='tbl tdbg1 fonts'>EXP</td>
</tr> </tr>
<tr>
<td class='tbl tdbg2 fonts'>&amp;expgain&amp;</td>
<td class='tbl tdbg1 fonts'>EXP gain per post</td>
</tr>
<tr>
<td class='tbl tdbg2 fonts'>&amp;expgaintime&amp;</td>
<td class='tbl tdbg1 fonts'>Seconds for 1 EXP when idle</td>
</tr>
<tr> <tr>
<td class='tbl tdbg2 fonts'>&amp;expdone&amp;</td> <td class='tbl tdbg2 fonts'>&amp;expdone&amp;</td>
<td class='tbl tdbg1 fonts'>EXP done in the current level</td> <td class='tbl tdbg1 fonts'>EXP done in the current level</td>
@ -119,12 +155,8 @@
<td class='tbl tdbg1 fonts'>Percentage of EXP left in the level</td> <td class='tbl tdbg1 fonts'>Percentage of EXP left in the level</td>
</tr> </tr>
<tr> <tr>
<td class='tbl tdbg2 fonts'>&amp;expgain&amp;</td> <td class='tbl tdbg2 fonts'>&amp;level&amp;</td>
<td class='tbl tdbg1 fonts'>EXP gain per post</td> <td class='tbl tdbg1 fonts'>Level</td>
</tr>
<tr>
<td class='tbl tdbg2 fonts'>&amp;expgaintime&amp;</td>
<td class='tbl tdbg1 fonts'>Seconds for 1 EXP when idle</td>
</tr> </tr>
<tr> <tr>
<td class='tbl tdbg2 fonts'>&amp;lvlexp&amp;</td> <td class='tbl tdbg2 fonts'>&amp;lvlexp&amp;</td>
@ -134,34 +166,6 @@
<td class='tbl tdbg2 fonts'>&amp;lvllen&amp;</td> <td class='tbl tdbg2 fonts'>&amp;lvllen&amp;</td>
<td class='tbl tdbg1 fonts'>EXP needed to go through the current level</td> <td class='tbl tdbg1 fonts'>EXP needed to go through the current level</td>
</tr> </tr>
<tr>
<td class='tbl tdbg2 fonts'>&amp;5000&amp;</td>
<td class='tbl tdbg1 fonts'>Posts left until you have 5000</td>
</tr>
<tr>
<td class='tbl tdbg2 fonts'>&amp;20000&amp;</td>
<td class='tbl tdbg1 fonts'>Posts left until you have 20000</td>
</tr>
<tr>
<td class='tbl tdbg2 fonts'>&amp;rank&amp;</td>
<td class='tbl tdbg1 fonts'>Current rank, according to your amount of<br> posts</td>
</tr>
<tr>
<td class='tbl tdbg2 fonts'>&amp;postrank&amp;</td>
<td class='tbl tdbg1 fonts'>Post ranking</td>
</tr>
<tr>
<td class='tbl tdbg2 fonts'>&amp;postrank10k&amp;</td>
<td class='tbl tdbg1 fonts'>Post ranking you'd have with 10000 less<br> posts</td>
</tr>
<tr>
<td class='tbl tdbg2 fonts'>&amp;postrank20k&amp;</td>
<td class='tbl tdbg1 fonts'>Post ranking you'd have with 20000 less<br> posts</td>
</tr>
<tr>
<td class='tbl tdbg2 fonts'>&amp;date&amp;</td>
<td class='tbl tdbg1 fonts'>Current date</td>
</tr>
</table> </table>
"); ");
@ -175,88 +179,88 @@
<td class='tbl tdbgh fonts center'>Result</th> <td class='tbl tdbgh fonts center'>Result</th>
</tr> </tr>
<tr> <tr>
<td class='tbl tdbg2 fonts'>[b<!--- --->]Bolded text.[/b<!--- --->]</td> <td class='tbl tdbg2 fonts'>[b]Bolded text.[/b]</td>
<td class='tbl tdbg1 fonts'>[b]Bolded text.[/b]</td> <td class='tbl tdbg1 fonts'><b>Bolded text.</b></td>
</tr> </tr>
<tr> <tr>
<td class='tbl tdbg2 fonts'>[i<!--- --->]Italicized text.[/i<!--- --->]</td> <td class='tbl tdbg2 fonts'>[i]Italicized text.[/i]</td>
<td class='tbl tdbg1 fonts'>[i]Italicized text.[/i]</td> <td class='tbl tdbg1 fonts'><i>Italicized text.</i></td>
</tr> </tr>
<tr> <tr>
<td class='tbl tdbg2 fonts'>[u<!--- --->]Underlined text.[/u<!--- --->]</td> <td class='tbl tdbg2 fonts'>[u]Underlined text.[/u]</td>
<td class='tbl tdbg1 fonts'>[u]Underlined text.[/u]</td> <td class='tbl tdbg1 fonts'><u>Underlined text.</u></td>
</tr> </tr>
<tr> <tr>
<td class='tbl tdbg2 fonts'>[s<!--- --->]Strikethrough text.[/s<!--- --->]</td> <td class='tbl tdbg2 fonts'>[s]Strikethrough text.[/s]</td>
<td class='tbl tdbg1 fonts'>[s]Strikethrough text.[/s]</td> <td class='tbl tdbg1 fonts'><s>Strikethrough text.</s></td>
</tr> </tr>
<tr> <tr>
<td class='tbl tdbg2 fonts'>[abbr<!--- --->=Basic Input/Output System]BIOS[/abbr<!--- --->]</td> <td class='tbl tdbg2 fonts'>[abbr=Basic Input/Output System]BIOS[/abbr]</td>
<td class='tbl tdbg1 fonts'>[abbr=Basic Input/Output System]BIOS[/abbr]</td> <td class='tbl tdbg1 fonts'><span style=\"border-bottom: 1px dotted;\" title=\"Basic Input/Output System\">BIOS</span></td>
</tr> </tr>
<tr> <tr>
<td class='tbl tdbg2 fonts'>[sp<!--- --->=terrible]Great[/sp<!--- --->] software.</td> <td class='tbl tdbg2 fonts'>[sp=terrible]Great[/sp] software.</td>
<td class='tbl tdbg1 fonts'>[sp=terrible]Great[/sp] software.</td> <td class='tbl tdbg1 fonts'><span style=\"border-bottom: 1px dotted #f00;\" title=\"did you mean: terrible\">Great</span> software.</td>
</tr> </tr>
<tr> <tr>
<td class='tbl tdbg2 fonts'>[url<!--- --->]http://example.com/[/ur<!--- --->l]</td> <td class='tbl tdbg2 fonts'>[url]http://example.com/[/url]</td>
<td class='tbl tdbg1 fonts'>[url]http://example.com/[/url]</td> <td class='tbl tdbg1 fonts'><a href=http://example.com/>http://example.com/</a></td>
</tr> </tr>
<tr> <tr>
<td class='tbl tdbg2 fonts'>[url<!--- --->=http://example.com/]Link text here.[/url<!--- --->]</td> <td class='tbl tdbg2 fonts'>[url=http://example.com/]Link text here.[/url]</td>
<td class='tbl tdbg1 fonts'>[url=http://example.com/]Link text here.[/url]</td> <td class='tbl tdbg1 fonts'><a href=http://example.com/>Link text here.</a></td>
</tr> </tr>
<tr> <tr>
<td class='tbl tdbg2 fonts'>[img<!--- --->]https://tcrf.net/images/c/c4/SMB2-smiley.png[/img<!--- --->]</td> <td class='tbl tdbg2 fonts'>[img]https://tcrf.net/images/c/c4/SMB2-smiley.png[/img]</td>
<td class='tbl tdbg1 fonts'>[img]https://tcrf.net/images/c/c4/SMB2-smiley.png[/img]</td> <td class='tbl tdbg1 fonts'><img src=https://tcrf.net/images/c/c4/SMB2-smiley.png></td>
</tr> </tr>
<tr> <tr>
<td class='tbl tdbg2 fonts'>[red<!--- --->]Red color.[/color<!--- --->]</td> <td class='tbl tdbg2 fonts'>[red]Red color.[/color]</td>
<td class='tbl tdbg1 fonts'>[red]Red color.[/color]</td> <td class='tbl tdbg1 fonts'><font color=FFC0C0>Red color.</font></td>
</tr> </tr>
<tr> <tr>
<td class='tbl tdbg2 fonts'>[green<!--- --->]Green color.[/color<!--- --->]</td> <td class='tbl tdbg2 fonts'>[green]Green color.[/color]</td>
<td class='tbl tdbg1 fonts'>[green]Green color.[/color]</td> <td class='tbl tdbg1 fonts'><font color=C0FFC0>Green color.</font></td>
</tr> </tr>
<tr> <tr>
<td class='tbl tdbg2 fonts'>[blue<!--- --->]Blue color.[/color<!--- --->]</td> <td class='tbl tdbg2 fonts'>[blue]Blue color.[/color]</td>
<td class='tbl tdbg1 fonts'>[blue]Blue color.[/color]</td> <td class='tbl tdbg1 fonts'><font color=C0C0FF>Blue color.</font></td>
</tr> </tr>
<tr> <tr>
<td class='tbl tdbg2 fonts'>[orange<!--- --->]Orange color.[/color<!--- --->]</td> <td class='tbl tdbg2 fonts'>[orange]Orange color.[/color]</td>
<td class='tbl tdbg1 fonts'>[orange]Orange color.[/color]</td> <td class='tbl tdbg1 fonts'><font color=FFC080>Orange color.</font></td>
</tr> </tr>
<tr> <tr>
<td class='tbl tdbg2 fonts'>[yellow<!--- --->]Yellow color.[/color<!--- --->]</td> <td class='tbl tdbg2 fonts'>[yellow]Yellow color.[/color]</td>
<td class='tbl tdbg1 fonts'>[yellow]Yellow color.[/color]</td> <td class='tbl tdbg1 fonts'><font color=FFEE20>Yellow color.</font></td>
</tr> </tr>
<tr> <tr>
<td class='tbl tdbg2 fonts'>[pink<!--- --->]Pink color.[/color<!--- --->]</td> <td class='tbl tdbg2 fonts'>[pink]Pink color.[/color]</td>
<td class='tbl tdbg1 fonts'>[pink]Pink color.[/color]</td> <td class='tbl tdbg1 fonts'><font color=FFC0FF>Pink color.</font></td>
</tr> </tr>
<tr> <tr>
<td class='tbl tdbg2 fonts'>[white<!--- --->]White color.[/color<!--- --->]</td> <td class='tbl tdbg2 fonts'>[white]White color.[/color]</td>
<td class='tbl tdbg1 fonts'>[white]White color.[/color]</td> <td class='tbl tdbg1 fonts'><font color=white>White color.</font></td>
</tr> </tr>
<tr> <tr>
<td class='tbl tdbg2 fonts'>[black<!--- --->]Black color.[/color<!--- --->] (bad idea)</td> <td class='tbl tdbg2 fonts'>[black]Black color.[/color] (bad idea)</td>
<td class='tbl tdbg1 fonts'>[black]Black color.[/color]</td> <td class='tbl tdbg1 fonts'><font color=0>Black color.</font></td>
</tr> </tr>
<tr> <tr>
<td class='tbl tdbg2 fonts'>[quote<!--- --->=user]Quoted text.[/quote<!--- --->]</td> <td class='tbl tdbg2 fonts'>[quote=user]Quoted text.[/quote]</td>
<td class='tbl tdbg1 fonts'>[quote=user]Quoted text.[/quote]</td> <td class='tbl tdbg1 fonts'><blockquote><font class=fonts><i>Originally posted by user</i></font><hr>Quoted text.<hr></blockquote></td>
</tr> </tr>
<tr> <tr>
<td class='tbl tdbg2 fonts'>[code<!--- --->]Code.[/code<!--- --->]</td> <td class='tbl tdbg2 fonts'>[code]<span style=\"color: #88F;\">Check it out, it's <b>sample code</b></span>[/code]</td>
<td class='tbl tdbg1 fonts'>[code]Code.[/code]</td> <td class='tbl tdbg1 fonts'>" . escape_codeblock("<span style=\"color: #88F;\">Check it out, it's <b>sample code</b></span>") . "</td>
</tr> </tr>
<tr> <tr>
<td class='tbl tdbg2 fonts'>[spoiler<!--- --->]Spoiler text.[/spoiler<!--- --->]</td> <td class='tbl tdbg2 fonts'>[spoiler]Spoiler text.[/spoiler]</td>
<td class='tbl tdbg1 fonts'>[spoiler]Spoiler text.[/spoiler]</td> <td class='tbl tdbg1 fonts'><div class=\"fonts pstspl2\"><b>Spoiler:</b><div class=\"pstspl1\">Spoiler text.</div></div></td>
</tr> </tr>
<tr> <tr>
<td class='tbl tdbg2 fonts'>[youtube<!--- --->]BrQn-O_zFRc[/youtube<!--- --->] (video ID)</td> <td class='tbl tdbg2 fonts'>[youtube]BrQn-O_zFRc[/youtube]<br>(video ID, e.g. <br>https://www.youtube.com/watch?v=<font color=#FF0000>BrQn-O_zFRc</font>)</td>
<td class='tbl tdbg1 fonts'>[youtube]BrQn-O_zFRc[/youtube]</td> <td class='tbl tdbg1 fonts'><iframe src=\"https://www.youtube.com/embed/BrQn-O_zFRc\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"></iframe></td>
</tr> </tr>
</table> </table>
"); ");

View File

View File

@ -1,3 +0,0 @@
<?php
header("Location: favicon". rand(1,8) .".ico");
return;

View File

@ -153,7 +153,7 @@
<td colspan=7 class='tbl tdbgh center fonts'>Announcements</td> <td colspan=7 class='tbl tdbgh center fonts'>Announcements</td>
</tr><tr> </tr><tr>
$tccell2>". ($loguser['lastannouncement'] < $annc['aid'] && $loguser['id'] ? $newpic : "&nbsp;") ."</td> $tccell2>". ($loguser['lastannouncement'] < $annc['aid'] && $loguser['id'] ? $newpic : "&nbsp;") ."</td>
$tccell1l colspan=6><a href=announcement.php>$annc[title]</a> -- Posted by {$userlink} on ".date($dateformat,$annc[date]+$tzoff)."</td> $tccell1l colspan=6><a href=announcement.php>$annc[title]</a> -- Posted by {$userlink} on ".date($dateformat,$annc['date']+$tzoff)."</td>
</tr>"; </tr>";
} }
if($annc = $sql->fetchq("SELECT user id,date,announcements.title,name,sex,powerlevel FROM announcements,users WHERE forum=$id AND user=users.id ORDER BY date DESC LIMIT 1")) { if($annc = $sql->fetchq("SELECT user id,date,announcements.title,name,sex,powerlevel FROM announcements,users WHERE forum=$id AND user=users.id ORDER BY date DESC LIMIT 1")) {
@ -162,7 +162,7 @@
$tccellhs colspan=7>Forum announcements</td> $tccellhs colspan=7>Forum announcements</td>
</tr><tr> </tr><tr>
$tccell2>&nbsp;</td> $tccell2>&nbsp;</td>
$tccell1l colspan=6><a href=announcement.php?f=$id>$annc[title]</a> -- Posted by {$userlink} on ".date($dateformat,$annc[date]+$tzoff)."</td> $tccell1l colspan=6><a href=announcement.php?f=$id>$annc[title]</a> -- Posted by {$userlink} on ".date($dateformat,$annc['date']+$tzoff)."</td>
</tr>"; </tr>";
} }
} }
@ -202,7 +202,7 @@
."LIMIT $min,$tpp"); ."LIMIT $min,$tpp");
else else
$threads = $sql->query("SELECT t.*," $threads = $sql->query("SELECT t.*,"
."u1.name AS name1, u1.sex AS sex1, u1.powerlevel AS pwr1, u1.aka as aka1, u1.birthday as bd1," ."u1.name AS name1, u1.sex AS sex1, u1.powerlevel AS pwr1, u1.aka as aka1, u1.birthday as bd1,"
."u2.name AS name2, u2.sex AS sex2, u2.powerlevel AS pwr2, u2.aka as aka2, u2.birthday as bd2 " ."u2.name AS name2, u2.sex AS sex2, u2.powerlevel AS pwr2, u2.aka as aka2, u2.birthday as bd2 "
.($log ? ", r.read AS tread, r.time as treadtime " : " ") .($log ? ", r.read AS tread, r.time as treadtime " : " ")
."FROM threads t " ."FROM threads t "
@ -313,7 +313,7 @@
if ($loguser['pagestyle']) if ($loguser['pagestyle'])
$belowtitle[] = "Page:{$pagelinks}"; $belowtitle[] = "Page:{$pagelinks}";
else else
$threadtitle .= " {$smallfont}(Pages:{$pagelinks})</span>"; $threadtitle .= " <span class='pagelinks fonts'>(Pages:{$pagelinks})</span>";
} }
if (!empty($belowtitle)) if (!empty($belowtitle))
@ -326,7 +326,7 @@
array('sex'=>'sex1', 'powerlevel'=>'pwr1', 'id'=>'user', 'aka'=>'aka1', 'name'=>'name1', 'birthday'=>'bd1')); array('sex'=>'sex1', 'powerlevel'=>'pwr1', 'id'=>'user', 'aka'=>'aka1', 'name'=>'name1', 'birthday'=>'bd1'));
$userlink2 = getuserlink($thread, $userlink2 = getuserlink($thread,
array('sex'=>'sex2', 'powerlevel'=>'pwr2', 'id'=>'lastposter', 'aka'=>'aka2', 'name'=>'name2', 'birthday'=>'bd2')); array('sex'=>'sex2', 'powerlevel'=>'pwr2', 'id'=>'lastposter', 'aka'=>'aka2', 'name'=>'name2', 'birthday'=>'bd2'));
$threadlist .= "<tr> $threadlist .= "<tr>
$tccell1>$new</td> $tccell1>$new</td>
$tccell2 width=40px><div style=\"max-width:60px;max-height:30px;overflow:hidden;\">$posticon</div></td> $tccell2 width=40px><div style=\"max-width:60px;max-height:30px;overflow:hidden;\">$posticon</div></td>
@ -359,4 +359,4 @@ function notAuthorizedError() {
$redir = (($log) ? 'index.php' : 'login.php'); $redir = (($log) ? 'index.php' : 'login.php');
$rtext = (($log) ? 'the index page' : 'log in (then try again)'); $rtext = (($log) ? 'the index page' : 'log in (then try again)');
errorpage("Couldn't enter this restricted forum, as you {$rreason}.", $rtext, $redir); errorpage("Couldn't enter this restricted forum, as you {$rreason}.", $rtext, $redir);
} }

View File

@ -1,28 +0,0 @@
<?php
if (!$_POST['go']) {
?>
<html>
<title> uh oh </title>
<body style="background: #000 url('images/bombbg.png'); color: #f00;">
<font style="font-family: Verdana, sans-serif;">
<center>
<br><font style="color: #f88; size: 175%;"><big><b>This site has been blocked for <i>your protection</i>.</b></big></font>
<br>
<br><font style="color: #f55;">http://insectduel.proboards82.com/ - Reason: <b>fucking stupid</b></font>
<br>
<br>If you are sure you want to visit this site (e.g., for humor), please click the button.
<br>
<br><form style="margin: 0; padding: 0;" action="idiotredir.php" method="post"><input type="submit" name="go" value="I'm sure" style="border: 1px solid #c99; background: #833; color: #fdd; font-weight: bold; font-family: Verdana, sans-serif; padding: 5px;"><input type="hidden" value="<?php print $_SERVER['QUERY_STRING']; ?>" name="url"></form>
</body>
</html>
<?php
} else {
header("Location: http://insectduel.proboards82.com". $_POST['url']);
}
?>

View File

Before

Width:  |  Height:  |  Size: 298 B

After

Width:  |  Height:  |  Size: 298 B

View File

Before

Width:  |  Height:  |  Size: 234 B

After

Width:  |  Height:  |  Size: 234 B

View File

Before

Width:  |  Height:  |  Size: 197 B

After

Width:  |  Height:  |  Size: 197 B

View File

Before

Width:  |  Height:  |  Size: 894 B

After

Width:  |  Height:  |  Size: 894 B

BIN
images/favicons/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 894 B

View File

Before

Width:  |  Height:  |  Size: 894 B

After

Width:  |  Height:  |  Size: 894 B

View File

Before

Width:  |  Height:  |  Size: 894 B

After

Width:  |  Height:  |  Size: 894 B

View File

Before

Width:  |  Height:  |  Size: 894 B

After

Width:  |  Height:  |  Size: 894 B

View File

Before

Width:  |  Height:  |  Size: 894 B

After

Width:  |  Height:  |  Size: 894 B

View File

Before

Width:  |  Height:  |  Size: 894 B

After

Width:  |  Height:  |  Size: 894 B

View File

Before

Width:  |  Height:  |  Size: 894 B

After

Width:  |  Height:  |  Size: 894 B

View File

Before

Width:  |  Height:  |  Size: 894 B

After

Width:  |  Height:  |  Size: 894 B

View File

Before

Width:  |  Height:  |  Size: 894 B

After

Width:  |  Height:  |  Size: 894 B

View File

Before

Width:  |  Height:  |  Size: 894 B

After

Width:  |  Height:  |  Size: 894 B

View File

Before

Width:  |  Height:  |  Size: 894 B

After

Width:  |  Height:  |  Size: 894 B

View File

Before

Width:  |  Height:  |  Size: 894 B

After

Width:  |  Height:  |  Size: 894 B

View File

Before

Width:  |  Height:  |  Size: 894 B

After

Width:  |  Height:  |  Size: 894 B

View File

Before

Width:  |  Height:  |  Size: 894 B

After

Width:  |  Height:  |  Size: 894 B

View File

Before

Width:  |  Height:  |  Size: 894 B

After

Width:  |  Height:  |  Size: 894 B

View File

Before

Width:  |  Height:  |  Size: 894 B

After

Width:  |  Height:  |  Size: 894 B

View File

Before

Width:  |  Height:  |  Size: 894 B

After

Width:  |  Height:  |  Size: 894 B

View File

@ -46,7 +46,7 @@
$sql->query("INSERT INTO forumread (user,forum,readdate) VALUES ($loguserid,$forumid,".ctime().')'); $sql->query("INSERT INTO forumread (user,forum,readdate) VALUES ($loguserid,$forumid,".ctime().')');
return header("Location: index.php"); return header("Location: index.php");
} }
if (filter_string($_GET['action']) == 'markallforumsread' and $log) { if (filter_string($_GET['action']) == 'markallforumsread' and $log) {
$sql->query("DELETE FROM forumread WHERE user=$loguserid"); $sql->query("DELETE FROM forumread WHERE user=$loguserid");
$sql->query("DELETE FROM `threadsread` WHERE `uid` = '$loguserid'"); $sql->query("DELETE FROM `threadsread` WHERE `uid` = '$loguserid'");
@ -64,9 +64,9 @@
$users[$user['id']]=$user; $users[$user['id']]=$user;
$y=date('Y',ctime())-date('Y',$user['birthday']); $y=date('Y',ctime())-date('Y',$user['birthday']);
$userurl = getuserlink($user); $userurl = getuserlink($user);
$blist.= "$userurl ($y)"; $blist.= "$userurl ($y)";
} }
$onlinetime=ctime()-300; $onlinetime=ctime()-300;
$onusers=$sql->query("SELECT id,name,powerlevel,lastactivity,sex,minipic,aka,birthday FROM users WHERE lastactivity>$onlinetime OR lastposttime>$onlinetime ORDER BY name"); $onusers=$sql->query("SELECT id,name,powerlevel,lastactivity,sex,minipic,aka,birthday FROM users WHERE lastactivity>$onlinetime OR lastposttime>$onlinetime ORDER BY name");
$numonline=mysql_num_rows($onusers); $numonline=mysql_num_rows($onusers);
@ -75,7 +75,7 @@
if ($numguests) $guestcount=" | <nobr>$numguests guest".($numguests>1?"s":""); if ($numguests) $guestcount=" | <nobr>$numguests guest".($numguests>1?"s":"");
$onlineusersa = array(); $onlineusersa = array();
for ($numon=0; $onuser = $sql->fetch($onusers);$numon++) { for ($numon=0; $onuser = $sql->fetch($onusers);$numon++) {
//$namecolor=explode("=", getnamecolor($onuser['sex'],$onuser['powerlevel'])); //$namecolor=explode("=", getnamecolor($onuser['sex'],$onuser['powerlevel']));
//$namecolor=$namecolor[1]; //$namecolor=$namecolor[1];
//$namelink="<a href=profile.php?id=$onuser[id] style='color: #$namecolor'>$onuser[name]</a>"; //$namelink="<a href=profile.php?id=$onuser[id] style='color: #$namecolor'>$onuser[name]</a>";
@ -89,7 +89,7 @@
if($onuser['lastactivity']<=$onlinetime) { if($onuser['lastactivity']<=$onlinetime) {
$namelink="($namelink)"; $namelink="($namelink)";
} }
$onlineusersa[]="$onuser[minipic]$namelink"; $onlineusersa[]="$onuser[minipic]$namelink";
} }
@ -112,7 +112,7 @@
$count = $sql->fetchq('SELECT (SELECT COUNT( * ) FROM users) AS u, (SELECT COUNT(*) FROM threads) as t, (SELECT COUNT(*) FROM posts) as p'); $count = $sql->fetchq('SELECT (SELECT COUNT( * ) FROM users) AS u, (SELECT COUNT(*) FROM threads) as t, (SELECT COUNT(*) FROM posts) as p');
$misc = $sql->fetchq('SELECT * FROM misc'); $misc = $sql->fetchq('SELECT * FROM misc');
if($posts['d']>$misc['maxpostsday']) $sql->query("UPDATE misc SET maxpostsday=$posts[d],maxpostsdaydate=".ctime()); if($posts['d']>$misc['maxpostsday']) $sql->query("UPDATE misc SET maxpostsday=$posts[d],maxpostsdaydate=".ctime());
if($posts['h']>$misc['maxpostshour']) $sql->query("UPDATE misc SET maxpostshour=$posts[h],maxpostshourdate=".ctime()); if($posts['h']>$misc['maxpostshour']) $sql->query("UPDATE misc SET maxpostshour=$posts[h],maxpostshourdate=".ctime());
if($numonline>$misc['maxusers']) $sql->query("UPDATE misc SET maxusers=$numonline,maxusersdate=".ctime().",maxuserstext='".addslashes($onlineusers)."'"); if($numonline>$misc['maxusers']) $sql->query("UPDATE misc SET maxusers=$numonline,maxusersdate=".ctime().",maxuserstext='".addslashes($onlineusers)."'");
@ -120,7 +120,7 @@
/*// index sparkline /*// index sparkline
$sprkq = mysql_query('SELECT COUNT(id),date FROM posts WHERE date >="'.(time()-3600).'" GROUP BY (date % 60) ORDER BY date'); $sprkq = mysql_query('SELECT COUNT(id),date FROM posts WHERE date >="'.(time()-3600).'" GROUP BY (date % 60) ORDER BY date');
$sprk = array(); $sprk = array();
while ($r = mysql_fetch_row($sprkq)) { while ($r = mysql_fetch_row($sprkq)) {
array_push($sprk,$r[0]); array_push($sprk,$r[0]);
} }
@ -204,7 +204,7 @@
// Quicker (?) new posts calculation that's hopefully accurate v.v // Quicker (?) new posts calculation that's hopefully accurate v.v
if ($log) { if ($log) {
$qadd = array(); $qadd = array();
foreach ($forums as $forum) $qadd[] = "(lastpostdate > '{$postread[$forum[id]]}' AND forum = '$forum[id]')\r\n"; foreach ($forums as $forum) $qadd[] = "(lastpostdate > '{$postread[$forum['id']]}' AND forum = '{$forum['id']}')\r\n";
$qadd = implode(' OR ', $qadd); $qadd = implode(' OR ', $qadd);
$forumnew = $sql->getresultsbykey("SELECT forum, COUNT(*) AS unread FROM threads t LEFT JOIN threadsread tr ON (tr.tid = t.id AND tr.uid = $loguser[id]) $forumnew = $sql->getresultsbykey("SELECT forum, COUNT(*) AS unread FROM threads t LEFT JOIN threadsread tr ON (tr.tid = t.id AND tr.uid = $loguser[id])
@ -279,7 +279,7 @@
} }
print "$tblend<br>$privatebox print "$tblend<br>$privatebox
". adbox() ."<br> ". adbox() ."<br>
$tblstart$forumlist$tblend$footer"; $tblstart$forumlist$tblend$footer";

View File

@ -92,7 +92,7 @@
$tccellc>Last IP</td> $tccellc>Last IP</td>
"; ";
for($c=0;$c<500 && $user=$sql->fetch($users);$c++) for($c=0;$c<500 && $user=$sql->fetch($users);$c++)
if ($users['id'] != 428) print " print "
<tr> <tr>
$tccell2>$user[id]</td> $tccell2>$user[id]</td>
$tccell1><a href=profile.php?id=$user[id]><font ".getnamecolor($user['sex'],$user['powerlevel']).">$user[name]</font></a></td> $tccell1><a href=profile.php?id=$user[id]><font ".getnamecolor($user['sex'],$user['powerlevel']).">$user[name]</font></a></td>
@ -115,7 +115,6 @@
$tccellc>IP</td> $tccellc>IP</td>
"; ";
for($c=0;$c<500 && $post=$sql->fetch($posts);$c++) for($c=0;$c<500 && $post=$sql->fetch($posts);$c++)
if ($post['user'] != 428)
print " print "
<tr> <tr>
$tccell2>$post[id]</td> $tccell2>$post[id]</td>
@ -138,7 +137,6 @@
$tccellc>IP</td> $tccellc>IP</td>
"; ";
for($c=0;$c<500 && $pmsg=$sql->fetch($pmsgs);$c++) for($c=0;$c<500 && $pmsg=$sql->fetch($pmsgs);$c++)
if ($pmsg['userfrom'] != 428 && $pmsg['userto'] != 428)
print " print "
<tr> <tr>
$tccell2>$pmsg[id]</td> $tccell2>$pmsg[id]</td>
@ -154,4 +152,4 @@
} }
print $tblend.$footer; print $tblend.$footer;
printtimedif($startingtime); printtimedif($startingtime);
?> ?>

View File

@ -1,6 +1,6 @@
<html><head><title>The COM Port -- Down</title> <html><head><title>The COM Port -- Down</title>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"> <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<style> <style>
a:link,a:visited,a:active,a:hover{text-decoration:none;font-weight:bold} a:link,a:visited,a:active,a:hover{text-decoration:none;font-weight:bold}
a { a {
@ -52,9 +52,9 @@
} }
code br { display: none; } code br { display: none; }
input[type=radio] { color: black; background: white; } input[type=radio] { color: black; background: white; }
</style><!--[if IE]><style type='text/css'>#f_ikachan, #f_doomcounter, #f_mustbeblind { display: none; }</style><![endif]--> </style><!--[if IE]><style type='text/css'>#f_ikachan, #f_doomcounter, #f_mustbeblind { display: none; }</style><![endif]-->
</head> </head>
<body> <body>
<center> <center>
@ -83,4 +83,4 @@
die(); die();
?> ?>

View File

@ -1,7 +1,7 @@
<?php <?php
header("HTTP/1.1 503 Service Unavailable"); header("HTTP/1.1 503 Service Unavailable");
?><html><head><title>Jul -- Temporarily down</title> ?><html><head><title>Jul -- Temporarily down</title>
<link rel="shortcut icon" href="/favicon3x.ico" type="image/x-icon"> <link rel="shortcut icon" href="/images/favicons/favicon3.ico" type="image/x-icon">
<style> <style>
a:link,a:visited,a:active,a:hover{text-decoration:none;font-weight:bold} a:link,a:visited,a:active,a:hover{text-decoration:none;font-weight:bold}
a { a {
@ -52,7 +52,7 @@
display: block; display: block;
} }
code br { display: none; } code br { display: none; }
textarea,input,select{ textarea,input,select{
border: #663399 solid 1px; border: #663399 solid 1px;
background:#000000; background:#000000;
@ -67,7 +67,7 @@
border: #663399 solid 2px; border: #663399 solid 2px;
font: 10pt verdana;} font: 10pt verdana;}
</style> </style>
</head> </head>
<body> <body>
<center> <center>
@ -94,4 +94,4 @@
</body></html> </body></html>
<?php <?php
die(); die();
?> ?>

View File

@ -3,7 +3,7 @@
http_response_code(500); http_response_code(500);
?><html><head><title>Jul is offline for now</title> ?><html><head><title>Jul is offline for now</title>
<link rel="shortcut icon" href="/favicon3.ico" type="image/x-icon"> <link rel="shortcut icon" href="/images/favicons/favicon3.ico" type="image/x-icon">
<style> <style>
a:link,a:visited,a:active,a:hover{text-decoration:none;font-weight:bold} a:link,a:visited,a:active,a:hover{text-decoration:none;font-weight:bold}
a { a {
@ -54,7 +54,7 @@
display: block; display: block;
} }
code br { display: none; } code br { display: none; }
textarea,input,select{ textarea,input,select{
border: #663399 solid 1px; border: #663399 solid 1px;
background:#000000; background:#000000;
@ -69,7 +69,7 @@
border: #663399 solid 2px; border: #663399 solid 2px;
font: 10pt verdana;} font: 10pt verdana;}
</style> </style>
</head> </head>
<body> <body>
<center> <center>
@ -93,4 +93,4 @@
die(); die();
?> ?>

View File

@ -537,7 +537,6 @@ function doreplace2($msg, $options='0|0'){
$msg=preg_replace("'\[url\](.*?)\[/url\]'si", '<a href=\\1>\\1</a>', $msg); $msg=preg_replace("'\[url\](.*?)\[/url\]'si", '<a href=\\1>\\1</a>', $msg);
$msg=preg_replace("'\[url=(.*?)\](.*?)\[/url\]'si", '<a href=\\1>\\2</a>', $msg); $msg=preg_replace("'\[url=(.*?)\](.*?)\[/url\]'si", '<a href=\\1>\\2</a>', $msg);
$msg=str_replace('http://nightkev.110mb.com/justus_layout.css','about:blank',$msg); $msg=str_replace('http://nightkev.110mb.com/justus_layout.css','about:blank',$msg);
$msg=preg_replace("'\[youtube\]([a-zA-Z0-9_-]{11})\[/youtube\]'si", '<iframe src="https://www.youtube.com/embed/\1" width="560" height="315" frameborder="0" allowfullscreen="allowfullscreen"></iframe>', $msg);
do { do {
@ -1195,35 +1194,7 @@ function include_js($fn, $as_tag = false) {
function dofilters($p){ function dofilters($p){
global $hacks; global $hacks;
$temp = $p; $temp = $p;
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);
} else {
$p=preg_replace("'onload'si",'onl<z>oad',$p);
$p=preg_replace("'onerror'si",'oner<z>ror',$p);
$p=preg_replace("'onunload'si",'onun<z>load',$p);
$p=preg_replace("'onchange'si",'onch<z>ange',$p);
$p=preg_replace("'onsubmit'si",'onsu<z>bmit',$p);
$p=preg_replace("'onreset'si",'onr<z>eset',$p);
$p=preg_replace("'onselect'si",'ons<z>elect',$p);
$p=preg_replace("'onblur'si",'onb<z>lur',$p);
$p=preg_replace("'onfocus'si",'onfo<z>cus',$p);
$p=preg_replace("'onclick'si",'oncl<z>ick',$p);
$p=preg_replace("'ondblclick'si",'ondbl<z>click',$p);
$p=preg_replace("'onmousedown'si",'onm<z>ousedown',$p);
$p=preg_replace("'onmousemove'si",'onmou<z>semove',$p);
$p=preg_replace("'onmouseout'si",'onmou<z>seout',$p);
$p=preg_replace("'onmouseover'si",'onmo<z>useover',$p);
$p=preg_replace("'onmouseup'si",'onmou<z>seup',$p);
}
//$p=preg_replace("'<object(.*?)</object>'si","",$p);
//$p=preg_replace("'autoplay'si",'',$p); // kills autoplay, need to think of a solution for embeds.
// Absolute allowed now alongside position:relative div
//$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("'position\s*:\s*fixed'si", "display:none", $p);
@ -1244,53 +1215,74 @@ function dofilters($p){
$p=preg_replace("':trolldra:'si", '<img src="/images/trolldra.png">', $p); $p=preg_replace("':trolldra:'si", '<img src="/images/trolldra.png">', $p);
$p=preg_replace("':reggie:'si",'<img src=http://xkeeper.net/img/reggieshrug.jpg title="REGGIE!">',$p); $p=preg_replace("':reggie:'si",'<img src=http://xkeeper.net/img/reggieshrug.jpg title="REGGIE!">',$p);
// $p=preg_replace("'drama'si", 'batter blaster', $p);
// $p=preg_replace("'TheKinoko'si", 'MY NAME MEANS MUSHROOM... IN <i>JAPANESE!</i> HOLY SHIT GUYS THIS IS <i>INCREDIBLE</i>!!!!!!!!!', $p);
// $p=preg_replace("'hopy'si",'I am a dumb',$p);
$p=preg_replace("'crashdance'si",'CrashDunce',$p);
$p=preg_replace("'get blue spheres'si",'HI EVERYBODY I\'M A RETARD PLEASE BAN ME',$p);
$p=preg_replace("'zeon'si",'shit',$p); $p=preg_replace("'zeon'si",'shit',$p);
$p=preg_replace("'faith in humanity'si",'IQ',$p);
// $p=preg_replace("'motorcycles'si",'<img src="images/cardgames.png" align="absmiddle" title="DERP DERP DERP">',$p);
// $p=preg_replace("'card games'si",'<img src="images/motorcycles.png" align="absmiddle" title="GET BLUE SPHERES">',$p);
// $p=preg_replace("'touhou'si", "Baby's First Bullet Hell&trade;", $p);
// $p=preg_replace("'nintendo'si",'grandma',$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 (filter_bool($hacks['comments'])) { if (filter_bool($hacks['comments'])) {
$p=str_replace("<!--", '<font color=#80ff80>&lt;!--', $p); $p=str_replace("<!--", '<font color=#80ff80>&lt;!--', $p);
$p=str_replace("-->", '--&gt;</font>', $p); $p=str_replace("-->", '--&gt;</font>', $p);
} }
$p=preg_replace("'(https?://.*?photobucket.com/)'si",'images/photobucket.png#\\1',$p); $p=preg_replace("'(https?://.*?photobucket.com/)'si",'images/photobucket.png#\\1',$p);
$p=str_replace("http://insectduel.proboards82.com","http://jul.rustedlogic.net/idiotredir.php?",$p);
// $p=str_replace("http://imageshack.us", "imageshit", $p);
$p=preg_replace("'http://.{0,3}\.?tinypic\.com'si",'tinyshit',$p); $p=preg_replace("'http://.{0,3}\.?tinypic\.com'si",'tinyshit',$p);
$p=str_replace('<link href="http://pieguy1372.freeweb7.com/misc/piehills.css" rel="stylesheet">',"",$p); $p=str_replace('<link href="http://pieguy1372.freeweb7.com/misc/piehills.css" rel="stylesheet">',"",$p);
$p=str_replace("tabindex=\"0\" ","title=\"the owner of this button is a fucking dumbass\" ",$p); $p=str_replace("tabindex=\"0\" ","title=\"the owner of this button is a fucking dumbass\" ",$p);
$p=str_replace("%WIKISTATSFRAME%","<div id=\"widgetIframe\"><iframe width=\"600\" height=\"260\" src=\"http://stats.rustedlogic.net/index.php?module=Widgetize&action=iframe&moduleToWidgetize=VisitsSummary&actionToWidgetize=getSparklines&idSite=2&period=day&date=today&disableLink=1\" scrolling=\"no\" frameborder=\"0\" marginheight=\"0\" marginwidth=\"0\"></iframe></div>",$p);
$p=str_replace("%WIKISTATSFRAME2%", '<div id="widgetIframe"><iframe width="100%" height="600" src="http://stats.rustedlogic.net/index.php?module=Widgetize&action=iframe&moduleToWidgetize=Referers&actionToWidgetize=getWebsites&idSite=2&period=day&date=2010-10-12&disableLink=1" scrolling="no" frameborder="0" marginheight="0" marginwidth="0"></iframe></div>', $p);
// $p=str_replace("http://xkeeper.shacknet.nu:5/", 'http://xchan.shacknet.nu:5/', $p); // $p=str_replace("http://xkeeper.shacknet.nu:5/", 'http://xchan.shacknet.nu:5/', $p);
// $p=preg_replace("'<style'si",'&lt;style',$p); // $p=preg_replace("'<style'si",'&lt;style',$p);
//$p=preg_replace("'%BZZZ%'si",'onclick="bzzz(',$p); //$p=preg_replace("'%BZZZ%'si",'onclick="bzzz(',$p);
/*
$p=preg_replace("'document.cookie'si",'document.co<z>okie',$p); $p=preg_replace("'document.cookie'si",'document.co<z>okie',$p);
$p=preg_replace("'eval'si",'eva<z>l',$p); $p=preg_replace("'eval'si",'eva<z>l',$p);
// $p=preg_replace("'document.'si",'docufail.',$p);
$p=preg_replace("'<script'si",'<<z>script',$p); $p=preg_replace("'<script'si",'<<z>script',$p);
$p=preg_replace("'</script'si",'<<z>/script',$p); $p=preg_replace("'</script'si",'<<z>/script',$p);
$p=preg_replace("'javascript:'si",'javasc<z>ript:',$p); $p=preg_replace("'javascript:'si",'javasc<z>ript:',$p);
$p=preg_replace("'<iframe(?! src=\"https://www.youtube.com/embed/)'si",'<<z>iframe',$p); $p=preg_replace("'<iframe(?! src=\"https://www.youtube.com/embed/)'si",'<<z>iframe',$p);
$p=preg_replace("'<meta'si",'<<z>meta',$p); $p=preg_replace("'<meta'si",'<<z>meta',$p);
*/
$p = xss_clean($p);
$p =preg_replace("'\[youtube\]([a-zA-Z0-9_-]{11})\[/youtube\]'si", '<iframe src="https://www.youtube.com/embed/\1" width="560" height="315" frameborder="0" allowfullscreen="allowfullscreen"></iframe>', $p);
return $p; return $p;
} }
// https://stackoverflow.com/questions/1336776/xss-filtering-function-in-php
function xss_clean($data) {
// Fix &entity\n;
$data = str_replace(array('&amp;','&lt;','&gt;'), array('&amp;amp;','&amp;lt;','&amp;gt;'), $data);
$data = preg_replace('/(&#*\w+)[\x00-\x20]+;/u', '$1;', $data);
$data = preg_replace('/(&#x*[0-9A-F]+);*/iu', '$1;', $data);
$data = html_entity_decode($data, ENT_COMPAT, 'UTF-8');
// Remove any attribute starting with "on" or xmlns
#$data = preg_replace('#(<[^>]+?[\x00-\x20"\'])(?:on|xmlns)[^>]*+>#iu', '$1>', $data);
do {
$old_data = $data;
$data = preg_replace('#(<[^>]+?[\x00-\x20"\'])(on|xmlns)([^>]*+)>#iu', '$1DISABLED_$2$3>', $data);
} while ($old_data !== $data);
// Remove javascript: and vbscript: protocols
$data = preg_replace('#([a-z]*)[\x00-\x20]*=[\x00-\x20]*([`\'"]*)[\x00-\x20]*j[\x00-\x20]*a[\x00-\x20]*v[\x00-\x20]*a[\x00-\x20]*s[\x00-\x20]*c[\x00-\x20]*r[\x00-\x20]*i[\x00-\x20]*p[\x00-\x20]*t[\x00-\x20]*:#iu', '$1=$2nojavascript...', $data);
$data = preg_replace('#([a-z]*)[\x00-\x20]*=([\'"]*)[\x00-\x20]*v[\x00-\x20]*b[\x00-\x20]*s[\x00-\x20]*c[\x00-\x20]*r[\x00-\x20]*i[\x00-\x20]*p[\x00-\x20]*t[\x00-\x20]*:#iu', '$1=$2novbscript...', $data);
$data = preg_replace('#([a-z]*)[\x00-\x20]*=([\'"]*)[\x00-\x20]*-moz-binding[\x00-\x20]*:#u', '$1=$2nomozbinding...', $data);
// Remove namespaced elements (we do not need them)
$data = preg_replace('#</*\w+:\w[^>]*+>#i', '', $data);
do {
// Remove really unwanted tags
$old_data = $data;
$data = preg_replace('#<(/*(?:applet|b(?:ase|gsound)|embed|frame(?:set)?|i(?:frame|layer)|layer|meta|object|script|title|xml)[^>]*+)>#i', '&lt;$1&gt;', $data);
} while ($old_data !== $data);
return $data;
}
require 'lib/threadpost.php'; require 'lib/threadpost.php';
// require 'lib/replytoolbar.php'; // require 'lib/replytoolbar.php';
@ -1421,9 +1413,6 @@ function addslashes_array($data) {
return "<marquee scrollamount='". mt_rand(1, 50) ."' scrolldelay='". mt_rand(1, 50) ."' direction='". pick_any(array("left", "right")) ."'>$str</marquee>"; return "<marquee scrollamount='". mt_rand(1, 50) ."' scrolldelay='". mt_rand(1, 50) ."' direction='". pick_any(array("left", "right")) ."'>$str</marquee>";
} }
// additional includes
require_once "lib/datetime.php";
function unescape($in) { function unescape($in) {

View File

@ -221,7 +221,6 @@
- <a href='online.php'>Online users</a><br> - <a href='online.php'>Online users</a><br>
<a href='ranks.php'>Ranks</a> <a href='ranks.php'>Ranks</a>
- <a href='faq.php'>Rules/FAQ</a> - <a href='faq.php'>Rules/FAQ</a>
- <a href='acs.php'>JCS</a>
- <a href='stats.php'>Stats</a> - <a href='stats.php'>Stats</a>
- <a href='latestposts.php'>Latest Posts</a> - <a href='latestposts.php'>Latest Posts</a>
- <a href='hex.php' title='Color Chart' class='popout' target='_blank'>Color Chart</a> - <a href='hex.php' title='Color Chart' class='popout' target='_blank'>Color Chart</a>
@ -353,7 +352,7 @@
$header1="<html><head><meta http-equiv='Content-type' content='text/html; charset=utf-8'><meta name='viewport' content='width=device-width, initial-scale=1'><title>$windowtitle</title> $header1="<html><head><meta http-equiv='Content-type' content='text/html; charset=utf-8'><meta name='viewport' content='width=device-width, initial-scale=1'><title>$windowtitle</title>
$metatag $metatag
<link rel=\"shortcut icon\" href=\"/favicon". (!$x_hacks['host'] ? rand(1,8) ."" : "" ) .".ico\" type=\"image/x-icon\"> <link rel=\"shortcut icon\" href=\"/images/favicons/favicon". (!$x_hacks['host'] ? rand(1,8) ."" : "" ) .".ico\" type=\"image/x-icon\">
$css $css
</head> </head>
$body $body
@ -412,8 +411,8 @@
} }
*/ */
//if ($loguserid != 3 && $loguserid != 2) //if ($loguserid != 3 && $loguserid != 2)
if (($loguser['powerlevel'] <= 5) and (!IS_AJAX_REQUEST)) { if (($loguser['powerlevel'] <= 5) && (!defined("IS_AJAX_REQUEST") || !IS_AJAX_REQUEST)) {
$influencelv=calclvl(calcexp($loguser[posts],(ctime()-$loguser[regdate])/86400)); $influencelv=calclvl(calcexp($loguser['posts'],(ctime()-$loguser['regdate'])/86400));
// Alart #defcon? // Alart #defcon?
if ($loguser['lastip'] != $_SERVER['REMOTE_ADDR']) { if ($loguser['lastip'] != $_SERVER['REMOTE_ADDR']) {

View File

@ -20,8 +20,8 @@
function getstats($u, $items=0, $class = 0){ function getstats($u, $items=0, $class = 0){
$stat=array('HP','MP','Atk','Def','Int','MDf','Dex','Lck','Spd'); $stat=array('HP','MP','Atk','Def','Int','MDf','Dex','Lck','Spd');
$p=$u[posts]; $p=$u['posts'];
$d=(ctime()-$u[regdate])/86400; $d=(ctime()-$u['regdate'])/86400;
for($i=0;$i<9;$i++) { for($i=0;$i<9;$i++) {
$m[$i]=1; $m[$i]=1;
} }
@ -29,7 +29,7 @@
$item=$items[$u['eq'.$i]]; $item=$items[$u['eq'.$i]];
for($k=0;$k<9;$k++){ for($k=0;$k<9;$k++){
$is=$item['s'.$stat[$k]]; $is=$item['s'.$stat[$k]];
if(substr($item[stype],$k,1)=='m') $m[$k]*=$is/100; if(substr($item['stype'],$k,1)=='m') $m[$k]*=$is/100;
else $a[$k]+=$is; else $a[$k]+=$is;
} }
} }
@ -44,9 +44,9 @@
} }
} }
$stats[GP]=coins($p,$d)-$u[spent]; $stats['GP']=coins($p,$d)-$u['spent'];
$stats[exp]=calcexp($p,$d); $stats['exp']=calcexp($p,$d);
$stats[lvl]=calclvl($stats[exp]); $stats['lvl']=calclvl($stats['exp']);
return $stats; return $stats;
} }
function coins($p,$d){ function coins($p,$d){
@ -66,4 +66,3 @@
case 7: return (pow($p,0.07) * pow($d,0.20) * pow($l,1.09) * 0.29) + 1; //Int case 7: return (pow($p,0.07) * pow($d,0.20) * pow($l,1.09) * 0.29) + 1; //Int
case 8: return (pow($p,0.19) * pow($d,0.07) * pow($l,1.09) * 0.25) + 1; //Spd case 8: return (pow($p,0.19) * pow($d,0.07) * pow($l,1.09) * 0.25) + 1; //Spd
*/ */

View File

@ -31,7 +31,7 @@
if ($forum['nopolls'] && $poll) { if ($forum['nopolls'] && $poll) {
print "$header print "$header
<br> <br>
$tblstart $tblstart
$tccell1> $tccell1>
A for effort, but F for still failing. A for effort, but F for still failing.
</td> </td>
@ -117,7 +117,7 @@
$inpc=\"nohtml\" id=\"nohtml\" value=\"1\"$nohtmlchk><label for=\"nohtml\">Disable HTML</label></td></tr><tr> $inpc=\"nohtml\" id=\"nohtml\" value=\"1\"$nohtmlchk><label for=\"nohtml\">Disable HTML</label></td></tr><tr>
<!-- </FORM> --> <!-- </FORM> -->
"); ");
if(!$_POST[action] or $_POST[paction]) { if(!$_POST['action'] or $_POST['paction']) {
print " print "
$fonttag<a href=index.php>$boardname</a> - <a href=forum.php?id=$forumid>".$forum[title]."</a> $fonttag<a href=index.php>$boardname</a> - <a href=forum.php?id=$forumid>".$forum[title]."</a>
<form action=newthread.php name=replier method=post autocomplete=\"off\"> <form action=newthread.php name=replier method=post autocomplete=\"off\">
@ -125,7 +125,7 @@
"; ";
if($log and $forums[$id][minpowerthread]>$power) { if($log and $forums[$id][minpowerthread]>$power) {
print "$tccell1>Sorry, but you are not allowed to post"; print "$tccell1>Sorry, but you are not allowed to post";
if($banned) print ", because you are banned from this board.<br>".redirect("forum.php?id=$id",'return to the forum',0); if($banned) print ", because you are banned from this board.<br>".redirect("forum.php?id=$id",'return to the forum',0);
else print ' in this restricted forum.<br>'.redirect('index.php','return to the board',0); else print ' in this restricted forum.<br>'.redirect('index.php','return to the board',0);
} }
else { else {
@ -163,7 +163,7 @@
$fonttag<a href=index.php>$boardname</a> - <a href=forum.php?id=$forumid>".$forum[title]."</a> $fonttag<a href=index.php>$boardname</a> - <a href=forum.php?id=$forumid>".$forum[title]."</a>
".replytoolbar(4); ".replytoolbar(4);
} }
if($_POST[action]=='postthread' and !$_POST[paction]) { if($_POST['action']=='postthread' and !$_POST['paction']) {
print "<br>$tblstart"; print "<br>$tblstart";
if ($log && !$password) if ($log && !$password)
$userid = $loguserid; $userid = $loguserid;
@ -171,25 +171,14 @@
$userid = checkuser($username,$password); $userid = checkuser($username,$password);
$user=$sql->fetchq("SELECT * FROM users WHERE id=$userid"); $user=$sql->fetchq("SELECT * FROM users WHERE id=$userid");
if($user[powerlevel]<0) $userid=-1; if($user['powerlevel']<0) $userid=-1;
// can't be posting too fast now // can't be posting too fast now
$limithit = $user[lastposttime] < (ctime()-30); $limithit = $user['lastposttime'] < (ctime()-30);
// can they post in this forum? // can they post in this forum?
$authorized = $user[powerlevel] >= $forum[minpowerthread]; $authorized = $user['powerlevel'] >= $forum['minpowerthread'];
// does the forum exist? // does the forum exist?
$forumexists = $forum[title]; $forumexists = $forum['title'];
// ---
// lol i'm eminem
if (strpos($message , '[Verse ') !== FALSE) {
$authorized = false;
@$sql->query("INSERT INTO `ipbans` SET `ip` = '". $_SERVER['REMOTE_ADDR'] ."', `date` = '". ctime() ."', `reason` = 'Listen to some good music for a change.'");
if ($_COOKIE['loguserid'] > 0)
@$sql->query("UPDATE `users` SET `powerlevel` = '-2' WHERE `id` = {$_COOKIE['loguserid']}");
xk_ircsend("1|". xk(7) ."Auto-banned another Eminem wannabe with IP ". xk(8) . $_SERVER['REMOTE_ADDR'] . xk(7) .".");
}
// ---
if($userid!=-1 && $subject && $message && $forumexists && $authorized && $limithit) { if($userid!=-1 && $subject && $message && $forumexists && $authorized && $limithit) {
$msg=$message; $msg=$message;
@ -203,8 +192,8 @@
$sign = "$sign</td></table>"; $sign = "$sign</td></table>";
} }
$numposts = $user[posts] + 1; $numposts = $user['posts'] + 1;
$numdays = (ctime()-$user[regdate])/86400; $numdays = (ctime()-$user['regdate'])/86400;
$tags = array(); $tags = array();
$msg = doreplace($msg, $numposts, $numdays, $username, $tags); $msg = doreplace($msg, $numposts, $numdays, $username, $tags);
$rsign = doreplace($sign, $numposts, $numdays, $username); $rsign = doreplace($sign, $numposts, $numdays, $username);
@ -273,7 +262,7 @@
} }
else { else {
if($posticon) $posticon1="<img src='". stripslashes($posticon) ."' height=15 align=absmiddle>"; if($posticon) $posticon1="<img src='". stripslashes($posticon) ."' height=15 align=absmiddle>";
if($poll) { if($poll) {
for($c=1;$chtext[$c];$c++) { for($c=1;$chtext[$c];$c++) {
$chtext[$c]=stripslashes($chtext[$c]); $chtext[$c]=stripslashes($chtext[$c]);
@ -344,7 +333,7 @@
if (!$message) $reason = "You haven't entered a message."; if (!$message) $reason = "You haven't entered a message.";
if (!$subject) $reason = "You haven't entered a subject."; if (!$subject) $reason = "You haven't entered a subject.";
if (!$authorized) $reason = "You aren't allowed to post in this forum."; if (!$authorized) $reason = "You aren't allowed to post in this forum.";
print " print "
$tccell1>Couldn't post the thread. $reason $tccell1>Couldn't post the thread. $reason
<br>".redirect("forum.php?id=$id", $forum[title], 2).$tblend; <br>".redirect("forum.php?id=$id", $forum[title], 2).$tblend;

View File

Before

Width:  |  Height:  |  Size: 273 B

After

Width:  |  Height:  |  Size: 273 B

View File

@ -13,7 +13,7 @@
$img = imagecreate(26 * $l, 28); $img = imagecreate(26 * $l, 28);
$bg = imagecolorallocate($img, 5, 5, 5); $bg = imagecolorallocate($img, 5, 5, 5);
$num = imagecreatefrompng("digits.png"); $num = imagecreatefrompng("numgfx/bigdigits.png");
$o = $p; $o = $p;
$na = str_split($n); $na = str_split($n);
@ -21,14 +21,13 @@
$x = intval($x); $x = intval($x);
$y = floor($x / 5) * 28; $y = floor($x / 5) * 28;
$x = ($x % 5) * 26; $x = ($x % 5) * 26;
imagecopy($img, $num, $o * 26, 0, $x, $y, 26, 28); imagecopy($img, $num, $o * 26, 0, $x, $y, 26, 28);
$o++; $o++;
} }
imagecolortransparent($img, $bg); imagecolortransparent($img, $bg);
header("Content-type: image/png"); header("Content-type: image/png");
imagepng($img); imagepng($img);
imagedestroy($img); imagedestroy($img);
imagedestroy($num); imagedestroy($num);

View File

@ -1,11 +0,0 @@
<?php
require 'lib/function.php';
require 'lib/layout.php';
if (!$isadmin) { die(); }
print "$header<br>";
print adminlinkbar("perfdata.php");

View File

@ -37,7 +37,7 @@
$numvotes=mysql_num_rows($ratings); $numvotes=mysql_num_rows($ratings);
if($ratetotal) { if($ratetotal) {
$ratingstatus=(floor($ratescore*1000/$ratetotal)/100)." ($ratescore/$ratetotal, $numvotes votes)"; $ratingstatus=(floor($ratescore*1000/$ratetotal)/100)." ($ratescore/$ratetotal, $numvotes votes)";
} else { } else {
$ratingstatus="None"; $ratingstatus="None";
} }
if($loguserid and $logpwenc and $loguserid!=$id) if($loguserid and $logpwenc and $loguserid!=$id)
@ -77,7 +77,7 @@
} }
} }
$aim=str_replace(" ","+",$user[aim]); $aim=str_replace(" ","+",$user['aim']);
$schname=$sql->resultq("SELECT name FROM schemes WHERE id=$user[scheme]"); $schname=$sql->resultq("SELECT name FROM schemes WHERE id=$user[scheme]");
$numdays=(ctime()-$user['regdate'])/86400; $numdays=(ctime()-$user['regdate'])/86400;
@ -85,17 +85,17 @@
// $user['signature']=doreplace2($user['signature'],$user['posts'],$numdays,$user['name']); // $user['signature']=doreplace2($user['signature'],$user['posts'],$numdays,$user['name']);
$user['postheader']=doreplace($user['postheader'],$user['posts'],$numdays,$user['name']); $user['postheader']=doreplace($user['postheader'],$user['posts'],$numdays,$user['name']);
// $user['postheader']=doreplace2($user['postheader'],$user['posts'],$numdays,$user['name']); // $user['postheader']=doreplace2($user['postheader'],$user['posts'],$numdays,$user['name']);
if ($user['picture']) $picture = "<img src=\"$user[picture]\">"; if ($user['picture']) $picture = "<img src=\"$user[picture]\">";
if ($user['moodurl']) $moodavatar = " | <a href='avatar.php?id=$id' class=\"popout\" target=\"_blank\">Preview mood avatar</a>"; if ($user['moodurl']) $moodavatar = " | <a href='avatar.php?id=$id' class=\"popout\" target=\"_blank\">Preview mood avatar</a>";
$icqicon="<a href=http://wwp.icq.com/$user[icq]#pager><img src=http://wwp.icq.com/scripts/online.dll?icq=$user[icq]&img=5 border=0></a>"; $icqicon="<a href=http://wwp.icq.com/$user[icq]#pager><img src=http://wwp.icq.com/scripts/online.dll?icq=$user[icq]&img=5 border=0></a>";
if(!$user['icq']){ if(!$user['icq']){
$user['icq']=""; $user['icq']="";
$icqicon=""; $icqicon="";
} }
$tccellha="<td bgcolor=$tableheadbg"; $tccellha="<td bgcolor=$tableheadbg";
$tccellhb="><center>$fonthead"; $tccellhb="><center>$fonthead";
@ -107,9 +107,9 @@
$tzoffset=$user['timezone']; $tzoffset=$user['timezone'];
$tzoffrel=$tzoffset-$loguser['timezone']; $tzoffrel=$tzoffset-$loguser['timezone'];
$tzdate=date($dateformat,ctime()+$tzoffset*3600); $tzdate=date($dateformat,ctime()+$tzoffset*3600);
if($user[birthday]){ if($user['birthday']){
$birthday=date("l, F j, Y",$user[birthday]); $birthday=date("l, F j, Y",$user['birthday']);
$age="(".floor((ctime()-$user[birthday])/86400/365.2425)." years old)"; $age="(".floor((ctime()-$user['birthday'])/86400/365.2425)." years old)";
} }
// RPG fun shit // RPG fun shit
@ -117,10 +117,10 @@
$lvl=calclvl($exp); $lvl=calclvl($exp);
$expleft=calcexpleft($exp); $expleft=calcexpleft($exp);
$expstatus="Level: $lvl<br>EXP: $exp (for next level: $expleft)"; $expstatus="Level: $lvl<br>EXP: $exp (for next level: $expleft)";
if($user['posts'] > 0) $expstatus.="<br>Gain: ".calcexpgainpost($user['posts'],(ctime()-$user['regdate'])/86400)." EXP per post, ".calcexpgaintime($user[posts],(ctime()-$user[regdate])/86400)." seconds to gain 1 EXP when idle"; if($user['posts'] > 0) $expstatus.="<br>Gain: ".calcexpgainpost($user['posts'],(ctime()-$user['regdate'])/86400)." EXP per post, ".calcexpgaintime($user['posts'],(ctime()-$user['regdate'])/86400)." seconds to gain 1 EXP when idle";
$postavg=sprintf("%01.2f",$user[posts]/(ctime()-$user[regdate])*86400); $postavg=sprintf("%01.2f",$user['posts']/(ctime()-$user['regdate'])*86400);
$totalwidth=116; $totalwidth=116;
$barwidth=@floor(($user[posts]/$maxposts)*$totalwidth); $barwidth=@floor(($user['posts']/$maxposts)*$totalwidth);
if($barwidth<0) $barwidth=0; if($barwidth<0) $barwidth=0;
if($barwidth) $baron="<img src=images/$numdir"."bar-on.gif width=$barwidth height=8>"; if($barwidth) $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>"; if($barwidth<$totalwidth) $baroff="<img src=images/$numdir"."bar-off.gif width=".($totalwidth-$barwidth)." height=8>";
@ -131,7 +131,7 @@
if(!$user['posts'] or $user['posts']>=$topposts or $projdate>2000000000 or $projdate<ctime()) $projdate=""; if(!$user['posts'] or $user['posts']>=$topposts or $projdate>2000000000 or $projdate<ctime()) $projdate="";
else $projdate=" -- Projected date for $topposts posts: ".date($dateformat,$projdate+$tzoff); else $projdate=" -- Projected date for $topposts posts: ".date($dateformat,$projdate+$tzoff);
if($user['minipic']) $minipic="<img src=\"". htmlspecialchars($user[minipic]) ."\" width=16 height=16 align=absmiddle> "; if($user['minipic']) $minipic="<img src=\"". htmlspecialchars($user['minipic']) ."\" width=16 height=16 align=absmiddle> ";
$homepagename=$user['homepageurl']; $homepagename=$user['homepageurl'];
if($user['homepagename']) $homepagename="$user[homepagename]</a> - $user[homepageurl]"; if($user['homepagename']) $homepagename="$user[homepagename]</a> - $user[homepageurl]";
if($user['postbg']) $postbg="<div style='background:url($user[postbg]);' height=100%>"; if($user['postbg']) $postbg="<div style='background:url($user[postbg]);' height=100%>";
@ -181,9 +181,9 @@ $tblstart
$tccell1l width=150><b>Total threads</td> $tccell2l>$threadsposted<tr> $tccell1l width=150><b>Total threads</td> $tccell2l>$threadsposted<tr>
$tccell1l width=150><b>EXP</td> $tccell2l>$expstatus<tr> $tccell1l width=150><b>EXP</td> $tccell2l>$expstatus<tr>
". (false ? " $tccell1l width=150><b>User rating</td> $tccell2l>$ratingstatus<tr>" : "") ." ". (false ? " $tccell1l width=150><b>User rating</td> $tccell2l>$ratingstatus<tr>" : "") ."
$tccell1l width=150><b>Registered on</td> $tccell2l>".@date($dateformat,$user[regdate]+$tzoff)." (".floor((ctime()-$user[regdate])/86400)." days ago)<tr> $tccell1l width=150><b>Registered on</td> $tccell2l>".@date($dateformat,$user['regdate']+$tzoff)." (".floor((ctime()-$user['regdate'])/86400)." days ago)<tr>
$tccell1l width=150><b>Last post</td> $tccell2l>$lastpostdate$lastpostlink<tr> $tccell1l width=150><b>Last post</td> $tccell2l>$lastpostdate$lastpostlink<tr>
$tccell1l width=150><b>Last activity</td> $tccell2l>".date($dateformat,$user[lastactivity]+$tzoff)."$lastip<tr> $tccell1l width=150><b>Last activity</td> $tccell2l>".date($dateformat,$user['lastactivity']+$tzoff)."$lastip<tr>
$tblend $tblend
<br>$tblstart <br>$tblstart
$tccellh colspan=2><center>Contact information<tr> $tccellh colspan=2><center>Contact information<tr>
@ -222,7 +222,7 @@ $tblend
<br>$tblstart <br>$tblstart
$tccellhs colspan=2><center>Options<tr> $tccellhs colspan=2><center>Options<tr>
$tccell2s colspan=2> $tccell2s colspan=2>
<a href=thread.php?user=$id>Show posts</a> | <a href=thread.php?user=$id>Show posts</a> |
<a href=forum.php?user=$id>View threads by this user</a> <a href=forum.php?user=$id>View threads by this user</a>
$sendpmsg $sendpmsg
$ratelink $ratelink
@ -231,7 +231,7 @@ $tblend
$tccell2s colspan=2> $tccell2s colspan=2>
<a href=postsbyuser.php?id=$id>List posts by this user</a> | <a href=postsbyuser.php?id=$id>List posts by this user</a> |
<a href=postsbytime.php?id=$id>Posts by time of day</a> | <a href=postsbytime.php?id=$id>Posts by time of day</a> |
<a href=postsbythread.php?id=$id>Posts by thread</a> | <a href=postsbythread.php?id=$id>Posts by thread</a> |
<a href=postsbyforum.php?id=$id>Posts by forum</td>$sneek <a href=postsbyforum.php?id=$id>Posts by forum</td>$sneek
$tblend$footer $tblend$footer
"; ";

View File

@ -5,7 +5,7 @@
print " print "
$header $header
$fonttag $fonttag
Show: <a href=\"?\">layout sizes</a> - <a href=\"?bio=1\">bio sizes</a> Show: <a href=\"?\">layout sizes</a> - <a href=\"?bio=1\">bio sizes</a>
<br>$tblstart <br>$tblstart
$tccellh>&nbsp;</td> $tccellh>&nbsp;</td>
$tccellh colspan=2>User</td> $tccellh colspan=2>User</td>
@ -26,11 +26,11 @@
print "<tr> print "<tr>
$tccell2>". ($lm ? "<img src=\"images/smilies/denied.gif\" title=\"Say no to the layout maker!\" align=absmiddle> $r <img src=\"images/smilies/denied.gif\" title=\"Say no to the layout maker!\" align=absmiddle>" : "$r") ."</td> $tccell2>". ($lm ? "<img src=\"images/smilies/denied.gif\" title=\"Say no to the layout maker!\" align=absmiddle> $r <img src=\"images/smilies/denied.gif\" title=\"Say no to the layout maker!\" align=absmiddle>" : "$r") ."</td>
$tccell2 width=16>". ($u['minipic'] ? "<img src=\"". htmlspecialchars($u['minipic']) ."\" width=16 height=16>" : "") ."</td> $tccell2 width=16>". ($u['minipic'] ? "<img src=\"". htmlspecialchars($u['minipic']) ."\" width=16 height=16>" : "") ."</td>
$tccell1><a href=profile.php?id=$u[id]><font ". getnamecolor($u[sex], $u[powerlevel]) .">$u[name]</font></a></td> $tccell1><a href=profile.php?id=$u[id]><font ". getnamecolor($u['sex'], $u['powerlevel']) .">$u[name]</font></a></td>
". (!$_GET['bio'] ? "$tccell2 width=100>". number_format($u[hsize]) ."</td> ". (!$_GET['bio'] ? "$tccell2 width=100>". number_format($u['hsize']) ."</td>
$tccell2 width=100>". number_format($u[ssize]) ."</td>" : "") ." $tccell2 width=100>". number_format($u['ssize']) ."</td>" : "") ."
$tccell1 width=100><b>". number_format($u[tsize]) ."</b><br><img src=images/minibar.png width=\"". number_format($u['tsize'] / $max * 200) ."\" align=left height=3></td></tr>"; $tccell1 width=100><b>". number_format($u['tsize']) ."</b><br><img src=images/minibar.png width=\"". number_format($u['tsize'] / $max * 200) ."\" align=left height=3></td></tr>";
} }
print $tblend.$footer; print $tblend.$footer;
printtimedif($startingtime); printtimedif($startingtime);
?> ?>

View File

@ -22,8 +22,29 @@
} */ } */
print " print "
$header<br>$tblstart $header
$tccellh>Records$tccellh>&nbsp<tr> <br>$tblstart
<tr>$tccellh>Interesting statistics</td></tr>
<tr>$tccell1l>
<img src='ext/ppdgauge.php' alt='Posts in last 24 hours' title='Posts in last 24 hours' style='display: block; float: right;'>
<ul>
<li><a href='activeusers.php'>Recently active posters</a></li>
<li><a href='acs.php'>Daily poster rankings</a></li>
<li><a href='milestones.php'>Post milestones</a></li>
<li><a href='sigsize.php'>Biggest posters</a></li>
<li><a href='sigsize.php'>Largest post layouts</a></li>
<li><a href='sigsize.php?bio=1'>Largest bios</a></li>
<li><a href='activity.php?u=". ($loguserid ? $loguserid : 1) ."'>Graph of your posting history</a> (change the ID in the URL to see others)</li>
<li><a href='activity2.php'>Graph of the top 10 posters</a></li>
<li><a href='activity3.php'>Graph of total post count and posts per day</a></li>
<li><a href='activity3u.php'>Graph of active users per day</a></li>
<li><a href='avatar.php'>Mood avatars</a></li>
</ul>
</td>
</tr>
$tblend
<br>$tblstart
$tccellh width='200'>Records$tccellh>&nbsp<tr>
$tccell1s><b>Most posts within 24 hours:</td> $tccell1s><b>Most posts within 24 hours:</td>
$tccell2ls>$misc[maxpostsday], on ".date($dateformat,$misc['maxpostsdaydate'])."<tr> $tccell2ls>$misc[maxpostsday], on ".date($dateformat,$misc['maxpostsdaydate'])."<tr>
$tccell1s><b>Most posts within 1 hour:</td> $tccell1s><b>Most posts within 1 hour:</td>