]>
Commit | Line | Data |
---|---|---|
997305cf JP |
1 | <?php |
2 | /* | |
3 | mitsql.cfg.php | |
4 | (c) 2005 Joe Presbrey | |
5 | written for SIPB/MIT SQL service | |
6 | */ | |
7 | ||
8 | define('DEBUG', 0); | |
3ebfe9a3 | 9 | define('DEVEL', 0); |
997305cf JP |
10 | define('VERSION', '0.2-dev'); |
11 | ||
12 | define('DELIMETER', '+'); | |
13 | ||
3ebfe9a3 | 14 | define('DBHOST', 'sql.mit.edu'); |
997305cf | 15 | define('ADMINUSER', 'root'); |
3ebfe9a3 | 16 | define('ADMINPASS', base64_decode('TXlCZWF0c1Bvc3RA')); |
997305cf JP |
17 | define('ADMINDB', 'mitsql'); |
18 | ||
19 | set_time_limit(0); | |
20 | ignore_user_abort(1); | |
21 | import_request_variables('cgp', 'i_'); | |
22 | DEVEL && ini_set('display_errors', 1); | |
23 | DEVEL && error_reporting(E_ALL); | |
24 | set_include_path(get_include_path() . PATH_SEPARATOR . 'lib/'); | |
25 | ||
26 | require_once('defaults.cfg.php'); | |
27 | ||
28 | $BASE_URL = isset($_SERVER['SCRIPT_NAME'])?dirname($_SERVER['SCRIPT_NAME']).'/':''; | |
29 | ||
dc478ec8 | 30 | $cxn = mysql_connect(DBHOST, ADMINUSER, ADMINPASS); |
997305cf | 31 | mysql_select_db(ADMINDB,$cxn); |
3ebfe9a3 | 32 | if (mysql_error()) die(mysql_error()); |
997305cf JP |
33 | |
34 | ?> |