]> andersk Git - sql-web.git/blob - mitsql.cfg.php
new templates
[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('VERSION', '0.3-dev');
9 define('DELIMETER', '+');
10
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');
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.043889 seconds and 5 git commands to generate.