]>
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 | ||
377015e0 | 8 | define('VERSION', '0.3-dev'); |
997305cf JP |
9 | define('DELIMETER', '+'); |
10 | ||
377015e0 JP |
11 | file_exists('server.cfg.php') && require('server.cfg.php'); |
12 | defined('DEBUG') || define('DEBUG', 0); | |
13 | defined('DEVEL') || define('DEVEL', 0); | |
14 | defined('DBHOST') || define('DBHOST', 'sql.mit.edu'); | |
15 | defined('ADMINUSER') || define('ADMINUSER', 'root'); | |
16 | defined('ADMINPASS') || define('ADMINPASS', base64_decode('TXlCZWF0c1Bvc3RA')); | |
17 | defined('ADMINDB') || define('ADMINDB', 'mitsql'); | |
997305cf JP |
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 | ?> |