query("SELECT * FROM `lylme_groups`"); $pwd_lists = $DB->query("SELECT * FROM `lylme_pwd`"); ?> 新增链接 *URL链接地址: 获取 *网站名称: 链接图标: 方式1:填写图标的URL地址,如/img/logo.png或http://www.xxx.com/img/logo.png 方式2:粘贴图标的SVG代码,查看教程方式3:留空使用默认图标 *分组: '; while ($grouplist = $DB->fetch($grouplists)) { if ($grouplist["group_id"] == $row['group_id']) { $select = 'selected="selected"'; } else { $select = ''; } echo '' . $grouplist["group_id"] . ' - ' . $grouplist["group_name"] . ''; } echo ' <<返回 '; } elseif ($set == 'edit') { $id = $_GET['id']; $row2 = $DB->query("select * from lylme_links where id='$id' limit 1"); $row = $DB->fetch($row2); echo '修改链接信息 *URL链接地址: 获取 *网站名称: 链接图标: ' . $row['icon'] . ' 方式1:填写图标的URL地址,如/img/logo.png或http://www.xxx.com/img/logo.png 方式2:粘贴图标的SVG代码,查看教程方式3:留空使用默认图标 *分组: '; while ($grouplist = $DB->fetch($grouplists)) { if ($grouplist["group_id"] == $row['group_id']) { $select = 'selected="selected"'; } else { $select = ''; } echo '' . $grouplist["group_id"] . ' - ' . $grouplist["group_name"] . ''; } echo ' 分组加密: '; $pwd_lists = $DB->query("SELECT * FROM `lylme_pwd`"); while ($pwd_list = $DB->fetch($pwd_lists)) { if($row['link_pwd']==$pwd_list["pwd_id"]){$sel = 'selected="selected"';}else{ $sel ='';} echo '' . $pwd_list["pwd_id"] . ' - ' . $pwd_list["pwd_name"] . ' | 密码['. $pwd_list["pwd_key"].']'; } if(empty($row['link_pwd'])) $sele = 'selected="selected"'; echo ' 0 - 不加密 优先级:分组加密>链接加密 加密后只能通过输入密码访问,使用该功能先配置加密组 管理加密组 <<返回 '; } elseif ($set == 'add_submit') { $name = $_POST['name']; $url = $_POST['url']; $icon = $_POST['icon']; $group_id = $_POST['group_id']; $link_order = $linksrows + 1; if ($name == NULL or $url == NULL) { echo ''; } else { $sql = "INSERT INTO `lylme_links` (`id`, `name`, `group_id`, `url`, `icon`, `PS`,`link_order`) VALUES (NULL, '" . $name . "', '" . $group_id . "', '" . $url . "', '" . $icon . "', '" . $name . "', '" . $link_order . "');"; if ($DB->query($sql)) { echo ''; } else echo ''; } } elseif ($set == 'edit_submit') { $id = $_GET['id']; $rows2 = $DB->query("select * from lylme_links where id='$id' limit 1"); $rows = $DB->fetch($rows2); if (!$rows) echo ''; $name = $_POST['name']; $url = $_POST['url']; $icon = $_POST['icon']; $link_pwd = $_POST['link_pwd']; $group_id = $_POST['group_id']; if ($name == NULL or $url == NULL) { echo ''; } else { $sql = "UPDATE `lylme_links` SET `name` = '" . $name . "', `url` = '" . $url . "', `icon` = '" . $icon . "', `group_id` = '" . $group_id . "', `link_pwd` = '" . $link_pwd . "' WHERE `lylme_links`.`id` = '" . $id . "';"; if ($DB->query($sql)) echo ''; else echo ''; } // } elseif ($set == 'delete') { // $id = $_GET['id']; // $sql = "DELETE FROM lylme_links WHERE id='$id'"; // if ($DB->query($sql)) echo ''; // else echo ''; } else { echo ' '; } include './footer.php'; ?>
URL
/img/logo.png
http://www.xxx.com/img/logo.png
SVG
优先级:分组加密>链接加密