* @Description */ if (!defined('ABSPATH')) { header('HTTP/1.1 403 Forbidden', true, 403); die('Please do not load this page directly. Thanks!'); } hacklogdm_admin::check_upload_dir(); $die = 0; ### Form Processing if (__('Add File', 'hacklog-downloadmanager') == hacklogdm_admin::post('do')) { // Add File $file_type = intval(hacklogdm_admin::post('file_type')); switch ($file_type) { // files on server case 0: $data = hacklogdm_admin::add_server_file(); break; // upload local file to server // upload local file to server case 1: $data = hacklogdm_admin::upload_local_file(hacklogdm_admin::post('file_upload_to')); break; // add remote file // add remote file case 2: $data = hacklogdm_admin::add_remote_file(addslashes(trim(hacklogdm_admin::post('file_remote'))), hacklogdm_admin::post('file_save_to'), hacklogdm_admin::post('save_to_local')); break; } //end inner switch (add file ) if (!$data) { $die = 1;