- // definitions of path related variables
--define('APP_PATH', dirname(__FILE__) . '/');
--define('APP_INC_PATH', APP_PATH . '/lib/eventum');
--define('APP_PEAR_PATH', APP_PATH . '/lib/pear');
-+define('APP_PATH', '/usr/share/eventum');
-+define('APP_INC_PATH', APP_PATH . '/cli');
-
- if (defined('APP_PEAR_PATH')) {
- set_include_path(APP_PEAR_PATH . PATH_SEPARATOR . get_include_path());
---- trunk/init.php~ 2009-06-27 17:31:32.000000000 +0300
-+++ trunk/init.php 2009-06-27 17:33:35.745565456 +0300
-@@ -26,7 +26,7 @@
- // | Authors: Elan Ruusamäe <glen@delfi.ee> |
- // +----------------------------------------------------------------------+
-
--if (!file_exists(dirname(__FILE__) . '/config/config.php')) {
-+if (!file_exists('/etc/webapps/eventum/config.php')) {
- Header('Location: setup/');
- exit;
- }
-@@ -46,7 +46,7 @@
-
- // define base path
- define('APP_PATH', realpath(dirname(__FILE__)));
--define('APP_CONFIG_PATH', APP_PATH . '/config');
-+define('APP_CONFIG_PATH', '/etc/webapps/eventum');
-
- // include local site config. may override any default
- require_once APP_CONFIG_PATH . '/config.php';
-@@ -61,19 +61,15 @@
- }
-
- if (!defined('APP_TPL_COMPILE_PATH')) {
-- define('APP_TPL_COMPILE_PATH', APP_PATH . '/templates_c');
-+ define('APP_TPL_COMPILE_PATH', '/var/cache/eventum');
- }
-
- if (!defined('APP_INC_PATH')) {
- define('APP_INC_PATH', APP_PATH . '/lib/eventum');
- }
-
--if (!defined('APP_PEAR_PATH')) {
-- define('APP_PEAR_PATH', APP_PATH . '/lib/pear');
--}
--
- if (!defined('APP_SMARTY_PATH')) {
-- define('APP_SMARTY_PATH', APP_PATH . '/lib/Smarty');
-+ define('APP_SMARTY_PATH', '/usr/share/php/Smarty');
- }
-
- if (!defined('APP_JPGRAPH_PATH')) {
-@@ -81,7 +77,7 @@
- }
-
- if (!defined('APP_LOCKS_PATH')) {
-- define('APP_LOCKS_PATH', APP_PATH . '/locks');
-+ define('APP_LOCKS_PATH', '/var/run/eventum/');
- }
-
- if (!defined('APP_SQL_PATCHES_PATH')) {
-@@ -89,7 +85,7 @@
- }
-
- if (!defined('APP_LOG_PATH')) {
-- define('APP_LOG_PATH', APP_PATH . '/logs');
-+ define('APP_LOG_PATH', '/var/log/eventum');
- }
-
- if (!defined('APP_ROUTED_MAILS_SAVEDIR')) {
---- trunk/htdocs/setup/index.php~ 2009-06-27 17:34:22.000000000 +0300
-+++ trunk/htdocs/setup/index.php 2009-06-27 17:35:07.108898271 +0300
-@@ -42,14 +42,14 @@
- define('APP_PATH', realpath(dirname(__FILE__) . '/../..'));
- define('APP_INC_PATH', APP_PATH . '/lib/eventum');
- define('APP_PEAR_PATH', APP_INC_PATH . '/lib/pear');
--define('APP_SMARTY_PATH', APP_INC_PATH . '/lib/Smarty');
--define('APP_CONFIG_PATH', APP_PATH . '/config');
-+define('APP_SMARTY_PATH', '/usr/share/php/Smarty');
-+define('APP_CONFIG_PATH', '/etc/webapps/eventum');
- define('APP_SETUP_FILE', APP_CONFIG_PATH . '/setup.php');