Move a bunch of files around to clean things up
@ -1,10 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
function timedelta($array1, $array2) {
|
function timedelta($array1, $array2) {
|
||||||
$time = array();
|
$time = array();
|
||||||
$time['seconds'] = 60 - abs($array1['seconds'] - $array2['seconds']);
|
$time['seconds'] = 60 - abs($array1['seconds'] - $array2['seconds']);
|
||||||
$time['minutes'] = abs($array1['minutes'] - $array2['minutes']);
|
$time['minutes'] = abs($array1['minutes'] - $array2['minutes']);
|
||||||
$time['hours'] = abs($array1['hours'] - $array2['hours']);
|
$time['hours'] = abs($array1['hours'] - $array2['hours']);
|
||||||
|
|
||||||
return $time;
|
return $time;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
@ -4,12 +4,12 @@
|
|||||||
header("Cache-Control: no-cache");
|
header("Cache-Control: no-cache");
|
||||||
|
|
||||||
if ($_GET['z']) {
|
if ($_GET['z']) {
|
||||||
die( "<body bgcolor=#111122><META HTTP-EQUIV=REFRESH CONTENT=0;URL=newyear.php?z=". rand(0,9999) ."><center><br><br><br><br><img src=newyear.php width=100%>");
|
die( "<body bgcolor=#111122><META HTTP-EQUIV=REFRESH CONTENT=1;URL=newyear.php?z=". rand(0,9999) ."><center><br><br><br><br><img src=newyear.php width=100%>");
|
||||||
}
|
}
|
||||||
|
|
||||||
// require "lib/function.php";
|
// require "lib/function.php";
|
||||||
|
|
||||||
$bombday = mktime(0, 0, 0, 1, 1, 2008);
|
$bombday = mktime(0, 0, 0, 1, 1, 2010);
|
||||||
$time = microtime(true) + (3600 * $_GET['to']);
|
$time = microtime(true) + (3600 * $_GET['to']);
|
||||||
$left = $bombday - $time;
|
$left = $bombday - $time;
|
||||||
$left = max(0, $left);
|
$left = max(0, $left);
|
||||||
@ -28,7 +28,7 @@
|
|||||||
// $teststring = "00d00:00:00.01";
|
// $teststring = "00d00:00:00.01";
|
||||||
|
|
||||||
$image = imagecreate(64, 9);
|
$image = imagecreate(64, 9);
|
||||||
$imagenum = imagecreatefrompng("digits8.png");
|
$imagenum = imagecreatefrompng("../images/digits8.png");
|
||||||
$bg = imagecolorallocate($image, 255, 0, 255);
|
$bg = imagecolorallocate($image, 255, 0, 255);
|
||||||
$black = imagecolorallocate($image, 0, 0, 0);
|
$black = imagecolorallocate($image, 0, 0, 0);
|
||||||
|
|
||||||
@ -89,7 +89,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($w) imagecopymerge($image, $imagenum, $ofs, 0, $p, 0, $w, 7, 100);
|
if ($w) imagecopymerge($image, $imagenum, $ofs, 0, $p, 0, $w, 7, 100);
|
||||||
|
|
||||||
$ofs += $of;
|
$ofs += $of;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -99,4 +99,4 @@
|
|||||||
imagedestroy($image);
|
imagedestroy($image);
|
||||||
imagedestroy($imagenum);
|
imagedestroy($imagenum);
|
||||||
|
|
||||||
?>
|
?>
|
@ -1,214 +1,215 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require "lib/function.php";
|
chdir("../");
|
||||||
//$sql->selectdb("sonicret_s2bivb");
|
require "lib/function.php";
|
||||||
|
//$sql->selectdb("sonicret_s2bivb");
|
||||||
if ($_GET['s']) $size = $_GET['s'];
|
|
||||||
if ($size > 1024 || $size < 80) $size = 255;
|
if ($_GET['s']) $size = $_GET['s'];
|
||||||
if ($_GET['t']) $classt = $_GET['t'];
|
if ($size > 1024 || $size < 80) $size = 255;
|
||||||
if ($classt > 9999 || $classt < 10) $classt = 500;
|
if ($_GET['t']) $classt = $_GET['t'];
|
||||||
|
if ($classt > 9999 || $classt < 10) $classt = 500;
|
||||||
$size = 255;
|
|
||||||
$classt = 500;
|
$size = 255;
|
||||||
$class = $sql->resultq("SELECT COUNT(`id`) FROM `posts` WHERE `date` > ". (ctime() - 86400));
|
$classt = 500;
|
||||||
|
$class = $sql->resultq("SELECT COUNT(`id`) FROM `posts` WHERE `date` > ". (ctime() - 86400));
|
||||||
if ($_GET['s']) $size = numrange((int)$_GET['s'], 80, 1024);
|
|
||||||
if ($_GET['t']) $classt = numrange((int)$_GET['t'], 10, 1000);
|
if ($_GET['s']) $size = numrange((int)$_GET['s'], 80, 1024);
|
||||||
|
if ($_GET['t']) $classt = numrange((int)$_GET['t'], 10, 1000);
|
||||||
$classtxt = " ppd ";
|
|
||||||
|
$classtxt = " ppd ";
|
||||||
$image = imagecreatetruecolor( $size + 1, $size + 1 );
|
|
||||||
|
$image = imagecreatetruecolor( $size + 1, $size + 1 );
|
||||||
imageantialias($image, true);
|
|
||||||
imagesavealpha($image, true);
|
imageantialias($image, true);
|
||||||
imagealphablending($image, false);
|
imagesavealpha($image, true);
|
||||||
|
imagealphablending($image, false);
|
||||||
$color['white'] = imagecolorallocate($image, 255, 255, 255);
|
|
||||||
$color['black'] = imagecolorallocate($image, 0, 0, 0);
|
$color['white'] = imagecolorallocate($image, 255, 255, 255);
|
||||||
$color['gray1'] = imagecolorallocate($image, 40, 40, 40);
|
$color['black'] = imagecolorallocate($image, 0, 0, 0);
|
||||||
$color['gray2'] = imagecolorallocate($image, 120, 120, 120);
|
$color['gray1'] = imagecolorallocate($image, 40, 40, 40);
|
||||||
$color['gray3'] = imagecolorallocate($image, 230, 230, 230);
|
$color['gray2'] = imagecolorallocate($image, 120, 120, 120);
|
||||||
$color['red'] = imagecolorallocate($image, 255, 100, 100);
|
$color['gray3'] = imagecolorallocate($image, 230, 230, 230);
|
||||||
$color['blue'] = imagecolorallocate($image, 125, 125, 255);
|
$color['red'] = imagecolorallocate($image, 255, 100, 100);
|
||||||
|
$color['blue'] = imagecolorallocate($image, 125, 125, 255);
|
||||||
imagefilledrectangle($image, 0, 0, $size+1, $size+1, imagecolorallocatealpha($image, 0, 0, 0, 127));
|
|
||||||
imagealphablending($image, true);
|
imagefilledrectangle($image, 0, 0, $size+1, $size+1, imagecolorallocatealpha($image, 0, 0, 0, 127));
|
||||||
|
imagealphablending($image, true);
|
||||||
$point = anglepos($size / 3, $size/2, $size/2, 90+45);
|
|
||||||
|
$point = anglepos($size / 3, $size/2, $size/2, 90+45);
|
||||||
// drawgauge($size/2, $size/2, $size, 180, 270);
|
|
||||||
drawgauge($size/2, $size/2, $size, 180 - 45, 270);
|
// drawgauge($size/2, $size/2, $size, 180, 270);
|
||||||
|
drawgauge($size/2, $size/2, $size, 180 - 45, 270);
|
||||||
// drawgauge($point['x'], $point['y'], $size / 3, 180, 270);
|
|
||||||
|
// drawgauge($point['x'], $point['y'], $size / 3, 180, 270);
|
||||||
function drawgauge($xpos, $ypos, $size, $startangle, $endangle) {
|
|
||||||
global $image, $color, $class, $classt, $classtxt;
|
function drawgauge($xpos, $ypos, $size, $startangle, $endangle) {
|
||||||
|
global $image, $color, $class, $classt, $classtxt;
|
||||||
// $startangle = 90;
|
|
||||||
$endangle = $startangle + $endangle;
|
// $startangle = 90;
|
||||||
$angsize = $endangle - $startangle;
|
$endangle = $startangle + $endangle;
|
||||||
|
$angsize = $endangle - $startangle;
|
||||||
$radius = $size / 2;
|
|
||||||
|
$radius = $size / 2;
|
||||||
imagefilledarc($image, $xpos, $ypos, $size, $size, 0, 360, $color['gray1'], IMG_ARC_PIE);
|
|
||||||
imagearc ($image, $xpos, $ypos, $size, $size, 0, 360, $color['black']);
|
imagefilledarc($image, $xpos, $ypos, $size, $size, 0, 360, $color['gray1'], IMG_ARC_PIE);
|
||||||
|
imagearc ($image, $xpos, $ypos, $size, $size, 0, 360, $color['black']);
|
||||||
for ($i = 0; $i <= 100; $i ++) {
|
|
||||||
|
for ($i = 0; $i <= 100; $i ++) {
|
||||||
if ($i % 5 == 0) {
|
|
||||||
$c = $color['white'];
|
if ($i % 5 == 0) {
|
||||||
$l = 10;
|
$c = $color['white'];
|
||||||
} else {
|
$l = 10;
|
||||||
$c = $color['black'];
|
} else {
|
||||||
$l = 0;
|
$c = $color['black'];
|
||||||
}
|
$l = 0;
|
||||||
|
}
|
||||||
if ($i >= 0 && $i <= 99) {
|
|
||||||
if ($i <= 24) {
|
if ($i >= 0 && $i <= 99) {
|
||||||
$cx = ($i) / 25 * 255;
|
if ($i <= 24) {
|
||||||
$cc = imagecolorallocate($image, 255, $cx, 0);
|
$cx = ($i) / 25 * 255;
|
||||||
} elseif ($i <= 49) {
|
$cc = imagecolorallocate($image, 255, $cx, 0);
|
||||||
$cx = ($i - 75) / 25 * 127;
|
} elseif ($i <= 49) {
|
||||||
$cc = imagecolorallocate($image, 255 - $cx, 255 - $cx, $cx);
|
$cx = ($i - 75) / 25 * 127;
|
||||||
} elseif ($i <= 74) {
|
$cc = imagecolorallocate($image, 255 - $cx, 255 - $cx, $cx);
|
||||||
$cx = ($i - 50) / 25 * 31;
|
} elseif ($i <= 74) {
|
||||||
$cc = imagecolorallocate($image, 128 - $cx, 128 - $cx, 128 + $cx);
|
$cx = ($i - 50) / 25 * 31;
|
||||||
} else {
|
$cc = imagecolorallocate($image, 128 - $cx, 128 - $cx, 128 + $cx);
|
||||||
$cx = ($i - 75) / 25 * 95;
|
} else {
|
||||||
$cc = imagecolorallocate($image, 95 - $cx, 95 - $cx, 255 - $cx);
|
$cx = ($i - 75) / 25 * 95;
|
||||||
}
|
$cc = imagecolorallocate($image, 95 - $cx, 95 - $cx, 255 - $cx);
|
||||||
|
}
|
||||||
$r = $i * ($angsize * .01) - $startangle + ($angsize * .01);
|
|
||||||
$q[0] = anglepos($radius - 3, $xpos, $ypos, $r);
|
$r = $i * ($angsize * .01) - $startangle + ($angsize * .01);
|
||||||
$q[1] = anglepos($radius - 3 - 5, $xpos, $ypos, $r);
|
$q[0] = anglepos($radius - 3, $xpos, $ypos, $r);
|
||||||
$r = $i * ($angsize * .01) - $startangle - 1;
|
$q[1] = anglepos($radius - 3 - 5, $xpos, $ypos, $r);
|
||||||
$q[2] = anglepos($radius - 3, $xpos, $ypos, $r);
|
$r = $i * ($angsize * .01) - $startangle - 1;
|
||||||
$q[3] = anglepos($radius - 3 - 5, $xpos, $ypos, $r);
|
$q[2] = anglepos($radius - 3, $xpos, $ypos, $r);
|
||||||
|
$q[3] = anglepos($radius - 3 - 5, $xpos, $ypos, $r);
|
||||||
$pts = array(
|
|
||||||
$q[0]['x'], $q[0]['y'],
|
$pts = array(
|
||||||
$q[2]['x'], $q[2]['y'],
|
$q[0]['x'], $q[0]['y'],
|
||||||
$q[3]['x'], $q[3]['y'],
|
$q[2]['x'], $q[2]['y'],
|
||||||
$q[1]['x'], $q[1]['y'],
|
$q[3]['x'], $q[3]['y'],
|
||||||
);
|
$q[1]['x'], $q[1]['y'],
|
||||||
|
);
|
||||||
// imageline($image, $p1['x'], $p1['y'], $p2['x'], $p2['y'], $cc);
|
|
||||||
// imageline($image, $p1['x'], $p1['y'], $p2['x'], $p2['y'], $cc);
|
// imageline($image, $p1['x'], $p1['y'], $p2['x'], $p2['y'], $cc);
|
||||||
imagefilledpolygon($image, $pts, 4, $cc);
|
// imageline($image, $p1['x'], $p1['y'], $p2['x'], $p2['y'], $cc);
|
||||||
// imageline($image, $q[0]['x'], $q[0]['y'], $q[3]['x'], $q[3]['y'], $cc);
|
imagefilledpolygon($image, $pts, 4, $cc);
|
||||||
}
|
// imageline($image, $q[0]['x'], $q[0]['y'], $q[3]['x'], $q[3]['y'], $cc);
|
||||||
|
}
|
||||||
$r = $i * ($angsize * .01) - $startangle;
|
|
||||||
|
$r = $i * ($angsize * .01) - $startangle;
|
||||||
$p1 = anglepos($radius - 3, $xpos, $ypos, $r);
|
|
||||||
$p2 = anglepos($radius - 3 - $l, $xpos, $ypos, $r);
|
$p1 = anglepos($radius - 3, $xpos, $ypos, $r);
|
||||||
|
$p2 = anglepos($radius - 3 - $l, $xpos, $ypos, $r);
|
||||||
imageline($image, $p1['x'], $p1['y'], $p2['x'], $p2['y'], $c);
|
|
||||||
|
imageline($image, $p1['x'], $p1['y'], $p2['x'], $p2['y'], $c);
|
||||||
$markers = ($size < 255 ? 25 : 10);
|
|
||||||
if ($i % $markers == 0) {
|
$markers = ($size < 255 ? 25 : 10);
|
||||||
$p3 = anglepos($radius - 20, $xpos, $ypos, $r);
|
if ($i % $markers == 0) {
|
||||||
$p4 = anglepos($radius - 42, $xpos, $ypos, $r);
|
$p3 = anglepos($radius - 20, $xpos, $ypos, $r);
|
||||||
|
$p4 = anglepos($radius - 42, $xpos, $ypos, $r);
|
||||||
$n = round($classt * ($i/100)) ."";
|
|
||||||
|
$n = round($classt * ($i/100)) ."";
|
||||||
$nl = strlen($n);
|
|
||||||
|
$nl = strlen($n);
|
||||||
$x = 2 + (3.5 * ($nl - 1));
|
|
||||||
imagestring($image, 3, $p3['x'] - $x, $p3['y'] - 7, $n, $color['white']);
|
$x = 2 + (3.5 * ($nl - 1));
|
||||||
}
|
imagestring($image, 3, $p3['x'] - $x, $p3['y'] - 7, $n, $color['white']);
|
||||||
|
}
|
||||||
}
|
|
||||||
|
}
|
||||||
|
|
||||||
$rad = 45;
|
|
||||||
|
$rad = 45;
|
||||||
// imageline($image, $radius, $radius, $point['x'], $point['y'], $color['black']);
|
|
||||||
// drawneedle($houra, $radius, $radius, $radius - 30, 7, - 3, $color['black']);
|
// imageline($image, $radius, $radius, $point['x'], $point['y'], $color['black']);
|
||||||
// drawneedle($mina, $radius, $radius, $radius - 5, 5, - 5, $color['black']);
|
// drawneedle($houra, $radius, $radius, $radius - 30, 7, - 3, $color['black']);
|
||||||
// drawneedle($seca, $radius, $radius, $radius - 2, 4, -10, $color['red']);
|
// drawneedle($mina, $radius, $radius, $radius - 5, 5, - 5, $color['black']);
|
||||||
|
// drawneedle($seca, $radius, $radius, $radius - 2, 4, -10, $color['red']);
|
||||||
$ang = @(min($classt, $class)/$classt) * $angsize - $startangle;
|
|
||||||
drawneedle($ang, $xpos, $ypos, $radius - 2, 5, -20, $color['blue']);
|
$ang = @(min($classt, $class)/$classt) * $angsize - $startangle;
|
||||||
|
drawneedle($ang, $xpos, $ypos, $radius - 2, 5, -20, $color['blue']);
|
||||||
if ($size >= 128) {
|
|
||||||
imagestring($image, 1, $size / 2 - 26, $size * .7 + 4 , $classtxt, $color['white']);
|
if ($size >= 128) {
|
||||||
// if (!$_GET['p']) imagestring($image, 1, $size / 2 + 14, $size * .7 + 16, "%", 0xcccccc);
|
imagestring($image, 1, $size / 2 - 26, $size * .7 + 4 , $classtxt, $color['white']);
|
||||||
digits($size * .50 - 12, $size * .7 + 14, $class, 3, 0);
|
// if (!$_GET['p']) imagestring($image, 1, $size / 2 + 14, $size * .7 + 16, "%", 0xcccccc);
|
||||||
} else {
|
digits($size * .50 - 12, $size * .7 + 14, $class, 3, 0);
|
||||||
digits($size * .50 - 12, $size * .7 + 9, $class, 3, 0);
|
} else {
|
||||||
}
|
digits($size * .50 - 12, $size * .7 + 9, $class, 3, 0);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// imagestring($image, 1, $size / 2 - 42, $size * .93 - 10, date("m/d/y H:i:s", time()), 0xcccccc);
|
|
||||||
header("Content-type: image/png");
|
// imagestring($image, 1, $size / 2 - 42, $size * .93 - 10, date("m/d/y H:i:s", time()), 0xcccccc);
|
||||||
imagepng($image);
|
header("Content-type: image/png");
|
||||||
imagedestroy($image);
|
imagepng($image);
|
||||||
|
imagedestroy($image);
|
||||||
|
|
||||||
|
|
||||||
function anglepos($radius, $origo_x, $origo_y, $angle) {
|
|
||||||
// $angle += 90;
|
function anglepos($radius, $origo_x, $origo_y, $angle) {
|
||||||
$radius--;
|
// $angle += 90;
|
||||||
$pont['x'] = $origo_x + ($radius * sin(deg2rad($angle)));
|
$radius--;
|
||||||
$pont['y'] = $origo_y - ($radius * cos(deg2rad($angle)));
|
$pont['x'] = $origo_x + ($radius * sin(deg2rad($angle)));
|
||||||
return $pont;
|
$pont['y'] = $origo_y - ($radius * cos(deg2rad($angle)));
|
||||||
}
|
return $pont;
|
||||||
|
}
|
||||||
|
|
||||||
function drawneedle($angle, $cx, $cy, $radius, $width, $tail, $color) {
|
|
||||||
global $image;
|
function drawneedle($angle, $cx, $cy, $radius, $width, $tail, $color) {
|
||||||
$point = anglepos($tail * -1, $cx, $cy, $angle + 180);
|
global $image;
|
||||||
|
$point = anglepos($tail * -1, $cx, $cy, $angle + 180);
|
||||||
$width *= .75;
|
|
||||||
|
$width *= .75;
|
||||||
$point1 = anglepos($width, $point['x'], $point['y'], $angle - 90);
|
|
||||||
$point2 = anglepos($width, $point['x'], $point['y'], $angle + 90);
|
$point1 = anglepos($width, $point['x'], $point['y'], $angle - 90);
|
||||||
$point3 = anglepos($radius, $cx, $cy, $angle);
|
$point2 = anglepos($width, $point['x'], $point['y'], $angle + 90);
|
||||||
// $point3 = anglepos($radius, $cx, $cy, $angle - .5);
|
$point3 = anglepos($radius, $cx, $cy, $angle);
|
||||||
// $point4 = anglepos($radius, $cx, $cy, $angle + .5);
|
// $point3 = anglepos($radius, $cx, $cy, $angle - .5);
|
||||||
$point9 = anglepos($radius - 4, $cx, $cy, $angle);
|
// $point4 = anglepos($radius, $cx, $cy, $angle + .5);
|
||||||
|
$point9 = anglepos($radius - 4, $cx, $cy, $angle);
|
||||||
$points = array(
|
|
||||||
$point1['x'], $point1['y'],
|
$points = array(
|
||||||
// $point['x'], $point['y'],
|
$point1['x'], $point1['y'],
|
||||||
$point2['x'], $point2['y'],
|
// $point['x'], $point['y'],
|
||||||
// $point4['x'], $point4['y'],
|
$point2['x'], $point2['y'],
|
||||||
$point3['x'], $point3['y'],
|
// $point4['x'], $point4['y'],
|
||||||
);
|
$point3['x'], $point3['y'],
|
||||||
imagefilledpolygon($image, $points, 3, $color);
|
);
|
||||||
imagepolygon($image, $points, 3, $color);
|
imagefilledpolygon($image, $points, 3, $color);
|
||||||
imageline($image, $point9['x'], $point9['y'], $cx, $cy, 0xffffff);
|
imagepolygon($image, $points, 3, $color);
|
||||||
// imagefilledpolygon($image, $points, 3, $color);
|
imageline($image, $point9['x'], $point9['y'], $cx, $cy, 0xffffff);
|
||||||
|
// imagefilledpolygon($image, $points, 3, $color);
|
||||||
}
|
|
||||||
|
}
|
||||||
|
|
||||||
function digits($x, $y, $n, $l = 4, $d = 2, $overlay = false) {
|
|
||||||
global $image;
|
function digits($x, $y, $n, $l = 4, $d = 2, $overlay = false) {
|
||||||
|
global $image;
|
||||||
$numimage = imagecreatefrompng("digits4.png");
|
|
||||||
$n = number_format($n, $d);
|
$numimage = imagecreatefrompng("images/digits4.png");
|
||||||
$n = str_replace(",", "", $n);
|
$n = number_format($n, $d);
|
||||||
$n2 = explode(".", $n);
|
$n = str_replace(",", "", $n);
|
||||||
|
$n2 = explode(".", $n);
|
||||||
$big = str_pad($n2[0], $l, ":", STR_PAD_LEFT);
|
|
||||||
$len = strlen($big);
|
$big = str_pad($n2[0], $l, ":", STR_PAD_LEFT);
|
||||||
|
$len = strlen($big);
|
||||||
for($o = 0; $o < $len; $o++) {
|
|
||||||
$chrpos = ord($big{$o}) - 48;
|
for($o = 0; $o < $len; $o++) {
|
||||||
imagecopy($image, $numimage, $x + ($o * 8), $y, $chrpos * 9, 0, 8, 14);
|
$chrpos = ord($big{$o}) - 48;
|
||||||
}
|
imagecopy($image, $numimage, $x + ($o * 8), $y, $chrpos * 9, 0, 8, 14);
|
||||||
|
}
|
||||||
$small = $n2[1];
|
|
||||||
$slen = strlen($small) + $o - 1;
|
$small = $n2[1];
|
||||||
for(; $o <= $slen; $o++) {
|
$slen = strlen($small) + $o - 1;
|
||||||
$lp = $o - $len;
|
for(; $o <= $slen; $o++) {
|
||||||
imagecopy($image, $numimage, $x + $o * 8, $y, $small{$lp} * 9, 14, 8, 14);
|
$lp = $o - $len;
|
||||||
}
|
imagecopy($image, $numimage, $x + $o * 8, $y, $small{$lp} * 9, 14, 8, 14);
|
||||||
|
}
|
||||||
$maxlen = strlen($big) + strlen($small);
|
|
||||||
imagerectangle($image, $x - 1, $y - 1, $x + $maxlen * 8, $y + 14, 0x000000);
|
$maxlen = strlen($big) + strlen($small);
|
||||||
|
imagerectangle($image, $x - 1, $y - 1, $x + $maxlen * 8, $y + 14, 0x000000);
|
||||||
if ($overlay) imagefilledrectangle($image, $x, $y, $x + $maxlen * 8 - 1, $y + 13, $overlay);
|
|
||||||
}
|
if ($overlay) imagefilledrectangle($image, $x, $y, $x + $maxlen * 8 - 1, $y + 13, $overlay);
|
||||||
|
}
|
@ -5,8 +5,8 @@
|
|||||||
|
|
||||||
$img = imagecreate(45, 37);
|
$img = imagecreate(45, 37);
|
||||||
$bg = imagecolorallocate($img, 100, 100, 100);
|
$bg = imagecolorallocate($img, 100, 100, 100);
|
||||||
$num = imagecreatefrompng("digitstiny.png");
|
$num = imagecreatefrompng("images/digitstiny.png");
|
||||||
|
|
||||||
$xk = $sql -> fetchq("SELECT * FROM `users` WHERE `id` = '1'");
|
$xk = $sql -> fetchq("SELECT * FROM `users` WHERE `id` = '1'");
|
||||||
$thread = $sql -> resultq("SELECT COUNT(`id`) FROM `threads` WHERE `user` = '1'");
|
$thread = $sql -> resultq("SELECT COUNT(`id`) FROM `threads` WHERE `user` = '1'");
|
||||||
|
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
<?php
|
|
||||||
header("Location: favicon". rand(1,8) .".ico");
|
|
||||||
return;
|
|
@ -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 |
@ -1,6 +1,6 @@
|
|||||||
<html><head><title>The COM Port -- Down</title>
|
<html><head><title>The COM Port -- Down</title>
|
||||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
|
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
a:link,a:visited,a:active,a:hover{text-decoration:none;font-weight:bold}
|
a:link,a:visited,a:active,a:hover{text-decoration:none;font-weight:bold}
|
||||||
a {
|
a {
|
||||||
@ -52,9 +52,9 @@
|
|||||||
}
|
}
|
||||||
code br { display: none; }
|
code br { display: none; }
|
||||||
input[type=radio] { color: black; background: white; }
|
input[type=radio] { color: black; background: white; }
|
||||||
|
|
||||||
</style><!--[if IE]><style type='text/css'>#f_ikachan, #f_doomcounter, #f_mustbeblind { display: none; }</style><![endif]-->
|
</style><!--[if IE]><style type='text/css'>#f_ikachan, #f_doomcounter, #f_mustbeblind { display: none; }</style><![endif]-->
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<center>
|
<center>
|
||||||
@ -83,4 +83,4 @@
|
|||||||
|
|
||||||
die();
|
die();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
header("HTTP/1.1 503 Service Unavailable");
|
header("HTTP/1.1 503 Service Unavailable");
|
||||||
?><html><head><title>Jul -- Temporarily down</title>
|
?><html><head><title>Jul -- Temporarily down</title>
|
||||||
<link rel="shortcut icon" href="/favicon3x.ico" type="image/x-icon">
|
<link rel="shortcut icon" href="/images/favicons/favicon3.ico" type="image/x-icon">
|
||||||
<style>
|
<style>
|
||||||
a:link,a:visited,a:active,a:hover{text-decoration:none;font-weight:bold}
|
a:link,a:visited,a:active,a:hover{text-decoration:none;font-weight:bold}
|
||||||
a {
|
a {
|
||||||
@ -52,7 +52,7 @@
|
|||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
code br { display: none; }
|
code br { display: none; }
|
||||||
|
|
||||||
textarea,input,select{
|
textarea,input,select{
|
||||||
border: #663399 solid 1px;
|
border: #663399 solid 1px;
|
||||||
background:#000000;
|
background:#000000;
|
||||||
@ -67,7 +67,7 @@
|
|||||||
border: #663399 solid 2px;
|
border: #663399 solid 2px;
|
||||||
font: 10pt verdana;}
|
font: 10pt verdana;}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<center>
|
<center>
|
||||||
@ -94,4 +94,4 @@
|
|||||||
</body></html>
|
</body></html>
|
||||||
<?php
|
<?php
|
||||||
die();
|
die();
|
||||||
?>
|
?>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
http_response_code(500);
|
http_response_code(500);
|
||||||
|
|
||||||
?><html><head><title>Jul is offline for now</title>
|
?><html><head><title>Jul is offline for now</title>
|
||||||
<link rel="shortcut icon" href="/favicon3.ico" type="image/x-icon">
|
<link rel="shortcut icon" href="/images/favicons/favicon3.ico" type="image/x-icon">
|
||||||
<style>
|
<style>
|
||||||
a:link,a:visited,a:active,a:hover{text-decoration:none;font-weight:bold}
|
a:link,a:visited,a:active,a:hover{text-decoration:none;font-weight:bold}
|
||||||
a {
|
a {
|
||||||
@ -54,7 +54,7 @@
|
|||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
code br { display: none; }
|
code br { display: none; }
|
||||||
|
|
||||||
textarea,input,select{
|
textarea,input,select{
|
||||||
border: #663399 solid 1px;
|
border: #663399 solid 1px;
|
||||||
background:#000000;
|
background:#000000;
|
||||||
@ -69,7 +69,7 @@
|
|||||||
border: #663399 solid 2px;
|
border: #663399 solid 2px;
|
||||||
font: 10pt verdana;}
|
font: 10pt verdana;}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<center>
|
<center>
|
||||||
@ -93,4 +93,4 @@
|
|||||||
|
|
||||||
die();
|
die();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@ -1266,7 +1266,6 @@ function dofilters($p){
|
|||||||
$p=preg_replace("'(https?://.*?photobucket.com/)'si",'images/photobucket.png#\\1',$p);
|
$p=preg_replace("'(https?://.*?photobucket.com/)'si",'images/photobucket.png#\\1',$p);
|
||||||
|
|
||||||
|
|
||||||
$p=str_replace("http://insectduel.proboards82.com","http://jul.rustedlogic.net/idiotredir.php?",$p);
|
|
||||||
// $p=str_replace("http://imageshack.us", "imageshit", $p);
|
// $p=str_replace("http://imageshack.us", "imageshit", $p);
|
||||||
$p=preg_replace("'http://.{0,3}\.?tinypic\.com'si",'tinyshit',$p);
|
$p=preg_replace("'http://.{0,3}\.?tinypic\.com'si",'tinyshit',$p);
|
||||||
$p=str_replace('<link href="http://pieguy1372.freeweb7.com/misc/piehills.css" rel="stylesheet">',"",$p);
|
$p=str_replace('<link href="http://pieguy1372.freeweb7.com/misc/piehills.css" rel="stylesheet">',"",$p);
|
||||||
@ -1421,9 +1420,6 @@ function addslashes_array($data) {
|
|||||||
return "<marquee scrollamount='". mt_rand(1, 50) ."' scrolldelay='". mt_rand(1, 50) ."' direction='". pick_any(array("left", "right")) ."'>$str</marquee>";
|
return "<marquee scrollamount='". mt_rand(1, 50) ."' scrolldelay='". mt_rand(1, 50) ."' direction='". pick_any(array("left", "right")) ."'>$str</marquee>";
|
||||||
}
|
}
|
||||||
|
|
||||||
// additional includes
|
|
||||||
require_once "lib/datetime.php";
|
|
||||||
|
|
||||||
|
|
||||||
function unescape($in) {
|
function unescape($in) {
|
||||||
|
|
||||||
|
@ -221,7 +221,6 @@
|
|||||||
- <a href='online.php'>Online users</a><br>
|
- <a href='online.php'>Online users</a><br>
|
||||||
<a href='ranks.php'>Ranks</a>
|
<a href='ranks.php'>Ranks</a>
|
||||||
- <a href='faq.php'>Rules/FAQ</a>
|
- <a href='faq.php'>Rules/FAQ</a>
|
||||||
- <a href='acs.php'>JCS</a>
|
|
||||||
- <a href='stats.php'>Stats</a>
|
- <a href='stats.php'>Stats</a>
|
||||||
- <a href='latestposts.php'>Latest Posts</a>
|
- <a href='latestposts.php'>Latest Posts</a>
|
||||||
- <a href='hex.php' title='Color Chart' class='popout' target='_blank'>Color Chart</a>
|
- <a href='hex.php' title='Color Chart' class='popout' target='_blank'>Color Chart</a>
|
||||||
@ -353,7 +352,7 @@
|
|||||||
|
|
||||||
$header1="<html><head><meta http-equiv='Content-type' content='text/html; charset=utf-8'><meta name='viewport' content='width=device-width, initial-scale=1'><title>$windowtitle</title>
|
$header1="<html><head><meta http-equiv='Content-type' content='text/html; charset=utf-8'><meta name='viewport' content='width=device-width, initial-scale=1'><title>$windowtitle</title>
|
||||||
$metatag
|
$metatag
|
||||||
<link rel=\"shortcut icon\" href=\"/favicon". (!$x_hacks['host'] ? rand(1,8) ."" : "" ) .".ico\" type=\"image/x-icon\">
|
<link rel=\"shortcut icon\" href=\"/images/favicons/favicon". (!$x_hacks['host'] ? rand(1,8) ."" : "" ) .".ico\" type=\"image/x-icon\">
|
||||||
$css
|
$css
|
||||||
</head>
|
</head>
|
||||||
$body
|
$body
|
||||||
|
Before Width: | Height: | Size: 273 B After Width: | Height: | Size: 273 B |
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
$img = imagecreate(26 * $l, 28);
|
$img = imagecreate(26 * $l, 28);
|
||||||
$bg = imagecolorallocate($img, 5, 5, 5);
|
$bg = imagecolorallocate($img, 5, 5, 5);
|
||||||
$num = imagecreatefrompng("digits.png");
|
$num = imagecreatefrompng("numgfx/bigdigits.png");
|
||||||
$o = $p;
|
$o = $p;
|
||||||
|
|
||||||
$na = str_split($n);
|
$na = str_split($n);
|
||||||
@ -21,14 +21,13 @@
|
|||||||
$x = intval($x);
|
$x = intval($x);
|
||||||
$y = floor($x / 5) * 28;
|
$y = floor($x / 5) * 28;
|
||||||
$x = ($x % 5) * 26;
|
$x = ($x % 5) * 26;
|
||||||
|
|
||||||
imagecopy($img, $num, $o * 26, 0, $x, $y, 26, 28);
|
imagecopy($img, $num, $o * 26, 0, $x, $y, 26, 28);
|
||||||
$o++;
|
$o++;
|
||||||
}
|
}
|
||||||
|
|
||||||
imagecolortransparent($img, $bg);
|
imagecolortransparent($img, $bg);
|
||||||
header("Content-type: image/png");
|
header("Content-type: image/png");
|
||||||
imagepng($img);
|
imagepng($img);
|
||||||
imagedestroy($img);
|
imagedestroy($img);
|
||||||
imagedestroy($num);
|
imagedestroy($num);
|
||||||
|
|
||||||
|
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");
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|