about summary refs log tree commit diff stats
path: root/central/trunk/install.php
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2008-08-28 02:28:10 +0000
committerKelly Rauchenberger <fefferburbia@gmail.com>2008-08-28 02:28:10 +0000
commit857c5aa85bd2911a9b878c46e7588e358dda9ec8 (patch)
treeb8073f8bb82443259a42c5693f136f4fcb96c6cc /central/trunk/install.php
parentad9f73b06a36a832eb88358165fa1f3644581381 (diff)
downloadinstadisc-857c5aa85bd2911a9b878c46e7588e358dda9ec8.tar.gz
instadisc-857c5aa85bd2911a9b878c46e7588e358dda9ec8.tar.bz2
instadisc-857c5aa85bd2911a9b878c46e7588e358dda9ec8.zip
Central: Fixes #47
I am soooooo lazy.
Diffstat (limited to 'central/trunk/install.php')
-rw-r--r--central/trunk/install.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/central/trunk/install.php b/central/trunk/install.php index c056431..59a83c9 100644 --- a/central/trunk/install.php +++ b/central/trunk/install.php
@@ -197,8 +197,7 @@ if (!isset($_GET['submit']))
197 $sql[9] = "INSERT INTO config (name,value) VALUES (\"softwareVersion\",\"" . $softwareVersion . "\")"; 197 $sql[9] = "INSERT INTO config (name,value) VALUES (\"softwareVersion\",\"" . $softwareVersion . "\")";
198 $sql[10] = "INSERT INTO config (name,value) VALUES (\"databaseVersion\",\"1\")"; 198 $sql[10] = "INSERT INTO config (name,value) VALUES (\"databaseVersion\",\"1\")";
199 $sql[11] = "INSERT INTO users (username, password, email, ip) VALUES (\"" . mysql_real_escape_string($_POST['adminUser']) . "\",\"" . mysql_real_escape_string(md5($_POST['adminPass'])) . "\",\"" . mysql_real_escape_string($_POST['adminEmail']) . "\",\"" . mysql_real_escape_string($_SERVER['REMOTE_ADDR']) . "\")"; 199 $sql[11] = "INSERT INTO users (username, password, email, ip) VALUES (\"" . mysql_real_escape_string($_POST['adminUser']) . "\",\"" . mysql_real_escape_string(md5($_POST['adminPass'])) . "\",\"" . mysql_real_escape_string($_POST['adminEmail']) . "\",\"" . mysql_real_escape_string($_SERVER['REMOTE_ADDR']) . "\")";
200 $sql[12] = "INSERT INTO centralServers (url, code, xmlrpc) VALUES (\"" . mysql_real_escape_string('central.fourisland.com') . "\",\"" . mysql_real_escape_string(md5('central.fourisland.com')) . "\",\"" . mysql_real_escape_string('http://central.fourisland.com/xmlrpc.php') . "\")"; 200 $sql[12] = "INSERT INTO subscriptions (username, url, owner, category) VALUES (\"" . mysql_real_escape_string($_POST['adminUser']) . "\", \"" . mysql_real_escape_string('http://fourisland.com/' . $_SERVER['SERVER_NAME'] . '/') . "\", \"true\", \"instadisc\")";
201 $sql[13] = "INSERT INTO subscriptions (username, url, owner, category) VALUES (\"" . mysql_real_escape_string($_POST['adminUser']) . "\", \"" . mysql_real_escape_string('http://fourisland.com/' . $_SERVER['SERVER_NAME'] . '/') . "\", \"true\", \"instadisc\")";
202 201
203 foreach ($sql as $name => $value) 202 foreach ($sql as $name => $value)
204 { 203 {
@@ -348,7 +347,7 @@ function showStepTwo($mailDomain, $smtpHost, $smtpAuth, $smtpUser, $smtpPass, $s
348 347
349function showStepThree() 348function showStepThree()
350{ 349{
351?>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. See <A HREF="http://fourisland.com/projects/instadisc/wiki/BecomingACentralServer">Becoming A Central Server</A>. Also, it would be smart to subscribe to your InstaDisc Update Notice Subscription, which will notify you if your Central Server's software gets out of date. It's the subscription.php file in this directory. Please subscribe to it, thanks!<?php 350?>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. See <A HREF="http://fourisland.com/projects/instadisc/wiki/BecomingACentralServer">Becoming A Central Server</A>. Also, it would be smart to subscribe to your InstaDisc Update Notice Subscription, which will notify you if your Central Server's software gets out of date. It's the subscription.php file in this directory. Please subscribe to it, thanks!<P>However, remember that to be any use to anyone, you need your Central Server database, and to be added to others'. To do this, please find the appropriate help section on http://fourisland.com/projects/instadisc/BecomingACentralServer<?php
352} 351}
353 352
354function ifErrors($errors, $id) 353function ifErrors($errors, $id)