• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Simple Countdown php script

oh guys, NeverDown has relased nice script to countdown your start server and you are using javascript? it's not well.
Script relased by NeverDown is wrote in php that means you can implement this script into your CMS, add few fucntions and make config file and implement for eternality exist!.

Here you have one of options:
open you config file in ACC and add there these lines:
Code:
//Countdown
$config['site']['countdown'] = 1; // SHOW COUNT DOWN 1-yes / 0-no
    $config['site']['year'] = 2020; // year
    $config['site']['month'] = 1; // month
    $config['site']['day'] = 15; // day
    $config['site']['hour'] = 00; // hour
    $config['site']['minute'] = 00; // minute
    $config['site']['second'] = 00; // second
Goto countdown.php file and replace all by this (REMEBER countdown.php must be in your main dir):
Code:
<?
// Define your target date here
    $targetYear   = $config['site']['year'];
    $targetMonth  = $config['site']['month'];
    $targetDay    = $config['site']['day'];
    $targetHour   = $config['site']['hour'];
    $targetMinute = $config['site']['minute'];
    $targetSecond = $config['site']['second'];
// End target date definition

$targetDate = mktime($targetHour,$targetMinute,$targetSecond,$targetMonth,$targetDay,$targetYear);
$actualDate = time();

$secondsDiff = $targetDate - $actualDate;

$remainingDay     = floor($secondsDiff/60/60/24);
$remainingHour    = floor(($secondsDiff-($remainingDay*60*60*24))/60/60);
$remainingMinutes = floor(($secondsDiff-($remainingDay*60*60*24)-($remainingHour*60*60))/60);
$remainingSeconds = floor(($secondsDiff-($remainingDay*60*60*24)-($remainingHour*60*60))-($remainingMinutes*60));

$dateFormat = "Y-m-d H:i:s";

$targetDateDisplay = date($dateFormat,$targetDate);
$actualDateDisplay = date($dateFormat,$actualDate);
?>

Now go to your layout.php file and put upon <?PHP echo $main_content; ?> these few lines of code:
Code:
<?PHP
include($layout_name.'/../../countdown.php');
if($config['site']['countdown'] == 1){
						echo '<div class="SmallBox" >  <div class="MessageContainer" >    <div class="BoxFrameHorizontal" style="background-image:url('.$layout_name.'/images/content/box-frame-horizontal.gif);" /></div>    <div class="BoxFrameEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div>    <div class="BoxFrameEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div>    <div class="ErrorMessage" >      <div class="BoxFrameVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></div>      <div class="BoxFrameVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></div>      <div class="AttentionSign" style="background-image:url('.$layout_name.'/images/content/attentionsign.gif);" /></div><b><font size="3"><blink>'.$config['server']['serverName'].' is going to start for '.$remainingDay.' days, '.$remainingHour.' hours, '.$remainingMinutes.' minutes, '.$remainingSeconds.' seconds get ready!.</blink></font><br></b></div>    <div class="BoxFrameHorizontal" style="background-image:url('.$layout_name.'/images/content/box-frame-horizontal.gif);" /></div>    <div class="BoxFrameEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div>    <div class="BoxFrameEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div>  </div></div><br>';
}
?>

I hope you like it, enjoy!.

oh, nice :D rep+ :):)
 
oh guys, NeverDown has relased nice script to countdown your start server and you are using javascript? it's not well.
Script relased by NeverDown is wrote in php that means you can implement this script into your CMS, add few fucntions and make config file and implement for eternality exist!.

Here you have one of options:
open you config file in ACC and add there these lines:
Code:
//Countdown
$config['site']['countdown'] = 1; // SHOW COUNT DOWN 1-yes / 0-no
    $config['site']['year'] = 2020; // year
    $config['site']['month'] = 1; // month
    $config['site']['day'] = 15; // day
    $config['site']['hour'] = 00; // hour
    $config['site']['minute'] = 00; // minute
    $config['site']['second'] = 00; // second
Goto countdown.php file and replace all by this (REMEBER countdown.php must be in your main dir):
Code:
<?
// Define your target date here
    $targetYear   = $config['site']['year'];
    $targetMonth  = $config['site']['month'];
    $targetDay    = $config['site']['day'];
    $targetHour   = $config['site']['hour'];
    $targetMinute = $config['site']['minute'];
    $targetSecond = $config['site']['second'];
// End target date definition

$targetDate = mktime($targetHour,$targetMinute,$targetSecond,$targetMonth,$targetDay,$targetYear);
$actualDate = time();

$secondsDiff = $targetDate - $actualDate;

$remainingDay     = floor($secondsDiff/60/60/24);
$remainingHour    = floor(($secondsDiff-($remainingDay*60*60*24))/60/60);
$remainingMinutes = floor(($secondsDiff-($remainingDay*60*60*24)-($remainingHour*60*60))/60);
$remainingSeconds = floor(($secondsDiff-($remainingDay*60*60*24)-($remainingHour*60*60))-($remainingMinutes*60));

$dateFormat = "Y-m-d H:i:s";

$targetDateDisplay = date($dateFormat,$targetDate);
$actualDateDisplay = date($dateFormat,$actualDate);
?>

Now go to your layout.php file and put upon <?PHP echo $main_content; ?> these few lines of code:
Code:
<?PHP
include($layout_name.'/../../countdown.php');
if($config['site']['countdown'] == 1){
						echo '<div class="SmallBox" >  <div class="MessageContainer" >    <div class="BoxFrameHorizontal" style="background-image:url('.$layout_name.'/images/content/box-frame-horizontal.gif);" /></div>    <div class="BoxFrameEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div>    <div class="BoxFrameEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div>    <div class="ErrorMessage" >      <div class="BoxFrameVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></div>      <div class="BoxFrameVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></div>      <div class="AttentionSign" style="background-image:url('.$layout_name.'/images/content/attentionsign.gif);" /></div><b><font size="3"><blink>'.$config['server']['serverName'].' is going to start for '.$remainingDay.' days, '.$remainingHour.' hours, '.$remainingMinutes.' minutes, '.$remainingSeconds.' seconds get ready!.</blink></font><br></b></div>    <div class="BoxFrameHorizontal" style="background-image:url('.$layout_name.'/images/content/box-frame-horizontal.gif);" /></div>    <div class="BoxFrameEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div>    <div class="BoxFrameEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div>  </div></div><br>';
}
?>

I hope you like it, enjoy!.
worked perfect thanks!
 
oh guys, NeverDown has relased nice script to countdown your start server and you are using javascript? it's not well.
Script relased by NeverDown is wrote in php that means you can implement this script into your CMS, add few fucntions and make config file and implement for eternality exist!.

Here you have one of options:
open you config file in ACC and add there these lines:
Code:
//Countdown
$config['site']['countdown'] = 1; // SHOW COUNT DOWN 1-yes / 0-no
    $config['site']['year'] = 2020; // year
    $config['site']['month'] = 1; // month
    $config['site']['day'] = 15; // day
    $config['site']['hour'] = 00; // hour
    $config['site']['minute'] = 00; // minute
    $config['site']['second'] = 00; // second
Goto countdown.php file and replace all by this (REMEBER countdown.php must be in your main dir):
Code:
<?
// Define your target date here
    $targetYear   = $config['site']['year'];
    $targetMonth  = $config['site']['month'];
    $targetDay    = $config['site']['day'];
    $targetHour   = $config['site']['hour'];
    $targetMinute = $config['site']['minute'];
    $targetSecond = $config['site']['second'];
// End target date definition

$targetDate = mktime($targetHour,$targetMinute,$targetSecond,$targetMonth,$targetDay,$targetYear);
$actualDate = time();

$secondsDiff = $targetDate - $actualDate;

$remainingDay     = floor($secondsDiff/60/60/24);
$remainingHour    = floor(($secondsDiff-($remainingDay*60*60*24))/60/60);
$remainingMinutes = floor(($secondsDiff-($remainingDay*60*60*24)-($remainingHour*60*60))/60);
$remainingSeconds = floor(($secondsDiff-($remainingDay*60*60*24)-($remainingHour*60*60))-($remainingMinutes*60));

$dateFormat = "Y-m-d H:i:s";

$targetDateDisplay = date($dateFormat,$targetDate);
$actualDateDisplay = date($dateFormat,$actualDate);
?>

Now go to your layout.php file and put upon <?PHP echo $main_content; ?> these few lines of code:
Code:
<?PHP
include($layout_name.'/../../countdown.php');
if($config['site']['countdown'] == 1){
                        echo '<div class="SmallBox" >  <div class="MessageContainer" >    <div class="BoxFrameHorizontal" style="background-image:url('.$layout_name.'/images/content/box-frame-horizontal.gif);" /></div>    <div class="BoxFrameEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div>    <div class="BoxFrameEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div>    <div class="ErrorMessage" >      <div class="BoxFrameVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></div>      <div class="BoxFrameVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></div>      <div class="AttentionSign" style="background-image:url('.$layout_name.'/images/content/attentionsign.gif);" /></div><b><font size="3"><blink>'.$config['server']['serverName'].' is going to start for '.$remainingDay.' days, '.$remainingHour.' hours, '.$remainingMinutes.' minutes, '.$remainingSeconds.' seconds get ready!.</blink></font><br></b></div>    <div class="BoxFrameHorizontal" style="background-image:url('.$layout_name.'/images/content/box-frame-horizontal.gif);" /></div>    <div class="BoxFrameEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div>    <div class="BoxFrameEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></div>  </div></div><br>';
}
?>

I hope you like it, enjoy!.

Dude I must be doing something wrong. It only says (Helzera is going to start in days, hours, minutes, seconds get ready!) on the top of my website. I think it has something to do with where I put countdown.php. Using Gesior 2012 0.3.6
 
Back
Top