function baseCallStandardPage(&$session)
{
    $session->trace(TC_Gui2, 'baseCallStandardPage');
    $found = true;
    switch ($session->fPageURL) {
        case P_Login:
            guiLogin($session, null);
            break;
        case P_Logout:
            guiLogout($session);
            null;
        case P_ForumHome:
            baseForumHome($session);
            break;
        case P_Forum:
            baseForum($session);
            break;
        case P_Thread:
            baseThread($session);
            break;
        case P_ForumSearch:
            baseForumSearch($session, null);
            break;
        case '!test':
            baseTest($session);
            break;
        case '!form':
            baseFormTest($session);
            break;
        default:
            $session->trace(TC_Gui2, 'baseCallStandardPage-kein Std');
            $found = false;
            break;
    }
    return $found;
}
Esempio n. 2
0
function baseCallStandardPage(&$session)
{
    $session->trace(TC_Gui2, 'baseCallStandardPage: ' . $session->fPageURL);
    $found = true;
    switch ($session->fPageURL) {
        case P_Login:
            guiLogin($session, '');
            break;
        case P_Logout:
            guiLogout($session);
            break;
        case P_Account:
            baseAccount($session, '');
            break;
        case P_Home:
            baseHome($session);
            break;
        case P_NewPage:
            baseEditPage($session, C_New);
            break;
        case P_NewWiki:
            baseEditPage($session, C_New, null, null, M_Wiki);
            break;
        case P_ModifyPage:
            EditPage($session, C_Change);
            break;
        case '!test':
            baseTest($session);
            break;
        case '!form':
            baseFormTest($session);
            break;
        case P_Search:
            baseSearch($session, '');
            break;
        case P_Start:
            baseCustomStart($session);
            break;
        case P_LastChanges:
            baseLastChanges($session);
            break;
        case P_Info:
            baseInfo($session);
            break;
        default:
            $session->trace(TC_Gui2, 'baseCallStandardPage-kein Std');
            $found = false;
            break;
    }
    return $found;
}
Esempio n. 3
0
if (successfullLogin($session)) {
    switch ($session->fPageURL) {
        case P_Param:
            admParam($session, '');
            break;
        case P_Macro:
            admMacro($session, '');
            break;
        case P_Home:
            admHome($session, '');
            break;
        case P_Login:
            guiLogin($session, '');
            break;
        case P_Logout:
            guiLogout($session);
            break;
        case P_Forum:
            admForum($session, '', C_New);
            break;
        case P_Backup:
            admBackup($session, true, null);
            break;
        case P_ExportPages:
            admExportPages($session, null);
            break;
        case P_ConvertWiki:
            if (isset($_POST['conversion_run'])) {
                admConvertWikiAnswer($session);
            } else {
                admConvertWiki($session, null);