update
这个提交包含在:
父节点
99571713b8
当前提交
1d1201cf9c
19
confirm.php
19
confirm.php
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
error_reporting(0);
|
||||
ini_set('display_errors', 0);
|
||||
error_reporting(1);
|
||||
ini_set('display_errors', 1);
|
||||
|
||||
require_once __DIR__ . \DIRECTORY_SEPARATOR . 'loadRequires.php';
|
||||
require_once __DIR__ . \DIRECTORY_SEPARATOR . 'template.php';
|
||||
|
@ -32,21 +32,6 @@ $qwVerifyStage = $_SESSION['qwVerifyStage'];
|
|||
$oldVerified = $_SESSION['oldVerified'] ?? false;
|
||||
$newVerified = $_SESSION['newVerified'] ?? false;
|
||||
|
||||
if (!isset($_SESSION['qwVerifyStage'])) {
|
||||
echo "请求方式错误,请重新完成验证。";
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if ($qwVerifyStage === 'reg' && $oldVerified !== true) {
|
||||
alertAndBack('验证码错误。');
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if ($qwVerifyStage === 'update' && $newVerified !== true) {
|
||||
alertAndBack('验证码错误。');
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if (($qwVerifyStage === 'reg' && $oldVerified === true) || ($qwVerifyStage === 'update' && $newVerified === true)) {
|
||||
session_destroy();
|
||||
// 连接数据库
|
||||
|
|
正在加载...
在新工单中引用