403Webshell
Server IP : 104.21.80.248  /  Your IP : 172.71.28.155
Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30
System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586
User : SYSTEM ( 0)
PHP Version : 5.6.30
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  E:/Inetpub/www/news/group/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : E:/Inetpub/www/news/group//news_office.php
<?php 
session_start();
include("header.php");
$id = $mysqli->escape_string($_GET['id']);
 ?>
 <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ประกาศ</title>
 
<style type="text/css">
<!--
#Layer1 {
	position:absolute;
	left:25px;
	top:10px;
	width:100px;
	height:99px;
	z-index:1;
}
-->
</style>
<?php
// Create the function, so you can use it
function isMobile() {
    return preg_match("/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i", $_SERVER["HTTP_USER_AGENT"]);
}
// If the user is on a mobile device, redirect them
if(isMobile()) {} else {
echo "<div id='Layer1'><a href='index.html'><img src='images/logo.png'></a></div>";
}
?>
          <script src="bootstrap/js/jquery-3.2.1.min.js"></script>  
           <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" />  
           <script src="bootstrap/js/jquery.dataTables.min.js"></script>  
           <script src="bootstrap/js/dataTables.bootstrap.min.js"></script>            
           <link rel="stylesheet" href="bootstrap/css/dataTables.bootstrap.min.css" /> 
		   <script src="bootstrap/js/bootstrap.min.js"></script>
		   
		<script type="text/javascript" language="javascript" >
			$(document).ready(function() {
							
				var dataTable = $('#datatable1').DataTable( {
					"processing": true,
					"serverSide": true,
					"pageLength": 10,
					"pagingType": "full_numbers",    
					"ordering": true,
					"order": [[0, "desc"]],
					"columnDefs": [ {
						  "targets": 0,
						  "orderable": false,
						  "searchable": false
						   
						} ],
					"ajax":{
						url :"fetchfile.php", // json datasource
						type: "post",  // method  , by default get
						error: function(){  // error handling
							$(".datatable1-error").html("");
							$("#datatable1").append('<tbody class="datatable1-error"><tr><th colspan="3">ไม่พบข้อมูลในฐานข้อมูล</th></tr></tbody>');
							$("#datatable1_processing").css("display","none");
							
						}
					}
				} );
				
				
				$("#bulkDelete").on('click',function() { // bulk checked
					var status = this.checked;
					$(".deleteRow").each( function() {
						$(this).prop("checked",status);
					});
				});
				
				$('#deleteTriger').on("click", function(event){ // triggering delete one by one
					if( $('.deleteRow:checked').length > 0 ){  // at-least one checkbox checked
						var ids = [];
						$('.deleteRow').each(function(){
							if($(this).is(':checked')) { 
								ids.push($(this).val());
							}
						});
						var ids_string = ids.toString();  // array to string conversion 
						$.ajax({
							type: "POST",
							url: "employee-delete.php",
							data: {data_ids:ids_string},
							success: function(result) {
								dataTable.draw(); // redrawing datatable
							},
							async:false
						});
					}
				});	
			} );
		</script>

</head>

<body>
<?php if(!isset($_SESSION['username'])){?>

<?php
			echo "<script language=javascript>alert('คุณยังไม่ได้เข้าระบบ');</script>";
			echo "<script>window.parent.location=\"index.html\"</script>";

?>

<?php }else{ ?>
		<div class="col-sm-12">
		
			<table id="datatable1"  class="table table-hover table-datatable table-striped table-bordered">
					<thead>
						<tr>
							<th width="50"><a href="#" data-toggle="modal" data-target="#myModal<?=$id;?>">
							<button id="deleteTriger" type="button" class="btn btn-info btn-sm"><span class="glyphicon glyphicon-plus"></span>Add</button></a>
							</th>
							<th>รายการ</th>
							<th>จัดการ</th>
							<th width="110">วันที่เขียน</th>
							<th width="50">เปิดอ่าน</th>
						</tr>
					</thead>
			</table>
		</div>
<!-- Modal -->
<div id="myModal<?=$id;?>" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">ข่าวประกาศ/จัดจ้าง</h4>
      </div>
      <div class="modal-body">
        <p>
<form id="form1" name="form1" method="post" action="file_school_save.php?id=<?=$id;?>" enctype="multipart/form-data" >		
<div class="row">
<div class="col-md-2">
ชื่อเรื่อง
</div>
<div class="col-md-10">
<input class="form-control input-sm" name="title" type="text" style=\'width:460px;\'  required>
</div>
</div>	
<div class="row"><br></div> 
<div class="row">
<div class="col-md-2">
รายละเอียด
</div>
<div class="col-md-10">
<textarea class="form-control input-sm" name="detail" cols="50" rows="6" style=\'width:460px;\' required></textarea>
</div>
</div>

 <div class="modal-body">
		<div class="row">
		<div class="col-md-12">
<div class="row"><br></div> 
<style>
.fileUpload {
    position: relative;
    overflow: hidden;
    margin: 0px;
	left: 10px;
}
.fileUpload input.upload {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    padding: 0;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    filter: alpha(opacity=0);
}
</style>

<div class="row">
<div class="col-md-2">
ไฟล์  
</div>
					<div class="col-sm-10">
								<table width="400" border="0" align="left">
									<tr>
										<td align="left" valign="middle"><input id="uploadFile" style="width:370px;" placeholder="ไฟล์ *.pdf *.zip *.rar " disabled="disabled" class="form-control" name="fileUpload" ></td>
										<td width="100" align="left" valign="middle">
										<div class="fileUpload btn btn-primary">
										<span>เลือกไฟล์</span>
										<input id="uploadBtn" type="file" class="upload"  accept=".pdf,.zip,.rar" name="fileUpload" required>
										</div>
										</td>
									</tr>
								</table>

								
									<script type="text/javascript">  
										document.getElementById("uploadBtn").onchange = function () {  
										document.getElementById("uploadFile").value = this.value;
										};
									</script>
								
					</div> 
</div>


		</div>
		</div>
   </div>
               <div class="modal-footer">
                <button type="button" class="btn btn-default pull-left" data-dismiss="modal">ยกเลิก</button>
                <button type="submit" class="btn btn-success">บันทึก</button>
              </div> 
</form>		
		</p>
      </div>
    </div>

  </div>
</div>
<!-- End Modal -->
<?php }?>
</body>

<?php include("footer.php"); ?>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit