| Server IP : 172.67.216.113 / 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 : /home/cp648411/www/kainumber.com/wallpaper/member/ |
Upload File : |
<?php include('../include/class.php');?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php
$datetime = date("Y-m-d H:i:s");
$date = date("Y-m-d");
///print_r($_POST);
//exit();
$id = $_GET['id'];
$namef= explode(" ",$_GET['name']);
$null='';
$sql = array('table'=>'wal_member','count'=>'count(id) AS count_id','where'=>"connect_fbID = '". $id ."' AND status = 1");
$view_sql = $view_db->view($sql);
$row = $view_db->q($view_sql);
$row["count_id"];
//print_r($row);
//exit();
if($row["count_id"]==0)
{
$list = array(
'table'=>'wal_member',
'name'=>"'".@$namef[0]."'",
'lastname'=>"'".@$namef[1]."'",
'connect_fbID'=>"'".@$id."'",
'connect_lineID'=>"'".@$null."'",
'birthday'=>"'".$date."'",
'address'=>"'".@$null."'",
'province'=>"'".@$null."'",
'phone'=>"'".@$null."'",
'mail'=>"'".@$null."'",
'zipcode'=>"'".@$null."'",
'password'=>"'".@$null."'",
'status'=>'1',
'createdate'=>"'".$datetime."'",
'up_date'=>"'".$datetime."'"
);
$add = $actiondata_db->add_db($list);
// print_r($add);
// exit();
//$add['suc'] = 1;
if( $add['suc'] == 1)
{
$sql = array('table'=>'wal_member','count'=>'MAX(id) AS max_id','where'=>"");
$view_sql = $view_db->view($sql);
$row = $view_db->q($view_sql);
$max_id = $row['max_id'];
$_SESSION["wal_member_login"] = 1;
$_SESSION["wal_member_name"] = $namef[0];
$_SESSION["wal_member_lastname"] = $namef[1];
$_SESSION['wal_member_id'] = $max_id;
if (@$_GET['re']!='') {
?>
<meta http-equiv="refresh" content="0;URL=<?php echo @$_GET['re']; ?>" />
<?php
}else{
echo "<meta http-equiv=\"refresh\" content=\"0; url=../profile/index.php\">";
}
}
}else{
$sql = array('table'=>'wal_member','where'=>"connect_fbID = '". $id ."' AND status = 1");
$view_sql = $view_db->view($sql);
$row = $view_db->q($view_sql);
$_SESSION["wal_member_login"] = 1;
$_SESSION["wal_member_name"] = $row['name'];
$_SESSION["wal_member_lastname"] = $row['lastname'];
$_SESSION['wal_member_id'] = $row['id'];
if (@$_GET['re']!='') {
?>
<meta http-equiv="refresh" content="0;URL=<?php echo @$_GET['re']; ?>" />
<?php
}else{
echo "<meta http-equiv=\"refresh\" content=\"0; url=../profile/index.php\">";
}
}
?>