Merge pull request #218 from TheSerapher/issue-217

Fixing issues with application using BASEPATH
This commit is contained in:
Sebastian Grewe 2013-06-19 05:50:43 -07:00
commit 00b84264c0
3 changed files with 5 additions and 5 deletions

View File

@ -26,10 +26,10 @@ define("BASEPATH", "../public/");
define("SECURITY", 1);
// Include our configuration (holding defines for the requires)
require_once(BASEPATH . '/include/config/global.inc.php');
require_once(BASEPATH . 'include/config/global.inc.php');
// We include all needed files here, even though our templates could load them themself
require_once(BASEPATH . INCLUDE_DIR . '/autoloader.inc.php');
require_once(INCLUDE_DIR . '/autoloader.inc.php');
// Parse command line
$options = getopt("v");

View File

@ -246,8 +246,8 @@ class BitcoinClientException extends ErrorException {
}
}
require_once(BASEPATH . INCLUDE_DIR . "/xmlrpc.inc.php");
require_once(BASEPATH . INCLUDE_DIR . "/jsonrpc.inc.php");
require_once(INCLUDE_DIR . "/xmlrpc.inc.php");
require_once(INCLUDE_DIR . "/jsonrpc.inc.php");
/**
* Bitcoin client class for access to a Bitcoin server via JSON-RPC-HTTP[S]

View File

@ -5,7 +5,7 @@ if (!defined('SECURITY'))
die('Hacking attempt');
$debug->append('Loading Smarty libraries', 2);
define('SMARTY_DIR', BASEPATH . INCLUDE_DIR . '/smarty/libs/');
define('SMARTY_DIR', INCLUDE_DIR . '/smarty/libs/');
// Include the actual smarty class file
include(SMARTY_DIR . 'Smarty.class.php');