]> andersk Git - sql-web.git/blobdiff - mitsql.cfg.php
git-svn-id: svn://presbrey.mit.edu/sql/mitsql@101 a142d4bd-2cfb-0310-9673-cb33a7e74f58
[sql-web.git] / mitsql.cfg.php
index 587f482e39f3509a0588203d2bb89eb12ca55451..e45c462cc5c3d6568a053385276b535db2ee09be 100755 (executable)
@@ -37,8 +37,9 @@ define('THIS_PAGE', $THIS_PAGE);
 set_time_limit(0);
 ignore_user_abort(1);
 import_request_variables('cgp', 'i_');
+!DEVEL && ini_set('display_errors', 0);
 DEVEL && ini_set('display_errors', 1);
-DEVEL && error_reporting(E_ALL);
+error_reporting(E_ALL);
 set_include_path(get_include_path() . PATH_SEPARATOR . $BASE_PATH . 'lib/' . PATH_SEPARATOR . $BASE_PATH);
 
 require_once('defaults.cfg.php');
@@ -46,7 +47,10 @@ require_once('defaults.cfg.php');
 if (!OFFLINE) {
        $cxn = mysql_connect(DBHOST, ADMINUSER, ADMINPASS);
        mysql_select_db(ADMINDB,$cxn);
-       if (mysql_error()) die(mysql_error());
+       if (mysql_error()) {
+               require_once('errorhandler.lib.php');
+               trigger_error(mysql_error(),E_USER_ERROR);
+       }
 }
 
 chdir($CWD);
This page took 0.024859 seconds and 4 git commands to generate.