diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-06-23 09:47:21 +0000 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-06-23 09:47:21 +0000 |
commit | c6e3d927c343280bc1fd6d0dfdb64658151e9aac (patch) | |
tree | 2748a3fef5c547503433cde7ae93da64430bbf28 /central/trunk/db.php | |
parent | 3598c1a205bd3419f75ae481ad20d3f54b154bad (diff) | |
download | instadisc-c6e3d927c343280bc1fd6d0dfdb64658151e9aac.tar.gz instadisc-c6e3d927c343280bc1fd6d0dfdb64658151e9aac.tar.bz2 instadisc-c6e3d927c343280bc1fd6d0dfdb64658151e9aac.zip |
Moved code needed by most pages into a single file.
Diffstat (limited to 'central/trunk/db.php')
-rw-r--r-- | central/trunk/db.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/central/trunk/db.php b/central/trunk/db.php index 61d9bc4..c492722 100644 --- a/central/trunk/db.php +++ b/central/trunk/db.php | |||
@@ -8,6 +8,11 @@ if (!file_exists('config.php')) | |||
8 | exit; | 8 | exit; |
9 | } | 9 | } |
10 | 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 | |||
11 | include('config.php'); | 16 | include('config.php'); |
12 | 17 | ||
13 | mysql_connect($dbhost, $dbuser, $dbpass); | 18 | mysql_connect($dbhost, $dbuser, $dbpass); |