diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-07-05 13:38:57 +0000 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-07-05 13:38:57 +0000 |
commit | 3741a16e708fb022d6d05f353c581af831bedf3e (patch) | |
tree | afa1b4a288f19a3cf2f003abfa6d2f8523e8baba /central/trunk/db.php | |
parent | 24ee5485d1bb0c86833977dbfbd2e4999dba8e16 (diff) | |
download | instadisc-3741a16e708fb022d6d05f353c581af831bedf3e.tar.gz instadisc-3741a16e708fb022d6d05f353c581af831bedf3e.tar.bz2 instadisc-3741a16e708fb022d6d05f353c581af831bedf3e.zip |
Redid InstaDisc, new technique in store
New technique is to use XML-RPC hooks instead of a pre-built HTML interface so people who host Central Servers will not have to use the default interface, instead allowing them to create their own.
Diffstat (limited to 'central/trunk/db.php')
-rw-r--r-- | central/trunk/db.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/central/trunk/db.php b/central/trunk/db.php new file mode 100644 index 0000000..c492722 --- /dev/null +++ b/central/trunk/db.php | |||
@@ -0,0 +1,21 @@ | |||
1 | <?php | ||
2 | |||
3 | /* InstaDisc Server - A Four Island Project */ | ||
4 | |||
5 | if (!file_exists('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('config.php'); | ||
17 | |||
18 | mysql_connect($dbhost, $dbuser, $dbpass); | ||
19 | mysql_select_db($dbname); | ||
20 | |||
21 | ?> | ||