Update of /cvsroot/openfirst/base/config
In directory sc8-pr-cvs1:/tmp/cvs-serv26862
Modified Files:
first.php
Log Message:
Add functionality for working with modules to the generated globals.php file
Index: first.php
===================================================================
RCS file: /cvsroot/openfirst/base/config/first.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** first.php 27 Jun 2003 13:44:37 -0000 1.7
--- first.php 27 Jun 2003 14:36:35 -0000 1.8
***************
*** 80,86 ****
\$currentmodule = substr(\$currentmodule, 1, strpos(\$currentmodule, \"/\", 2) - 1);
! session_start();
! include('auth.php');
! session_write_close();
?>");
fclose($of);
--- 80,114 ----
\$currentmodule = substr(\$currentmodule, 1, strpos(\$currentmodule, \"/\", 2) - 1);
!
! session_start();
! include(\'auth.php\');
! mysql_select_db(\$sqldatabase, \$sqlconnection);
! \$incl = mysql_query(\"SELECT * FROM ofirst_config\");
! if(mysql_errno() == 0) {
! while(\$module = mysql_fetch_object(\$incl)) {
! if( (bool) \$module->active == true) {
! if(! \$module->includes == \"\"){
! \$inclist = explode(\",\",\$module->includes);
! if(count(\$inclist) >= 2){
! foreach(\$inclist As \$inc){
! include(\"\$basepath/\$module->modulename/\$inc\");
! }
! } else {
! include(\"\$fbasepath/\$module->modulename/\$module->includes\");
! }
! }
! if( (bool) \$module->showonmenu == true) {
! \$headers .= \" » <a class=\'menu\'
! href=\'\$basepath/\$module->modulename/\'>\".ucwords(\$module->modulename).\"</a> |\";
! }
!
! if (\$currentmodule = \$module->modulename){
! \$adminnav = \$module->adminnavigation;
! \$subnav = \$module->modulenavigation;
! }
! }
! }
! }
! session_write_close();
?>");
fclose($of);
|