From b44496e6b4c4b4a9e0b97d4b9488fe107ba2d480 Mon Sep 17 00:00:00 2001 From: Joe Presbrey Date: Fri, 9 Sep 2005 02:38:29 +0000 Subject: [PATCH] BASE_PATH calc'd and added to include_path git-svn-id: svn://presbrey.mit.edu/sql/mitsql@50 a142d4bd-2cfb-0310-9673-cb33a7e74f58 --- mitsql.cfg.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mitsql.cfg.php b/mitsql.cfg.php index 13a6c23..a534a8a 100755 --- a/mitsql.cfg.php +++ b/mitsql.cfg.php @@ -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()); -- 2.45.1