/[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.5.2.5, Mon Dec 11 06:21:08 2006 UTC revision 1.5.2.6, Tue Jan 13 05:04:19 2009 UTC
# Line 1  Line 1 
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   */   */
# Line 58  function urllist_settings() { Line 58  function urllist_settings() {
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

Legend:
Removed from v.1.5.2.5  
changed lines
  Added in v.1.5.2.6

  ViewVC Help
Powered by ViewVC 1.1.2