📄 googlemap.inc.php
字号:
<?php
defined('IN_PHPCMS') or exit('Access Denied');
include 'admin/sitemaps.class.php';
if($dosubmit)
{
if($mark)
{
$baidunum = $baidunum ? intval($baidunum) : 20;
include 'admin/baidunews.class.php';
$baidu = new baidunews($email, $time,$baidunum);
$baidu->set_xml();
}
$num = $num ? intval($num) : 100;
$today = date('Y-m-d');
$domain = SITE_URL;
$sm =& new google_sitemap();
$smi =& new google_sitemap_item($domain, $today, 'daily', '1.0');
$sm->add_item($smi);
$result1 = $db->query("SELECT * FROM ".DB_PRE."content ORDER BY `inputtime` DESC LIMIT 0 , $num ");
while($r = $db->fetch_array($result1))
{
$row = $db->get_one("SELECT * FROM ".DB_PRE."content_position AS a,".DB_PRE."content_count AS b WHERE a.contentid = b.contentid AND a.contentid = $r[contentid] AND b.hits > '100'");
if($row)
{
$smi =& new google_sitemap_item($domain.$r['url'], $today, $content_changefreq, '0.8');//鎺ㄨ崘鏂囦欢
$sm->add_item($smi);
}
else
{
$row = $db->get_one("SELECT * FROM ".DB_PRE."content_position WHERE `contentid` = $r[contentid]");
if($row)
{
$smi =& new google_sitemap_item($domain.$r['url'], $today, $content_changefreq, '0.6');//鎺ㄨ崘鏂囦欢
$sm->add_item($smi);
}
else
{
$row = $db->get_one("SELECT * FROM ".DB_PRE."content_count WHERE `contentid` = $r[contentid]");//鐑
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -