diff options
Diffstat (limited to 'manager/library/global/defines.php')
-rw-r--r-- | manager/library/global/defines.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/manager/library/global/defines.php b/manager/library/global/defines.php new file mode 100644 index 0000000..4e90ac5 --- /dev/null +++ b/manager/library/global/defines.php @@ -0,0 +1,28 @@ +<?php
+/**
+ * @author markus
+ * $Id: defines.php 95 2010-03-19 14:14:39Z markus $
+ */
+
+// Define path to application directory
+defined('APPLICATION_PATH')
+ || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../../application'));
+defined('LIBARARY_PATH')
+ || define('LIBRARY_PATH', realpath(dirname(__FILE__) . '/..'));
+defined('FWACTIONS_PATH')
+ || define('FWACTIONS_PATH', LIBRARY_PATH . '/actions');
+defined('LOCALE_PATH')
+ || define('LOCALE_PATH', realpath(dirname(__FILE__) . '/../../locale'));
+
+// Define application environment
+defined('APPLICATION_ENV')
+ || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
+
+define('SYSTEM_CONFIG', 'system_config');
+define('SYSTEM_LOG', 'log');
+
+// Ensure library/ is on include_path
+set_include_path(implode(PATH_SEPARATOR, array(
+ LIBRARY_PATH,
+ get_include_path(),
+)));
|