about summary refs log tree commit diff stats
path: root/central/trunk/includes/db.php
diff options
context:
space:
mode:
Diffstat (limited to 'central/trunk/includes/db.php')
-rw-r--r--central/trunk/includes/db.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/central/trunk/includes/db.php b/central/trunk/includes/db.php new file mode 100644 index 0000000..2fe1eed --- /dev/null +++ b/central/trunk/includes/db.php
@@ -0,0 +1,21 @@
1<?php
2
3/* InstaDisc Server - 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
16include('includes/config.php');
17
18mysql_connect($dbhost, $dbuser, $dbpass);
19mysql_select_db($dbname);
20
21?>