[geeklog-cvs] geeklog-1.3/public_html lib-common.php,1.238,1.239

geeklog-cvs-admin at lists.geeklog.net geeklog-cvs-admin at lists.geeklog.net
Mon Jul 14 06:35:11 EDT 2003


Update of /usr/cvs/geeklog/geeklog-1.3/public_html
In directory internal.geeklog.net:/tmp/cvs-serv724

Modified Files:
	lib-common.php 
Log Message:
Check for proper topic access on submissions.


Index: lib-common.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/lib-common.php,v
retrieving revision 1.238
retrieving revision 1.239
diff -C2 -d -r1.238 -r1.239
*** lib-common.php	6 Jul 2003 09:37:25 -0000	1.238
--- lib-common.php	14 Jul 2003 10:35:08 -0000	1.239
***************
*** 2296,2300 ****
              if( SEC_hasrights( 'story.edit' ))
              {
!                 $num += DB_count( $_TABLES['storysubmission'] );
  
                  if( $_CONF['listdraftstories'] == 1 )
--- 2296,2309 ----
              if( SEC_hasrights( 'story.edit' ))
              {
!                 if( empty( $topicsql ))
!                 {
!                     $num += DB_count( $_TABLES['storysubmission'] );
!                 }
!                 else
!                 {
!                     $sresult = DB_query( "SELECT COUNT(*) AS count FROM {$_TABLES['storysubmission']} WHERE" . $topicsql );
!                     $S = DB_fetchArray( $sresult );
!                     $num += $S['count'];
!                 }
  
                  if( $_CONF['listdraftstories'] == 1 )





More information about the geeklog-cvs mailing list