require _QUIXPLORER_PATH . "/include/fun_edit.php";
     edit_file($dir, $item);
     break;
     // VIEW FILE
 // VIEW FILE
 case 'view':
     require _QUIXPLORER_PATH . "/include/fun_view.php";
     nx_show_file($dir, $item);
     break;
     //------------------------------------------------------------------------------
     // DELETE FILE(S)/DIR(S)
 //------------------------------------------------------------------------------
 // DELETE FILE(S)/DIR(S)
 case "delete":
     require _QUIXPLORER_PATH . "/include/fun_del.php";
     del_items($dir);
     break;
     //------------------------------------------------------------------------------
     // COPY/MOVE FILE(S)/DIR(S)
 //------------------------------------------------------------------------------
 // COPY/MOVE FILE(S)/DIR(S)
 case "copy":
 case "move":
     require _QUIXPLORER_PATH . "/include/fun_copy_move.php";
     copy_move_items($dir);
     break;
     // RENAME FILE(S)/DIR(S)
 // RENAME FILE(S)/DIR(S)
 case "rename":
     require _QUIXPLORER_PATH . "/include/fun_rename.php";
     rename_item($dir, $item);
Example #2
0
//------------------------------------------------------------------------------
switch ($GLOBALS["action"]) {
    // Execute action
    //------------------------------------------------------------------------------
    // EDIT FILE
    case "edit":
        require "./.include/fun_edit.php";
        edit_file($GLOBALS["dir"], $GLOBALS["item"]);
        break;
        //------------------------------------------------------------------------------
        // DELETE FILE(S)/DIR(S)
    //------------------------------------------------------------------------------
    // DELETE FILE(S)/DIR(S)
    case "delete":
        require "./.include/fun_del.php";
        del_items($GLOBALS["dir"]);
        break;
        //------------------------------------------------------------------------------
        // COPY/MOVE FILE(S)/DIR(S)
    //------------------------------------------------------------------------------
    // COPY/MOVE FILE(S)/DIR(S)
    case "copy":
    case "move":
        require "./.include/fun_copy_move.php";
        copy_move_items($GLOBALS["dir"]);
        break;
        //------------------------------------------------------------------------------
        // DOWNLOAD FILE
    //------------------------------------------------------------------------------
    // DOWNLOAD FILE
    case "download":
Example #3
0
// Init
global $action;
_debug("system_filemanager.php: checking action {$action}");
$current_dir = qx_request("dir", "");
switch ($action) {
    // Execute action
    // EDIT FILE
    case "edit":
        require "./_include/edit_editarea.php";
        edit_file($current_dir, $GLOBALS["item"]);
        break;
        // DELETE FILE(S)/DIR(S)
    // DELETE FILE(S)/DIR(S)
    case "delete":
        require "./_include/del.php";
        del_items($current_dir);
        break;
        // COPY/MOVE FILE(S)/DIR(S)
    // COPY/MOVE FILE(S)/DIR(S)
    case "copy":
    case "move":
        require "./_include/copy_move.php";
        copy_move_items($current_dir);
        break;
        // DOWNLOAD FILE
    // DOWNLOAD FILE
    case "download":
        ob_start();
        // prevent unwanted output
        require "./_include/down.php";
        ob_end_clean();