| 49 |
function urllist_output() { |
function urllist_output() { |
| 50 |
header("Content-type: text/plain"); |
header("Content-type: text/plain"); |
| 51 |
print url('', NULL, NULL, TRUE) . "\n"; |
print url('', NULL, NULL, TRUE) . "\n"; |
| 52 |
$result = db_query(db_rewrite_sql("SELECT nid, {node}.type, {node}.status, {node}.promote, {node}.changed, {url_alias}.dst FROM {node} LEFT JOIN {url_alias} ON {url_alias}.src=CONCAT('node/',{node}.nid)",'node')); |
$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))"); |
| 53 |
while($node = db_fetch_object($result)) { |
while($node = db_fetch_object($result)) { |
| 54 |
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 |
| 55 |
if(isset($node->dst)) { // alias is named |
if(isset($node->dst)) { // alias is named |