{dede:global.cfg_wapurl/}/ 1.0 {dede:global.cfg_basehost/}/ 1.0 {dede:php} global $dsql,$cfg_wapurl,$cfg_basehost; $query = "Select id,typedir,typename From `#@__arctype` where reid=0 And channeltype=1 And ishidden=0 And id not in(375,376,6981) And ispart<>2 order by sortrank"; $dsql->SetQuery($query); $dsql->Execute(); $a=0; while($row=$dsql->GetArray()){ $reid[$a]=$row['id']; $retypename[$a]=$row['typename']; $retypedir[$a]=$row['typedir']; $a++; } for($m=0;$m<$a;$m++) { echo " ".$cfg_wapurl."/wap.php?action=list&id=".$reid[$m]." 0.9 ".$cfg_basehost.$retypedir[$m]."/ 0.9 "; $query = "Select id,typedir,typename From `#@__arctype` where reid=".$reid[$m]." order by id"; $dsql->SetQuery($query); $dsql->Execute(); while($row=$dsql->GetArray()) { echo " ".$cfg_wapurl."/wap.php?action=list&id=".$row['id']." 0.9 ".$cfg_basehost.$row['typedir']."/ 0.9 "; } } $query = "Select a.id,b.typedir FROM `#@__archives` a left join `#@__arctype` b on (b.id=a.typeid) order by id desc limit 5000"; $dsql->SetQuery($query); $dsql->Execute(); while($row=$dsql->GetArray()) { echo " ".$cfg_wapurl."/wap.php?action=article&id=".$row['id']." 0.8 ".$cfg_basehost.$row['typedir']."/".$row['id'].".html 0.8 "; } {/dede:php}