]>
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); | |
9 | define('DEVEL', 1); | |
10 | define('VERSION', '0.2-dev'); | |
11 | ||
12 | define('DELIMETER', '+'); | |
13 | ||
14 | define('HOST', 'localhost'); | |
15 | define('ADMINUSER', 'root'); | |
16 | //define('ADMINPASS', base64_decode('TXlCZWF0c1Bvc3RA')); | |
17 | define('ADMINPASS', ''); | |
18 | define('ADMINDB', 'mitsql'); | |
19 | ||
20 | set_time_limit(0); | |
21 | ignore_user_abort(1); | |
22 | import_request_variables('cgp', 'i_'); | |
23 | DEVEL && ini_set('display_errors', 1); | |
24 | DEVEL && error_reporting(E_ALL); | |
25 | set_include_path(get_include_path() . PATH_SEPARATOR . 'lib/'); | |
26 | ||
27 | require_once('defaults.cfg.php'); | |
28 | ||
29 | $BASE_URL = isset($_SERVER['SCRIPT_NAME'])?dirname($_SERVER['SCRIPT_NAME']).'/':''; | |
30 | ||
31 | $cxn = mysql_connect(HOST, ADMINUSER, ADMINPASS); | |
32 | mysql_select_db(ADMINDB,$cxn); | |
33 | ||
34 | ?> |