%PDF-1.5 % ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY
Server IP : 122.155.17.190 / Your IP : 18.223.121.54 Web Server : Apache/2 System : Linux cat17190.thaihostserver.com 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 User : bungkla ( 1054) PHP Version : 5.6.40 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/bungkla/domains/bungkla.go.th/public_html/admin/ |
Upload File : |
<? session_start(); Header("Content-Type: text/html; charset=UTF-8"); if( !isset($_SESSION["user"]) || !isset($_SESSION["passwd"]) ){ session_destroy(); $message="กรุณา Login ก่อน !"; $url="index.php"; include "alert.php"; die;exit; } require_once('Connections/conndb.php'); $pass5 = md5($_SESSION["passwd"]); $uname = $_SESSION["user"]; $ulevel = $_SESSION["level"]; if($_GET['chk_p']){ $chk_p = $_GET['chk_p']; }else{ $chk_p = $_POST['chk_p']; } if(empty($chk_p) || ($chk_p==0)){ echo "..Error..";die; } if($_GET['chk_del']){ $chk_del = $_GET['chk_del']; }else{ $chk_del = $_POST['chk_del']; } if($_GET['code_id']){ $code_id = $_GET['code_id']; }else{ $code_id = $_POST['code_id']; } if($_GET['code_1']){ $code_1 = $_GET['code_1']; /*$code_1 = iconv('UTF-8','UTF-8',$code_1);*/ }else{ $code_1 = $_POST['code_1']; } $query_m = "select * from tbl_admin where user_name='$uname' and user_password='$pass5' "; $result_m = mysql_query($query_m) or die(mysql_error()); $num_rows = mysql_num_rows($result_m); if ($num_rows > 0 ) { if($chk_del==1){ $f_name = ""; switch ($chk_p) { case 1: $code_1 = trim($code_1); if($code_id != 1){ $sql = "delete from `tbl_admin` where (id='$code_id') LIMIT 1"; $f_name = "tbl_admin"; $dbquery = mysql_query($sql) or die("Can't send query !"); } break; } $c_description = $_POST['c_description']; $c_description = "file : ".$f_name." ,description - ,".$c_description; $u_ip = $_SERVER["REMOTE_ADDR"]; $now = date("Y-m-d H:i:s",time()); if($code_id != 1){ $query_m = "insert into tbl_delete (id,user_name,ip_address,del_time,description) values ('','$uname','$u_ip','$now','$c_description') "; $result_d = mysql_query($query_m); } include("Connections/close_db.php"); echo "<br /> <br />"; if($code_id != 1){ echo "<h3><p align=\"center\"><font color='#0000BB'>...ลบข้อมูล ".$code_1." เรียบร้อยแล้ว...</font></p></h3><br />"; } else { echo "<h3><p align=\"center\"><font color='#ff0000'>ไม่สามารถลบ '".$code_1."' ได้ กรุณาติดต่อทีมงาน pasworld</font></p></h3><br />"; } switch ($chk_p) { case 1: echo "<meta http-equiv=\"refresh\" content=\"3;url=add_admin.php#top\">"; break; } die; }else{ $s_name_1 = ''; $s_caption_1 = ''; switch ($chk_p) { case 1: $s_caption_1 = 'Admin'; $s_name_1 = 'User name'; break; } $s_description = $s_caption_1." ," .$s_name_1." : ".$code_1." ,id : ".$code_id." ,chk code : ".$chk_p; } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link href="../styles.css" rel="stylesheet" type="text/css" /> </head> <body> <form name="form1" enctype="multipart/form-data" method="post" action="del_data.php"> <table width="60%" border="1" cellspacing="0" cellpadding="0" align="center" bordercolor="#FF0000"> <tr bgcolor="#FF0000"> <td align="center"><font color="#FFFFFF"><b>ลบข้อมูล <?=$s_caption_1; ?></b></font></td> </tr> <tr> <td> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr> <tr> <td width="45%" align="right"><?=$s_name_1; ?> :: </td> <td> <? echo $code_1." ,ID ".$code_id ; ?> </td> </tr> <tr> <td> </td> </tr> <tr> <td colspan="2" align="center"> <input type="hidden" name="code_id" value="<?echo $code_id;?>"> <input type="hidden" name="code_1" value="<?echo $code_1;?>"> <input type="hidden" name="chk_del" value="1"> <input type="hidden" name="chk_p" value="<?echo $chk_p;?>"> <input type="hidden" name="c_description" value="<?echo $s_description;?>"> <input type="submit" name="Submit" value=" ลบข้อมูลนี้ "> <!--<input type="button" name="ยกเลิก" value="" onclick="javascript:history.go(-1);"> --> </td> </tr> <tr> <td> </td> </tr> </table> </td> </tr> </table> </form> </body> </html> <? include("Connections/close_db.php"); } else { session_destroy(); include("Connections/close_db.php"); $message="Username or Password Incorrect !"; $url="index.php"; include "alert.php"; } ?>