Esempio n. 1
0
     system_info();
     break;
     //------------------------------------------------------------------------------
     // DEFAULT: LIST FILES & DIRS
 //------------------------------------------------------------------------------
 // DEFAULT: LIST FILES & DIRS
 case "getdircontents":
     require_once _EXT_PATH . "/include/list.php";
     $requestedDir = stripslashes(str_replace('_RRR_', '/', extGetParam($_REQUEST, 'node')));
     if (empty($requestedDir) || $requestedDir == 'ext_root') {
         $requestedDir = $dir;
     }
     send_dircontents($requestedDir, extGetParam($_REQUEST, 'sendWhat', 'files'));
     break;
 case 'get_dir_selects':
     echo get_dir_selects($dir);
     break;
 case 'chdir_event':
     require_once _EXT_PATH . '/include/bookmarks.php';
     $response = array('bookmarks' => list_bookmarks($dir));
     $classname = class_exists('ext_Json') ? 'ext_Json' : 'Services_JSON';
     $json = new $classname();
     echo $json->encode($response);
     break;
 case 'get_image':
     require_once _EXT_PATH . "/include/view.php";
     ext_View::sendImage($dir, $item);
 case 'ftp_authentication':
 case 'ssh2_authentication':
 case 'extplorer_authentication':
     $auth_info = explode('_', $action);
Esempio n. 2
0
        //------------------------------------------------------------------------------
        // DEFAULT: LIST FILES & DIRS
        case "getdircontents":
            require_once _EXT_PATH . "/include/list.php";
            $requestedDir = stripslashes(str_replace('_RRR_', '/', extGetParam($_REQUEST, 'node')));
            if (empty($requestedDir) || $requestedDir == 'ext_root') {
                $requestedDir = $dir;
            }
            send_dircontents($requestedDir, extGetParam($_REQUEST, 'sendWhat', 'files'));
            break;
        case 'get_dir_selects':
            echo get_dir_selects($dir);
            break;
        case 'chdir_event':
            require_once _EXT_PATH . '/include/bookmarks.php';
            $response = array('dirselects' => get_dir_selects($dir), 'bookmarks' => list_bookmarks($dir));
            $json = new ext_Json();
            echo $json->encode($response);
            break;
        case 'get_image':
            require_once _EXT_PATH . "/include/view.php";
            ext_View::sendImage($dir, $item);
        default:
            require_once _EXT_PATH . "/include/list.php";
            ext_List::execAction($dir);
            //------------------------------------------------------------------------------
    }
    // end switch-statement
}
//------------------------------------------------------------------------------
// Disconnect from ftp server