Update of /cvsroot/openfirst/base/config
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31774/config
Modified Files:
first.php
Log Message:
fixed some bugs with db setup
Index: first.php
===================================================================
RCS file: /cvsroot/openfirst/base/config/first.php,v
retrieving revision 1.57
retrieving revision 1.58
diff -C2 -d -r1.57 -r1.58
*** first.php 16 May 2005 21:27:22 -0000 1.57
--- first.php 16 May 2005 22:01:35 -0000 1.58
***************
*** 44,52 ****
$sqldatabase = $_POST["sqldatabase"];
include_once("./dbase.php");
if(function_exists("ofirst_dbconnect") == false) {
die("Your version of PHP has not been compiled with MySQL support, therefore the openFIRST web portal system cannot run on this system. Please contact your system administrator to request MySQL support for your version of PHP.");
}
! ofirst_dbcreate("$sqlserver","$sqluser","$sqlpassword", $sqldatabase);
! echo 'DB/tables creation error: '.ofirst_dberror();
function GetVarValue($var) {
--- 44,53 ----
$sqldatabase = $_POST["sqldatabase"];
include_once("./dbase.php");
+ include_once("./auth.php");
if(function_exists("ofirst_dbconnect") == false) {
die("Your version of PHP has not been compiled with MySQL support, therefore the openFIRST web portal system cannot run on this system. Please contact your system administrator to request MySQL support for your version of PHP.");
}
! if (!ofirst_dbcreate("$sqlserver","$sqluser","$sqlpassword", $sqldatabase))
! echo 'DB/tables creation error: '.ofirst_dberror();
function GetVarValue($var) {
|