| Server IP : 104.21.37.246 / Your IP : 104.23.243.32 [ 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/simded.com/mybackend/admin/ |
Upload File : |
<?php require_once("../include/class.php");?>
<?php include("table_name.php");?>
<?php
$date = date("Y-m-d H:i:s");
if($_POST["password"] == $_POST["password_confirm"])
{
$pass_md5 = $User_db->cus_pass($_POST["password"]);
}
$list = array(
'table'=>$name_table,
'username'=>"'".@$_POST["username"]."'",
'password'=>"'".@$pass_md5."'",
'type'=>"'".@$_POST["type"]."'",
'status'=>'1',
'createdate'=>"'".$date."'"
);
$add = $actiondata_db->add_db($list);
$sql = array('table'=>$name_table,'count'=>'MAX(id) AS max_id','where'=>"");
$view_sql = $view_db->view($sql);
$row = $view_db->q($view_sql);
$max_id = $row['max_id'];
$list = array(
'table'=>'dealerprices',
'id_dealer'=>"'".@$max_id."'",
'prices'=>"'".@$dealerprices."'",
);
$add = $actiondata_db->add_db($list);
//print_r($add);
//exit;
$_SESSION['er'] = 'true';
if( $add['suc'] <> 1)
{
$_SESSION['er'] = 'false';
}
?>
<meta http-equiv="refresh" content="0;URL=list.php">
<?php
exit;
?>