about summary refs log tree commit diff stats
path: root/series/trunk/includes/db.php
diff options
context:
space:
mode:
Diffstat (limited to 'series/trunk/includes/db.php')
-rw-r--r--series/trunk/includes/db.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/series/trunk/includes/db.php b/series/trunk/includes/db.php new file mode 100644 index 0000000..6c08708 --- /dev/null +++ b/series/trunk/includes/db.php
@@ -0,0 +1,23 @@
1<?php
2
3/* InstaDisc Series - A Four Island Project */
4
5if (!file_exists('includes/config.php'))
6{
7 header('Location: install.php');
8 exit;
9}
10
11if (file_exists('install.php'))
12{
13 die('Excuse me, but you need to delete install.php before you can use this as leaving install.php there is a biiiig security hole.');
14}
15
16session_start();
17
18include('includes/config.php');
19
20mysql_connect($dbhost, $dbuser, $dbpass);
21mysql_select_db($dbname);
22
23?>