/[drupal]/contributions/modules/urllist/urllist.module
ViewVC logotype

Diff of /contributions/modules/urllist/urllist.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.3.2.1, Sun Jan 8 18:42:38 2006 UTC revision 1.3.2.2, Tue Jan 13 05:04:57 2009 UTC
# Line 49  function urllist_settings() { Line 49  function urllist_settings() {
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

Legend:
Removed from v.1.3.2.1  
changed lines
  Added in v.1.3.2.2

  ViewVC Help
Powered by ViewVC 1.1.2