new $.zui.Messager("退出成功", { type: "success", // 定义颜色主题 icon: "ok-sign" // 定义消息图标 }).show(); // 延时2s跳转 window.setTimeout("window.location=\'../index.php\'",2000); '; } else { echo ' '; } } exit(require_once APP_ROOT . '/application/footer.php'); } // 验证码 if ($config['captcha']) { if (isset($_REQUEST['code'])) { session_start(); if (strtolower($_REQUEST['code']) !== $_SESSION['code']) { echo ' '; exit(require_once APP_ROOT . '/application/footer.php'); } } } // 提交登录 if (isset($_POST['password']) and isset($_POST['user'])) { global $guestConfig; $postUser = strip_tags($_POST['user']); $postPWD = strip_tags($_POST['password']); if ($postUser == $config['user'] || in_array($guestConfig[$postUser], $guestConfig)) { if ($postPWD == $config['password'] || $postPWD == $guestConfig[$postUser]['password']) { // 将账号密码序列化后存储 $setCOK = serialize(array($postUser, $postPWD)); setcookie('auth', $setCOK, time() + 3600 * 24 * 14, '/'); echo ' '; header("refresh:2;url=" . $config['domain'] . ""); } else { echo ' '; header("refresh:2;"); } } else { echo ' '; header("refresh:2;"); } } ?>