示例#1
0
            $action==_ADMINPAGE::PAGES_MANAGE){
            if (_SESSION::GetCanCDOther() || _SESSION::GetCanCDSelf()){
                $state = $action;
            }
        }
        if ($action==_ADMINPAGE::MESSAGES_LIST ||
            $action==_ADMINPAGE::MESSAGES_VIEW ||
            $action==_ADMINPAGE::MESSAGES_WRITE ||
            $action==_ADMINPAGE::PAGES_WRITE){
            $state = $action;
        }
        if (_SESSION::GetIsMaster()){
            if ($action==_ADMINPAGE::USERS_CREATE ||
                $action==_ADMINPAGE::USERS_MANAGE ||
                $action==_ADMINPAGE::USERS_VIEW ||
                $action==_ADMINPAGE::USERS_LOGS ||
                $action==_ADMINPAGE::LOGIN_LOGS){
                $state = $action;
            }
        }
    }
} else {
    $state = ERROR_MUSTBELOGGEDIN;
}

$thispage->changeState($state);
$thispage->trigger();
// </editor-fold>

?>