3600){
$diff .= intval($diff_in_unix/3600);
$diff_in_unix = $diff_in_unix%3600;
}else{ $diff .= '00'; }
if($diff_in_unix > 60 AND $diff_in_unix < 3600){
$diff .= ":".intval($diff_in_unix / 60);
$diff_in_unix = $diff_in_unix%60;
}else{ $diff .= ':00'; }
if ($diff_in_unix < 60 AND $diff_in_unix > 0){
$diff .= ":".$diff_in_unix;
}
return $diff;
}
$x = 0;
require_once( "core-f/config-f/s1.php" );
$link = mysql_connect($AppConfig['db']['host'], $AppConfig['db']['user'], $AppConfig['db']['password']) or die(mysql_error());
mysql_select_db($AppConfig['db']['database'], $link) or die(mysql_error());
$result = mysql_query("SELECT * FROM p_queue WHERE id = 1 and proc_type= 24", $link) or die(mysql_error());
// Fetch row as associative array
$row = mysql_fetch_assoc($result);
// Access data in row
$end_date = $row["end_date"];
$fetch = mysql_query("SELECT * FROM p_queue WHERE id = 3 and proc_type= 57", $link) or die(mysql_error());
// Fetch row as associative array
$fetchs = mysql_fetch_assoc($fetch);
$redseahost = $AppConfig['system']['server_days'];
// Subtract 10 days from the end date
$subtracted_date = date('Y-m-d H:i:s', strtotime("-$redseahost days", strtotime($end_date)));
$subtracted_date4 = date('Y-m-d H:i:s', strtotime("-3 hours", strtotime($subtracted_date)));
// calculate the difference in seconds between the subtracted date and now
$diff_in_seconds = strtotime($subtracted_date4) - time();
// if the difference is negative, get the absolute value
$diff_in_seconds = abs($diff_in_seconds);
// calculate the remaining days, hours, minutes and seconds
$remaining_days = floor($diff_in_seconds / 86400);
$remaining_hours = floor(($diff_in_seconds % 86400) / 3600);
// format the remaining time as a string
$remaining_time = sprintf('%02d:%02d', $remaining_days, $remaining_hours);
$q = mysql_query ("SELECT * FROM g_summary");
$sessionTimeoutInSeconds = 9000 * 60;
$g = mysql_query ("SELECT COUNT(*) FROM p_players WHERE TIME_TO_SEC(TIMEDIFF(NOW(), last_login_date)) <= ".$sessionTimeoutInSeconds."");
$g = mysql_fetch_row ($g);
$r = mysql_fetch_assoc ($q);
$online1 = floor((TimeAgo(time() - strtotime(date($AppConfig['system']['server_start'] )))/24));
$online_before1 = floor((TimeAgo(strtotime($AppConfig['system']['server_start']) - time())/24));
$players_count1 = $r["players_count"];
$active_players_count1 = $r['active_players_count'];
$online_players_count1 = $g[0];
$x +=1;
?>
//require_once( "s2/core-f/config-f/s1.php" );
//$link = mysql_connect($AppConfig['db']['host'], $AppConfig['db']['user'], $AppConfig['db']['password']) or die(mysql_error());
//mysql_select_db($AppConfig['db']['database'], $link) or die(mysql_error());
//$result2 = mysql_query("SELECT * FROM p_queue WHERE id = 1 and proc_type= 24", $link) or die(mysql_error());
// Fetch row as associative array
//$row = mysql_fetch_assoc($result);
// Access data in row
//$end_date2 = $row["end_date"];
//$fetch2 = mysql_query("SELECT * FROM p_queue WHERE id = 3 and proc_type= 57", $link) or die(mysql_error());
// Fetch row as associative array
//$fetchs2 = mysql_fetch_assoc($fetch);
//$redseahost = $AppConfig['system']['server_days'];
// Subtract 10 days from the end date
//$subtracted_date2 = date('Y-m-d H:i:s', strtotime("-$redseahost days", strtotime($end_date)));
//$subtracted_date2 = date('Y-m-d H:i:s', strtotime("-3 hours", strtotime($subtracted_date)));
// calculate the difference in seconds between the subtracted date and now
//$diff_in_seconds2 = strtotime($subtracted_date4) - time();
// if the difference is negative, get the absolute value
//$diff_in_seconds2 = abs($diff_in_seconds);
// calculate the remaining days, hours, minutes and seconds
//$remaining_days2 = floor($diff_in_seconds / 86400);
//$remaining_hours2 = floor(($diff_in_seconds % 86400) / 3600);
// format the remaining time as a string
//$remaining_time2 = sprintf('%02d:%02d', $remaining_days, $remaining_hours);
//$q = mysql_query ("SELECT * FROM g_summary");
//$sessionTimeoutInSeconds = 9000 * 60;
//$g = mysql_query ("SELECT COUNT(*) FROM p_players WHERE TIME_TO_SEC(TIMEDIFF(NOW(), last_login_date)) <= ".$sessionTimeoutInSeconds."");
//$g = mysql_fetch_row ($g);
//$r = mysql_fetch_assoc ($q);
//$online1 = floor((TimeAgo(time() - strtotime(date($AppConfig['system']['server_start'] )))/24));
//$online_before2 = floor((TimeAgo(strtotime($AppConfig['system']['server_start']) - time())/24));
//$players_count2 = $r["players_count"];
//$active_players_count2 = $r['active_players_count'];
//$online_players_count2 = $g[0];
//$x +=1;
?>
//require_once( "s3/core-f/config-f/s1.php" );
//$link = mysql_connect($AppConfig['db']['host'], $AppConfig['db']['user'], $AppConfig['db']['password']) or die(mysql_error());
//mysql_select_db($AppConfig['db']['database'], $link) or die(mysql_error());
//$result3 = mysql_query("SELECT * FROM p_queue WHERE id = 1 and proc_type= 24", $link) or die(mysql_error());
// Fetch row as associative array
//$row = mysql_fetch_assoc($result);
// Access data in row
//$end_date3 = $row["end_date"];
//$fetch3 = mysql_query("SELECT * FROM p_queue WHERE id = 3 and proc_type= 57", $link) or die(mysql_error());
// Fetch row as associative array
//$fetchs3 = mysql_fetch_assoc($fetch);
//$redseahost3 = $AppConfig['system']['server_days'];
// Subtract 10 days from the end date
//$subtracted_date3 = date('Y-m-d H:i:s', strtotime("-$redseahost days", strtotime($end_date)));
//$subtracted_date3 = date('Y-m-d H:i:s', strtotime("-3 hours", strtotime($subtracted_date)));
// calculate the difference in seconds between the subtracted date and now
//$diff_in_seconds3 = strtotime($subtracted_date3) - time();
// if the difference is negative, get the absolute value
//$diff_in_seconds3 = abs($diff_in_seconds);
// calculate the remaining days, hours, minutes and seconds
//$remaining_days3 = floor($diff_in_seconds / 86400);
//$remaining_hours3 = floor(($diff_in_seconds % 86400) / 3600);
// format the remaining time as a string
//$remaining_time3 = sprintf('%02d:%02d', $remaining_days, $remaining_hours);
//$q = mysql_query ("SELECT * FROM g_summary");
//$sessionTimeoutInSeconds = 9000 * 60;
//$g = mysql_query ("SELECT COUNT(*) FROM p_players WHERE TIME_TO_SEC(TIMEDIFF(NOW(), last_login_date)) <= ".$sessionTimeoutInSeconds."");
//$g = mysql_fetch_row ($g);
//$r = mysql_fetch_assoc ($q);
//$online3 = floor((TimeAgo(time() - strtotime(date($AppConfig['system']['server_start'] )))/24));
//$online_before3 = floor((TimeAgo(strtotime($AppConfig['system']['server_start']) - time())/24));
//$players_count3 = $r["players_count"];
//$active_players_count3 = $r['active_players_count'];
//$online_players_count3 = $g[0];
//$x +=1;
?>
//require_once( "s4/core-f/config-f/s1.php" );
//$link = mysql_connect($AppConfig['db']['host'], $AppConfig['db']['user'], $AppConfig['db']['password']) or die(mysql_error());
//mysql_select_db($AppConfig['db']['database'], $link) or die(mysql_error());
//$result4 = mysql_query("SELECT * FROM p_queue WHERE id = 1 and proc_type= 24", $link) or die(mysql_error());
// Fetch row as associative array
//$row = mysql_fetch_assoc($result);
// Access data in row
//$end_date4 = $row["end_date"];
//$fetch4 = mysql_query("SELECT * FROM p_queue WHERE id = 3 and proc_type= 57", $link) or die(mysql_error());
// Fetch row as associative array
//$fetchs4 = mysql_fetch_assoc($fetch);
//$redseahost4 = $AppConfig['system']['server_days'];
// Subtract 10 days from the end date
//$subtracted_date4 = date('Y-m-d H:i:s', strtotime("-$redseahost days", strtotime($end_date)));
//$subtracted_date4 = date('Y-m-d H:i:s', strtotime("-3 hours", strtotime($subtracted_date)));
// calculate the difference in seconds between the subtracted date and now
//$diff_in_seconds4 = strtotime($subtracted_date4) - time();
// if the difference is negative, get the absolute value
//$diff_in_seconds4 = abs($diff_in_seconds);
// calculate the remaining days, hours, minutes and seconds
//$remaining_days4 = floor($diff_in_seconds / 86400);
//$remaining_hours4 = floor(($diff_in_seconds % 86400) / 3600);
// format the remaining time as a string
//$remaining_time4 = sprintf('%02d:%02d', $remaining_days, $remaining_hours);
//$q = mysql_query ("SELECT * FROM g_summary");
//$sessionTimeoutInSeconds = 9000 * 60;
//$g = mysql_query ("SELECT COUNT(*) FROM p_players WHERE TIME_TO_SEC(TIMEDIFF(NOW(), last_login_date)) <= ".$sessionTimeoutInSeconds."");
//$g = mysql_fetch_row ($g);
//$r = mysql_fetch_assoc ($q);
//$online4 = floor((TimeAgo(time() - strtotime(date($AppConfig['system']['server_start'] )))/24));
//$online_before4 = floor((TimeAgo(strtotime($AppConfig['system']['server_start']) - time())/24));
//$players_count4 = $r["players_count"];
//$active_players_count4 = $r['active_players_count'];
//$online_players_count4 = $g[0];
//$x +=1;
?>
//require_once( "s5/core-f/config-f/s1.php" );
//$link = mysql_connect($AppConfig['db']['host'], $AppConfig['db']['user'], $AppConfig['db']['password']) or die(mysql_error());
//mysql_select_db($AppConfig['db']['database'], $link) or die(mysql_error());
//$result5 = mysql_query("SELECT * FROM p_queue WHERE id = 1 and proc_type= 24", $link) or die(mysql_error());
// Fetch row as associative array
//$row = mysql_fetch_assoc($result);
// Access data in row
//$end_date5 = $row["end_date"];
//$fetch5 = mysql_query("SELECT * FROM p_queue WHERE id = 3 and proc_type= 57", $link) or die(mysql_error());
// Fetch row as associative array
//$fetchs5 = mysql_fetch_assoc($fetch);
//$redseahost = $AppConfig['system']['server_days'];
// Subtract 10 days from the end date
//$subtracted_date5 = date('Y-m-d H:i:s', strtotime("-$redseahost days", strtotime($end_date)));
//$subtracted_date5 = date('Y-m-d H:i:s', strtotime("-3 hours", strtotime($subtracted_date)));
// calculate the difference in seconds between the subtracted date and now
//$diff_in_seconds5 = strtotime($subtracted_date4) - time();
// if the difference is negative, get the absolute value
//$diff_in_seconds5 = abs($diff_in_seconds);
// calculate the remaining days, hours, minutes and seconds
//$remaining_days5 = floor($diff_in_seconds / 86400);
//$remaining_hours5 = floor(($diff_in_seconds % 86400) / 3600);
// format the remaining time as a string
//$remaining_time5 = sprintf('%02d:%02d', $remaining_days, $remaining_hours);
//$q = mysql_query ("SELECT * FROM g_summary");
//$sessionTimeoutInSeconds = 9000 * 60;
//$g = mysql_query ("SELECT COUNT(*) FROM p_players WHERE TIME_TO_SEC(TIMEDIFF(NOW(), last_login_date)) <= ".$sessionTimeoutInSeconds."");
//$g = mysql_fetch_row ($g);
//$r = mysql_fetch_assoc ($q);
//$online5 = floor((TimeAgo(time() - strtotime(date($AppConfig['system']['server_start'] )))/24));
//$online_before5 = floor((TimeAgo(strtotime($AppConfig['system']['server_start']) - time())/24));
//$players_count5 = $r["players_count"];
//$active_players_count5 = $r['active_players_count'];
//$online_players_count5 = $g[0];
//$x +=1;
?>
?>
الشروط و الاحكام
اخر عالم تم افتتاحه هو : العالم 5
سجل الان
أختر عالماً لتسجيل الدخول
X