示例#1
0
        }
    }
    die;
}
if (USERSIGNUP && frm_isset('l_signup')) {
    kp_signup();
}
if (frm_isset('update') && frm_isset('user')) {
    search_updateautomatic(frm_get('user'), $phpenv['remote'], frm_get('update', 1, 0));
}
if (frm_isset('l_username') && frm_isset('l_password')) {
    $loginstatus = webauthenticate();
    switch ($loginstatus) {
        case 0:
            if ($setctl->get('report_attempts')) {
                syslog_write('User could not be validated (user: "******")');
            }
            klogon(get_lang(307));
            break;
        case 1:
            $uri = PHPSELF . '?checkcookie=true';
            if (frm_isset('l_uri') && !frm_empty('l_uri')) {
                $ourl = urldecode(frm_get('l_uri'));
                $qpos = strrpos($ourl, '?');
                if ($qpos !== false && $cfg['accepturi']) {
                    $addchkc = strpos($ourl, 'checkcookie=true');
                    if ($addchkc === false) {
                        $addurl = '&checkcookie=true';
                    } else {
                        $addurl = '';
                    }
示例#2
0
文件: index.php 项目: Git-Host/AMPPS
        }
    }
    die;
}
if (isset($_GET['update']) && isset($_GET['user'])) {
    search_updateautomatic($_GET['user'], $phpenv['remote'], $_GET['update']);
}
if (isset($_POST['signup']) || isset($_GET['signup']) && USERSIGNUP) {
    KSignup();
}
if (isset($_POST['user']) && isset($_POST['password']) && !empty($_POST['user']) && !empty($_POST['password'])) {
    $loginstatus = webauthenticate();
    switch ($loginstatus) {
        case 0:
            if ($setctl->get('report_attempts')) {
                syslog_write('User could not be validated (user: "******")');
            }
            klogon(get_lang(307));
            break;
        case 1:
            $uri = PHPSELF . '?checkcookie=true';
            if (isset($_POST['uri']) && !empty($_POST['uri'])) {
                $ourl = urldecode($_POST['uri']);
                $qpos = strrpos($ourl, '?');
                if ($qpos !== false && $cfg['accepturi']) {
                    $addchkc = strpos($ourl, 'checkcookie=true');
                    if ($addchkc === false) {
                        $addurl = '&checkcookie=true';
                    } else {
                        $addurl = '';
                    }