[geeklog-cvs] geeklog-1.3/public_html stats.php,1.31,1.32

dhaun at iowaoutdoors.org dhaun at iowaoutdoors.org
Sun Sep 5 15:19:53 EDT 2004


Update of /var/cvs/geeklog-1.3/public_html
In directory www:/tmp/cvs-serv7876

Modified Files:
	stats.php 
Log Message:
Changed URLs to past polls so that the results are displayed rather than letting the user vote on them.


Index: stats.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/stats.php,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -d -r1.31 -r1.32
*** stats.php	23 Aug 2004 19:36:34 -0000	1.31
--- stats.php	5 Sep 2004 19:19:50 -0000	1.32
***************
*** 14,17 ****
--- 14,18 ----
  // |          Mark Limburg      - mlimburg at users.sourceforge.net               |
  // |          Jason Whittenburg - jwhitten at securitygeeks.com                   |
+ // |          Dirk Haun         - dirk at haun-online.de                          |
  // +---------------------------------------------------------------------------+
  // |                                                                           |
***************
*** 221,225 ****
      for ($i = 0; $i < $nrows; $i++) {
          $A = DB_fetchArray($result);
!         $stat_templates->set_var('item_url', 'pollbooth.php?qid=' . $A['qid']);
          $stat_templates->set_var('item_text', $A['question']);
          $stat_templates->set_var('item_stat', $A['voters']);
--- 222,227 ----
      for ($i = 0; $i < $nrows; $i++) {
          $A = DB_fetchArray($result);
!         $stat_templates->set_var ('item_url', $_CONF['site_url']
!                 . '/pollbooth.php?qid=' . $A['qid'] . '&aid=-1');
          $stat_templates->set_var('item_text', $A['question']);
          $stat_templates->set_var('item_stat', $A['voters']);
***************
*** 230,234 ****
  } else {
      $display .= $LANG10[17];
! }	
  
  $display .= COM_endBlock();
--- 232,236 ----
  } else {
      $display .= $LANG10[17];
! }
  
  $display .= COM_endBlock();
***************
*** 261,265 ****
  $display .= PLG_getPluginStats(2);
  $display .= COM_siteFooter();
! 	
  echo $display;
  
--- 263,267 ----
  $display .= PLG_getPluginStats(2);
  $display .= COM_siteFooter();
! 
  echo $display;
  




More information about the geeklog-cvs mailing list