stuff
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
1
.gitignore
vendored
@ -1,5 +1,6 @@
|
||||
.rem/
|
||||
.old/
|
||||
.well-known/
|
||||
board/
|
||||
xkeeper/
|
||||
version.txt
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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' => "$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++;
|
||||
}
|
||||
|
@ -4,12 +4,12 @@
|
||||
header("Cache-Control: no-cache");
|
||||
|
||||
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";
|
||||
|
||||
$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);
|
||||
|
@ -75,7 +75,7 @@
|
||||
$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>
|
||||
</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) {
|
||||
|
@ -22,7 +22,7 @@
|
||||
if ($loguser['sex'] == 255)
|
||||
$loguser['sex'] = $loguser['oldsex'];
|
||||
|
||||
$descbr="</b>$smallfont<br></center> ";
|
||||
$descbr="</b>$smallfont<br>";
|
||||
$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><b>Custom title:$descbr This title will be shown below your rank.</td>
|
||||
$tccell2l>$inpt=title VALUE=\"$loguser[title]\" SIZE=60 MAXLENGTH=255><tr>
|
||||
@ -101,32 +101,34 @@
|
||||
$rsetlist="<select name=useranks>$rsetlist</select>";
|
||||
|
||||
print "
|
||||
$header<br>$tblstart
|
||||
$header<br>
|
||||
<FORM ACTION=editprofile.php NAME=REPLIER METHOD=POST autocomplete=off>
|
||||
$tccellh>Login information</td>$tccellh> <tr>
|
||||
$tccell1><b>User name:</td>$tccell2l>$loguser[name]<tr>
|
||||
$tblstart
|
||||
$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>
|
||||
$tccell2l>$inpp=password SIZE=13 MAXLENGTH=64 autocomplete=off><tr>
|
||||
|
||||
$tccellh> Appearance</td>$tccellh> <tr>
|
||||
$tccellh colspan='2'>Appearance</td><tr>
|
||||
$titleoption
|
||||
$tccell1><b>User rank:</b>$descbr You can hide your rank, or choose from different sets.</td>
|
||||
$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×200 pixels will be removed.</td>
|
||||
$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>
|
||||
$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>
|
||||
$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>
|
||||
$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>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=signature ROWS=8 COLS=60>". htmlspecialchars($loguser[signature]) ."</TEXTAREA><tr>
|
||||
" : "") ."
|
||||
$tccell1><b>Post header:$descbr HTML added here will come before your post.</td>
|
||||
$tccell2l>$txta=postheader ROWS=8 COLS=60 style='width: 100%;'>". htmlspecialchars($loguser['postheader']) ."</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> <tr>
|
||||
$tccell1><b>Sex:$descbr Male or female. (or N/A if you don't want to tell it)</td>
|
||||
$tccellh colspan='2'>Personal information</td><tr>
|
||||
$tccell1><b>Gender:$descbr This determines your name color (for now).</td>
|
||||
$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>
|
||||
$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>
|
||||
$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>
|
||||
$tccell1><b>Bio:$descbr Some information about yourself, showing up in your profile.</td>
|
||||
$tccell2l>$txta=bio ROWS=8 COLS=60>". htmlspecialchars($loguser[bio]) ."</TEXTAREA><tr>
|
||||
$tccell1><b>Bio:$descbr Some information about yourself, showing up in your profile. Accepts HTML.</td>
|
||||
$tccell2l>$txta=bio ROWS=8 COLS=60 style='width: 100%;'>". htmlspecialchars($loguser['bio']) ."</TEXTAREA><tr>
|
||||
|
||||
$tccellh>Online services</td>$tccellh> <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>
|
||||
$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>
|
||||
@ -153,10 +155,10 @@
|
||||
$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>
|
||||
|
||||
$tccellh> Options</td>$tccellh> <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>
|
||||
$tccellh colspan='2'> Options</td><tr>
|
||||
$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>
|
||||
$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>
|
||||
$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>
|
||||
@ -166,7 +168,7 @@
|
||||
$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>
|
||||
// $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>
|
||||
|
||||
$tccell1><b>Forum page list style:$descbr Inline (Title - Pages ...) or Seperate Line (shows more pages)</td>
|
||||
@ -181,8 +183,8 @@
|
||||
$tccell1><b>Color scheme / layout:$descbr You can select from a few color schemes here.</td>
|
||||
$tccell2l>$schlist<tr>
|
||||
|
||||
$tccellh> </td>$tccellh> <tr>
|
||||
$tccell1> </td>$tccell2l>
|
||||
$tccellh colspan='2'> </td><tr>
|
||||
$tccell1> </td>$tccell2l>
|
||||
$inph=action VALUE=saveprofile>
|
||||
$inph=userid VALUE=$userid>
|
||||
$inps=submit VALUE=\"Edit profile\"></td></FORM>
|
||||
@ -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);
|
||||
?>
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
chdir("../");
|
||||
require "lib/function.php";
|
||||
//$sql->selectdb("sonicret_s2bivb");
|
||||
|
||||
@ -187,7 +188,7 @@
|
||||
function digits($x, $y, $n, $l = 4, $d = 2, $overlay = false) {
|
||||
global $image;
|
||||
|
||||
$numimage = imagecreatefrompng("digits4.png");
|
||||
$numimage = imagecreatefrompng("images/digits4.png");
|
||||
$n = number_format($n, $d);
|
||||
$n = str_replace(",", "", $n);
|
||||
$n2 = explode(".", $n);
|
@ -5,7 +5,7 @@
|
||||
|
||||
$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'");
|
||||
|
168
faq.php
@ -67,25 +67,61 @@
|
||||
<br>
|
||||
<table class='table' cellspacing='0' style='width: auto;'>
|
||||
<tr>
|
||||
<td class='tbl tdbgh fonts center'>Tag</th>
|
||||
<td class='tbl tdbgh fonts center'>Value</th>
|
||||
<td class='tbl tdbgh fonts center'>Tags</td>
|
||||
<td class='tbl tdbgh fonts center'>Description</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2 fonts'>&numposts&</td>
|
||||
<td class='tbl tdbg1 fonts'>Current post count</td>
|
||||
<td class='tbl tdbg2 fonts'>/me</td>
|
||||
<td class='tbl tdbg1 fonts'>Your username (must have a space after it)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2 fonts'>&date&</td>
|
||||
<td class='tbl tdbg1 fonts'>Current date</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2 fonts'>&numdays&</td>
|
||||
<td class='tbl tdbg1 fonts'>Number of days since registration</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2 fonts'>&level&</td>
|
||||
<td class='tbl tdbg1 fonts'>Level</td>
|
||||
<td class='tbl tdbg2 fonts'>&numposts&</td>
|
||||
<td class='tbl tdbg1 fonts'>Current post count</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2 fonts'>&rank&</td>
|
||||
<td class='tbl tdbg1 fonts'>Current rank, according to your amount of posts</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2 fonts'>&postrank&</td>
|
||||
<td class='tbl tdbg1 fonts'>Post ranking</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2 fonts'>&5000&</td>
|
||||
<td class='tbl tdbg1 fonts'>Posts left until you have 5000</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2 fonts'>&10000&</td>
|
||||
<td class='tbl tdbg1 fonts'>Posts left until you have 10000</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2 fonts'>&20000&</td>
|
||||
<td class='tbl tdbg1 fonts'>Posts left until you have 20000</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2 fonts'>&30000&</td>
|
||||
<td class='tbl tdbg1 fonts'>Posts left until you have 30000</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2 fonts'>&exp&</td>
|
||||
<td class='tbl tdbg1 fonts'>EXP</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2 fonts'>&expgain&</td>
|
||||
<td class='tbl tdbg1 fonts'>EXP gain per post</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2 fonts'>&expgaintime&</td>
|
||||
<td class='tbl tdbg1 fonts'>Seconds for 1 EXP when idle</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2 fonts'>&expdone&</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>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2 fonts'>&expgain&</td>
|
||||
<td class='tbl tdbg1 fonts'>EXP gain per post</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2 fonts'>&expgaintime&</td>
|
||||
<td class='tbl tdbg1 fonts'>Seconds for 1 EXP when idle</td>
|
||||
<td class='tbl tdbg2 fonts'>&level&</td>
|
||||
<td class='tbl tdbg1 fonts'>Level</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2 fonts'>&lvlexp&</td>
|
||||
@ -134,34 +166,6 @@
|
||||
<td class='tbl tdbg2 fonts'>&lvllen&</td>
|
||||
<td class='tbl tdbg1 fonts'>EXP needed to go through the current level</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2 fonts'>&5000&</td>
|
||||
<td class='tbl tdbg1 fonts'>Posts left until you have 5000</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2 fonts'>&20000&</td>
|
||||
<td class='tbl tdbg1 fonts'>Posts left until you have 20000</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2 fonts'>&rank&</td>
|
||||
<td class='tbl tdbg1 fonts'>Current rank, according to your amount of<br> posts</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2 fonts'>&postrank&</td>
|
||||
<td class='tbl tdbg1 fonts'>Post ranking</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2 fonts'>&postrank10k&</td>
|
||||
<td class='tbl tdbg1 fonts'>Post ranking you'd have with 10000 less<br> posts</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2 fonts'>&postrank20k&</td>
|
||||
<td class='tbl tdbg1 fonts'>Post ranking you'd have with 20000 less<br> posts</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2 fonts'>&date&</td>
|
||||
<td class='tbl tdbg1 fonts'>Current date</td>
|
||||
</tr>
|
||||
</table>
|
||||
");
|
||||
|
||||
@ -175,88 +179,88 @@
|
||||
<td class='tbl tdbgh fonts center'>Result</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2 fonts'>[b<!--- --->]Bolded text.[/b<!--- --->]</td>
|
||||
<td class='tbl tdbg1 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>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2 fonts'>[i<!--- --->]Italicized text.[/i<!--- --->]</td>
|
||||
<td class='tbl tdbg1 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>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2 fonts'>[u<!--- --->]Underlined text.[/u<!--- --->]</td>
|
||||
<td class='tbl tdbg1 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>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2 fonts'>[s<!--- --->]Strikethrough text.[/s<!--- --->]</td>
|
||||
<td class='tbl tdbg1 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>
|
||||
</tr>
|
||||
<tr>
|
||||
<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 tdbg2 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>
|
||||
<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 tdbg2 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>
|
||||
<td class='tbl tdbg2 fonts'>[url<!--- --->]http://example.com/[/ur<!--- --->l]</td>
|
||||
<td class='tbl tdbg1 fonts'>[url]http://example.com/[/url]</td>
|
||||
<td class='tbl tdbg2 fonts'>[url]http://example.com/[/url]</td>
|
||||
<td class='tbl tdbg1 fonts'><a href=http://example.com/>http://example.com/</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<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 tdbg2 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>
|
||||
<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 tdbg2 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>
|
||||
<td class='tbl tdbg2 fonts'>[red<!--- --->]Red color.[/color<!--- --->]</td>
|
||||
<td class='tbl tdbg1 fonts'>[red]Red color.[/color]</td>
|
||||
<td class='tbl tdbg2 fonts'>[red]Red color.[/color]</td>
|
||||
<td class='tbl tdbg1 fonts'><font color=FFC0C0>Red color.</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2 fonts'>[green<!--- --->]Green color.[/color<!--- --->]</td>
|
||||
<td class='tbl tdbg1 fonts'>[green]Green color.[/color]</td>
|
||||
<td class='tbl tdbg2 fonts'>[green]Green color.[/color]</td>
|
||||
<td class='tbl tdbg1 fonts'><font color=C0FFC0>Green color.</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2 fonts'>[blue<!--- --->]Blue color.[/color<!--- --->]</td>
|
||||
<td class='tbl tdbg1 fonts'>[blue]Blue color.[/color]</td>
|
||||
<td class='tbl tdbg2 fonts'>[blue]Blue color.[/color]</td>
|
||||
<td class='tbl tdbg1 fonts'><font color=C0C0FF>Blue color.</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2 fonts'>[orange<!--- --->]Orange color.[/color<!--- --->]</td>
|
||||
<td class='tbl tdbg1 fonts'>[orange]Orange color.[/color]</td>
|
||||
<td class='tbl tdbg2 fonts'>[orange]Orange color.[/color]</td>
|
||||
<td class='tbl tdbg1 fonts'><font color=FFC080>Orange color.</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2 fonts'>[yellow<!--- --->]Yellow color.[/color<!--- --->]</td>
|
||||
<td class='tbl tdbg1 fonts'>[yellow]Yellow color.[/color]</td>
|
||||
<td class='tbl tdbg2 fonts'>[yellow]Yellow color.[/color]</td>
|
||||
<td class='tbl tdbg1 fonts'><font color=FFEE20>Yellow color.</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2 fonts'>[pink<!--- --->]Pink color.[/color<!--- --->]</td>
|
||||
<td class='tbl tdbg1 fonts'>[pink]Pink color.[/color]</td>
|
||||
<td class='tbl tdbg2 fonts'>[pink]Pink color.[/color]</td>
|
||||
<td class='tbl tdbg1 fonts'><font color=FFC0FF>Pink color.</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2 fonts'>[white<!--- --->]White color.[/color<!--- --->]</td>
|
||||
<td class='tbl tdbg1 fonts'>[white]White color.[/color]</td>
|
||||
<td class='tbl tdbg2 fonts'>[white]White color.[/color]</td>
|
||||
<td class='tbl tdbg1 fonts'><font color=white>White color.</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<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 tdbg2 fonts'>[black]Black color.[/color] (bad idea)</td>
|
||||
<td class='tbl tdbg1 fonts'><font color=0>Black color.</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<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 tdbg2 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>
|
||||
<td class='tbl tdbg2 fonts'>[code<!--- --->]Code.[/code<!--- --->]</td>
|
||||
<td class='tbl tdbg1 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'>" . escape_codeblock("<span style=\"color: #88F;\">Check it out, it's <b>sample code</b></span>") . "</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='tbl tdbg2 fonts'>[spoiler<!--- --->]Spoiler text.[/spoiler<!--- --->]</td>
|
||||
<td class='tbl tdbg1 fonts'>[spoiler]Spoiler text.[/spoiler]</td>
|
||||
<td class='tbl tdbg2 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>
|
||||
<td class='tbl tdbg2 fonts'>[youtube<!--- --->]BrQn-O_zFRc[/youtube<!--- --->] (video ID)</td>
|
||||
<td class='tbl tdbg1 fonts'>[youtube]BrQn-O_zFRc[/youtube]</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'><iframe src=\"https://www.youtube.com/embed/BrQn-O_zFRc\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"></iframe></td>
|
||||
</tr>
|
||||
</table>
|
||||
");
|
||||
|
@ -1,3 +0,0 @@
|
||||
<?php
|
||||
header("Location: favicon". rand(1,8) .".ico");
|
||||
return;
|
@ -153,7 +153,7 @@
|
||||
<td colspan=7 class='tbl tdbgh center fonts'>Announcements</td>
|
||||
</tr><tr>
|
||||
$tccell2>". ($loguser['lastannouncement'] < $annc['aid'] && $loguser['id'] ? $newpic : " ") ."</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>";
|
||||
}
|
||||
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>
|
||||
</tr><tr>
|
||||
$tccell2> </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>";
|
||||
}
|
||||
}
|
||||
@ -313,7 +313,7 @@
|
||||
if ($loguser['pagestyle'])
|
||||
$belowtitle[] = "Page:{$pagelinks}";
|
||||
else
|
||||
$threadtitle .= " {$smallfont}(Pages:{$pagelinks})</span>";
|
||||
$threadtitle .= " <span class='pagelinks fonts'>(Pages:{$pagelinks})</span>";
|
||||
}
|
||||
|
||||
if (!empty($belowtitle))
|
||||
|
@ -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']);
|
||||
|
||||
}
|
||||
|
||||
?>
|
Before Width: | Height: | Size: 298 B After Width: | Height: | Size: 298 B |
Before Width: | Height: | Size: 234 B After Width: | Height: | Size: 234 B |
Before Width: | Height: | Size: 197 B After Width: | Height: | Size: 197 B |
Before Width: | Height: | Size: 894 B After Width: | Height: | Size: 894 B |
BIN
images/favicons/favicon.ico
Normal file
After Width: | Height: | Size: 894 B |
Before Width: | Height: | Size: 894 B After Width: | Height: | Size: 894 B |
Before Width: | Height: | Size: 894 B After Width: | Height: | Size: 894 B |
Before Width: | Height: | Size: 894 B After Width: | Height: | Size: 894 B |
Before Width: | Height: | Size: 894 B After Width: | Height: | Size: 894 B |
Before Width: | Height: | Size: 894 B After Width: | Height: | Size: 894 B |
Before Width: | Height: | Size: 894 B After Width: | Height: | Size: 894 B |
Before Width: | Height: | Size: 894 B After Width: | Height: | Size: 894 B |
Before Width: | Height: | Size: 894 B After Width: | Height: | Size: 894 B |
Before Width: | Height: | Size: 894 B After Width: | Height: | Size: 894 B |
Before Width: | Height: | Size: 894 B After Width: | Height: | Size: 894 B |
Before Width: | Height: | Size: 894 B After Width: | Height: | Size: 894 B |
Before Width: | Height: | Size: 894 B After Width: | Height: | Size: 894 B |
Before Width: | Height: | Size: 894 B After Width: | Height: | Size: 894 B |
Before Width: | Height: | Size: 894 B After Width: | Height: | Size: 894 B |
Before Width: | Height: | Size: 894 B After Width: | Height: | Size: 894 B |
Before Width: | Height: | Size: 894 B After Width: | Height: | Size: 894 B |
@ -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])
|
||||
|
@ -92,7 +92,7 @@
|
||||
$tccellc>Last IP</td>
|
||||
";
|
||||
for($c=0;$c<500 && $user=$sql->fetch($users);$c++)
|
||||
if ($users['id'] != 428) print "
|
||||
print "
|
||||
<tr>
|
||||
$tccell2>$user[id]</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>
|
||||
";
|
||||
for($c=0;$c<500 && $post=$sql->fetch($posts);$c++)
|
||||
if ($post['user'] != 428)
|
||||
print "
|
||||
<tr>
|
||||
$tccell2>$post[id]</td>
|
||||
@ -138,7 +137,6 @@
|
||||
$tccellc>IP</td>
|
||||
";
|
||||
for($c=0;$c<500 && $pmsg=$sql->fetch($pmsgs);$c++)
|
||||
if ($pmsg['userfrom'] != 428 && $pmsg['userto'] != 428)
|
||||
print "
|
||||
<tr>
|
||||
$tccell2>$pmsg[id]</td>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
header("HTTP/1.1 503 Service Unavailable");
|
||||
?><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>
|
||||
a:link,a:visited,a:active,a:hover{text-decoration:none;font-weight:bold}
|
||||
a {
|
||||
|
@ -3,7 +3,7 @@
|
||||
http_response_code(500);
|
||||
|
||||
?><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>
|
||||
a:link,a:visited,a:active,a:hover{text-decoration:none;font-weight:bold}
|
||||
a {
|
||||
|
@ -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>\\2</a>', $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 {
|
||||
@ -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("'<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);
|
||||
|
||||
|
||||
@ -1244,53 +1215,74 @@ function dofilters($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("'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("'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™", $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("<!--", '<font color=#80ff80><!--', $p);
|
||||
$p=str_replace("-->", '--></font>', $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('<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("%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=preg_replace("'<style'si",'<style',$p);
|
||||
|
||||
|
||||
//$p=preg_replace("'%BZZZ%'si",'onclick="bzzz(',$p);
|
||||
|
||||
/*
|
||||
$p=preg_replace("'document.cookie'si",'document.co<z>okie',$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("'javascript:'si",'javasc<z>ript:',$p);
|
||||
$p=preg_replace("'<iframe(?! src=\"https://www.youtube.com/embed/)'si",'<<z>iframe',$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;
|
||||
}
|
||||
|
||||
// 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('#</*\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', '<$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 "<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) {
|
||||
|
||||
|
@ -221,7 +221,6 @@
|
||||
- <a href='online.php'>Online users</a><br>
|
||||
<a href='ranks.php'>Ranks</a>
|
||||
- <a href='faq.php'>Rules/FAQ</a>
|
||||
- <a href='acs.php'>JCS</a>
|
||||
- <a href='stats.php'>Stats</a>
|
||||
- <a href='latestposts.php'>Latest Posts</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>
|
||||
$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
|
||||
</head>
|
||||
$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']) {
|
||||
|
13
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
|
||||
*/
|
||||
|
||||
|
@ -117,7 +117,7 @@
|
||||
$inpc=\"nohtml\" id=\"nohtml\" value=\"1\"$nohtmlchk><label for=\"nohtml\">Disable HTML</label></td></tr><tr>
|
||||
<!-- </FORM> -->
|
||||
");
|
||||
if(!$_POST[action] or $_POST[paction]) {
|
||||
if(!$_POST['action'] or $_POST['paction']) {
|
||||
print "
|
||||
$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\">
|
||||
@ -163,7 +163,7 @@
|
||||
$fonttag<a href=index.php>$boardname</a> - <a href=forum.php?id=$forumid>".$forum[title]."</a>
|
||||
".replytoolbar(4);
|
||||
}
|
||||
if($_POST[action]=='postthread' and !$_POST[paction]) {
|
||||
if($_POST['action']=='postthread' and !$_POST['paction']) {
|
||||
print "<br>$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</td></table>";
|
||||
}
|
||||
|
||||
$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);
|
||||
|
Before Width: | Height: | Size: 273 B After Width: | Height: | Size: 273 B |
@ -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);
|
||||
@ -31,4 +31,3 @@
|
||||
imagepng($img);
|
||||
imagedestroy($img);
|
||||
imagedestroy($num);
|
||||
|
||||
|
11
perfdata.php
@ -1,11 +0,0 @@
|
||||
<?php
|
||||
require 'lib/function.php';
|
||||
require 'lib/layout.php';
|
||||
if (!$isadmin) { die(); }
|
||||
print "$header<br>";
|
||||
|
||||
print adminlinkbar("perfdata.php");
|
||||
|
||||
|
||||
|
||||
|
20
profile.php
@ -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;
|
||||
|
||||
@ -107,9 +107,9 @@
|
||||
$tzoffset=$user['timezone'];
|
||||
$tzoffrel=$tzoffset-$loguser['timezone'];
|
||||
$tzdate=date($dateformat,ctime()+$tzoffset*3600);
|
||||
if($user[birthday]){
|
||||
$birthday=date("l, F j, Y",$user[birthday]);
|
||||
$age="(".floor((ctime()-$user[birthday])/86400/365.2425)." years old)";
|
||||
if($user['birthday']){
|
||||
$birthday=date("l, F j, Y",$user['birthday']);
|
||||
$age="(".floor((ctime()-$user['birthday'])/86400/365.2425)." years old)";
|
||||
}
|
||||
|
||||
// RPG fun shit
|
||||
@ -117,10 +117,10 @@
|
||||
$lvl=calclvl($exp);
|
||||
$expleft=calcexpleft($exp);
|
||||
$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";
|
||||
$postavg=sprintf("%01.2f",$user[posts]/(ctime()-$user[regdate])*86400);
|
||||
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);
|
||||
$totalwidth=116;
|
||||
$barwidth=@floor(($user[posts]/$maxposts)*$totalwidth);
|
||||
$barwidth=@floor(($user['posts']/$maxposts)*$totalwidth);
|
||||
if($barwidth<0) $barwidth=0;
|
||||
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>";
|
||||
@ -131,7 +131,7 @@
|
||||
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);
|
||||
|
||||
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'];
|
||||
if($user['homepagename']) $homepagename="$user[homepagename]</a> - $user[homepageurl]";
|
||||
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>EXP</td> $tccell2l>$expstatus<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 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
|
||||
<br>$tblstart
|
||||
$tccellh colspan=2><center>Contact information<tr>
|
||||
|
@ -26,10 +26,10 @@
|
||||
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 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>
|
||||
". (!$_GET['bio'] ? "$tccell2 width=100>". number_format($u[hsize]) ."</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><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>
|
||||
$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>";
|
||||
}
|
||||
print $tblend.$footer;
|
||||
printtimedif($startingtime);
|
||||
|
25
stats.php
@ -22,8 +22,29 @@
|
||||
} */
|
||||
|
||||
print "
|
||||
$header<br>$tblstart
|
||||
$tccellh>Records$tccellh> <tr>
|
||||
$header
|
||||
<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> <tr>
|
||||
$tccell1s><b>Most posts within 24 hours:</td>
|
||||
$tccell2ls>$misc[maxpostsday], on ".date($dateformat,$misc['maxpostsdaydate'])."<tr>
|
||||
$tccell1s><b>Most posts within 1 hour:</td>
|
||||
|