]> andersk Git - sql-web.git/blobdiff - lib/mitsql.lib.php
errors are emailed in
[sql-web.git] / lib / mitsql.lib.php
index db3790df2fd57df3e2ef4533e7939b118ffb4f35..0e9620d97a13bfcf176e93175cd5ddf30a0c01c8 100755 (executable)
@@ -10,10 +10,15 @@ require_once('dbaccess.lib.php');
 
 require_once('mitsql.cfg.php');
 require_once('security.lib.php');
+require_once('errorhandler.lib.php');
 
 require_once('display.lib.php');
 
-$BASE_URL = 'http'.(isSSL()?'s':'').'://'.$_SERVER['SERVER_NAME'].BASE_URL;
+if (isset($_SERVER['SERVER_NAME'])) {
+       $BASE_URL = 'http'.(isSSL()?'s':'').'://'.$_SERVER['SERVER_NAME'].BASE_URL;
+} else {
+       $BASE_URL = 'http://sql.mit.edu/';
+}
 
 if (isset($_SERVER['REQUEST_URI'])) {
     //$thisPath=pathinfo($_SERVER['REQUEST_URI']);
This page took 0.031943 seconds and 4 git commands to generate.