about summary refs log tree commit diff stats
path: root/central
diff options
context:
space:
mode:
Diffstat (limited to 'central')
-rw-r--r--central/trunk/includes/db.php2
-rw-r--r--central/trunk/install.php6
2 files changed, 4 insertions, 4 deletions
diff --git a/central/trunk/includes/db.php b/central/trunk/includes/db.php index b9f275b..cef456b 100644 --- a/central/trunk/includes/db.php +++ b/central/trunk/includes/db.php
@@ -7,7 +7,7 @@ if (!extension_loaded('curl'))
7 die('Sorry, but the PHP Extension "curl" is required for InstaDisc Server and you don\'t have it installed.'); 7 die('Sorry, but the PHP Extension "curl" is required for InstaDisc Server and you don\'t have it installed.');
8} 8}
9 9
10if (!file_exists('config.php')) 10if (!file_exists('includes/config.php'))
11{ 11{
12 header('Location: install.php'); 12 header('Location: install.php');
13 exit; 13 exit;
diff --git a/central/trunk/install.php b/central/trunk/install.php index b819e84..e5403ac 100644 --- a/central/trunk/install.php +++ b/central/trunk/install.php
@@ -68,9 +68,9 @@ if (!isset($_GET['submit']))
68 } 68 }
69 } 69 }
70 70
71 @file_put_contents('config.php', "<?php\n\n/* InstaDisc Server - A Four Island Project */\n\n\$dbhost = \"" . $_POST['host'] . "\";\n\$dbuser = \"" . $_POST['username'] . "\";\n\$dbpass = \"" . $_POST['password'] . "\";\n\$dbname = \"" . $_POST['dbname'] . "\";\n\n?>"); 71 @file_put_contents('includes/config.php', "<?php\n\n/* InstaDisc Server - A Four Island Project */\n\n\$dbhost = \"" . $_POST['host'] . "\";\n\$dbuser = \"" . $_POST['username'] . "\";\n\$dbpass = \"" . $_POST['password'] . "\";\n\$dbname = \"" . $_POST['dbname'] . "\";\n\n?>");
72 72
73 if (!file_exists('config.php')) 73 if (!file_exists('includes/config.php'))
74 { 74 {
75 addError($numOfErrors, $errors, '', 'Could not write config.php file, please check directory permissions'); 75 addError($numOfErrors, $errors, '', 'Could not write config.php file, please check directory permissions');
76 } 76 }
@@ -149,7 +149,7 @@ if (!isset($_GET['submit']))
149 { 149 {
150 addError($numOfErrors, $errors, 'xmlrpcURL', 'XML-RPC URL is a required field'); 150 addError($numOfErrors, $errors, 'xmlrpcURL', 'XML-RPC URL is a required field');
151 } else { 151 } else {
152 include_once('xmlrpc/xmlrpc.inc'); 152 include_once('includes/xmlrpc/xmlrpc.inc');
153 153
154 $client = new xmlrpc_client($_POST['xmlrpcURL']); 154 $client = new xmlrpc_client($_POST['xmlrpcURL']);
155 $msg = new xmlrpcmsg('system.listMethods'); 155 $msg = new xmlrpcmsg('system.listMethods');