更新
This commit is contained in:
parent
1e2b7978f8
commit
b63ed9224a
@ -3,7 +3,7 @@
|
|||||||
/* 获取主题当前版本号 */
|
/* 获取主题当前版本号 */
|
||||||
function _getVersion()
|
function _getVersion()
|
||||||
{
|
{
|
||||||
return "5.6.4";
|
return "5.6.5";
|
||||||
};
|
};
|
||||||
|
|
||||||
/* 判断是否是手机 */
|
/* 判断是否是手机 */
|
||||||
@ -254,6 +254,7 @@ function _getAsideAuthorNav()
|
|||||||
$prefix = $db->getPrefix();
|
$prefix = $db->getPrefix();
|
||||||
$sql = "SELECT * FROM `{$prefix}contents` WHERE cid >= (SELECT floor( RAND() * ((SELECT MAX(cid) FROM `{$prefix}contents`)-(SELECT MIN(cid) FROM `{$prefix}contents`)) + (SELECT MIN(cid) FROM `{$prefix}contents`))) and type='post' and status='publish' and (password is NULL or password='') ORDER BY cid LIMIT $limit";
|
$sql = "SELECT * FROM `{$prefix}contents` WHERE cid >= (SELECT floor( RAND() * ((SELECT MAX(cid) FROM `{$prefix}contents`)-(SELECT MIN(cid) FROM `{$prefix}contents`)) + (SELECT MIN(cid) FROM `{$prefix}contents`))) and type='post' and status='publish' and (password is NULL or password='') ORDER BY cid LIMIT $limit";
|
||||||
$result = $db->query($sql);
|
$result = $db->query($sql);
|
||||||
|
if (is_array($result)) {
|
||||||
foreach ($result as $item) {
|
foreach ($result as $item) {
|
||||||
$item = Typecho_Widget::widget('Widget_Abstract_Contents')->push($item);
|
$item = Typecho_Widget::widget('Widget_Abstract_Contents')->push($item);
|
||||||
$title = htmlspecialchars($item['title']);
|
$title = htmlspecialchars($item['title']);
|
||||||
@ -266,6 +267,7 @@ function _getAsideAuthorNav()
|
|||||||
";
|
";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function _curl($url)
|
function _curl($url)
|
||||||
|
Loading…
Reference in New Issue
Block a user