]> andersk Git - sql-web.git/commitdiff
BASE_PATH calc'd and added to include_path
authorJoe Presbrey <presbrey@mit.edu>
Fri, 9 Sep 2005 02:38:29 +0000 (02:38 +0000)
committerJoe Presbrey <presbrey@mit.edu>
Fri, 9 Sep 2005 02:38:29 +0000 (02:38 +0000)
git-svn-id: svn://presbrey.mit.edu/sql/mitsql@50 a142d4bd-2cfb-0310-9673-cb33a7e74f58

mitsql.cfg.php

index 13a6c23f989ba2dd3b4abf15c4fa822ff72dfd4a..a534a8aeac1cf72e8b2dd2f584643822febceb11 100755 (executable)
@@ -22,17 +22,18 @@ defined('ADMINUSER') || define('ADMINUSER', 'root');
 defined('ADMINPASS') || define('ADMINPASS', base64_decode('TXlCZWF0c1Bvc3RA'));
 defined('ADMINDB') || define('ADMINDB', 'mitsql');
 
+$BASE_PATH = dirname(__FILE__).'/';
+$BASE_URL = isset($_SERVER['SCRIPT_NAME'])?dirname($_SERVER['SCRIPT_NAME']).'/':'';
+
 set_time_limit(0);
 ignore_user_abort(1);
 import_request_variables('cgp', 'i_');
 DEVEL && ini_set('display_errors', 1);
 DEVEL && error_reporting(E_ALL);
-set_include_path(get_include_path() . PATH_SEPARATOR . 'lib/');
+set_include_path(get_include_path() . PATH_SEPARATOR . $BASE_PATH . 'lib/');
 
 require_once('defaults.cfg.php');
 
-$BASE_URL = isset($_SERVER['SCRIPT_NAME'])?dirname($_SERVER['SCRIPT_NAME']).'/':'';
-
 $cxn = mysql_connect(DBHOST, ADMINUSER, ADMINPASS);
 mysql_select_db(ADMINDB,$cxn);
 if (mysql_error()) die(mysql_error());
This page took 0.030913 seconds and 5 git commands to generate.