[geeklog-cvs] geeklog-1.3/public_html lib-common.php,1.213,1.214

geeklog-cvs-admin at lists.geeklog.net geeklog-cvs-admin at lists.geeklog.net
Sun Apr 13 13:16:11 EDT 2003


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

Modified Files:
	lib-common.php 
Log Message:
You can now enable a block in moderation.php that lists all stories with the 'draft' flag set.


Index: lib-common.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/lib-common.php,v
retrieving revision 1.213
retrieving revision 1.214
diff -C2 -d -r1.213 -r1.214
*** lib-common.php	29 Mar 2003 17:30:02 -0000	1.213
--- lib-common.php	13 Apr 2003 17:16:09 -0000	1.214
***************
*** 2126,2129 ****
--- 2126,2136 ----
              {
                  $num += DB_count( $_TABLES['storysubmission'] );
+ 
+                 if( $_CONF['listdraftstories'] == 1 )
+                 {
+                     $result = DB_query( "SELECT COUNT(*) AS count FROM {$_TABLES['stories']} WHERE (draft_flag = 1)" . COM_getPermSQL( 'AND', 0, 3 ));
+                     $A = DB_fetchArray( $result );
+                     $num += $A['count'];
+                 }
              }
  





More information about the geeklog-cvs mailing list