1 --- eventum-1.4/setup/index.php~ 2005-01-14 19:23:25.334500007 +0200
2 +++ eventum-1.4/setup/index.php 2005-01-14 19:23:32.743136482 +0200
4 $tpl->assign('is_imap_enabled', function_exists('imap_open'));
\r
8 -$full_url = dirname($HTTP_SERVER_VARS['PHP_SELF']);
\r
9 -$pieces = explode("/", $full_url);
\r
10 -$relative_url = array();
\r
11 -$relative_url[] = '';
\r
12 -foreach ($pieces as $piece) {
\r
13 - if ((!empty($piece)) && ($piece != 'setup')) {
\r
14 - $relative_url[] = $piece;
\r
17 -$relative_url[] = '';
\r
18 -$relative_url = implode("/", $relative_url);
\r
20 -if (substr($HTTP_SERVER_VARS['DOCUMENT_ROOT'], -1) == '/') {
\r
21 - $HTTP_SERVER_VARS['DOCUMENT_ROOT'] = substr($HTTP_SERVER_VARS['DOCUMENT_ROOT'], 0, -1);
\r
23 -$installation_path = $HTTP_SERVER_VARS['DOCUMENT_ROOT'] . $relative_url;
\r
24 +$installation_path = "/usr/share/eventum";
\r
25 +$relative_url = "/eventum/";
\r
27 $tpl->assign("phpversion", phpversion());
\r
28 $tpl->assign("rel_url", $relative_url);
\r
29 --- eventum-1.4.c/setup/config.inc.php 2005-01-05 01:05:58.000000000 +0200
30 +++ eventum-1.4/setup/config.inc.php 2005-01-24 17:21:52.000000000 +0200
32 @define("APP_INC_PATH", APP_PATH . "include/");
\r
33 @define("APP_PEAR_PATH", APP_INC_PATH . "pear/");
\r
34 @define("APP_TPL_PATH", APP_PATH . "templates/");
\r
35 -@define("APP_SMARTY_PATH", APP_INC_PATH . "Smarty/");
\r
36 +@define("APP_SMARTY_PATH", "/usr/share/pear/Smarty/");
\r
37 @define("APP_JPGRAPH_PATH", APP_INC_PATH . "jpgraph/");
\r
38 -@define("APP_LOG_PATH", APP_PATH . "logs/");
\r
39 -@define("APP_LOCKS_PATH", APP_PATH . "locks/");
\r
40 +@define("APP_LOG_PATH", "/var/log/eventum/");
\r
41 +@define("APP_LOCKS_PATH", "/var/run/eventum/");
\r
42 if (stristr(PHP_OS, 'darwin')) {
\r
43 ini_set("include_path", ".:" . APP_PEAR_PATH);
\r
44 } elseif (stristr(PHP_OS, 'win')) {
\r
48 header("content-type: text/html;charset=" . APP_CHARSET);
\r
50 \ No newline at end of file
52 --- ./misc/cli/eventum~ 2005-01-19 02:47:20.000000000 +0200
53 +++ ./misc/cli/eventum 2005-01-19 03:02:40.119100405 +0200
58 -include_once("config.inc.php");
\r
59 +include_once("/etc/eventum/cli.php");
\r
60 include_once(APP_INC_PATH . "class.command_line.php");
\r
61 include_once(APP_PEAR_PATH . "XML_RPC/RPC.php");
\r
63 --- eventum-1.4/misc/cli/config.inc.php~ 2005-01-05 01:06:01.000000000 +0200
64 +++ eventum-1.4/misc/cli/config.inc.php 2005-01-19 03:25:10.000000000 +0200
68 // definitions of path related variables
\r
69 -@define("APP_PATH", dirname(__FILE__) . '/');
\r
70 +@define("APP_PATH", '/usr/share/eventum/misc/cli/');
\r
71 @define("APP_INC_PATH", APP_PATH . "include/");
\r
72 @define("APP_PEAR_PATH", APP_INC_PATH . "pear/");
\r
73 if (stristr(PHP_OS, 'darwin')) {
\r
77 @define("APP_BENCHMARK", false);
\r
79 \ No newline at end of file
81 --- eventum-1.4.c/include/class.template.php 2005-01-05 01:05:59.000000000 +0200
82 +++ eventum-1.4/include/class.template.php 2005-01-24 17:22:35.000000000 +0200
85 $this->smarty = new Smarty;
\r
86 $this->smarty->template_dir = APP_PATH . "templates/" . APP_CURRENT_LANG;
\r
87 - $this->smarty->compile_dir = APP_PATH . "templates_c";
\r
88 + $this->smarty->compile_dir = "/var/cache/eventum";
\r
89 $this->smarty->config_dir = '';
\r
90 $this->smarty->register_modifier("activateLinks", array('Link_Filter', 'processText'));
\r
92 --- index.php 2005-01-24 17:39:51.000000000 +0200
93 +++ eventum-1.4/setup/index.php 2005-01-24 17:42:33.000000000 +0200
95 if (!empty($error)) {
\r
98 - $error = checkPermissions('../logs', "Directory 'logs'", TRUE);
\r
99 + $error = checkPermissions('/var/log/eventum', "Directory '/var/log/eventum'", TRUE);
100 if (!empty($error)) {
\r
101 $errors[] = $error;
\r
104 if (!empty($error)) {
\r
105 $errors[] = $error;
\r
107 - $error = checkPermissions('../logs/errors.log', "File 'logs/errors.log'");
\r
108 + $error = checkPermissions('/var/log/eventum/errors.log', "File '/var/log/eventum/errors.log'");
109 if (!empty($error)) {
\r
110 $errors[] = $error;
\r
112 @@ -199,11 +199,11 @@
115 ini_set("include_path", '.');
\r
116 -include_once("../include/Smarty/Smarty.class.php");
\r
117 +include_once('/usr/share/pear/Smarty/Smarty.class.php');
119 $tpl = new Smarty();
\r
120 $tpl->template_dir = '../templates/en';
\r
121 -$tpl->compile_dir = "../templates_c";
\r
122 +$tpl->compile_dir = "/var/cache/eventum";
123 $tpl->config_dir = '';
\r
125 function replace_table_prefix($str)
\r