/[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.12.2.1, Thu Mar 8 17:07:32 2007 UTC revision 1.12.2.2, Tue Jan 13 05:03:40 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: urllist.module,v 1.12 2006/11/06 20:48:21 deekayen Exp $  // $Id: urllist.module,v 1.12.2.1 2007/03/08 17:07:32 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.12 2006/11/06 20:48:21 deekayen Exp $   * @version $Id: urllist.module,v 1.12.2.1 2007/03/08 17:07:32 deekayen Exp $
9   * @author David Kent Norman   * @author David Kent Norman
10   * @link http://deekayen.net/   * @link http://deekayen.net/
11   */   */
# Line 147  function urllist_output() { Line 147  function urllist_output() {
147    }    }
148    header('Content-type: text/plain');    header('Content-type: text/plain');
149    print url('', NULL, NULL, TRUE) . "\n";    print url('', NULL, NULL, TRUE) . "\n";
150    $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))");
151    while ($node = db_fetch_object($result)) {    while ($node = db_fetch_object($result)) {
152      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
153        if (isset($node->dst)) { // alias is named        if (isset($node->dst)) { // alias is named

Legend:
Removed from v.1.12.2.1  
changed lines
  Added in v.1.12.2.2

  ViewVC Help
Powered by ViewVC 1.1.2