Merge pull request #218 from TheSerapher/issue-217
Fixing issues with application using BASEPATH
This commit is contained in:
commit
00b84264c0
@ -26,10 +26,10 @@ define("BASEPATH", "../public/");
|
|||||||
define("SECURITY", 1);
|
define("SECURITY", 1);
|
||||||
|
|
||||||
// Include our configuration (holding defines for the requires)
|
// 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
|
// 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
|
// Parse command line
|
||||||
$options = getopt("v");
|
$options = getopt("v");
|
||||||
|
|||||||
@ -246,8 +246,8 @@ class BitcoinClientException extends ErrorException {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once(BASEPATH . INCLUDE_DIR . "/xmlrpc.inc.php");
|
require_once(INCLUDE_DIR . "/xmlrpc.inc.php");
|
||||||
require_once(BASEPATH . INCLUDE_DIR . "/jsonrpc.inc.php");
|
require_once(INCLUDE_DIR . "/jsonrpc.inc.php");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Bitcoin client class for access to a Bitcoin server via JSON-RPC-HTTP[S]
|
* Bitcoin client class for access to a Bitcoin server via JSON-RPC-HTTP[S]
|
||||||
|
|||||||
@ -5,7 +5,7 @@ if (!defined('SECURITY'))
|
|||||||
die('Hacking attempt');
|
die('Hacking attempt');
|
||||||
|
|
||||||
$debug->append('Loading Smarty libraries', 2);
|
$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 the actual smarty class file
|
||||||
include(SMARTY_DIR . 'Smarty.class.php');
|
include(SMARTY_DIR . 'Smarty.class.php');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user