From 4dd4165d3240a2c64c5b8e6a8fc13f9a34183f83 Mon Sep 17 00:00:00 2001 From: LyLme Date: Sat, 21 May 2022 05:45:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20=E5=8A=A0=E5=AF=86?= =?UTF-8?q?=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/go.php | 46 +++++++++++++++++++++++++++++++++++ pwd/index.php | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 112 insertions(+) create mode 100644 include/go.php create mode 100644 pwd/index.php diff --git a/include/go.php b/include/go.php new file mode 100644 index 0000000..7997db5 --- /dev/null +++ b/include/go.php @@ -0,0 +1,46 @@ +query("SELECT `pwd_id`, `pwd_key` FROM `lylme_pwd` WHERE `pwd_key` LIKE '".$_POST['pass']."';"); + while ($pwd = $DB->fetch($pwds)) { + array_push($show,$pwd[pwd_id]); + } + if(empty($show)){ + //无数据 + exit(''); + } + else{ + //有数据 + $_SESSION['list'] = $show; + $_SESSION['pass'] = 1; + } + } +} +else { + //已登录 + if(!empty($_POST['pass'])){ + $show = array(); + $pwds = $DB->query("SELECT `pwd_id`, `pwd_key` FROM `lylme_pwd` WHERE `pwd_key` LIKE '".$_POST['pass']."';"); + while ($pwd = $DB->fetch($pwds)) { + array_push($show,$pwd['pwd_id']); + } + if(empty($show)){ + $_SESSION['pass'] = 0; + $_SESSION['list'] = array(); + } + } +} +if(basename($_SERVER['PHP_SELF']) != basename(__FILE__)) return; + header("Location: ../"); +?> \ No newline at end of file diff --git a/pwd/index.php b/pwd/index.php new file mode 100644 index 0000000..36cb7b2 --- /dev/null +++ b/pwd/index.php @@ -0,0 +1,66 @@ + + + + + +请登录... + + + +
+
+

请输入密码显示加密链接

+ +
+
+ +
+ +
+
+ +
+
+
+
+
+
+

您已登录

+
+ +
+ +
+
+
+ +
+ + +