diff --git a/.gitignore b/.gitignore index 561d2db..2d5f3ed 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,8 @@ .rem/ .old/ +.well-known/ board/ xkeeper/ version.txt lib/config.php -lib/firewall.php \ No newline at end of file +lib/firewall.php diff --git a/activity2.php b/activity2.php index ec9b3ae..0307870 100644 --- a/activity2.php +++ b/activity2.php @@ -7,7 +7,7 @@ $dd = mktime(0,0,0,substr($vd,0,2),substr($vd,3,2),substr($vd,6,2)); $days = floor((ctime()-$dd)/86400); - $scalex = 2; + $scalex = 1; $scaley = 20; $m = $max / $scaley; diff --git a/activity3.php b/activity3.php index 43dd5b2..c2f0424 100644 --- a/activity3.php +++ b/activity3.php @@ -17,21 +17,23 @@ $days=ceil((ctime()-$dd)/86400); $scalex = 1; - $scaley = 200; + $scaley = 500; $m = $max / $scaley; $xs = $days * $scalex; $img=ImageCreateTrueColor($xs,$m); - $c[bg]= ImageColorAllocate($img, 0, 0, 0); - $c[bg1]=ImageColorAllocate($img, 0, 0, 60); - $c[bg2]=ImageColorAllocate($img, 0, 0, 80); - $c[bg3]=ImageColorAllocate($img, 40, 40,100); - $c[bg4]=ImageColorAllocate($img,100, 40, 40); - $c[mk1]=ImageColorAllocate($img, 60, 60,130); - $c[mk2]=ImageColorAllocate($img, 80, 80,150); - $c[bar]=ImageColorAllocate($img,250,190, 40); - $c[pt] =ImageColorAllocate($img,250,250,250); + $c['bg']= ImageColorAllocate($img, 0, 0, 0); + $c['bg1']=ImageColorAllocate($img, 0, 0, 60); + $c['bg2']=ImageColorAllocate($img, 0, 0, 80); + $c['bg3']=ImageColorAllocate($img, 40, 40,100); + $c['bg4']=ImageColorAllocate($img,100, 40, 40); + $c['mk1']=ImageColorAllocate($img, 60, 60,130); + $c['mk2']=ImageColorAllocate($img, 80, 80,150); + $c['mk3']=ImageColorAllocate($img,160, 90, 90); + $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++){ $num=date('m',$dd+$i*86400)%2+1; if(date('m-d',$dd+$i*86400)=='01-01') $num=3; @@ -41,44 +43,25 @@ } 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,($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+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+50, ($i * 100 - 50) * $scaley, $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']); + 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, 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, $xs - 71, $m-$i*100+1, sprintf("%10d", ($i * 100) * $scaley), $c[bg]); - imagestring($img, 3, $xs - 71, $m-$i*100+51, sprintf("%10d", ($i * 100 - 50) * $scaley), $c[bg]); - imagestring($img, 3, $xs - 72, $m-$i*100, sprintf("%10d", ($i * 100) * $scaley), $c[mk2]); - imagestring($img, 3, $xs - 72, $m-$i*100+50, sprintf("%10d", ($i * 100 - 50) * $scaley), $c[mk1]); + imagestring($img, 3, $xs - 81, $m-$i*100+1, sprintf("%10d", ($i * 100)), $c['bg']); + imagestring($img, 3, $xs - 81, $m-$i*100+51, sprintf("%10d", ($i * 100 - 50)), $c['bg']); + imagestring($img, 3, $xs - 82, $m-$i*100, sprintf("%10d", ($i * 100)), $c['mk4']); + imagestring($img, 3, $xs - 82, $m-$i*100+50, sprintf("%10d", ($i * 100 - 50)), $c['mk3']); } $users = array( - 1 => array('name' => "Total posts ", 'color' => imagecolorallocate($img, 255, 255, 255)), - -1 => array('name' => "$alen-day average x 200", '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)), - + 1 => array('name' => "Total posts ", 'color' => imagecolorallocate($img, 255, 255, 255)), + -1 => array('name' => "$alen-day average", 'color' => 0xFF8888), ); + /* $users = array(); $userq = $sql -> query("SELECT id, name FROM `users` ORDER BY `posts` DESC LIMIT 0, 10"); @@ -90,9 +73,9 @@ $z = count($users); $namespace = 12; - imagerectangle( $img, 61, 11, 174 + 6 * 5, 15 + $z * $namespace, $c[bg]); - 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, 61, 11, 174 + 6 * 5, 15 + $z * $namespace, $c['bg']); + imagefilledrectangle($img, 60, 10, 173 + 6 * 5, 14 + $z * $namespace, $c['bg2']); + imagerectangle( $img, 60, 10, 173 + 6 * 5, 14 + $z * $namespace, $c['mk2']); $z = 0; @@ -101,9 +84,9 @@ $data = getdata($uid); 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']); - 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']); $z++; } @@ -120,7 +103,7 @@ die(); } drawdata($xdata2, $users[-1]['color']); - + Header('Content-type:image/png'); ImagePNG($img); ImageDestroy($img); @@ -147,12 +130,12 @@ while ($n = $sql -> fetch($nn)) { $p[$n['d']]=$n['c']; - + for ($temp = $n['d']; $temp > $n['d'] - $alen; $temp--) { $xdata[$n['d']] += $p[$temp]; } $xdata[$n['d']] /= $alen; - + } $dat = $sql -> query( @@ -170,4 +153,4 @@ } -?> \ No newline at end of file +?> diff --git a/lib/datetime.php b/cruft/datetime.php similarity index 96% rename from lib/datetime.php rename to cruft/datetime.php index 9920998..4250cb0 100644 --- a/lib/datetime.php +++ b/cruft/datetime.php @@ -1,10 +1,10 @@ - + diff --git a/newyear.php b/cruft/newyear.php similarity index 93% rename from newyear.php rename to cruft/newyear.php index 17ca155..655c4b0 100644 --- a/newyear.php +++ b/cruft/newyear.php @@ -4,12 +4,12 @@ header("Cache-Control: no-cache"); if ($_GET['z']) { - die( "




"); + die( "




"); } // 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']); $left = $bombday - $time; $left = max(0, $left); @@ -28,7 +28,7 @@ // $teststring = "00d00:00:00.01"; $image = imagecreate(64, 9); - $imagenum = imagecreatefrompng("digits8.png"); + $imagenum = imagecreatefrompng("../images/digits8.png"); $bg = imagecolorallocate($image, 255, 0, 255); $black = imagecolorallocate($image, 0, 0, 0); @@ -89,7 +89,7 @@ } if ($w) imagecopymerge($image, $imagenum, $ofs, 0, $p, 0, $w, 7, 100); - + $ofs += $of; } @@ -99,4 +99,4 @@ imagedestroy($image); imagedestroy($imagenum); -?> \ No newline at end of file +?> diff --git a/editpost.php b/editpost.php index 1e4303a..5ae7069 100644 --- a/editpost.php +++ b/editpost.php @@ -75,7 +75,7 @@ $inpc=\"nosmilies\" id=\"nosmilies\" value=\"1\" $chks[0]> - $inpc=\"nohtml\" id=\"nohtml\" value=\"1\" $chks[1]> - $tblend$fonttag$boardname - ".$forum[title]." - $thread[title] + $tblend$fonttag$boardname - ".$forum['title']." - $thread[title] "; } elseif (!$action) { @@ -183,7 +183,7 @@ ".redirect("thread.php?pid=$id&r=1#$id",'the post',0).''; }*/ } - + elseif ($action=='delete'){ if (!$_POST['reallydelete']) $txt = "Are you sure you want to DELETE this post?

$inps=reallydelete value='Delete post'>$inph=action value='delete'>$inph=id value='$id'>
- Cancel"; @@ -208,4 +208,4 @@ print $footer; printtimedif($startingtime); -?> \ No newline at end of file +?> diff --git a/editprofile.php b/editprofile.php index 5dc5bbd..f0897d9 100644 --- a/editprofile.php +++ b/editprofile.php @@ -22,7 +22,7 @@ if ($loguser['sex'] == 255) $loguser['sex'] = $loguser['oldsex']; - $descbr="$smallfont
 "; + $descbr="$smallfont
"; $checked1[$loguser['sex']]='checked=1'; $checked2[$loguser['viewsig']]='checked=1'; // $checked3[$loguser['posttool']]='checked=1'; @@ -51,7 +51,7 @@ $radio=pollstyle value=1 $checked6[1]> Influence"; if($titleopt){ // this went after this block, which makes it COMPLETELY USELESS - squot(0,$loguser[title]); + squot(0,$loguser['title']); $titleoption=" $tccell1>Custom title:$descbr This title will be shown below your rank. $tccell2l>$inpt=title VALUE=\"$loguser[title]\" SIZE=60 MAXLENGTH=255> @@ -101,32 +101,34 @@ $rsetlist=""; print " - $header
$tblstart -
- $tccellh>Login information$tccellh>  - $tccell1>User name:$tccell2l>$loguser[name] + $header
+ + $tblstart + $tccellh colspan='2'>Login information + $tccell1 style='width: 40%;'>User name:$descbr If you want to change this, ask an admin.$tccell2l style='width: 60%;'>$loguser[name] $tccell1>Password:$descbr You can change your password by entering a new one here. $tccell2l>$inpp=password SIZE=13 MAXLENGTH=64 autocomplete=off> - $tccellh> Appearance$tccellh>  + $tccellh colspan='2'>Appearance $titleoption $tccell1>User rank:$descbr You can hide your rank, or choose from different sets. $tccell2l>$rsetlist - $tccell1>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. + $tccell1>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×200 pixels will be removed. $tccell2l>$inpt=picture VALUE=\"$loguser[picture]\" SIZE=60 MAXLENGTH=100> $tccell1>Mood avatar:$descbr The URL of a mood avatar set. '\$' in the URL will be replaced with the mood, e.g. http://your.page/here/\$.png! $tccell2l>$inpt=moodurl VALUE=\"$loguser[moodurl]\" SIZE=60 MAXLENGTH=100> $tccell1>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. $tccell2l>$inpt=minipic VALUE=\"$loguser[minipic]\" SIZE=60 MAXLENGTH=100> - $tccell1>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! + ". ($loguser['postbg'] ? "$tccell1>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! $tccell2l>$inpt=postbg VALUE=\"$loguser[postbg]\" SIZE=60 MAXLENGTH=250> - $tccell1>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 <font> tag). This should preferably be kept small, and not contain too much text or images. - $tccell2l>$txta=postheader ROWS=8 COLS=60>". htmlspecialchars($loguser[postheader]) ." - $tccell1>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. - $tccell2l>$txta=signature ROWS=8 COLS=60>". htmlspecialchars($loguser[signature]) ." + " : "") ." + $tccell1>Post header:$descbr HTML added here will come before your post. + $tccell2l>$txta=postheader ROWS=8 COLS=60 style='width: 100%;'>". htmlspecialchars($loguser['postheader']) ." + $tccell1>Footer/Signature:$descbr HTML and text added here will be added to the end of your post. + $tccell2l>$txta=signature ROWS=8 COLS=60 style='width: 100%;'>". htmlspecialchars($loguser['signature']) ." - $tccellh>Personal information$tccellh>  - $tccell1>Sex:$descbr Male or female. (or N/A if you don't want to tell it) + $tccellh colspan='2'>Personal information + $tccell1>Gender:$descbr This determines your name color (for now). $tccell2l>$sexlist @@ -136,10 +138,10 @@ $tccell2l>$inpt=location VALUE=\"$loguser[location]\" SIZE=40 MAXLENGTH=60> $tccell1>Birthday:$descbr Your date of birth. $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> - $tccell1>Bio:$descbr Some information about yourself, showing up in your profile. - $tccell2l>$txta=bio ROWS=8 COLS=60>". htmlspecialchars($loguser[bio]) ." + $tccell1>Bio:$descbr Some information about yourself, showing up in your profile. Accepts HTML. + $tccell2l>$txta=bio ROWS=8 COLS=60 style='width: 100%;'>". htmlspecialchars($loguser['bio']) ." - $tccellh>Online services$tccellh>  + $tccellh colspan='2'>Online services $tccell1>Email address:$descbr This is only shown in your profile; you don't have to enter it if you don't want to. $tccell2l>$inpt=email VALUE=\"$loguser[email]\" SIZE=60 MAXLENGTH=60> $tccell1>AIM screen name:$descbr Your AIM screen name, if you have one. @@ -153,10 +155,10 @@ $tccell1>Homepage name:$descbr Your homepage name, if you have a homepage. $tccell2l>$inpt=pagename VALUE=\"$loguser[homepagename]\" SIZE=60 MAXLENGTH=100> - $tccellh> Options$tccellh>  - $tccell1>Custom date format:$descbr Edit the date format here to affect how dates are displayed. Leave it blank to return to the default format ($defaultdateformat)
See the date() function in the PHP manual for more information. + $tccellh colspan='2'> Options + $tccell1>Custom date format:$descbr Change how dates are displayed. Uses date() formatting. Leave blank to use the default. $tccell2l>$inpt=eddateformat value=\"$dateformat\" size=16 maxlength=32> - $tccell1>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 ($defaultdateshort). + $tccell1>Custom short date format:$descbr Change how abbreviated dates are displayed. Uses the same formatting. Leave blank to reset. $tccell2l>$inpt=eddateshort value=\"$dateshort\" size=8 maxlength=16> $tccell1>Timezone offset:$descbr How many hours you're offset from the time on the board (".date($dateformat,ctime())."). $tccell2l>$inpt=timezone VALUE=$loguser[timezone] SIZE=5 MAXLENGTH=5> @@ -166,14 +168,14 @@ $tccell2l>$inpt=threadsperpage SIZE=4 MAXLENGTH=4 VALUE=$loguser[threadsperpage]>". // $tccell1>Use textbox toolbar when posting:$descbr You can disable it here, preventing potential slowdowns or other minor problems when posting. // $tccell2l>$vtool - "$tccell1>Signatures and post headers:$descbr You can disable them here, which can make thread pages smaller and load faster. + "$tccell1>Post layouts:$descbr You can disable them here, which can make thread pages smaller and load faster. $tccell2l>$vsig $tccell1>Forum page list style:$descbr Inline (Title - Pages ...) or Seperate Line (shows more pages) $tccell2l>$pagestyle $tccell1>Poll vote system:$descbr Normal (based on users) or Influence (based on levels) $tccell2l>$pollstyle - + $tccell1>Thread layout:$descbr You can choose from a few thread layouts here. $tccell2l>$laylist $tccell1>Signature separator:$descbr You can choose from a few signature separators here. @@ -181,8 +183,8 @@ $tccell1>Color scheme / layout:$descbr You can select from a few color schemes here. $tccell2l>$schlist - $tccellh> $tccellh>  - $tccell1> $tccell2l> + $tccellh colspan='2'>  + $tccell1> $tccell2l> $inph=action VALUE=saveprofile> $inph=userid VALUE=$userid> $inps=submit VALUE=\"Edit profile\"> @@ -196,7 +198,7 @@ sbr(0,$postheader); sbr(0,$signature); 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']) $sex=2; @@ -227,7 +229,7 @@ $birthday=@mktime(12,0,0,$bmonth,$bday,$byear); if(!$bmonth && !$bday && !$byear) $birthday=0; if(!$icq) $icq=0; - if(!isset($useranks)) $useranks=$loguser[useranks]; + if(!isset($useranks)) $useranks=$loguser['useranks']; if ($_POST['password']) { $hash = getpwhash($_POST['password'], $loguserid); @@ -283,4 +285,3 @@ print $footer; printtimedif($startingtime); -?> diff --git a/ppdgauge.php b/ext/ppdgauge.php similarity index 96% rename from ppdgauge.php rename to ext/ppdgauge.php index 78589ea..b083c1e 100644 --- a/ppdgauge.php +++ b/ext/ppdgauge.php @@ -1,214 +1,215 @@ -selectdb("sonicret_s2bivb"); - - if ($_GET['s']) $size = $_GET['s']; - if ($size > 1024 || $size < 80) $size = 255; - if ($_GET['t']) $classt = $_GET['t']; - if ($classt > 9999 || $classt < 10) $classt = 500; - - $size = 255; - $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); - - $classtxt = " ppd "; - - $image = imagecreatetruecolor( $size + 1, $size + 1 ); - - imageantialias($image, true); - imagesavealpha($image, true); - imagealphablending($image, false); - - $color['white'] = imagecolorallocate($image, 255, 255, 255); - $color['black'] = imagecolorallocate($image, 0, 0, 0); - $color['gray1'] = imagecolorallocate($image, 40, 40, 40); - $color['gray2'] = imagecolorallocate($image, 120, 120, 120); - $color['gray3'] = imagecolorallocate($image, 230, 230, 230); - $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); - - $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($point['x'], $point['y'], $size / 3, 180, 270); - - function drawgauge($xpos, $ypos, $size, $startangle, $endangle) { - global $image, $color, $class, $classt, $classtxt; - -// $startangle = 90; - $endangle = $startangle + $endangle; - $angsize = $endangle - $startangle; - - $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']); - - for ($i = 0; $i <= 100; $i ++) { - - if ($i % 5 == 0) { - $c = $color['white']; - $l = 10; - } else { - $c = $color['black']; - $l = 0; - } - - if ($i >= 0 && $i <= 99) { - if ($i <= 24) { - $cx = ($i) / 25 * 255; - $cc = imagecolorallocate($image, 255, $cx, 0); - } elseif ($i <= 49) { - $cx = ($i - 75) / 25 * 127; - $cc = imagecolorallocate($image, 255 - $cx, 255 - $cx, $cx); - } elseif ($i <= 74) { - $cx = ($i - 50) / 25 * 31; - $cc = imagecolorallocate($image, 128 - $cx, 128 - $cx, 128 + $cx); - } else { - $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); - $q[1] = anglepos($radius - 3 - 5, $xpos, $ypos, $r); - $r = $i * ($angsize * .01) - $startangle - 1; - $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'], - $q[2]['x'], $q[2]['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); - 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; - - $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); - - $markers = ($size < 255 ? 25 : 10); - if ($i % $markers == 0) { - $p3 = anglepos($radius - 20, $xpos, $ypos, $r); - $p4 = anglepos($radius - 42, $xpos, $ypos, $r); - - $n = round($classt * ($i/100)) .""; - - $nl = strlen($n); - - $x = 2 + (3.5 * ($nl - 1)); - imagestring($image, 3, $p3['x'] - $x, $p3['y'] - 7, $n, $color['white']); - } - - } - - - $rad = 45; - - // imageline($image, $radius, $radius, $point['x'], $point['y'], $color['black']); - // drawneedle($houra, $radius, $radius, $radius - 30, 7, - 3, $color['black']); - // 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']); - - if ($size >= 128) { - imagestring($image, 1, $size / 2 - 26, $size * .7 + 4 , $classtxt, $color['white']); -// if (!$_GET['p']) imagestring($image, 1, $size / 2 + 14, $size * .7 + 16, "%", 0xcccccc); - digits($size * .50 - 12, $size * .7 + 14, $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"); - imagepng($image); - imagedestroy($image); - - - - function anglepos($radius, $origo_x, $origo_y, $angle) { -// $angle += 90; - $radius--; - $pont['x'] = $origo_x + ($radius * sin(deg2rad($angle))); - $pont['y'] = $origo_y - ($radius * cos(deg2rad($angle))); - return $pont; - } - - - function drawneedle($angle, $cx, $cy, $radius, $width, $tail, $color) { - global $image; - $point = anglepos($tail * -1, $cx, $cy, $angle + 180); - - $width *= .75; - - $point1 = anglepos($width, $point['x'], $point['y'], $angle - 90); - $point2 = anglepos($width, $point['x'], $point['y'], $angle + 90); - $point3 = anglepos($radius, $cx, $cy, $angle); -// $point3 = anglepos($radius, $cx, $cy, $angle - .5); -// $point4 = anglepos($radius, $cx, $cy, $angle + .5); - $point9 = anglepos($radius - 4, $cx, $cy, $angle); - - $points = array( - $point1['x'], $point1['y'], -// $point['x'], $point['y'], - $point2['x'], $point2['y'], -// $point4['x'], $point4['y'], - $point3['x'], $point3['y'], - ); - imagefilledpolygon($image, $points, 3, $color); - imagepolygon($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; - - $numimage = imagecreatefrompng("digits4.png"); - $n = number_format($n, $d); - $n = str_replace(",", "", $n); - $n2 = explode(".", $n); - - $big = str_pad($n2[0], $l, ":", STR_PAD_LEFT); - $len = strlen($big); - - for($o = 0; $o < $len; $o++) { - $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; - for(; $o <= $slen; $o++) { - $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); - - if ($overlay) imagefilledrectangle($image, $x, $y, $x + $maxlen * 8 - 1, $y + 13, $overlay); - } \ No newline at end of file +selectdb("sonicret_s2bivb"); + + if ($_GET['s']) $size = $_GET['s']; + if ($size > 1024 || $size < 80) $size = 255; + if ($_GET['t']) $classt = $_GET['t']; + if ($classt > 9999 || $classt < 10) $classt = 500; + + $size = 255; + $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); + + $classtxt = " ppd "; + + $image = imagecreatetruecolor( $size + 1, $size + 1 ); + + imageantialias($image, true); + imagesavealpha($image, true); + imagealphablending($image, false); + + $color['white'] = imagecolorallocate($image, 255, 255, 255); + $color['black'] = imagecolorallocate($image, 0, 0, 0); + $color['gray1'] = imagecolorallocate($image, 40, 40, 40); + $color['gray2'] = imagecolorallocate($image, 120, 120, 120); + $color['gray3'] = imagecolorallocate($image, 230, 230, 230); + $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); + + $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($point['x'], $point['y'], $size / 3, 180, 270); + + function drawgauge($xpos, $ypos, $size, $startangle, $endangle) { + global $image, $color, $class, $classt, $classtxt; + +// $startangle = 90; + $endangle = $startangle + $endangle; + $angsize = $endangle - $startangle; + + $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']); + + for ($i = 0; $i <= 100; $i ++) { + + if ($i % 5 == 0) { + $c = $color['white']; + $l = 10; + } else { + $c = $color['black']; + $l = 0; + } + + if ($i >= 0 && $i <= 99) { + if ($i <= 24) { + $cx = ($i) / 25 * 255; + $cc = imagecolorallocate($image, 255, $cx, 0); + } elseif ($i <= 49) { + $cx = ($i - 75) / 25 * 127; + $cc = imagecolorallocate($image, 255 - $cx, 255 - $cx, $cx); + } elseif ($i <= 74) { + $cx = ($i - 50) / 25 * 31; + $cc = imagecolorallocate($image, 128 - $cx, 128 - $cx, 128 + $cx); + } else { + $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); + $q[1] = anglepos($radius - 3 - 5, $xpos, $ypos, $r); + $r = $i * ($angsize * .01) - $startangle - 1; + $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'], + $q[2]['x'], $q[2]['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); + 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; + + $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); + + $markers = ($size < 255 ? 25 : 10); + if ($i % $markers == 0) { + $p3 = anglepos($radius - 20, $xpos, $ypos, $r); + $p4 = anglepos($radius - 42, $xpos, $ypos, $r); + + $n = round($classt * ($i/100)) .""; + + $nl = strlen($n); + + $x = 2 + (3.5 * ($nl - 1)); + imagestring($image, 3, $p3['x'] - $x, $p3['y'] - 7, $n, $color['white']); + } + + } + + + $rad = 45; + + // imageline($image, $radius, $radius, $point['x'], $point['y'], $color['black']); + // drawneedle($houra, $radius, $radius, $radius - 30, 7, - 3, $color['black']); + // 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']); + + if ($size >= 128) { + imagestring($image, 1, $size / 2 - 26, $size * .7 + 4 , $classtxt, $color['white']); +// if (!$_GET['p']) imagestring($image, 1, $size / 2 + 14, $size * .7 + 16, "%", 0xcccccc); + digits($size * .50 - 12, $size * .7 + 14, $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"); + imagepng($image); + imagedestroy($image); + + + + function anglepos($radius, $origo_x, $origo_y, $angle) { +// $angle += 90; + $radius--; + $pont['x'] = $origo_x + ($radius * sin(deg2rad($angle))); + $pont['y'] = $origo_y - ($radius * cos(deg2rad($angle))); + return $pont; + } + + + function drawneedle($angle, $cx, $cy, $radius, $width, $tail, $color) { + global $image; + $point = anglepos($tail * -1, $cx, $cy, $angle + 180); + + $width *= .75; + + $point1 = anglepos($width, $point['x'], $point['y'], $angle - 90); + $point2 = anglepos($width, $point['x'], $point['y'], $angle + 90); + $point3 = anglepos($radius, $cx, $cy, $angle); +// $point3 = anglepos($radius, $cx, $cy, $angle - .5); +// $point4 = anglepos($radius, $cx, $cy, $angle + .5); + $point9 = anglepos($radius - 4, $cx, $cy, $angle); + + $points = array( + $point1['x'], $point1['y'], +// $point['x'], $point['y'], + $point2['x'], $point2['y'], +// $point4['x'], $point4['y'], + $point3['x'], $point3['y'], + ); + imagefilledpolygon($image, $points, 3, $color); + imagepolygon($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; + + $numimage = imagecreatefrompng("images/digits4.png"); + $n = number_format($n, $d); + $n = str_replace(",", "", $n); + $n2 = explode(".", $n); + + $big = str_pad($n2[0], $l, ":", STR_PAD_LEFT); + $len = strlen($big); + + for($o = 0; $o < $len; $o++) { + $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; + for(; $o <= $slen; $o++) { + $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); + + if ($overlay) imagefilledrectangle($image, $x, $y, $x + $maxlen * 8 - 1, $y + 13, $overlay); + } diff --git a/ext/xstats.php b/ext/xstats.php index 7eda991..0cbdb0e 100644 --- a/ext/xstats.php +++ b/ext/xstats.php @@ -5,8 +5,8 @@ $img = imagecreate(45, 37); $bg = imagecolorallocate($img, 100, 100, 100); - $num = imagecreatefrompng("digitstiny.png"); - + $num = imagecreatefrompng("images/digitstiny.png"); + $xk = $sql -> fetchq("SELECT * FROM `users` WHERE `id` = '1'"); $thread = $sql -> resultq("SELECT COUNT(`id`) FROM `threads` WHERE `user` = '1'"); diff --git a/faq.php b/faq.php index c9062b1..974bce7 100644 --- a/faq.php +++ b/faq.php @@ -67,25 +67,61 @@
- + - - + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -119,12 +155,8 @@ - - - - - - + + @@ -134,34 +166,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Tag - Value + TagsDescription
&numposts&Current post count/meYour username (must have a space after it)
&date&Current date
&numdays& Number of days since registration
&level&Level&numposts&Current post count
&rank&Current rank, according to your amount of posts
&postrank&Post ranking
&5000&Posts left until you have 5000
&10000&Posts left until you have 10000
&20000&Posts left until you have 20000
&30000&Posts left until you have 30000
&exp& EXP
&expgain&EXP gain per post
&expgaintime&Seconds for 1 EXP when idle
&expdone& EXP done in the current levelPercentage of EXP left in the level
&expgain&EXP gain per post
&expgaintime&Seconds for 1 EXP when idle&level&Level
&lvlexp&&lvllen& EXP needed to go through the current level
&5000&Posts left until you have 5000
&20000&Posts left until you have 20000
&rank&Current rank, according to your amount of
posts
&postrank&Post ranking
&postrank10k&Post ranking you'd have with 10000 less
posts
&postrank20k&Post ranking you'd have with 20000 less
posts
&date&Current date
"); @@ -175,88 +179,88 @@ Result - [b]Bolded text.[/b] - [b]Bolded text.[/b] + [b]Bolded text.[/b] + Bolded text. - [i]Italicized text.[/i] - [i]Italicized text.[/i] + [i]Italicized text.[/i] + Italicized text. - [u]Underlined text.[/u] - [u]Underlined text.[/u] + [u]Underlined text.[/u] + Underlined text. - [s]Strikethrough text.[/s] - [s]Strikethrough text.[/s] + [s]Strikethrough text.[/s] + Strikethrough text. - [abbr=Basic Input/Output System]BIOS[/abbr] - [abbr=Basic Input/Output System]BIOS[/abbr] + [abbr=Basic Input/Output System]BIOS[/abbr] + BIOS - [sp=terrible]Great[/sp] software. - [sp=terrible]Great[/sp] software. + [sp=terrible]Great[/sp] software. + Great software. - [url]http://example.com/[/url] - [url]http://example.com/[/url] + [url]http://example.com/[/url] + http://example.com/ - [url=http://example.com/]Link text here.[/url] - [url=http://example.com/]Link text here.[/url] + [url=http://example.com/]Link text here.[/url] + Link text here. - [img]https://tcrf.net/images/c/c4/SMB2-smiley.png[/img] - [img]https://tcrf.net/images/c/c4/SMB2-smiley.png[/img] + [img]https://tcrf.net/images/c/c4/SMB2-smiley.png[/img] + - [red]Red color.[/color] - [red]Red color.[/color] + [red]Red color.[/color] + Red color. - [green]Green color.[/color] - [green]Green color.[/color] + [green]Green color.[/color] + Green color. - [blue]Blue color.[/color] - [blue]Blue color.[/color] + [blue]Blue color.[/color] + Blue color. - [orange]Orange color.[/color] - [orange]Orange color.[/color] + [orange]Orange color.[/color] + Orange color. - [yellow]Yellow color.[/color] - [yellow]Yellow color.[/color] + [yellow]Yellow color.[/color] + Yellow color. - [pink]Pink color.[/color] - [pink]Pink color.[/color] + [pink]Pink color.[/color] + Pink color. - [white]White color.[/color] - [white]White color.[/color] + [white]White color.[/color] + White color. - [black]Black color.[/color] (bad idea) - [black]Black color.[/color] + [black]Black color.[/color] (bad idea) + Black color. - [quote=user]Quoted text.[/quote] - [quote=user]Quoted text.[/quote] + [quote=user]Quoted text.[/quote] +
Originally posted by user
Quoted text.
- [code]Code.[/code] - [code]Code.[/code] + [code]Check it out, it's sample code[/code] + " . escape_codeblock("Check it out, it's sample code") . " - [spoiler]Spoiler text.[/spoiler] - [spoiler]Spoiler text.[/spoiler] + [spoiler]Spoiler text.[/spoiler] +
Spoiler:
Spoiler text.
- [youtube]BrQn-O_zFRc[/youtube] (video ID) - [youtube]BrQn-O_zFRc[/youtube] + [youtube]BrQn-O_zFRc[/youtube]
(video ID, e.g.
https://www.youtube.com/watch?v=BrQn-O_zFRc) + "); diff --git a/favicon.gif b/favicon.gif deleted file mode 100644 index e69de29..0000000 diff --git a/favicon.php b/favicon.php deleted file mode 100644 index 7fd986f..0000000 --- a/favicon.php +++ /dev/null @@ -1,3 +0,0 @@ -Announcements $tccell2>". ($loguser['lastannouncement'] < $annc['aid'] && $loguser['id'] ? $newpic : " ") ." - $tccell1l colspan=6>$annc[title] -- Posted by {$userlink} on ".date($dateformat,$annc[date]+$tzoff)." + $tccell1l colspan=6>$annc[title] -- Posted by {$userlink} on ".date($dateformat,$annc['date']+$tzoff)." "; } 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 $tccell2>  - $tccell1l colspan=6>$annc[title] -- Posted by {$userlink} on ".date($dateformat,$annc[date]+$tzoff)." + $tccell1l colspan=6>$annc[title] -- Posted by {$userlink} on ".date($dateformat,$annc['date']+$tzoff)." "; } } @@ -202,7 +202,7 @@ ."LIMIT $min,$tpp"); else $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 " .($log ? ", r.read AS tread, r.time as treadtime " : " ") ."FROM threads t " @@ -313,7 +313,7 @@ if ($loguser['pagestyle']) $belowtitle[] = "Page:{$pagelinks}"; else - $threadtitle .= " {$smallfont}(Pages:{$pagelinks})"; + $threadtitle .= " (Pages:{$pagelinks})"; } if (!empty($belowtitle)) @@ -326,7 +326,7 @@ array('sex'=>'sex1', 'powerlevel'=>'pwr1', 'id'=>'user', 'aka'=>'aka1', 'name'=>'name1', 'birthday'=>'bd1')); $userlink2 = getuserlink($thread, array('sex'=>'sex2', 'powerlevel'=>'pwr2', 'id'=>'lastposter', 'aka'=>'aka2', 'name'=>'name2', 'birthday'=>'bd2')); - + $threadlist .= " $tccell1>$new $tccell2 width=40px>
$posticon
@@ -359,4 +359,4 @@ function notAuthorizedError() { $redir = (($log) ? 'index.php' : 'login.php'); $rtext = (($log) ? 'the index page' : 'log in (then try again)'); errorpage("Couldn't enter this restricted forum, as you {$rreason}.", $rtext, $redir); -} \ No newline at end of file +} diff --git a/idiotredir.php b/idiotredir.php deleted file mode 100644 index dac3ee9..0000000 --- a/idiotredir.php +++ /dev/null @@ -1,28 +0,0 @@ - - - uh oh - - -
-
This site has been blocked for your protection. -
-
http://insectduel.proboards82.com/ - Reason: fucking stupid -
-
If you are sure you want to visit this site (e.g., for humor), please click the button. -
-
- - - \ No newline at end of file diff --git a/digits4.png b/images/digits4.png similarity index 100% rename from digits4.png rename to images/digits4.png diff --git a/digits8.png b/images/digits8.png similarity index 100% rename from digits8.png rename to images/digits8.png diff --git a/digitstiny.png b/images/digitstiny.png similarity index 100% rename from digitstiny.png rename to images/digitstiny.png diff --git a/favicon-star.ico b/images/favicons/favicon-star.ico similarity index 100% rename from favicon-star.ico rename to images/favicons/favicon-star.ico diff --git a/images/favicons/favicon.ico b/images/favicons/favicon.ico new file mode 100644 index 0000000..ac63051 Binary files /dev/null and b/images/favicons/favicon.ico differ diff --git a/favicon1.ico b/images/favicons/favicon1.ico similarity index 100% rename from favicon1.ico rename to images/favicons/favicon1.ico diff --git a/favicon1x.ico b/images/favicons/favicon1x.ico similarity index 100% rename from favicon1x.ico rename to images/favicons/favicon1x.ico diff --git a/favicon2.ico b/images/favicons/favicon2.ico similarity index 100% rename from favicon2.ico rename to images/favicons/favicon2.ico diff --git a/favicon2x.ico b/images/favicons/favicon2x.ico similarity index 100% rename from favicon2x.ico rename to images/favicons/favicon2x.ico diff --git a/favicon3.ico b/images/favicons/favicon3.ico similarity index 100% rename from favicon3.ico rename to images/favicons/favicon3.ico diff --git a/favicon3x.ico b/images/favicons/favicon3x.ico similarity index 100% rename from favicon3x.ico rename to images/favicons/favicon3x.ico diff --git a/favicon4.ico b/images/favicons/favicon4.ico similarity index 100% rename from favicon4.ico rename to images/favicons/favicon4.ico diff --git a/favicon4x.ico b/images/favicons/favicon4x.ico similarity index 100% rename from favicon4x.ico rename to images/favicons/favicon4x.ico diff --git a/favicon5.ico b/images/favicons/favicon5.ico similarity index 100% rename from favicon5.ico rename to images/favicons/favicon5.ico diff --git a/favicon5x.ico b/images/favicons/favicon5x.ico similarity index 100% rename from favicon5x.ico rename to images/favicons/favicon5x.ico diff --git a/favicon6.ico b/images/favicons/favicon6.ico similarity index 100% rename from favicon6.ico rename to images/favicons/favicon6.ico diff --git a/favicon6x.ico b/images/favicons/favicon6x.ico similarity index 100% rename from favicon6x.ico rename to images/favicons/favicon6x.ico diff --git a/favicon7.ico b/images/favicons/favicon7.ico similarity index 100% rename from favicon7.ico rename to images/favicons/favicon7.ico diff --git a/favicon7x.ico b/images/favicons/favicon7x.ico similarity index 100% rename from favicon7x.ico rename to images/favicons/favicon7x.ico diff --git a/favicon8.ico b/images/favicons/favicon8.ico similarity index 100% rename from favicon8.ico rename to images/favicons/favicon8.ico diff --git a/favicon8x.ico b/images/favicons/favicon8x.ico similarity index 100% rename from favicon8x.ico rename to images/favicons/favicon8x.ico diff --git a/index.php b/index.php index c3c4a4f..08934b2 100644 --- a/index.php +++ b/index.php @@ -46,7 +46,7 @@ $sql->query("INSERT INTO forumread (user,forum,readdate) VALUES ($loguserid,$forumid,".ctime().')'); return header("Location: index.php"); } - + if (filter_string($_GET['action']) == 'markallforumsread' and $log) { $sql->query("DELETE FROM forumread WHERE user=$loguserid"); $sql->query("DELETE FROM `threadsread` WHERE `uid` = '$loguserid'"); @@ -64,9 +64,9 @@ $users[$user['id']]=$user; $y=date('Y',ctime())-date('Y',$user['birthday']); $userurl = getuserlink($user); - $blist.= "$userurl ($y)"; + $blist.= "$userurl ($y)"; } - + $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"); $numonline=mysql_num_rows($onusers); @@ -75,7 +75,7 @@ if ($numguests) $guestcount=" | $numguests guest".($numguests>1?"s":""); $onlineusersa = array(); for ($numon=0; $onuser = $sql->fetch($onusers);$numon++) { - + //$namecolor=explode("=", getnamecolor($onuser['sex'],$onuser['powerlevel'])); //$namecolor=$namecolor[1]; //$namelink="$onuser[name]"; @@ -89,7 +89,7 @@ if($onuser['lastactivity']<=$onlinetime) { $namelink="($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'); $misc = $sql->fetchq('SELECT * FROM misc'); - + 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($numonline>$misc['maxusers']) $sql->query("UPDATE misc SET maxusers=$numonline,maxusersdate=".ctime().",maxuserstext='".addslashes($onlineusers)."'"); @@ -120,7 +120,7 @@ /*// index sparkline $sprkq = mysql_query('SELECT COUNT(id),date FROM posts WHERE date >="'.(time()-3600).'" GROUP BY (date % 60) ORDER BY date'); $sprk = array(); - + while ($r = mysql_fetch_row($sprkq)) { array_push($sprk,$r[0]); } @@ -204,7 +204,7 @@ // Quicker (?) new posts calculation that's hopefully accurate v.v if ($log) { $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); $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
$privatebox - + ". adbox() ."
$tblstart$forumlist$tblend$footer"; diff --git a/ipsearch.php b/ipsearch.php index 3d2edc8..7d0d879 100644 --- a/ipsearch.php +++ b/ipsearch.php @@ -92,7 +92,7 @@ $tccellc>Last IP "; for($c=0;$c<500 && $user=$sql->fetch($users);$c++) - if ($users['id'] != 428) print " + print " $tccell2>$user[id] $tccell1>$user[name] @@ -115,7 +115,6 @@ $tccellc>IP "; for($c=0;$c<500 && $post=$sql->fetch($posts);$c++) - if ($post['user'] != 428) print " $tccell2>$post[id] @@ -138,7 +137,6 @@ $tccellc>IP "; for($c=0;$c<500 && $pmsg=$sql->fetch($pmsgs);$c++) - if ($pmsg['userfrom'] != 428 && $pmsg['userto'] != 428) print " $tccell2>$pmsg[id] @@ -154,4 +152,4 @@ } print $tblend.$footer; printtimedif($startingtime); -?> \ No newline at end of file +?> diff --git a/lib/downtime-bmf.php b/lib/downtime-bmf.php index 4162725..7d66139 100644 --- a/lib/downtime-bmf.php +++ b/lib/downtime-bmf.php @@ -1,6 +1,6 @@ The COM Port -- Down - + - + + +
@@ -83,4 +83,4 @@ die(); -?> \ No newline at end of file +?> diff --git a/lib/downtime.php b/lib/downtime.php index 4dfc03a..336aedd 100644 --- a/lib/downtime.php +++ b/lib/downtime.php @@ -1,7 +1,7 @@ Jul -- Temporarily down - + - +
@@ -94,4 +94,4 @@ \ No newline at end of file +?> diff --git a/lib/downtime2.php b/lib/downtime2.php index 1cc6de0..af43bb8 100644 --- a/lib/downtime2.php +++ b/lib/downtime2.php @@ -3,7 +3,7 @@ http_response_code(500); ?>Jul is offline for now - + - +
@@ -93,4 +93,4 @@ die(); -?> \ No newline at end of file +?> diff --git a/lib/function.php b/lib/function.php index fcc99cb..3e83081 100644 --- a/lib/function.php +++ b/lib/function.php @@ -537,7 +537,6 @@ function doreplace2($msg, $options='0|0'){ $msg=preg_replace("'\[url\](.*?)\[/url\]'si", '\\1', $msg); $msg=preg_replace("'\[url=(.*?)\](.*?)\[/url\]'si", '\\2', $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", '', $msg); do { @@ -1195,35 +1194,7 @@ function include_js($fn, $as_tag = false) { function dofilters($p){ global $hacks; $temp = $p; - if (filter_bool($_GET['t']) && false) { - $p=preg_replace("''si",'',$p); - $p=preg_replace("'oad',$p); - $p=preg_replace("'onerror'si",'onerror',$p); - $p=preg_replace("'onunload'si",'onunload',$p); - $p=preg_replace("'onchange'si",'onchange',$p); - $p=preg_replace("'onsubmit'si",'onsubmit',$p); - $p=preg_replace("'onreset'si",'onreset',$p); - $p=preg_replace("'onselect'si",'onselect',$p); - $p=preg_replace("'onblur'si",'onblur',$p); - $p=preg_replace("'onfocus'si",'onfocus',$p); - $p=preg_replace("'onclick'si",'onclick',$p); - $p=preg_replace("'ondblclick'si",'ondblclick',$p); - $p=preg_replace("'onmousedown'si",'onmousedown',$p); - $p=preg_replace("'onmousemove'si",'onmousemove',$p); - $p=preg_replace("'onmouseout'si",'onmouseout',$p); - $p=preg_replace("'onmouseover'si",'onmouseover',$p); - $p=preg_replace("'onmouseup'si",'onmouseup',$p); - } - - //$p=preg_replace("''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); @@ -1244,53 +1215,74 @@ function dofilters($p){ $p=preg_replace("':trolldra:'si", '', $p); $p=preg_replace("':reggie:'si",'',$p); -// $p=preg_replace("'drama'si", 'batter blaster', $p); -// $p=preg_replace("'TheKinoko'si", 'MY NAME MEANS MUSHROOM... IN JAPANESE! HOLY SHIT GUYS THIS IS INCREDIBLE!!!!!!!!!', $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("'faith in humanity'si",'IQ',$p); -// $p=preg_replace("'motorcycles'si",'',$p); -// $p=preg_replace("'card games'si",'',$p); -// $p=preg_replace("'touhou'si", "Baby's First Bullet Hell™", $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'])) { $p=str_replace("", '-->', $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=str_replace('',"",$p); $p=str_replace("tabindex=\"0\" ","title=\"the owner of this button is a fucking dumbass\" ",$p); - $p=str_replace("%WIKISTATSFRAME%","
",$p); - $p=str_replace("%WIKISTATSFRAME2%", '
', $p); + // $p=str_replace("http://xkeeper.shacknet.nu:5/", 'http://xchan.shacknet.nu:5/', $p); // $p=preg_replace("'okie',$p); $p=preg_replace("'eval'si",'eval',$p); - // $p=preg_replace("'document.'si",'docufail.',$p); $p=preg_replace("'script',$p); $p=preg_replace("'/script',$p); $p=preg_replace("'javascript:'si",'javascript:',$p); $p=preg_replace("'iframe',$p); $p=preg_replace("'meta',$p); + */ + + $p = xss_clean($p); + + $p =preg_replace("'\[youtube\]([a-zA-Z0-9_-]{11})\[/youtube\]'si", '', $p); + return $p; } +// https://stackoverflow.com/questions/1336776/xss-filtering-function-in-php +function xss_clean($data) { + // Fix &entity\n; + $data = str_replace(array('&','<','>'), array('&amp;','&lt;','&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('#]*+>#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', '<$1>', $data); + } while ($old_data !== $data); + + return $data; +} + require 'lib/threadpost.php'; // require 'lib/replytoolbar.php'; @@ -1421,9 +1413,6 @@ function addslashes_array($data) { return "$str"; } - // additional includes - require_once "lib/datetime.php"; - function unescape($in) { diff --git a/lib/layout.php b/lib/layout.php index b640109..97e81ac 100644 --- a/lib/layout.php +++ b/lib/layout.php @@ -221,7 +221,6 @@ - Online users
Ranks - Rules/FAQ - - JCS - Stats - Latest Posts - Color Chart @@ -353,7 +352,7 @@ $header1="$windowtitle $metatag - + $css $body @@ -412,8 +411,8 @@ } */ //if ($loguserid != 3 && $loguserid != 2) - if (($loguser['powerlevel'] <= 5) and (!IS_AJAX_REQUEST)) { - $influencelv=calclvl(calcexp($loguser[posts],(ctime()-$loguser[regdate])/86400)); + if (($loguser['powerlevel'] <= 5) && (!defined("IS_AJAX_REQUEST") || !IS_AJAX_REQUEST)) { + $influencelv=calclvl(calcexp($loguser['posts'],(ctime()-$loguser['regdate'])/86400)); // Alart #defcon? if ($loguser['lastip'] != $_SERVER['REMOTE_ADDR']) { diff --git a/lib/rpg.php b/lib/rpg.php index d3ab067..562d537 100644 --- a/lib/rpg.php +++ b/lib/rpg.php @@ -20,8 +20,8 @@ function getstats($u, $items=0, $class = 0){ $stat=array('HP','MP','Atk','Def','Int','MDf','Dex','Lck','Spd'); - $p=$u[posts]; - $d=(ctime()-$u[regdate])/86400; + $p=$u['posts']; + $d=(ctime()-$u['regdate'])/86400; for($i=0;$i<9;$i++) { $m[$i]=1; } @@ -29,7 +29,7 @@ $item=$items[$u['eq'.$i]]; for($k=0;$k<9;$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; } } @@ -44,9 +44,9 @@ } } - $stats[GP]=coins($p,$d)-$u[spent]; - $stats[exp]=calcexp($p,$d); - $stats[lvl]=calclvl($stats[exp]); + $stats['GP']=coins($p,$d)-$u['spent']; + $stats['exp']=calcexp($p,$d); + $stats['lvl']=calclvl($stats['exp']); return $stats; } 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 8: return (pow($p,0.19) * pow($d,0.07) * pow($l,1.09) * 0.25) + 1; //Spd */ - diff --git a/newthread.php b/newthread.php index 383c8bb..74156b4 100644 --- a/newthread.php +++ b/newthread.php @@ -31,7 +31,7 @@ if ($forum['nopolls'] && $poll) { print "$header
- $tblstart + $tblstart $tccell1> A for effort, but F for still failing. @@ -117,7 +117,7 @@ $inpc=\"nohtml\" id=\"nohtml\" value=\"1\"$nohtmlchk> "); - if(!$_POST[action] or $_POST[paction]) { + if(!$_POST['action'] or $_POST['paction']) { print " $fonttag$boardname - ".$forum[title]."
@@ -125,7 +125,7 @@ "; if($log and $forums[$id][minpowerthread]>$power) { print "$tccell1>Sorry, but you are not allowed to post"; - if($banned) print ", because you are banned from this board.
".redirect("forum.php?id=$id",'return to the forum',0); + if($banned) print ", because you are banned from this board.
".redirect("forum.php?id=$id",'return to the forum',0); else print ' in this restricted forum.
'.redirect('index.php','return to the board',0); } else { @@ -163,7 +163,7 @@ $fonttag$boardname - ".$forum[title]." ".replytoolbar(4); } - if($_POST[action]=='postthread' and !$_POST[paction]) { + if($_POST['action']=='postthread' and !$_POST['paction']) { print "
$tblstart"; if ($log && !$password) $userid = $loguserid; @@ -171,25 +171,14 @@ $userid = checkuser($username,$password); $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 - $limithit = $user[lastposttime] < (ctime()-30); + $limithit = $user['lastposttime'] < (ctime()-30); // can they post in this forum? - $authorized = $user[powerlevel] >= $forum[minpowerthread]; + $authorized = $user['powerlevel'] >= $forum['minpowerthread']; // does the forum exist? - $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) ."."); - } - // --- + $forumexists = $forum['title']; if($userid!=-1 && $subject && $message && $forumexists && $authorized && $limithit) { $msg=$message; @@ -203,8 +192,8 @@ $sign = "$sign"; } - $numposts = $user[posts] + 1; - $numdays = (ctime()-$user[regdate])/86400; + $numposts = $user['posts'] + 1; + $numdays = (ctime()-$user['regdate'])/86400; $tags = array(); $msg = doreplace($msg, $numposts, $numdays, $username, $tags); $rsign = doreplace($sign, $numposts, $numdays, $username); @@ -273,7 +262,7 @@ } else { if($posticon) $posticon1=""; - + if($poll) { for($c=1;$chtext[$c];$c++) { $chtext[$c]=stripslashes($chtext[$c]); @@ -344,7 +333,7 @@ if (!$message) $reason = "You haven't entered a message."; if (!$subject) $reason = "You haven't entered a subject."; if (!$authorized) $reason = "You aren't allowed to post in this forum."; - + print " $tccell1>Couldn't post the thread. $reason
".redirect("forum.php?id=$id", $forum[title], 2).$tblend; diff --git a/digits.png b/numgfx/bigdigits.png similarity index 100% rename from digits.png rename to numgfx/bigdigits.png diff --git a/numgfxbig.php b/numgfxbig.php index b3fe6f2..381dc5d 100644 --- a/numgfxbig.php +++ b/numgfxbig.php @@ -13,7 +13,7 @@ $img = imagecreate(26 * $l, 28); $bg = imagecolorallocate($img, 5, 5, 5); - $num = imagecreatefrompng("digits.png"); + $num = imagecreatefrompng("numgfx/bigdigits.png"); $o = $p; $na = str_split($n); @@ -21,14 +21,13 @@ $x = intval($x); $y = floor($x / 5) * 28; $x = ($x % 5) * 26; - + imagecopy($img, $num, $o * 26, 0, $x, $y, 26, 28); $o++; } - + imagecolortransparent($img, $bg); header("Content-type: image/png"); imagepng($img); imagedestroy($img); imagedestroy($num); - diff --git a/perfdata.php b/perfdata.php deleted file mode 100644 index 266e5e5..0000000 --- a/perfdata.php +++ /dev/null @@ -1,11 +0,0 @@ -"; - - print adminlinkbar("perfdata.php"); - - - - \ No newline at end of file diff --git a/profile.php b/profile.php index ad689b8..213dd0b 100644 --- a/profile.php +++ b/profile.php @@ -37,7 +37,7 @@ $numvotes=mysql_num_rows($ratings); if($ratetotal) { $ratingstatus=(floor($ratescore*1000/$ratetotal)/100)." ($ratescore/$ratetotal, $numvotes votes)"; - } else { + } else { $ratingstatus="None"; } 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]"); $numdays=(ctime()-$user['regdate'])/86400; @@ -85,17 +85,17 @@ // $user['signature']=doreplace2($user['signature'],$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']); - + if ($user['picture']) $picture = ""; if ($user['moodurl']) $moodavatar = " | Preview mood avatar"; - + $icqicon=""; - + if(!$user['icq']){ $user['icq']=""; $icqicon=""; } - + $tccellha=" 0) $expstatus.="
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); + if($user['posts'] > 0) $expstatus.="
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); $totalwidth=116; - $barwidth=@floor(($user[posts]/$maxposts)*$totalwidth); + $barwidth=@floor(($user['posts']/$maxposts)*$totalwidth); if($barwidth<0) $barwidth=0; if($barwidth) $baron=""; if($barwidth<$totalwidth) $baroff=""; @@ -131,7 +131,7 @@ if(!$user['posts'] or $user['posts']>=$topposts or $projdate>2000000000 or $projdate "; + if($user['minipic']) $minipic=" "; $homepagename=$user['homepageurl']; if($user['homepagename']) $homepagename="$user[homepagename] - $user[homepageurl]"; if($user['postbg']) $postbg="
"; @@ -181,9 +181,9 @@ $tblstart $tccell1l width=150>Total threads $tccell2l>$threadsposted $tccell1l width=150>EXP $tccell2l>$expstatus ". (false ? " $tccell1l width=150>User rating $tccell2l>$ratingstatus" : "") ." - $tccell1l width=150>Registered on $tccell2l>".@date($dateformat,$user[regdate]+$tzoff)." (".floor((ctime()-$user[regdate])/86400)." days ago) + $tccell1l width=150>Registered on $tccell2l>".@date($dateformat,$user['regdate']+$tzoff)." (".floor((ctime()-$user['regdate'])/86400)." days ago) $tccell1l width=150>Last post $tccell2l>$lastpostdate$lastpostlink - $tccell1l width=150>Last activity $tccell2l>".date($dateformat,$user[lastactivity]+$tzoff)."$lastip + $tccell1l width=150>Last activity $tccell2l>".date($dateformat,$user['lastactivity']+$tzoff)."$lastip $tblend
$tblstart $tccellh colspan=2>
Contact information @@ -222,7 +222,7 @@ $tblend
$tblstart $tccellhs colspan=2>
Options $tccell2s colspan=2> - Show posts | + Show posts | View threads by this user $sendpmsg $ratelink @@ -231,7 +231,7 @@ $tblend $tccell2s colspan=2> List posts by this user | Posts by time of day | - Posts by thread | + Posts by thread | Posts by forum$sneek $tblend$footer "; diff --git a/sigsize.php b/sigsize.php index 5582d41..17e70be 100644 --- a/sigsize.php +++ b/sigsize.php @@ -5,7 +5,7 @@ print " $header $fonttag - Show: layout sizes - bio sizes + Show: layout sizes - bio sizes
$tblstart $tccellh>  $tccellh colspan=2>User @@ -26,11 +26,11 @@ print " $tccell2>". ($lm ? " $r " : "$r") ." $tccell2 width=16>". ($u['minipic'] ? "" : "") ." - $tccell1>$u[name] - ". (!$_GET['bio'] ? "$tccell2 width=100>". number_format($u[hsize]) ." - $tccell2 width=100>". number_format($u[ssize]) ."" : "") ." - $tccell1 width=100>". number_format($u[tsize]) ."
"; + $tccell1>$u[name] + ". (!$_GET['bio'] ? "$tccell2 width=100>". number_format($u['hsize']) ." + $tccell2 width=100>". number_format($u['ssize']) ."" : "") ." + $tccell1 width=100>". number_format($u['tsize']) ."
"; } print $tblend.$footer; printtimedif($startingtime); -?> \ No newline at end of file +?> diff --git a/stats.php b/stats.php index 205af2d..21d16cc 100644 --- a/stats.php +++ b/stats.php @@ -22,8 +22,29 @@ } */ print " - $header
$tblstart - $tccellh>Records$tccellh>  + $header +
$tblstart + $tccellh>Interesting statistics + $tccell1l> + Posts in last 24 hours + + + + $tblend +
$tblstart + $tccellh width='200'>Records$tccellh>  $tccell1s>Most posts within 24 hours: $tccell2ls>$misc[maxpostsday], on ".date($dateformat,$misc['maxpostsdaydate'])." $tccell1s>Most posts within 1 hour: