[geeklog-cvs] Geeklog-1.x/public_html/polls index.php,1.25,1.26

Dirk Haun dhaun at qs1489.pair.com
Sat Jan 19 09:53:14 EST 2008


Update of /cvsroot/geeklog/Geeklog-1.x/public_html/polls
In directory qs1489.pair.com:/tmp/cvs-serv26290/public_html/polls

Modified Files:
	index.php 
Log Message:
A bunch of minor Polls fixes (defaults; handling of closed polls)


Index: index.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/polls/index.php,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** index.php	29 Dec 2007 20:03:09 -0000	1.25
--- index.php	19 Jan 2008 14:53:12 -0000	1.26
***************
*** 9,13 ****
  // | Display poll results and past polls.                                      |
  // +---------------------------------------------------------------------------+
! // | Copyright (C) 2000-2007 by the following authors:                         |
  // |                                                                           |
  // | Authors: Tony Bibbs        - tony AT tonybibbs DOT com                    |
--- 9,13 ----
  // | Display poll results and past polls.                                      |
  // +---------------------------------------------------------------------------+
! // | Copyright (C) 2000-2008 by the following authors:                         |
  // |                                                                           |
  // | Authors: Tony Bibbs        - tony AT tonybibbs DOT com                    |
***************
*** 37,43 ****
  require_once '../lib-common.php';
  
- // number of polls to list per page
- define ('POLLS_PER_PAGE', 50);
- 
  
  /**
--- 37,40 ----
***************
*** 161,164 ****
--- 158,164 ----
              . DB_getItem ($_TABLES['polltopics'], 'topic', "pid = '{$pid}'") . '"'
              . COM_endBlock (COM_getBlockTemplate ('_msg_block', 'footer'));
+     }
+     if (DB_getItem($_TABLES['polltopics'], 'open', "pid = '$pid'") != 1) {
+         $aid = -1; // poll closed - show result
      }
      if (!isset ($_COOKIE['poll-'.$pid])




More information about the geeklog-cvs mailing list