Uname:
Linux server.thebazaar99.com 5.14.0-687.17.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jun 22 07:21:26 EDT 2026 x86_64
Software:
Apache
PHP version:
8.3.32 [ PHP INFO ] PHP os:
Linux
Server Ip:
163.227.92.254
Your Ip:
216.73.217.24
User:
gutlooks (1003) | Group:
gutlooks (1005)
Safe Mode:
OFF
Disable Function:
exec,passthru,shell_exec,system
<?php
// function __autoload($class)
// {
// include("admin_login/classess/".$class.".php");
// }
spl_autoload_register(function($class) {
include("admin_login/classess/".$class.".php");
});
$sqlfun = new sqlfunction();
$admin = new admin_login();
date_default_timezone_set("Asia/kolkata");
$cnd = "";
$check = $sqlfun->fetchdata("game",$cnd);
while($row = $check->fetch(PDO::FETCH_OBJ))
{
$g_id = $row->g_id;
$open_time = $row->open_time;
$close_time = $row->close_time;
$kya = $row->result_date;
$datee = date("Y-m-d");
if($kya == 1)
{
$end_date = date('Y-m-d H:i:s', strtotime("+".$kya." day",strtotime($datee."".$close_time)));
$start_date = date('Y-m-d H:i:s', strtotime("+0 day",strtotime($datee."".$open_time)));
$close_timestamp = strtotime($end_date);
$open_timestamp = strtotime($start_date);
// $end_date = date('Y-m-d H:i:s', strtotime("+0 day",strtotime($datee."".$close_time)));
// $start_date = date('Y-m-d H:i:s', strtotime("-1 day",strtotime($datee."".$open_time)));
}
else
{
$datee = date("Y-m-d");
$end_date = date('Y-m-d H:i:s', strtotime("+".$kya." day",strtotime($datee."".$close_time)));
$start_date = date('Y-m-d H:i:s', strtotime("+0 day",strtotime($datee."".$open_time)));
$close_timestamp = strtotime($end_date);
$open_timestamp = strtotime($start_date);
}
$data_array = array("open_timestamp"=>$open_timestamp,"close_timestamp"=>$close_timestamp,"date"=>$datee);
$cnd_update = "g_id = '$g_id'";
$sqlfun->updated("game",$data_array,$cnd_update);
}
$insert = array("datetime"=>date("Y-m-d H:i:s"));
$sqlfun->ins_data("timestamp_cron",$insert)
?>