Some cleanup, and code style changes.

This commit is contained in:
2009-08-17 14:33:23 +03:00
parent 776a0ca8a1
commit b3c17af11c
6 changed files with 38 additions and 41 deletions

View File

@@ -12,12 +12,12 @@
# configurations.
#
# ( development | test | staging | production )
$this->environment = 'development';
$this->environment = "development";
# Default server display mode - Overridden by host
# specific configurations.
$this->mode = 'web';
$this->mode = "web";
# When enabled, environment and more is set based

View File

@@ -12,20 +12,20 @@
# specific hosts. available options are "environment",
# "mode", and "root".
$hosts = array(
// 'zynapse' => array(
// "zynapse" => array(
//
// ),
// 'wap.zynapse' => array(
// 'mode' => 'wap',
// "wap.zynapse" => array(
// "mode" => "wap",
// ),
// 'admin.zynapse' => array(
// 'root' => 'admin',
// "admin.zynapse" => array(
// "root" => "admin",
// ),
// '*zynapse.org' => array(
// 'environment' => 'production',
// "*zynapse.org" => array(
// "environment" => "production",
// ),
// 'admin.zynapse.org' => array(
// 'root' => 'admin',
// "admin.zynapse.org" => array(
// "root" => "admin",
// ),
);

View File

@@ -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");
?>