From 67f2aa865bb40b057143f5d00869dc8ed8a71e59 Mon Sep 17 00:00:00 2001
From: shinn lancelot <945226793@qq.com>
Date: Thu, 23 Aug 2018 17:12:49 +0800
Subject: [PATCH] =?UTF-8?q?1.=20=E6=96=87=E4=BB=B6=E5=91=BD=E5=90=8D?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9=202.=20=E7=99=BB=E5=BD=95=E3=80=81=E7=AE=A1?=
=?UTF-8?q?=E7=90=86=E3=80=81=E9=AA=8C=E8=AF=81=E9=A1=B5=E5=AE=8C=E5=96=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
admin.php | 12 ++++++------
common/{login.php => loginHandle.php} | 0
common/{logout.php => logoutHandle.php} | 0
common/{verify.php => verifyHandle.php} | 0
login.html => login.php | 10 +++++++++-
verify.html => verify.php | 10 +++++++++-
6 files changed, 24 insertions(+), 8 deletions(-)
rename common/{login.php => loginHandle.php} (100%)
rename common/{logout.php => logoutHandle.php} (100%)
rename common/{verify.php => verifyHandle.php} (100%)
rename login.html => login.php (98%)
rename verify.html => verify.php (97%)
diff --git a/admin.php b/admin.php
index a333969..a9ecc43 100644
--- a/admin.php
+++ b/admin.php
@@ -1,9 +1,9 @@
@@ -157,7 +157,7 @@
-
+
@@ -195,7 +195,7 @@
}
logoutState = 0;
- xhr.open('post', './common/logout.php', true);
+ xhr.open('post', './common/logoutHandle.php', true);
xhr.setRequestHeader('Content-type','application/x-www-form-urlencoded');
xhr.send('');
xhr.onreadystatechange = function() {
@@ -204,7 +204,7 @@
alert(responseObj.message);
if (responseObj.code == 1) {
setTimeout(function() {
- window.location.href = './login.html';
+ window.location.href = './login.php';
}, 500);
} else {
logoutState = 1;
diff --git a/common/login.php b/common/loginHandle.php
similarity index 100%
rename from common/login.php
rename to common/loginHandle.php
diff --git a/common/logout.php b/common/logoutHandle.php
similarity index 100%
rename from common/logout.php
rename to common/logoutHandle.php
diff --git a/common/verify.php b/common/verifyHandle.php
similarity index 100%
rename from common/verify.php
rename to common/verifyHandle.php
diff --git a/login.html b/login.php
similarity index 98%
rename from login.html
rename to login.php
index 6a7ace9..f04789d 100644
--- a/login.html
+++ b/login.php
@@ -1,3 +1,11 @@
+
+
@@ -253,7 +261,7 @@
return;
}
- xhr.open('post', './common/login.php', true);
+ xhr.open('post', './common/loginHandle.php', true);
xhr.setRequestHeader('Content-type','application/x-www-form-urlencoded');
xhr.send('user=' + user + '&password=' + password);
xhr.onreadystatechange = function() {
diff --git a/verify.html b/verify.php
similarity index 97%
rename from verify.html
rename to verify.php
index c42f8e6..ec874be 100644
--- a/verify.html
+++ b/verify.php
@@ -1,3 +1,11 @@
+
+
@@ -213,7 +221,7 @@
return;
}
- xhr.open('post', './common/verify.php', true);
+ xhr.open('post', './common/verifyHandle.php', true);
xhr.setRequestHeader('Content-type','application/x-www-form-urlencoded');
xhr.send('txt=' + txt);
xhr.onreadystatechange = function() {