Move a bunch of files around to clean things up
@ -1,10 +1,10 @@
|
||||
<?php
|
||||
function timedelta($array1, $array2) {
|
||||
$time = array();
|
||||
$time['seconds'] = 60 - abs($array1['seconds'] - $array2['seconds']);
|
||||
$time['minutes'] = abs($array1['minutes'] - $array2['minutes']);
|
||||
$time['hours'] = abs($array1['hours'] - $array2['hours']);
|
||||
|
||||
return $time;
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
function timedelta($array1, $array2) {
|
||||
$time = array();
|
||||
$time['seconds'] = 60 - abs($array1['seconds'] - $array2['seconds']);
|
||||
$time['minutes'] = abs($array1['minutes'] - $array2['minutes']);
|
||||
$time['hours'] = abs($array1['hours'] - $array2['hours']);
|
||||
|
||||
return $time;
|
||||
}
|
||||
?>
|
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
?>
|
||||
?>
|
@ -1,214 +1,215 @@
|
||||
<?php
|
||||
|
||||
require "lib/function.php";
|
||||
//$sql->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);
|
||||
}
|
||||
<?php
|
||||
|
||||
chdir("../");
|
||||
require "lib/function.php";
|
||||
//$sql->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);
|
||||
}
|
@ -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'");
|
||||
|
||||
|
@ -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>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
|
||||
|
||||
|
||||
<style>
|
||||
a:link,a:visited,a:active,a:hover{text-decoration:none;font-weight:bold}
|
||||
a {
|
||||
@ -52,9 +52,9 @@
|
||||
}
|
||||
code br { display: none; }
|
||||
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>
|
||||
<body>
|
||||
<center>
|
||||
@ -83,4 +83,4 @@
|
||||
|
||||
die();
|
||||
|
||||
?>
|
||||
?>
|
||||
|
@ -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 {
|
||||
@ -52,7 +52,7 @@
|
||||
display: block;
|
||||
}
|
||||
code br { display: none; }
|
||||
|
||||
|
||||
textarea,input,select{
|
||||
border: #663399 solid 1px;
|
||||
background:#000000;
|
||||
@ -67,7 +67,7 @@
|
||||
border: #663399 solid 2px;
|
||||
font: 10pt verdana;}
|
||||
</style>
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<center>
|
||||
@ -94,4 +94,4 @@
|
||||
</body></html>
|
||||
<?php
|
||||
die();
|
||||
?>
|
||||
?>
|
||||
|
@ -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 {
|
||||
@ -54,7 +54,7 @@
|
||||
display: block;
|
||||
}
|
||||
code br { display: none; }
|
||||
|
||||
|
||||
textarea,input,select{
|
||||
border: #663399 solid 1px;
|
||||
background:#000000;
|
||||
@ -69,7 +69,7 @@
|
||||
border: #663399 solid 2px;
|
||||
font: 10pt verdana;}
|
||||
</style>
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<center>
|
||||
@ -93,4 +93,4 @@
|
||||
|
||||
die();
|
||||
|
||||
?>
|
||||
?>
|
||||
|
@ -1266,7 +1266,6 @@ function dofilters($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);
|
||||
@ -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>";
|
||||
}
|
||||
|
||||
// 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
|
||||
|
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);
|
||||
@ -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);
|
||||
|
||||
|
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");
|
||||
|
||||
|
||||
|
||||
|