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

Diff of /contributions/modules/tribune/tribune.module

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

revision 1.77, Wed Jun 11 09:52:24 2008 UTC revision 1.78, Tue Jun 17 10:46:32 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // vim:filetype=php  // vim:filetype=php
3  // $Id: tribune.module,v 1.76 2008/06/11 09:41:33 seeschloss Exp $  // $Id: tribune.module,v 1.77 2008/06/11 09:52:24 seeschloss Exp $
4    
5  /**  /**
6    * Some variables    * Some variables
# Line 752  function tribune_get_post($id) { Line 752  function tribune_get_post($id) {
752  function get_new_posts($last_modified = 0) {  function get_new_posts($last_modified = 0) {
753      $posts = array();      $posts = array();
754    
755        //*
756      $r = db_query("SELECT post_id,      $r = db_query("SELECT post_id,
757                            login,                            login,
758                            info,                            info,
# Line 769  function get_new_posts($last_modified = Line 770  function get_new_posts($last_modified =
770                                         LIMIT 1)                                         LIMIT 1)
771                   ORDER BY post_id DESC"                   ORDER BY post_id DESC"
772                          , $last_modified);                          , $last_modified);
773        //*/
774    
775        /*
776        $r = db_query("SELECT post_id,
777                              login,
778                              info,
779                              message,
780                              post_time,
781                              is_alone,
782                              post_rank,
783                              parsed_message,
784                              referenced_by,
785                                                      moderated
786                         FROM {tribune}
787                        WHERE last_modified > %d
788                     ORDER BY post_id DESC"
789                            , $last_modified);
790        */
791    
792      while ($row = db_fetch_array($r)) {      while ($row = db_fetch_array($r)) {
793          $id = $row['post_id'];          $id = $row['post_id'];

Legend:
Removed from v.1.77  
changed lines
  Added in v.1.78

  ViewVC Help
Powered by ViewVC 1.1.2