|
From: Ulf E. <ulf...@us...> - 2005-05-24 20:53:44
|
Update of /cvsroot/phpbt/phpbt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17243 Modified Files: install.php Log Message: Move TBL_CONFIGURATION into the text string Index: install.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/install.php,v retrieving revision 1.41 retrieving revision 1.42 diff -u -r1.41 -r1.42 --- install.php 24 May 2005 20:49:55 -0000 1.41 +++ install.php 24 May 2005 20:53:33 -0000 1.42 @@ -182,7 +182,7 @@ $do_query = ''; } /*!! BAD! Must figure out how to get db_version from config-dist.php... */ - $query = preg_replace(array_keys($tables), array_values($tables), 'INSERT INTO '.TBL_CONFIGURATION.' (varname,varvalue,description,vartype) VALUES (\'DB_VERSION\', './*!!!*/4/*!!!*/.', \'Database Version <b>Warning:</b> Changing this might make things go horribly wrong, so don\\\'t change it.\', \'mixed\')'); + $query = preg_replace(array_keys($tables), array_values($tables), 'INSERT INTO TBL_CONFIGURATION (varname,varvalue,description,vartype) VALUES (\'DB_VERSION\', './*!!!*/4/*!!!*/.', \'Database Version <b>Warning:</b> Changing this might make things go horribly wrong, so don\\\'t change it.\', \'mixed\')'); $res = $db->query($query); if (DB::isError($res)) { echo 'DB_VERSION not set!'; |