Beispiel #1
0
    // try to process an auto login.
    module_security::auto_login();
}
if (isset($_REQUEST['_process_reset'])) {
    if (class_exists('module_captcha', false)) {
        if (!module_captcha::check_captcha_form()) {
            // captcha was wrong.
            _e('Sorry the captcha code you entered was incorrect. Please <a href="%s" onclick="%s">go back</a> and try again.', '#', 'window.history.go(-1); return false;');
            exit;
        }
    }
    module_security::process_password_reset();
}
if (isset($_REQUEST['_process_login'])) {
    // check recaptcha
    module_security::process_login();
}
if (isset($_REQUEST['_logout'])) {
    module_security::logout();
    header("Location: index.php");
    exit;
}
if (!_UCM_INSTALLED && module_security::getcred()) {
    module_security::logout();
}
// wrap the module loading request into an array
// this way we can load multiple modules and pages around eachother.
// awesome.
$inner_content = array();
$page_title_delim = ' &raquo; ';
$page_title = '';