about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2008-07-26 14:32:57 +0000
committerKelly Rauchenberger <fefferburbia@gmail.com>2008-07-26 14:32:57 +0000
commita6752bccf2ae0ce1f330ba9de02eafdb8e39916c (patch)
treec9311c639cd48dd2498429495a48c1bb61f85981
parent3741a16e708fb022d6d05f353c581af831bedf3e (diff)
downloadinstadisc-a6752bccf2ae0ce1f330ba9de02eafdb8e39916c.tar.gz
instadisc-a6752bccf2ae0ce1f330ba9de02eafdb8e39916c.tar.bz2
instadisc-a6752bccf2ae0ce1f330ba9de02eafdb8e39916c.zip
Continued working on install.php
-rw-r--r--central/trunk/index.php14
-rw-r--r--central/trunk/install.php7
-rw-r--r--central/trunk/theme/index.tpl3
3 files changed, 4 insertions, 20 deletions
diff --git a/central/trunk/index.php b/central/trunk/index.php deleted file mode 100644 index 8ced805..0000000 --- a/central/trunk/index.php +++ /dev/null
@@ -1,14 +0,0 @@
1<?php
2
3/* InstaDisc Server - A Four Island Project */
4
5include('includes/common.php');
6
7$template = new FITemplate('index');
8$template->add('TITLE', $config['title']);
9$template->add('TEXT', $config['text']);
10$template->display();
11
12include('includes/footer.php');
13
14?>
diff --git a/central/trunk/install.php b/central/trunk/install.php index f689875..d04e99b 100644 --- a/central/trunk/install.php +++ b/central/trunk/install.php
@@ -9,12 +9,13 @@ if (!isset($_GET['step']))
9{ 9{
10 if (!mysql_connect($_POST['host'], $_POST['username'], $_POST['password'])) 10 if (!mysql_connect($_POST['host'], $_POST['username'], $_POST['password']))
11 { 11 {
12?>Oops! Something went wrong!<?php exit(); 12?>Cannot connect to your database server! Please verify you typed you host, username and password correctly. <A HREF="./install.php">Back</A><?php exit();
13 } 13 }
14 if (!mysql_select_db($_POST['name'])) 14 if (!mysql_select_db($_POST['name']))
15 { 15 {
16?>Oops! Something went wrong!<?php exit(); 16?>Cannot connect to your database! Please verify that the database you specified already exists and that you spelled it correctly. <A HREF="./install.php">Back</A><?php exit();
17 } 17 }
18}
19 18
19?>Congradulations! You've successfully set up your InstaDisc Central Server's database! Now, the next step for you is to implement the functions in instadisc.php into your web application. Read README.txt for more information.<?php
20}
20?> 21?>
diff --git a/central/trunk/theme/index.tpl b/central/trunk/theme/index.tpl deleted file mode 100644 index 637648d..0000000 --- a/central/trunk/theme/index.tpl +++ /dev/null
@@ -1,3 +0,0 @@
1Welcome to the <!--TITLE--> InstaDisc Server!
2<P>
3<!--TEXT-->