403Webshell
Server IP : 172.67.187.206  /  Your IP : 172.71.28.156
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 :  /Inetpub/www/news/group/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Inetpub/www/news/group/allnews_edit.php
<?php
session_start();
include("header.php"); 
$id = $_GET['id'];
include("db.php");?>

<!DOCTYPE HTML>
<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.php'><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 :"fetch.php", // json datasource
						type: "post",  // method  , by default get
						error: function(){  // error handling
							$(".datatable1-error").php("");
							$("#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.php\"</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="submit.php?id=<?php echo $id ?>">
							<button id="deleteTriger" type="button" class="btn btn-success 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>
	


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

Youez - 2016 - github.com/yon3zu
LinuXploit