diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-15 15:09:16 +0000 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-15 15:09:16 +0000 |
commit | 75a4f15e5998cc3995da462e4aa469e86bdf54c0 (patch) | |
tree | 17c5975baddca868618cb0b833a5381cc90707d1 /central | |
parent | d7367564c1cda6bedc8316302f3f848b4d411aac (diff) | |
download | instadisc-75a4f15e5998cc3995da462e4aa469e86bdf54c0.tar.gz instadisc-75a4f15e5998cc3995da462e4aa469e86bdf54c0.tar.bz2 instadisc-75a4f15e5998cc3995da462e4aa469e86bdf54c0.zip |
Central: Fixed include pathes
Refs #25
Diffstat (limited to 'central')
-rw-r--r-- | central/trunk/includes/db.php | 2 | ||||
-rw-r--r-- | central/trunk/install.php | 6 |
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 | ||
10 | if (!file_exists('config.php')) | 10 | if (!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'); |