summaryrefslogtreecommitdiffstats
path: root/core/db.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/db.inc.php')
-rw-r--r--core/db.inc.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/db.inc.php b/core/db.inc.php
new file mode 100644
index 0000000..706f63d
--- /dev/null
+++ b/core/db.inc.php
@@ -0,0 +1,10 @@
+<?PHP
+ require_once('config/config.inc.php');
+
+ require_once('adodb/adodb.inc.php');
+
+
+ $GLOBALS['db'] = &ADONewConnection($GLOBALS['config']['driver']);
+ $GLOBALS['db']->PConnect($GLOBALS['config']['server'], $GLOBALS['config']['user'],
+ $GLOBALS['config']['password'], $GLOBALS['config']['db']);
+?>