更新v1.5.0版本
This commit is contained in:
parent
3435217710
commit
52b9bd249c
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
$title = '后台管理';
|
||||
include './head.php';
|
||||
$last = date("Ymdh");
|
||||
$last = date("Ym");
|
||||
if(@file_get_contents('log.txt') != $last || !file_exists('cache.php')){
|
||||
$update = update();
|
||||
file_put_contents('log.txt',$last);
|
||||
|
|
|
@ -3,10 +3,11 @@ include("../include/common.php");
|
|||
$id = daddslashes($_GET['id']);
|
||||
$sites = $DB->query("select * from lylme_links where id='$id' limit 1");
|
||||
$site = $DB->fetch($sites);
|
||||
$info = get_head($site["url"]);
|
||||
if (empty($site["icon"])) {
|
||||
$site["icon"] = '< img src="/assets/img/default-icon.png" alt="' . $site["name"] . '" />';
|
||||
$site["icon"] = '<img src="/assets/img/default-icon.png" alt="' . $site["name"] . '" />';
|
||||
} else if (!preg_match("/^<svg*/", $site["icon"])) {
|
||||
$site["icon"] = '< img src="' . $site["icon"] . '" alt="' . $site["name"] . '" />';
|
||||
$site["icon"] = '<img src="' . $site["icon"] . '" alt="' . $site["name"] . '" />';
|
||||
} else {
|
||||
$site["icon"] = $site["icon"];
|
||||
}
|
||||
|
@ -17,8 +18,7 @@ if(empty($DB->num_rows($sites)) || $site['link_pwd']!=0){
|
|||
else {
|
||||
$groups = $DB->query("select `group_name`,`group_icon` from lylme_groups where group_id=".$site['group_id']." limit 1");
|
||||
$group = $DB->fetch($groups);
|
||||
print_r($site);
|
||||
//include(theme_file('site.php'));
|
||||
include(theme_file('site.php'));
|
||||
|
||||
// $pv =$site['link_pv']+1;
|
||||
// $DB->query("UPDATE `lylme_links` SET `link_pv` = '".$pv."' WHERE `lylme_links`.`id` = $id;");
|
||||
|
@ -33,6 +33,9 @@ else {
|
|||
* $site['name'] 链接名称
|
||||
* $site['url'] 链接地址
|
||||
* $site['PS'] 链接描述
|
||||
* $info['title'] 网站标题
|
||||
* $info['description'] 网站描述
|
||||
* $info['keywords'] 网站关键词
|
||||
**/
|
||||
?>
|
||||
|
||||
|
|
|
@ -25,9 +25,18 @@
|
|||
|
||||
<div class="markdown-section" id="main">
|
||||
<?php
|
||||
echo $site["icon"].'<span class="site_name">'. $site["name"].'</span>
|
||||
<p><b>分类:'.$group['group_name'].'</b></p>
|
||||
<p>浏览量:'.$pv.'</p>
|
||||
echo $site["icon"].'<span class="site_name">'. $site["name"].'</span>';
|
||||
if(!empty($info['title'])){
|
||||
echo '<p><b>网站标题:</b>'.$info['title'].'</p>';
|
||||
}
|
||||
if(!empty($info['description'])){
|
||||
echo '<p><b>网站描述:</b>'.$info['description'].'</p>';
|
||||
}
|
||||
if(!empty($info['keywords'])){
|
||||
echo '<p><b>网站关键词:</b>'.$info['keywords'].'</p>';
|
||||
}
|
||||
|
||||
echo '<p><b>所在分组:</b>'.$group['group_name'].'</p>
|
||||
';
|
||||
echo "<p><a class='btn btn-pink' href='/'>返回</a> <a rel='nofollow' class='btn btn-success' href='". $site["url"]."'>访问</a></p>";
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue