[geeklog-cvs] Geeklog-1.x/public_html comment.php,1.113,1.114

Dirk Haun dhaun at qs1489.pair.com
Sun Oct 28 12:48:44 EDT 2007


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

Modified Files:
	comment.php 
Log Message:
Prevent posting to closed comments (Thanks, Mark!)


Index: comment.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/comment.php,v
retrieving revision 1.113
retrieving revision 1.114
diff -C2 -d -r1.113 -r1.114
*** comment.php	28 Jan 2007 10:15:03 -0000	1.113
--- comment.php	28 Oct 2007 16:48:42 -0000	1.114
***************
*** 3,7 ****
  /* Reminder: always indent with 4 spaces (no tabs). */
  // +---------------------------------------------------------------------------+
! // | Geeklog 1.4                                                               |
  // +---------------------------------------------------------------------------+
  // | comment.php                                                               |
--- 3,7 ----
  /* Reminder: always indent with 4 spaces (no tabs). */
  // +---------------------------------------------------------------------------+
! // | Geeklog 1.5                                                               |
  // +---------------------------------------------------------------------------+
  // | comment.php                                                               |
***************
*** 9,18 ****
  // | Let user comment on a story or plugin.                                    |
  // +---------------------------------------------------------------------------+
! // | Copyright (C) 2000-2006 by the following authors:                         |
  // |                                                                           |
! // | Authors: Tony Bibbs        - tony at tonybibbs.com                           |
! // |          Mark Limburg      - mlimburg at users.sourceforge.net               |
! // |          Jason Whittenburg - jwhitten at securitygeeks.com                   |
! // |          Dirk Haun         - dirk at haun-online.de                          |
  // |          Vincent Furia     - vinny01 AT users DOT sourceforge DOT net     |
  // +---------------------------------------------------------------------------+
--- 9,18 ----
  // | Let user comment on a story or plugin.                                    |
  // +---------------------------------------------------------------------------+
! // | Copyright (C) 2000-2007 by the following authors:                         |
  // |                                                                           |
! // | Authors: Tony Bibbs        - tony AT tonybibbs DOT com                    |
! // |          Mark Limburg      - mlimburg AT users DOT sourceforge DOT net    |
! // |          Jason Whittenburg - jwhitten AT securitygeeks DOT com            |
! // |          Dirk Haun         - dirk AT haun-online DOT de                   |
  // |          Vincent Furia     - vinny01 AT users DOT sourceforge DOT net     |
  // +---------------------------------------------------------------------------+
***************
*** 80,85 ****
              $commentcode = DB_getItem ($_TABLES['stories'], 'commentcode',
                                         "sid = '$sid'" . COM_getPermSQL('AND') . COM_getTopicSQL('AND'));
!             if (!isset($commentcode) || $commentcode < 0) {
!                 return COM_refresh ($_CONF['site_url'] . '/index.php');
              }
  
--- 80,85 ----
              $commentcode = DB_getItem ($_TABLES['stories'], 'commentcode',
                                         "sid = '$sid'" . COM_getPermSQL('AND') . COM_getTopicSQL('AND'));
!             if (!isset($commentcode) || ($commentcode != 0)) {
!                 return COM_refresh($_CONF['site_url'] . '/index.php');
              }
  




More information about the geeklog-cvs mailing list