%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 122.154.253.140 / Your IP : 216.73.216.138 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 : |
<?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
include "conf.php";
$tmp = explode("/",$_POST["vdo_date"]);
$sql="insert into vdo_present (txt_title,txt_detail,vdo_url,vdo_date) values('".$_POST['txt_title']."','".$_POST['txt_detail']."','".$_POST['url_vdo']."','".$tmp[2]."".$tmp[0]."".$tmp[1]."')";
//echo "SQL : ".$sql."<BR>";
if ($conn->query($sql) == TRUE)
{
echo "<script>swal('Good job!', 'Upload รูปภาพเสร็จสมบูรณ์.', 'success');</script>";
} else {
echo "<script>swal('Warning job!', 'ไม่สามารถทำการ upload รูปภาพได้', 'warning');</script>";
}
?>
</body>
</html>
<script>
function Close() {
//alert("OK");
window.close();
}
</script>