diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-09-06 21:14:00 +0000 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-09-06 21:14:00 +0000 |
| commit | aa716b0b246bb9efa678dae48c1e36a315b5e3e4 (patch) | |
| tree | b9683d8039760ba243d2fe92214c43426a06ead8 /series/core/trunk/includes/db.php | |
| parent | 73ed91f80e62592d7aa86000ef30e06946be7c68 (diff) | |
| download | instadisc-aa716b0b246bb9efa678dae48c1e36a315b5e3e4.tar.gz instadisc-aa716b0b246bb9efa678dae48c1e36a315b5e3e4.tar.bz2 instadisc-aa716b0b246bb9efa678dae48c1e36a315b5e3e4.zip | |
Series: Started work on Series Control
Refs #28
Diffstat (limited to 'series/core/trunk/includes/db.php')
| -rw-r--r-- | series/core/trunk/includes/db.php | 23 |
1 files changed, 23 insertions, 0 deletions
| diff --git a/series/core/trunk/includes/db.php b/series/core/trunk/includes/db.php new file mode 100644 index 0000000..6c08708 --- /dev/null +++ b/series/core/trunk/includes/db.php | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | /* InstaDisc Series - 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 | session_start(); | ||
| 17 | |||
| 18 | include('includes/config.php'); | ||
| 19 | |||
| 20 | mysql_connect($dbhost, $dbuser, $dbpass); | ||
| 21 | mysql_select_db($dbname); | ||
| 22 | |||
| 23 | ?> | ||
