diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-15 15:02:00 +0000 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-15 15:02:00 +0000 |
commit | d7367564c1cda6bedc8316302f3f848b4d411aac (patch) | |
tree | 0b544f14973be1edf970d7910ddf6923f11c4d5b /central/trunk/includes/db.php | |
parent | 857ecf0581857ccf8d05209c5f77983f47ef3117 (diff) | |
download | instadisc-d7367564c1cda6bedc8316302f3f848b4d411aac.tar.gz instadisc-d7367564c1cda6bedc8316302f3f848b4d411aac.tar.bz2 instadisc-d7367564c1cda6bedc8316302f3f848b4d411aac.zip |
Central: Organized files
Refs #25
Diffstat (limited to 'central/trunk/includes/db.php')
-rw-r--r-- | central/trunk/includes/db.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/central/trunk/includes/db.php b/central/trunk/includes/db.php new file mode 100644 index 0000000..b9f275b --- /dev/null +++ b/central/trunk/includes/db.php | |||
@@ -0,0 +1,28 @@ | |||
1 | <?php | ||
2 | |||
3 | /* InstaDisc Server - A Four Island Project */ | ||
4 | |||
5 | if (!extension_loaded('curl')) | ||
6 | { | ||
7 | die('Sorry, but the PHP Extension "curl" is required for InstaDisc Server and you don\'t have it installed.'); | ||
8 | } | ||
9 | |||
10 | if (!file_exists('config.php')) | ||
11 | { | ||
12 | header('Location: install.php'); | ||
13 | exit; | ||
14 | } | ||
15 | |||
16 | if (file_exists('install.php')) | ||
17 | { | ||
18 | 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.'); | ||
19 | } | ||
20 | |||
21 | session_start(); | ||
22 | |||
23 | include('includes/config.php'); | ||
24 | |||
25 | mysql_connect($dbhost, $dbuser, $dbpass); | ||
26 | mysql_select_db($dbname); | ||
27 | |||
28 | ?> | ||