destoon新建最新发布内容地图
今天分享destoon新建最新发布内容地图,这样更有利于百度抓取。
<!DOCTYPE> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv='content-language' content='zh-CN'> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="renderer" content="webkit|ie-comp|ie-stand"> <meta name="force-rendering" content="webkit"> <title><?php echo $MODULE[$mid]['name'];?>模块站点地图</title> <meta name="keywords" content="站点地图" /> <meta name="description" content="{$DT[sitename]}<?php echo $MODULE[$mid]['name'];?>模块站点地图" /> <style type="text/css"> body {font-family: Verdana;FONT-SIZE: 12px;MARGIN: 0;color: #000000;background: #ffffff;} img {border:0;} li {margin-top: 8px;} .page {padding: 4px; border-top: 1px #EEEEEE solid} .author {background-color:#EEEEFF; padding: 6px; border-top: 1px #ddddee solid} #nav, #content, #footer {padding: 8px; border: 1px solid #EEEEEE; clear: both; width: 95%; margin: auto; margin-top: 10px;} </style> </head> <body vlink="#333333" link="#333333"> <h2 style="text-align: center; margin-top: 20px"><?php echo $MODULE[$mid]['name'];?>站点地图 </h2> <div id="content"> <h3><?php echo $MODULE[$mid]['name'];?>最新文章</h3> <ul> <table width='100%' border='0' cellspacing='0' cellpadding='0'> <tr> <?php defined('IN_DESTOON') or exit('Access Denied'); require DT_ROOT.'/module/'.$module.'/common.inc.php'; $mid or $mid = 4; $areaid = isset($areaid) ? intval($areaid) : 0; if($mid > 4 && isset($MODULE[$mid]) && !$MODULE[$mid]['islink']) { $moduleid = $mid; $module = $MODULE[$mid]['module']; $modurl = $MODULE[$mid]['linkurl']; $table = get_table($mid); $rss_title = $MODULE[$mid]['name']; if($MOD['feed_enable']) { $pagesize = $MOD['feed_pagesize'] ? intval($MOD['feed_pagesize']) : 50; $condition = "status=3"; if($MOD['feed_enable'] == 2) { if($catid) { $condition .= $CAT['child'] ? " and catid IN (".$CAT['arrchildid'].")" : " and catid=$catid"; $rss_title = $rss_title.$DT['seo_delimiter'].strip_tags(cat_pos($catid, $DT['seo_delimiter'])); } if($areaid) { $condition .= $ARE['child'] ? " and areaid IN (".$ARE['arrchildid'].")" : " and areaid=$areaid"; $rss_title = $rss_title.$DT['seo_delimiter'].strip_tags(area_pos($areaid, $DT['seo_delimiter'])); } } } $rss_title = $rss_title.$DT['seo_delimiter'].$DT['sitename']; echo '<a href="'.$modurl.'">'.$rss_title.'</a>'."<br/>"; if($MOD['feed_enable']) { $result = $db->query("SELECT itemid,title,introduce,linkurl,addtime FROM {$table} WHERE {$condition} ORDER BY addtime DESC LIMIT 0,$pagesize", 'CACHE'); while($r = $db->fetch_array($result)) { echo '<a href="'.$modurl.str_replace('&', '&', $r['linkurl']).'">'.$r['title'].'</a>'."<br/>"; } } else { echo '<a href="'.DT_PATH.'">'.DT_PATH.'</a>'."<br/>"; } } else { dheader('./'); } echo "</ul>"; ?> </body> </html>
千行代码,Bug何处藏。 纵使上线又怎样,朝令改,夕断肠。