]> andersk Git - sql-web.git/blob - mitsql.cfg.php
git-svn-id: svn://presbrey.mit.edu/sql/mitsql@40 a142d4bd-2cfb-0310-9673-cb33a7e74f58
[sql-web.git] / mitsql.cfg.php
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', 0);
10 define('VERSION', '0.2-dev');
11
12 define('DELIMETER', '+');
13
14 define('DBHOST', 'sql.mit.edu');
15 define('ADMINUSER', 'root');
16 define('ADMINPASS', base64_decode('TXlCZWF0c1Bvc3RA'));
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
30 $cxn = mysql_connect(DBHOST, ADMINUSER, ADMINPASS);
31 mysql_select_db(ADMINDB,$cxn);
32 if (mysql_error()) die(mysql_error());
33
34 ?>
This page took 0.039309 seconds and 5 git commands to generate.