diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-09-14 18:17:33 +0000 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-09-14 18:17:33 +0000 |
commit | 8ae5ada819bd908cac5c3889e5864a10372787ad (patch) | |
tree | e39b486271fda7ae7e9cbc9af5fe4cf7f9edd0a6 /central/trunk | |
parent | 607c13ebeda2051537963a054c2ffac8be634418 (diff) | |
download | instadisc-8ae5ada819bd908cac5c3889e5864a10372787ad.tar.gz instadisc-8ae5ada819bd908cac5c3889e5864a10372787ad.tar.bz2 instadisc-8ae5ada819bd908cac5c3889e5864a10372787ad.zip |
Central: [15]
Refs #52
Diffstat (limited to 'central/trunk')
-rw-r--r-- | central/trunk/install.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/central/trunk/install.php b/central/trunk/install.php index 59a83c9..b7a97ab 100644 --- a/central/trunk/install.php +++ b/central/trunk/install.php | |||
@@ -194,10 +194,7 @@ if (!isset($_GET['submit'])) | |||
194 | $sql[6] = "INSERT INTO config (name,value) VALUES (\"xmlrpcURL\",\"" . mysql_real_escape_string($_POST['xmlrpcURL']) . "\")"; | 194 | $sql[6] = "INSERT INTO config (name,value) VALUES (\"xmlrpcURL\",\"" . mysql_real_escape_string($_POST['xmlrpcURL']) . "\")"; |
195 | $sql[7] = "INSERT INTO config (name,value) VALUES (\"owner\",\"" . mysql_real_escape_string($_POST['adminUser']) . "\")"; | 195 | $sql[7] = "INSERT INTO config (name,value) VALUES (\"owner\",\"" . mysql_real_escape_string($_POST['adminUser']) . "\")"; |
196 | $sql[8] = "INSERT INTO config (name,value) VALUES (\"verIDBufferSize\",\"10000\")"; | 196 | $sql[8] = "INSERT INTO config (name,value) VALUES (\"verIDBufferSize\",\"10000\")"; |
197 | $sql[9] = "INSERT INTO config (name,value) VALUES (\"softwareVersion\",\"" . $softwareVersion . "\")"; | ||
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']) . "\")"; | 197 | $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 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 | 198 | ||
202 | foreach ($sql as $name => $value) | 199 | foreach ($sql as $name => $value) |
203 | { | 200 | { |
@@ -230,7 +227,7 @@ if (!isset($_GET['submit'])) | |||
230 | 227 | ||
231 | function showHeader($number) | 228 | function showHeader($number) |
232 | { | 229 | { |
233 | ?><HTML><HEAD><TITLE>InstaDisc Server Setup Step <?php echo($number); ?></TITLE><LINK REL="stylesheet" TYPE="text/css" HREF="uniform.css"></HEAD><BODY><CENTER><H1>InstaDisc Installation</H1></CENTER><P><?php | 230 | ?><HTML><HEAD><TITLE>InstaDisc Server Setup Step <?php echo($number); ?></TITLE><LINK REL="stylesheet" TYPE="text/css" HREF="theme/uniform.css"></HEAD><BODY><CENTER><H1>InstaDisc Installation</H1></CENTER><P><?php |
234 | } | 231 | } |
235 | 232 | ||
236 | function showStepOne($host, $username, $password, $dbname, $errors) | 233 | function showStepOne($host, $username, $password, $dbname, $errors) |