/[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.15, Fri Feb 15 16:16:25 2008 UTC revision 1.15.2.1, Tue Jan 13 05:13:37 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: urllist.module,v 1.14 2007/10/08 17:51:09 deekayen Exp $  // $Id: urllist.module,v 1.15 2008/02/15 16:16:25 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.14 2007/10/08 17:51:09 deekayen Exp $   * @version $Id: urllist.module,v 1.15 2008/02/15 16:16:25 deekayen Exp $
9   * @author David Kent Norman   * @author David Kent Norman
10   * @link http://deekayen.net/   * @link http://deekayen.net/
11   */   */
# Line 189  function theme_urllist() { Line 189  function theme_urllist() {
189    }    }
190    header('Content-type: text/plain');    header('Content-type: text/plain');
191    print url('', array('absolute' => TRUE)) ."\n";    print url('', array('absolute' => TRUE)) ."\n";
192    $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))");
193    while ($node = db_fetch_object($result)) {    while ($node = db_fetch_object($result)) {
194      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
195        if (isset($node->dst)) { // alias is named        if (isset($node->dst)) { // alias is named

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.15.2.1

  ViewVC Help
Powered by ViewVC 1.1.2