mirror of
https://github.com/LyLme/lylme_spage.git
synced 2024-11-17 14:34:08 +08:00
修复 错误
This commit is contained in:
parent
2fa0748414
commit
279e5c02b7
@ -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) {
|
||||
|
@ -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."';");
|
||||
|
Loading…
Reference in New Issue
Block a user