verify_code($_POST['rand_num'], $_POST['code_verify'])) { echo "\n"; header("location: ../index.php"); exit; } } $row = $authresult = $obj->authcheck($_POST['authname'], $_POST['authpass']); if ($row[0] == "authfail") { echo "\n"; header("location: ../index.php"); exit; } else { $userpass = md5($_POST['authpass']); $cookieval = $row['user_id'].".".md5($userpass); $sql->db_Select("user", "*", "user_name='".$tp -> toDB($_POST['authname'])."'"); list($user_id, $user_name, $userpass) = $sql->db_Fetch(); if ($pref['tracktype'] == "session") { $_SESSION[$pref['cookie_name']] = $cookieval; } else { cookie($pref['cookie_name'], $cookieval, (time()+3600 * 24 * 30)); } echo "\n"; } } $e_sub_cat = 'logout'; require_once(e_ADMIN."header.php"); if (ADMIN == FALSE) { $obj = new auth; $obj->authform(); require_once(e_ADMIN."footer.php"); exit; } } //------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------// class auth { function authform() { /* # Admin auth login # # - parameters none # - return null # - scope public */ global $use_imagecode, $sec_img; $text = "