[Openfirst-cvscommit] base/config install.php,1.8,1.9
Brought to you by:
xtimg
From: <xt...@us...> - 2003-06-24 13:20:44
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1:/tmp/cvs-serv1782 Modified Files: install.php Log Message: Add ofirst_config creation before modules are installed (so that their configuration information can be stored). Index: install.php =================================================================== RCS file: /cvsroot/openfirst/base/config/install.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** install.php 23 Jun 2003 11:14:19 -0000 1.8 --- install.php 24 Jun 2003 13:20:41 -0000 1.9 *************** *** 50,54 **** echo("<br /> <input type='checkbox' name='$dir'>$sqlf - $dir</input>"); if(isset($_POST[$dir]) == true && $_POST[$dir] == "on") { ! // This doesn't quite work. I'm not sure why. $sf = fopen($filename, "r"); $query = ""; --- 50,58 ---- echo("<br /> <input type='checkbox' name='$dir'>$sqlf - $dir</input>"); if(isset($_POST[$dir]) == true && $_POST[$dir] == "on") { ! ! $q = mysql_query("CREATE table IF NOT EXISTS `ofirst_config` (`modulename` CHAR(25) NOT NULL, ! `showonmenu` TEXT, `active` BOOL, `adminnavigation` TEXT, ! `modulenavigation` TEXT, PRIMARY KEY (`modulename`));"); ! $sf = fopen($filename, "r"); $query = ""; *************** *** 75,78 **** --- 79,87 ---- echo("<br /> <input type='checkbox' name='$dir'>$sqlf - $dir</input>"); if(isset($_POST[$dir]) == true && $_POST[$dir] == "on") { + + $q = mysql_query("CREATE table IF NOT EXISTS `ofirst_config` (`modulename` CHAR(25) NOT NULL, + `showonmenu` TEXT, `active` BOOL, `adminnavigation` TEXT, + `modulenavigation` TEXT, PRIMARY KEY (`modulename`));"); + $filename = "$file/setup/$fil"; $sf = fopen($filename, "r"); |