diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-06-23 10:00:56 +0000 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-06-23 10:00:56 +0000 |
commit | 24ee5485d1bb0c86833977dbfbd2e4999dba8e16 (patch) | |
tree | b428b873939bcd7059291eeaeac07b06eb2ec0fa /central/trunk/includes/db.php | |
parent | c6e3d927c343280bc1fd6d0dfdb64658151e9aac (diff) | |
download | instadisc-24ee5485d1bb0c86833977dbfbd2e4999dba8e16.tar.gz instadisc-24ee5485d1bb0c86833977dbfbd2e4999dba8e16.tar.bz2 instadisc-24ee5485d1bb0c86833977dbfbd2e4999dba8e16.zip |
Moved over to the Four Island Templating System.
Diffstat (limited to 'central/trunk/includes/db.php')
-rw-r--r-- | central/trunk/includes/db.php | 21 |
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 | |||
5 | if (!file_exists('includes/config.php')) | ||
6 | { | ||
7 | header('Location: install.php'); | ||
8 | exit; | ||
9 | } | ||
10 | |||
11 | if (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 | |||
16 | include('includes/config.php'); | ||
17 | |||
18 | mysql_connect($dbhost, $dbuser, $dbpass); | ||
19 | mysql_select_db($dbname); | ||
20 | |||
21 | ?> | ||