[geeklog-cvs] geeklog-1.3/public_html lib-common.php,1.315,1.316

vinny at iowaoutdoors.org vinny at iowaoutdoors.org
Tue Apr 27 23:21:41 EDT 2004


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

Modified Files:
	lib-common.php 
Log Message:
Cached enabled plugins to improve performance.


Index: lib-common.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/lib-common.php,v
retrieving revision 1.315
retrieving revision 1.316
diff -C2 -d -r1.315 -r1.316
*** lib-common.php	26 Apr 2004 19:09:37 -0000	1.315
--- lib-common.php	28 Apr 2004 03:21:39 -0000	1.316
***************
*** 5400,5410 ****
  
  // Now include all plugin functions
! $result = DB_query( "SELECT pi_name FROM {$_TABLES['plugins']} WHERE pi_enabled = 1" );
! $nrows = DB_numRows( $result );
! 
! for( $i = 0; $i < $nrows; $i++ )
! {
!     $A = DB_fetchArray( $result );
!     require_once( $_CONF['path'] . 'plugins/' . $A['pi_name'] . '/functions.inc' );
  }
  
--- 5400,5405 ----
  
  // Now include all plugin functions
! foreach ($_PLUGINS as $pi_name) {
!     require_once( $_CONF['path'] . 'plugins/' . $pi_name . '/functions.inc' );
  }
  




More information about the geeklog-cvs mailing list