Пример #1
0
     break;
     //------------------------------------------------------------------------------
     // CHMOD FILE/DIR
 //------------------------------------------------------------------------------
 // CHMOD FILE/DIR
 case "chmod":
     require "./.include/fun_chmod.php";
     chmod_item($GLOBALS["dir"], $GLOBALS["item"]);
     break;
     //------------------------------------------------------------------------------
     // SEARCH FOR FILE(S)/DIR(S)
 //------------------------------------------------------------------------------
 // SEARCH FOR FILE(S)/DIR(S)
 case "search":
     require "./.include/fun_search.php";
     search_items($GLOBALS["dir"]);
     break;
     //------------------------------------------------------------------------------
     // CREATE ARCHIVE
 //------------------------------------------------------------------------------
 // CREATE ARCHIVE
 case "arch":
     require "./.include/fun_archive.php";
     archive_items($GLOBALS["dir"]);
     break;
     //------------------------------------------------------------------------------
     // USER-ADMINISTRATION
 //------------------------------------------------------------------------------
 // USER-ADMINISTRATION
 case "admin":
     require "./.include/fun_admin.php";
Пример #2
0
$focuscasttype = array(0 => "None", 6 => "Focus");
$scrollcasttype = array(0 => "None", 7 => "Scroll");
switch ($action) {
    case 0:
        //Default
        check_authorization();
        $body = new Template("templates/items/items.default.tmpl.php");
        break;
    case 1:
        // Search items
        check_authorization();
        $body = new Template("templates/items/items.searchresults.tmpl.php");
        if (isset($_GET['id']) && $_GET['id'] != "ID") {
            $results = search_item_by_id();
        } else {
            $results = search_items();
        }
        $body->set("results", $results);
        break;
    case 2:
        // Edit Item
        check_authorization();
        $javascript = new Template("templates/iframes/js.tmpl.php");
        $body = new Template("templates/items/items.edit.tmpl.php");
        $body->set("itemsize", $itemsize);
        $body->set("itemmaterial", $itemmaterial);
        $body->set("itemtypes", $itemtypes);
        $body->set("itemldontheme", $itemldontheme);
        $body->set("skilltypes", $skilltypes);
        $body->set("bodytypes", $bodytypes);
        $body->set("itemraces", $races);
Пример #3
0
 switch ($action) {
     // Execute actions, which are not in class file
     //------------------------------------------------------------------------------
     // COPY/MOVE FILE(S)/DIR(S)
     case "copy":
     case "move":
         require_once _EXT_PATH . "/include/copy_move.php";
         copy_move_items($dir);
         break;
         //------------------------------------------------------------------------------
         // SEARCH FOR FILE(S)/DIR(S)
     //------------------------------------------------------------------------------
     // SEARCH FOR FILE(S)/DIR(S)
     case "search":
         require_once _EXT_PATH . "/include/search.php";
         search_items($dir);
         break;
         //------------------------------------------------------------------------------
         // USER-ADMINISTRATION
     //------------------------------------------------------------------------------
     // USER-ADMINISTRATION
     case "admin":
         require_once _EXT_PATH . "/include/admin.php";
         show_admin($dir);
         break;
         //------------------------------------------------------------------------------
         // BOOKMARKS
     //------------------------------------------------------------------------------
     // BOOKMARKS
     case 'modify_bookmark':
         $task = extGetParam($_REQUEST, 'task');
Пример #4
0
 // CREATE DIR/FILE
 case "mkitem":
     require "./_include/mkitem.php";
     make_item($current_dir);
     break;
     // CHMOD FILE/DIR
 // CHMOD FILE/DIR
 case "chmod":
     require "./_include/chmod.php";
     chmod_item($current_dir, $GLOBALS["item"]);
     break;
     // SEARCH FOR FILE(S)/DIR(S)
 // SEARCH FOR FILE(S)/DIR(S)
 case "search":
     require "./_include/search.php";
     search_items($current_dir);
     break;
     // CREATE ARCHIVE
 // CREATE ARCHIVE
 case "arch":
     require "./_include/archive.php";
     archive_items($current_dir);
     break;
     // USER-ADMINISTRATION
 // USER-ADMINISTRATION
 case "admin":
     require "./_include/admin.php";
     show_admin($current_dir);
     break;
 case "login":
     _debug("doing login");