Server IP : 10.254.12.21 / Your IP : 10.254.12.21 Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.6.40 System : Linux arit.skru.ac.th 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64 User : apache ( 48) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/arit/igallery/admin/pages/ |
Upload File : |
<?ob_start();?> <?php include 'check_mode_admin.php';?> <?php include 'dbconnect.php';?> <?php if (check_mode_admin_session(1,1)) { ?> <?php if ($_POST["submit"]) { if ($_POST["gallery_id"]) { $gallery_id=$_POST['gallery_id']; //$strKeyword=$_POST['txtKeyword']; //$page=$_POST['Page']; //$donate_list=$_POST['donate_list']; $sql = "SELECT * FROM gallery WHERE gallery_id=" . $gallery_id; $query = mysqli_query($conn,$sql); if ($result=mysqli_fetch_array($query,MYSQLI_ASSOC)) { $sql = "DELETE FROM gallery WHERE gallery_id=" . $gallery_id; $query = mysqli_query($conn,$sql); $msg_show = "ลบข้อมูล" . $gallery_id . " แล้ว"; } else { $msg_show = "ไม่พบรายการ " . $gallery_id; } ?> <BR><BR><div align="center"><h1><font color="#FF0000"><?php echo $msg_show;?></font></h1></div> <BR><BR><div align="center"><a href="index.php"><font size="6" title="คลิกที่นี่เพื่อกลับหน้ารายการ">คลิกที่นี่เพื่อกลับหน้ารายการ</font></a></div> <BR><BR> <?php /*if ($donate_list<>"") { $redirect_url = "donate_list.php"; if ($strKeyword<>"") { $redirect_url .= "?txtKeyword=" . $strKeyword; if ($page<>"") { $redirect_url .= "&Page=" . $page; } } else { if ($page<>"") { $redirect_url .= "?Page=" . $page; } } } else { $redirect_url = "index.php"; if ($strKeyword<>"") { $redirect_url .= "?txtKeyword=" . $strKeyword; if ($page<>"") { $redirect_url .= "&Page=" . $page; } } else { if ($page<>"") { $redirect_url .= "?Page=" . $page; } } } $redirect_url = "index.php"; if ($strKeyword<>"") { $redirect_url .= "&txtKeyword=" . $strKeyword; } if ($page<>"") { $redirect_url .= "&Page=" . $page; } if ($donate_list<>"") { $redirect_url .= "&donate_list=" . $donate_list; } */ $redirect_url = "index.php"; header("location:$redirect_url"); } else { echo "ไม่พบรายการที่เลือก<BR>"; } } //if ($_POST["submit"]) ?> <?php } //if(check_mode_admin_session(1,1)) { ?>