Skip to content

Commit

Permalink
Move a bunch of files around to clean things up
Browse files Browse the repository at this point in the history
  • Loading branch information
Xkeeper0 committed Jan 25, 2018
1 parent 9b43559 commit 9ec080c
Show file tree
Hide file tree
Showing 36 changed files with 249 additions and 296 deletions.
20 changes: 10 additions & 10 deletions lib/datetime.php → cruft/datetime.php
@@ -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;
}
?>
10 changes: 5 additions & 5 deletions newyear.php → cruft/newyear.php
Expand Up @@ -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);
Expand All @@ -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);

Expand Down Expand Up @@ -89,7 +89,7 @@
}

if ($w) imagecopymerge($image, $imagenum, $ofs, 0, $p, 0, $w, 7, 100);

$ofs += $of;
}

Expand All @@ -99,4 +99,4 @@
imagedestroy($image);
imagedestroy($imagenum);

?>
?>

0 comments on commit 9ec080c

Please sign in to comment.