From 75a4f15e5998cc3995da462e4aa469e86bdf54c0 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Fri, 15 Aug 2008 15:09:16 +0000 Subject: Central: Fixed include pathes Refs #25 --- central/trunk/includes/db.php | 2 +- central/trunk/install.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'central/trunk') 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')) die('Sorry, but the PHP Extension "curl" is required for InstaDisc Server and you don\'t have it installed.'); } -if (!file_exists('config.php')) +if (!file_exists('includes/config.php')) { header('Location: install.php'); 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'])) } } - @file_put_contents('config.php', ""); + @file_put_contents('includes/config.php', ""); - if (!file_exists('config.php')) + if (!file_exists('includes/config.php')) { addError($numOfErrors, $errors, '', 'Could not write config.php file, please check directory permissions'); } @@ -149,7 +149,7 @@ if (!isset($_GET['submit'])) { addError($numOfErrors, $errors, 'xmlrpcURL', 'XML-RPC URL is a required field'); } else { - include_once('xmlrpc/xmlrpc.inc'); + include_once('includes/xmlrpc/xmlrpc.inc'); $client = new xmlrpc_client($_POST['xmlrpcURL']); $msg = new xmlrpcmsg('system.listMethods'); -- cgit 1.4.1