mirror of
https://github.com/jimeh/zynapse.git
synced 2026-02-19 07:06:39 +00:00
Some cleanup, and code style changes.
This commit is contained in:
@@ -14,25 +14,25 @@ if ( !defined("ZNAP_ROOT") ) {
|
||||
|
||||
|
||||
// set zynapse config path
|
||||
define("ZNAP_CONFIG", ZNAP_ROOT . "/config");
|
||||
define("ZNAP_CONFIG", ZNAP_ROOT."/config");
|
||||
|
||||
|
||||
// include boot configuration
|
||||
require_once(ZNAP_CONFIG . "/init/boot_config.php");
|
||||
require_once(ZNAP_CONFIG."/init/boot_config.php");
|
||||
|
||||
|
||||
// find zynapse libs
|
||||
if ( !empty($zynapse_libs) && is_file($zynapse_libs . "/zynapse.php") ) {
|
||||
if ( !empty($zynapse_libs) && is_file($zynapse_libs."/zynapse.php") ) {
|
||||
define("ZNAP_LIB_ROOT", $zynapse_libs);
|
||||
} elseif ( is_file(ZNAP_ROOT . "/vendor/zynapse/zynapse.php") ) {
|
||||
define("ZNAP_LIB_ROOT", ZNAP_ROOT . "/vendor/zynapse");
|
||||
} elseif ( is_file(dirname(ZNAP_ROOT) . "/vendor/zynapse/zynapse.php") ) {
|
||||
define("ZNAP_LIB_ROOT", dirname(ZNAP_ROOT) . "/vendor/zynapse");
|
||||
} elseif ( is_file(ZNAP_ROOT."/vendor/zynapse/zynapse.php") ) {
|
||||
define("ZNAP_LIB_ROOT", ZNAP_ROOT."/vendor/zynapse");
|
||||
} elseif ( is_file(dirname(ZNAP_ROOT)."/vendor/zynapse/zynapse.php") ) {
|
||||
define("ZNAP_LIB_ROOT", dirname(ZNAP_ROOT)."/vendor/zynapse");
|
||||
}
|
||||
|
||||
|
||||
// require main zynapse class
|
||||
require_once(ZNAP_LIB_ROOT . "/zynapse.php");
|
||||
require_once(ZNAP_LIB_ROOT."/zynapse.php");
|
||||
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user