GlobalCore::clearcookies(); $groupid = 7; $nw_uid = 0; $nw_user = $nw_pw = ''; $styleid = 1; GlobalCore::showmessage('logout_succeed', NWDIR, 'DONE'); } elseif ($m == 'login') { if ($nw_uid) { GlobalCore::showmessage('login_succeed', NWDIR, 'DONE'); } //get secure code checking status (pos. -2) $seccodecheck = substr(sprintf('%05b', $seccodestatus), -2, 1); if ($seccodecheck && $seccodedata['loginfailedcount']) { $seccodecheck = $db->result($db->query("SELECT count(*) FROM {$tablepre}failedlogins WHERE ip='{$onlineip}' AND count>='{$seccodedata['loginfailedcount']}' AND {$timestamp}-lastupdate<=900"), 0); } if (!GlobalCore::submitcheck('loginsubmit', 1, $seccodecheck)) { $chobits_action = 6; $referer = GlobalCore::nwReferer(); $thetimenow = '(GMT ' . ($timeoffset > 0 ? '+' : '') . $timeoffset . ') ' . gmdate("{$dateformat} {$timeformat}", $timestamp + $timeoffset * 3600) . ($_DCOOKIE['cookietime'] = isset($_DCOOKIE['cookietime']) ? $_DCOOKIE['cookietime'] : 2592000); $cookietimecheck = array(isset($_DCOOKIE['cookietime']) ? intval($_DCOOKIE['cookietime']) : 2592000 => 'checked'); include GlobalCore::template('login'); } else { $nw_uid = 0; $nw_user = $nw_pw = $md5_password = ''; $member = array(); $loginperm = GlobalCore::logincheck(); if (!$loginperm) { GlobalCore::showmessage('login_strike'); } if (isset($loginauth)) { $password = '******';