[Openfirst-cvscommit] base/config install.php,1.18,1.19
Brought to you by:
xtimg
From: Astronouth7303 <ast...@us...> - 2005-04-03 00:38:06
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25238/config Modified Files: install.php Log Message: Fixing Bug #215. Index: install.php =================================================================== RCS file: /cvsroot/openfirst/base/config/install.php,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** install.php 15 Apr 2004 00:38:49 -0000 1.18 --- install.php 3 Apr 2005 00:37:56 -0000 1.19 *************** *** 51,55 **** if(function_exists("glob")) { ! foreach (glob("../*/setup/*.$dbasetype") as $filename) { $sqlf = str_replace(".", "-", str_replace(".$dbasetype", "",substr(strrchr($filename, "/"), 1))); $dir = str_replace(".", "-", str_replace(".$dbasetype", "", substr(strchr($filename, "/"), 1))); --- 51,63 ---- if(function_exists("glob")) { ! $files = glob("../*/setup/*.$dbasetype"); ! if (count($files) < 1) { ! ?> ! <p>You have no modules to install or are misconfigured. You can go to <a href="http://www.openfirst.org/">openFIRST.org</a> ! to download them.</p> ! <?php ! die(include($footer)); ! } ! foreach ($files as $filename) { $sqlf = str_replace(".", "-", str_replace(".$dbasetype", "",substr(strrchr($filename, "/"), 1))); $dir = str_replace(".", "-", str_replace(".$dbasetype", "", substr(strchr($filename, "/"), 1))); |