修复 错误

This commit is contained in:
LyLme 2022-05-23 17:27:40 +08:00
parent 2fa0748414
commit 279e5c02b7
2 changed files with 8 additions and 1 deletions

View File

@ -19,6 +19,13 @@ switch($submit) {
$DB->query($sql);
}
break;
case 'pwd_link':
//链接加密
foreach($_POST['links'] as $lk=> $lv) {
$sql = "UPDATE `lylme_links` SET `link_pwd` = '".$_POST['pwd_id']."' WHERE `lylme_links`.`id` = ".$lv.";";
$DB->query($sql);
}
break;
case 'on':
//链接启用
foreach($_POST['links'] as $lk=> $lv) {

View File

@ -11,7 +11,7 @@ if($_POST['exit']=='exit'){
if($_SESSION['pass'] != 1){
//未登录
$pass = daddslashes($_POST['pass']);
if(!empty()){
if(!empty($pass)){
//用户提交登录
$show = array();
$pwds = $DB->query("SELECT `pwd_id`, `pwd_key` FROM `lylme_pwd` WHERE `pwd_key` LIKE '".$pass."';");