[Release] Deadfront Counter by d0s3

09/29/2009 10:14 d0s3#1
Hallo, da eine fragen und heißaufdas script sind verde ich es puplic stellen viel spass damit


that is php
Code:
<?php
//
// War Script by d0s3
//
$hour_wars = array(14, 02, 20, 08);
sort($hour_wars);
$hour_now = date('H');
$hour_next = 02;

foreach($hour_wars as $hour_war) {
  if($hour_war > $hour_now) {
    $hour_next = $hour_war;
    break;
  }
}

$wartime = (mktime($hour_next, 0, 0) - time());
?>
$hour_wars = array(14, 02, 20, 08);

jsut change the 14, 02 , 20 , 08

for a ohter time

next df 14:00
next df 02:00
next df 20:00
next df 08:00

Nicht vergessen in die index.php/html

Code:
<script language="JavaScript" src="dfcounter.php" type="text/javascript">
09/29/2009 10:19 Bigshow107#2
nice
bt what about a tut ? we trying to kill leecher here so lets teach them xD

oh btw for dumbs ya these is safe you can download xD
10/05/2009 22:38 bullet21.#3
Quote:
Originally Posted by Bigshow107 View Post
nice
bt what about a tut ? we trying to kill leecher here so lets teach them xD

oh btw for dumbs ya these is safe you can download xD
umm agreed ...
10/05/2009 23:22 l2zeo#4
manipulating a special order of the time anyway?
10/06/2009 12:34 *[O]XYGEN*#5
where tp put this file?
10/06/2009 12:36 ~Kakkarot~#6
website, if you dont have one you dont need the script
04/10/2010 15:03 godman2#7
This now GOOD!!!

Quote:
<?php
//
// War Script by mta'chrono
//
$hour_wars = array(03, 06, 12, 15, 18, 21, 00);
sort($hour_wars);
$hour_now = date('H');
$hour_next = 03;


foreach($hour_wars as $hour_war)
{
if($hour_war > $hour_now)
{
$hour_next = $hour_war;
break;
}
}

$wartime = (mktime($hour_next, 0, 0) - time());
?>

<script type="text/javascript">

countdown_x1500 = <?php print $wartime; ?>; //**********
function convert_to_time_x1500(secs_x1500)
{
secs_x1500 = parseInt(secs_x1500);
hh_x1500 = secs_x1500 / 3600;
hh_x1500 = parseInt(hh_x1500);
mmt_x1500 = secs_x1500 - (hh_x1500 * 3600);
mm_x1500 = mmt_x1500 / 60;
mm_x1500 = parseInt(mm_x1500);
ss_x1500 = mmt_x1500 - (mm_x1500 * 60);

if (hh_x1500 > 23)
{
dd_x1500 = hh_x1500 / 24;
dd_x1500 = parseInt(dd_x1500);
hh_x1500 = hh_x1500 - (dd_x1500 * 24);
}
else
{ dd_x1500 = 0; }

if (ss_x1500 < 10) { ss_x1500 = "0"+ss_x1500; }
if (mm_x1500 < 10) { mm_x1500 = "0"+mm_x1500; }
if (hh_x1500 < 10) { hh_x1500 = "0"+hh_x1500; }
if (dd_x1500 == 0)
{ return (hh_x1500+":"+mm_x1500+":"+ss_x1500); }
else
{
if (dd_x1500 > 1)
{ return (dd_x1500+" days "+hh_x1500+":"+mm_x1500+":"+ss_x1500); }
else
{ return (dd_x1500+" day "+hh_x1500+":"+mm_x1500+":"+ss_x1500); }
}
}

function do_cd_x1500()
{
if (countdown_x1500 < 0)
{
document.getElementById('nationwarx1500').innerHTM L = "<b><span style='color: red;'>Deadfront is NOW!!</span></b>";
}
else
{
document.getElementById('nationwarx1500').innerHTM L = convert_to_time_x1500(countdown_x1500) + " hours Next DeathFront CountDown";
setTimeout('do_cd_x1500()', 1000);
}
countdown_x1500 = countdown_x1500 - 1;
}

document.write("<span id='nationwarx1500'>valami</span>\n"); //**********
do_cd_x1500();

</script>
04/10/2010 15:08 iAslana#8
+7 Reported At: Sat 10 Apr 2010 - 13:07:52 GMT +1 Cause: Bumping old thread
04/10/2010 15:10 Nosferatu.#9
Quote:
Originally Posted by godman2 View Post
This now GOOD!!!
Please Create your own Thread to Release your Script.
Dont Bump Threads.
04/10/2010 15:19 godman2#10
A sorry bad post but now this old Script good... im only reparied old and bad script...
04/10/2010 16:13 ~Kakkarot~#11
#closed
#warned