Пример #1
0
function adminManagerDispatch($op)
{
    if (isset($_POST['undo_pref'])) {
        $op = 'view';
    }
    switch ($op) {
        case "view":
            adminManager_list();
            break;
        case "assign_tree":
            adminManager_assign_tree(ImportVar('adminidst', true, 0));
            break;
            // Extra preferences and settings
        // Extra preferences and settings
        case "edit_preferences":
            adminManager_edit_preferences();
            break;
            // Menu managment
        // Menu managment
        case "edit_menu":
            adminManager_edit_menu();
            break;
            // Lang managment
        // Lang managment
        case "edit_lang":
            adminManager_lang_course();
            break;
            // Course managment
        // Course managment
        case "edit_course":
            adminManager_edit_course();
            break;
            // Cms page management
        // Cms page management
        case "assign_cmspag":
            adminManager_assignCmsPages(ImportVar('adminidst', true, 0));
            break;
            // Cms news tree management
        // Cms news tree management
        case "assign_cmsnews":
            adminManager_assignCmsNews(ImportVar('adminidst', true, 0));
            break;
            // Cms documents tree management
        // Cms documents tree management
        case "assign_cmsdocs":
            adminManager_assignCmsDocs(ImportVar('adminidst', true, 0));
            break;
            // Cms media tree management
        // Cms media tree management
        case "assign_cmsmedia":
            adminManager_assignCmsMedia(ImportVar('adminidst', true, 0));
            break;
            // Cms media tree management
        // Cms media tree management
        case "assign_cmscontent":
            adminManager_assignCmsContent(ImportVar('adminidst', true, 0));
            break;
    }
}
Пример #2
0
function publicAdminManagerDispatch($op)
{
    if (isset($_POST['undo_pref'])) {
        $op = 'view';
    }
    switch ($op) {
        case "view":
            publicAdminManager_list();
            break;
        case "assign_tree":
            publicAdminManager_assign_tree(ImportVar('adminidst', true, 0));
            break;
            // Extra preferences and settings
        // Extra preferences and settings
        case "edit_preferences":
            publicAdminManager_edit_preferences();
            break;
            // Menu managment
        // Menu managment
        case "edit_menu":
            publicAdminManager_edit_menu();
            break;
            // Lang managment
        // Lang managment
        case "edit_lang":
            publicAdminManager_lang_course();
            break;
            // Course managment
        // Course managment
        case "edit_course":
            publicAdminManager_edit_course();
            break;
    }
}