| Server IP : 104.21.37.246 / Your IP : 104.23.243.33 [ Web Server : Apache System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64 User : cp648411 ( 1354) PHP Version : 7.2.34 Disable Function : NONE Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home2/cp648411/public_html/kainumber.com/wallpaper/backend/order/ |
Upload File : |
<?php require_once("../include/class.php");?>
<?php
$name_table = 'wal_order';
$name_folder = 'wal_order';
$name_folderimg = 'wal_order';
$wide_img = '200';
?>
<?php
$date = date("Y-m-d H:i:s");
$list = array(
'table'=>$name_table,
'id_order'=>$_GET["TransactionID"],
'status'=>$_GET['st'],
'datetime'=>$date
);
$add = $actiondata_db->edit_db($list);
$name_table4='wal_log_order';
$sql = array('table'=>$name_table4,'count'=>'MAX(id) AS max_id');
$view_sql = $view_db->view($sql);
$row = $view_db->q($view_sql);
$max_id = $row['max_id'];
if($max_id==''){
$max_id=1;
}else{
$max_id=$max_id+1;
}
$sql2 = array('table'=>'wal_order','where'=>'id_order = "'.$_GET["TransactionID"].'"');
$view_sql2 = $view_db->view($sql2);
$row2 = $view_db->q($view_sql2);
if($row2['code']!=''){
$type=2;
}else{
$type=1;
}
$list = array(
'table'=>$name_table4,
'id'=>"'".$max_id."'",
'id_order'=>"'".$_GET["TransactionID"]."'",
'type'=>"'".$type."'",
'datetime'=>"'".@$date."'",
'status'=>"'".$_GET['st']."'"
);
$add = $actiondata_db->add_db($list);
//print_r($add);
//exit;
$_SESSION['er'] = 'true';
if( $add['suc'] <> 1)
{
$_SESSION['er'] = 'false';
}
if($_SESSION['er'] == 'true')
{
unset($_SESSION['con']);
unset($_SESSION['order']);
unset($_SESSION['er']);
unset($_SESSION['website']);
unset($_SESSION['web_ref']);
unset($_SESSION['web_host']);
}
?>
<meta http-equiv="refresh" content="0;URL=list.php">
<?php
exit;
?>