Update of /cvsroot/openfirst/base/config
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28978
Modified Files:
first.php
Log Message:
Fix bug in last commit
Index: first.php
===================================================================
RCS file: /cvsroot/openfirst/base/config/first.php,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** first.php 5 Apr 2004 11:13:46 -0000 1.30
--- first.php 5 Apr 2004 11:16:01 -0000 1.31
***************
*** 43,48 ****
$sqlpassword = '" . $_POST["sqlpassword"] . "';
$sqldatabase = '" . $_POST["sqldatabase"] . "';
! 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.\");
}
$sqlconnection = ofirst_dbconnect("$sqlserver","$sqluser","$sqlpassword");
--- 43,48 ----
$sqlpassword = '" . $_POST["sqlpassword"] . "';
$sqldatabase = '" . $_POST["sqldatabase"] . "';
! 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.");
}
$sqlconnection = ofirst_dbconnect("$sqlserver","$sqluser","$sqlpassword");
|