[Openfirst-cvscommit] www/inc headers.php,1.27,1.28
Brought to you by:
xtimg
From: Tim G. <xt...@us...> - 2005-11-05 13:28:45
|
Update of /cvsroot/openfirst/www/inc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14164 Modified Files: headers.php Log Message: At least be a bit more friendly when the SF.net MySQL server is down (since even now with MySQL 4 rather than MySQL 3 it doesn't seem to be doing too well at times). Index: headers.php =================================================================== RCS file: /cvsroot/openfirst/www/inc/headers.php,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** headers.php 8 Oct 2005 19:20:52 -0000 1.27 --- headers.php 5 Nov 2005 13:28:30 -0000 1.28 *************** *** 7,12 **** $sqldatabase = 'o78233_www'; ! $sqlconnection = mysql_connect("$sqlserver","$sqluser","$sqlpassword"); ! mysql_selectdb($sqldatabase); include("versions.php"); --- 7,16 ---- $sqldatabase = 'o78233_www'; ! $sqlconnection = @mysql_connect("$sqlserver","$sqluser","$sqlpassword"); ! if($sqlconnection) { ! mysql_selectdb($sqldatabase); ! } else { ! echo "<p>It appears that <a href=\"http://www.sourceforge.net/\">SourceForge</a> is currently experiencing problems with their MySQL database server. Certain parts of the <b>openFIRST</b> may not be functioning properly as a result.</p>"; ! } include("versions.php"); |