Пример #1
0
/**
 * Determines what screen needs to be displayed to 'admin' users. Checks what's set in
 * $Pivot_Vars['func'] and $Pivot_Vars['func'], checks if if the function is set and the user is
 * allowed to go there, and then jumps to that function.
 *
 * Otherwise it displays adminMail(), which is the screen with admin options. Note that the 'overview
 * screen' is shown with the 'menu=main' parameter.
 *
 * @see startAdmin(), adminMain()
 *
 */
function startAdmin()
{
    global $Pivot_Vars, $adminInternal;
    if (isset($adminInternal[$Pivot_Vars['do']])) {
        $func = $adminInternal[$Pivot_Vars['do']];
        if (function_exists($func)) {
            $func();
        } else {
            ErrorOut('Function: <i>' . $adminInternal[$Pivot_Vars['do']] . '</i> does not exist in pv_admin.php.');
        }
    } else {
        adminMain();
    }
}
Пример #2
0
        case 'workspace_archive':
        case 'forum_groupe_delete':
        case 'forum_groupe_create':
        case 'moderateur_update':
        case 'groupe_mns_create':
        case 'groupe_mns_delete':
        case 'groupe_chat_create':
        case 'groupe_chat_delete':
            include 'admin/groupes.php';
            break;
            // NPDS-Instal-Modules
        // NPDS-Instal-Modules
        case 'modules':
            include "admin/modules.php";
            break;
        case 'Module-Install':
            include "admin/module-install.php";
            break;
            // NPDS-Admin-Main
        // NPDS-Admin-Main
        case 'suite_articles':
            adminMain($deja_affiches);
            break;
        case 'adminMain':
        default:
            adminMain(0);
            break;
    }
} else {
    login();
}
Пример #3
0
    CloseTable();
    include "footer.php";
}
if ($admintest) {
    switch ($op) {
        case "do_gfx":
            do_gfx();
            break;
        case "deleteNotice":
            deleteNotice($id);
            break;
        case "GraphicAdmin":
            GraphicAdmin();
            break;
        case "adminMain":
            adminMain();
            break;
        case "logout":
            setcookie("admin");
            $admin = "";
            include "header.php";
            OpenTable();
            echo "<center><font class=\"title\"><b>" . _YOUARELOGGEDOUT . "</b></font></center>";
            CloseTable();
            echo "<META HTTP-EQUIV=\"refresh\" content=\"3;URL=admin.php\">";
            include "footer.php";
            break;
        case "login":
            unset($op);
        default:
            $casedir = dir("admin/case");