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/install.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/install.php')
-rw-r--r-- | central/trunk/install.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/central/trunk/install.php b/central/trunk/install.php new file mode 100644 index 0000000..f689875 --- /dev/null +++ b/central/trunk/install.php | |||
@@ -0,0 +1,20 @@ | |||
1 | <?php | ||
2 | |||
3 | /* InstaDisc Server - A Four Island Project */ | ||
4 | |||
5 | if (!isset($_GET['step'])) | ||
6 | { | ||
7 | ?>Welcome to the InstaDisc Central Server installation! Please input your database details here:<P><FORM ACTION="./install.php?step=2" METHOD="POST">Database host: <INPUT TYPE="text" NAME="host" VALUE="localhost"><BR>Username: <INPUT TYPE="text" NAME="username" VALUE="root"><BR>Password: <INPUT TYPE="text" NAME="password"><BR>Database name: <INPUT TYPE="text" NAME="name"> (Note: You must create this database BEFORE running installation)<BR><INPUT TYPE="submit"></FORM><?php | ||
8 | } else if ($_GET['step']==2) | ||
9 | { | ||
10 | if (!mysql_connect($_POST['host'], $_POST['username'], $_POST['password'])) | ||
11 | { | ||
12 | ?>Oops! Something went wrong!<?php exit(); | ||
13 | } | ||
14 | if (!mysql_select_db($_POST['name'])) | ||
15 | { | ||
16 | ?>Oops! Something went wrong!<?php exit(); | ||
17 | } | ||
18 | } | ||
19 | |||
20 | ?> | ||