[Openfirst-cvscommit] base/config first.php,1.63,1.64
Brought to you by:
xtimg
From: Astronouth7303 <ast...@us...> - 2005-07-18 22:39:58
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32127/config Modified Files: first.php Log Message: quick changes Index: first.php =================================================================== RCS file: /cvsroot/openfirst/base/config/first.php,v retrieving revision 1.63 retrieving revision 1.64 diff -C2 -d -r1.63 -r1.64 *** first.php 18 Jul 2005 22:34:33 -0000 1.63 --- first.php 18 Jul 2005 22:39:50 -0000 1.64 *************** *** 56,61 **** include_once("$fbasepath/includes/globals.php"); ! if (!ofirst_dbcreate("$sqlserver","$sqluser","$sqlpassword", $sqldatabase)) ! echo 'DB/tables creation error: '.ofirst_dberror(); function GetVarValue($var) { --- 56,62 ---- include_once("$fbasepath/includes/globals.php"); ! #HACK: Change when module installationg code is written ! if (!$ogDB->execFile('base.sql')) ! echo 'DB/tables creation error: '.$ogDB->error(); function GetVarValue($var) { *************** *** 128,138 **** die; } else { ! echo '<p class="error"><span class="file">'.htmlentities($ConfigFile).'</span> is not writable</p> ! '; ! if(is_readable("style/headers.php")) { ! include_once("style/headers.php"); ! } else { ! include_once("../style/headers.php"); ! } echo("<h1 class=\"error\">System Configuration Error</h1> <p>Cannot write to configuration file. Please check permissions on <b>".htmlentities(basename($ConfigFile))."</b> and --- 129,135 ---- die; } else { ! /* echo '<p class="error"><span class="file">'.htmlentities($ConfigFile).'</span> is not writable</p> ! ';*/ ! include_once($header); echo("<h1 class=\"error\">System Configuration Error</h1> <p>Cannot write to configuration file. Please check permissions on <b>".htmlentities(basename($ConfigFile))."</b> and *************** *** 140,146 **** <p>For unix, this would typically require the command: ! <br /> ! <pre class=\"shell\">cd includes ! <br />chmod 666 ".htmlentities(basename($ConfigFile))."</pre></p>"); } } else { --- 137,142 ---- <p>For unix, this would typically require the command: ! <pre class=\"shell\">cd includes<br /> ! chmod 666 \"".htmlentities(addslashes(basename($ConfigFile)))."\"</pre></p>"); } } else { |