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 :  /home2/cp648411/public_html/simded.com/simsalmon/control/themes/

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/simsalmon/control/themes/login.php
          
<?php
if($_SESSION['simDed_login'] == 1)
{
	 $urlimg_main = '../../../';
	?>
	<li class="menu_login">
	<?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';
	}
	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/';
	}
		?>
        <span class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
			<img src="<?php echo $urlimgpro; ?>" width="39" height="39" style="border-radius:33px;"> <span class="caret" style="color:#FFF"></span>
		</span>
          <?php
		  
		  if($_SESSION['simDed_type'] == 'member')
			{
				?>
				 <ul class="dropdown-menu">
					<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 $urledit; ?>"><img src="<?php echo $urlimg_main; ?>images/edit-24.png" width="16"> แก้ไข้ข้อมูลส่วนตัว</a></li>
					<li role="separator" class="divider"></li>
					<li><a href="../control/include/logout.php"><img src="<?php echo $urlimg_main; ?>images/unlock-24.png" width="16"> ออกจากระบบ</a></li>
				  </ul>
				<?php
			}
			if($_SESSION['simDed_type'] == 'shop')
			{
				 $urlshop =  '../../'.$util_class->ck_expired_shop($_SESSION['simDed_id']);
				?>
				 <ul class="dropdown-menu">
					<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="../control/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">
					<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="../control/include/logout.php"><img src="<?php echo $urlimg_main; ?>images/unlock-24.png" width="16"> ออกจากระบบ</a></li>
				  </ul>
				<?php
			}
		  ?>
		<?php	
	?>
	</li>
	<?php
	
}
else
{
	?>
	<li class="menu_login"><button type="button" class="btn  btn-danger BtnLogin" style="" data-toggle="modal" data-target="#myModal_login">เข้าสู่ระบบ</button></li>

	<?php	
}
?>             

Anon7 - 2022
AnonSec Team