| 1 |
<?php |
<?php |
| 2 |
// $Id: urllist.module,v 1.5.2.4 2006/05/31 20:13:42 deekayen Exp $ |
// $Id: urllist.module,v 1.5.2.5 2006/12/11 06:21:08 deekayen Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 6 |
* Creates a list of URLs for search engines to index. |
* Creates a list of URLs for search engines to index. |
| 7 |
* |
* |
| 8 |
* @version $Id: urllist.module,v 1.5.2.4 2006/05/31 20:13:42 deekayen Exp $ |
* @version $Id: urllist.module,v 1.5.2.5 2006/12/11 06:21:08 deekayen Exp $ |
| 9 |
* @author David Kent Norman |
* @author David Kent Norman |
| 10 |
* @link http://deekayen.net/ |
* @link http://deekayen.net/ |
| 11 |
*/ |
*/ |
| 58 |
function urllist_output() { |
function urllist_output() { |
| 59 |
header('Content-type: text/plain'); |
header('Content-type: text/plain'); |
| 60 |
print url('', NULL, NULL, TRUE) . "\n"; |
print url('', NULL, NULL, TRUE) . "\n"; |
| 61 |
$result = db_query("SELECT n.nid, n.type, n.status, n.promote, n.changed, u.dst FROM {node} n LEFT JOIN {url_alias} u ON u.src=CONCAT('node/',n.nid)"); |
$result = db_query("SELECT n.nid, n.type, n.status, n.promote, n.changed, u.dst FROM {node} n LEFT JOIN {url_alias} u ON u.src=CONCAT('node/',CAST(n.nid as CHAR))"); |
| 62 |
while($node = db_fetch_object($result)) { |
while($node = db_fetch_object($result)) { |
| 63 |
if($node->status) { // add check for if the node type is disabled or not |
if($node->status) { // add check for if the node type is disabled or not |
| 64 |
if(isset($node->dst)) { // alias is named |
if(isset($node->dst)) { // alias is named |