AnonSec Shell
Server IP : 172.67.216.113  /  Your IP : 104.23.243.33   [ 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 :  /home/cp648411/www/simded.com/mybackend/m-shop_141160/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


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

Current File : /home/cp648411/www/simded.com/mybackend/m-shop_141160/activatesave.php
<?php require_once("../include/class.php");?>
<?php include("table_name.php");?>
<?php
include("../include/mail.php");

	


/*echo '<pre>';
print_r($_POST);
echo '</pre>';*/

if($_POST["activate"] == 1)
{
	$sql = array('table'=>$name_table,'where'=>"id = '". $_POST["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 = $_POST["id"];
		Writefile($strFileName,$shop_id);
		////เขียนไฟล์ 
		
			
		$pass = trim($row["password"]);
		$pass_md5 = $User_db->cus_pass($pass);
		
			$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 . '</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(strlen($pass) < 9)
			{
				if(!$mail->Send()) 
				{
					$_SESSION['er'] = 'false';
					echo "<br> Mailer Error: " . $mail->ErrorInfo;
					exit();
				}
				$list = array(	
					'table'=>$name_table,
					'id'=>$_POST["id"],
					'activate'=>$_POST["activate"],
					'password'=>$pass_md5,
					'status'=>1
				);
				$add = $actiondata_db->edit_db($list);
			
				
				$sql = array('table'=>'setting_shop','count'=>'COUNT(id) AS countid','where'=>"id_shop = '". $_POST["id"]."'");
				$view_sql = $view_db->view($sql);
				$row = $view_db->q($view_sql);	
				if($row['countid'] == 0)
				{
					$list = array(	
					'table'=>'setting_shop',
					'id_shop'=>"'".$_POST["id"]."'",
					'sort_ber'=>'"update_DESC"',
					'limits'=>"'30'",
					'hideber'=>'1',
					'bargain'=>'1',
					'analyzeber'=>'1',
					'analyzeberby'=>'0',
					'sortber_s'=>'1',	
					'createdate'=>"'".$date."'",
					'up_date'=>"'".$date."'",
					);
					$add = $actiondata_db->add_db($list);
					
					/*echo '<pre>';
					print_r($add);
					echo '</pre>';*/
					
				}
			
					
				$sql = array('table'=>'prophecy','count'=>'COUNT(id) AS countid','where'=>"id_shop = '". $_POST["id"]."'");
				$view_sql = $view_db->view($sql);
				$row = $view_db->q($view_sql);
				if($row['countid'] == 0)
				{
					$list = array(	
						'table'=>'prophecy',
						'id_shop'=>"'".$_POST["id"]."'"
					);
					$add = $actiondata_db->add_db($list);
				}
				$sql = array('table'=>'prophecy_score','count'=>'COUNT(id) AS countid','where'=>"id_shop = '". $_POST["id"]."'");
				$view_sql = $view_db->view($sql);
				$row = $view_db->q($view_sql);	
				if($row['countid'] == 0)
				{
					$list = array(	
					'table'=>'prophecy_score',
					'id_shop'=>"'".$_POST["id"]."'"
					);
					$add = $actiondata_db->add_db($list);
				}
			}
			else
			{
				$list = array(	
					'table'=>$name_table,
					'id'=>$_POST["id"],
					'activate'=>$_POST["activate"],
					'status'=>1
				);
				$add = $actiondata_db->edit_db($list);	
			}
			
	}
}
else
{
	$list = array(	
		'table'=>$name_table,
		'id'=>$_POST["id"],
		'activate'=>$_POST['activate'],
		'status'=>1
	);
	$add = $actiondata_db->edit_db($list);
}

/*echo '<pre>';	
print_r($add);
echo '</pre>';*/
//exit;

$_SESSION['er'] = 'true';
if( $add['suc'] <> 1)
{
	$_SESSION['er'] = 'false';
}

?>
<meta http-equiv="refresh" content="0;URL=list.php">
<?php
exit;
?>

Anon7 - 2022
AnonSec Team