-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathid_tomtest.php3
More file actions
45 lines (39 loc) · 1.21 KB
/
id_tomtest.php3
File metadata and controls
45 lines (39 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?
include "config.php3";
$q= $db_stand->query("select sent from standstats");
$counter = $q->field(0,"sent");
$countdown = 3000-$counter;
echo " ".$countdown;
$arÊ=Êdate("Y",time());
$hÊ=Ê21;
$mÊ=Ê0;
$sÊ=Ê0;
$dÊ=Ê15;ÊÊÊÊÊÊÊÊÊ
$mthÊ=Ê11;ÊÊÊÊÊÊÊÊÊ
$yearÊ=Ê$ar;Ê// makes year equal to the current year
$ds_untilÊ=Ê(int)((mktimeÊ($h,$m,$s,$mth,$d,$ar)Ê-Ê
time(void))/86400);
$hs_untilÊ=Ê(int)((mktimeÊ($h,$m,$s,$mth,$d,$ar)Ê-Ê
time(void))/3600);
$h_offsetÊ=Ê$hs_until;
$hs_untilÊ-=Ê$ds_untilÊ*Ê24;
$ms_untilÊ=Ê(int)((mktimeÊ($h,$m,$s,$mth,$d,$ar)Ê-Ê
time(void))/60);
$m_offsetÊ=Ê$ms_until;
$ms_untilÊ-=Ê$h_offsetÊ*Ê60;
$ss_untilÊ=Ê(int)((mktimeÊ($h,$m,$s,$mth,$d,$ar)Ê-Ê
time(void))/1);
$ss_untilÊ-=Ê$m_offsetÊ*Ê60;
$before_afterÊ=Ê"until";
$factorÊ=Ê1;
$before_sinceÊ=Ê(int)((mktimeÊ($h,$m,$s,$mth,$d,$ar)Ê-Ê
time(void))/1);
ifÊ($before_since<0)
{
ÊÊÊÊ$factorÊ=Ê-1;
ÊÊÊÊ$before_afterÊ=Ê"since";
}
//output the countdown
echo"<br><br><br><br><br><br>";
printÊ("It's "Ê.Ê($ds_untilÊ*Ê$factor)Ê.Ê" days, "Ê.Ê($factorÊ*Ê$hs_until)Ê.Ê" hours, "Ê.Ê($ms_untilÊ*Ê$factor)Ê.Ê" minutes and "Ê.Ê($factorÊ*Ê$ss_until)Ê.Ê"ÊsecondsÊuntilÊDavid Blunkett stands up and claims that the UK likes the idea of ID cards"
?>Ê