]> git.pld-linux.org Git - packages/eventum.git/blob - eventum-paths.patch
- use system PEAR for rest of the eventum
[packages/eventum.git] / eventum-paths.patch
1 --- eventum-1.4.d/setup/config.inc.php  2005-01-05 01:05:58.000000000 +0200
2 +++ eventum-1.4/setup/config.inc.php    2005-01-25 17:09:33.000000000 +0200
3 @@ -54,12 +54,12 @@
4  }\r
5  @define("APP_PATH", $app_path);\r
6  @define("APP_INC_PATH", APP_PATH . "include/");\r
7 -@define("APP_PEAR_PATH", APP_INC_PATH . "pear/");\r
8 +@define("APP_PEAR_PATH", "/usr/share/pear/");\r
9  @define("APP_TPL_PATH", APP_PATH . "templates/");\r
10 -@define("APP_SMARTY_PATH", APP_INC_PATH . "Smarty/");\r
11 +@define("APP_SMARTY_PATH", "/usr/share/pear/Smarty/");\r
12  @define("APP_JPGRAPH_PATH", APP_INC_PATH . "jpgraph/");\r
13 -@define("APP_LOG_PATH", APP_PATH . "logs/");\r
14 -@define("APP_LOCKS_PATH", APP_PATH . "locks/");\r
15 +@define("APP_LOG_PATH", "/var/log/eventum/");\r
16 +@define("APP_LOCKS_PATH", "/var/run/eventum/");\r
17  if (stristr(PHP_OS, 'darwin')) {\r
18      ini_set("include_path", ".:" . APP_PEAR_PATH);\r
19  } elseif (stristr(PHP_OS, 'win')) {\r
20 --- ./misc/cli/eventum~ 2005-01-19 02:47:20.000000000 +0200
21 +++ ./misc/cli/eventum  2005-01-19 03:02:40.119100405 +0200
22 @@ -11,7 +11,7 @@
23  //\r
24  // @(#) $Id$\r
25  //\r
26 -include_once("config.inc.php");\r
27 +include_once("/etc/eventum/cli.php");\r
28  include_once(APP_INC_PATH . "class.command_line.php");\r
29  include_once(APP_PEAR_PATH . "XML_RPC/RPC.php");\r
30  \r
31 --- eventum-1.4/misc/cli/config.inc.php~        2005-01-05 01:06:01.000000000 +0200
32 +++ eventum-1.4/misc/cli/config.inc.php 2005-01-19 03:25:10.000000000 +0200
33 @@ -45,7 +45,7 @@
34  }\r
35  \r
36  // definitions of path related variables\r
37 -@define("APP_PATH", dirname(__FILE__) . '/');\r
38 +@define("APP_PATH", '/usr/share/eventum/misc/cli/');\r
39  @define("APP_INC_PATH", APP_PATH . "include/");\r
40  @define("APP_PEAR_PATH", APP_INC_PATH . "pear/");\r
41  if (stristr(PHP_OS, 'darwin')) {\r
42 @@ -57,4 +57,4 @@
43  }\r
44  \r
45  @define("APP_BENCHMARK", false);\r
46 -?>
47 \ No newline at end of file
48 +?>\r
49 --- eventum-1.4.c/include/class.template.php    2005-01-05 01:05:59.000000000 +0200
50 +++ eventum-1.4/include/class.template.php      2005-01-24 17:22:35.000000000 +0200
51 @@ -60,7 +60,7 @@
52      {\r
53          $this->smarty = new Smarty;\r
54          $this->smarty->template_dir = APP_PATH . "templates/" . APP_CURRENT_LANG;\r
55 -        $this->smarty->compile_dir = APP_PATH . "templates_c";\r
56 +        $this->smarty->compile_dir = "/var/cache/eventum";\r
57          $this->smarty->config_dir = '';\r
58          $this->smarty->register_modifier("activateLinks", array('Link_Filter', 'processText'));\r
59      }\r
60 --- index.php   2005-01-05 01:05:52.000000000 +0200
61 +++ eventum-1.4/setup/index.php 2005-01-24 17:47:16.000000000 +0200
62 @@ -114,15 +114,15 @@
63      if (ini_get('allow_call_time_pass_reference') != "1") {\r
64          $errors[] = "The 'allow_call_time_pass_reference' directive needs to be enabled in your PHP.INI file in order for Eventum to work properly.";\r
65      }\r
66 -    $error = checkPermissions('../locks', "Directory 'locks'", TRUE);\r
67 +    $error = checkPermissions('/var/run/eventum', "Directory '/var/run/eventum'", TRUE);
68      if (!empty($error)) {\r
69          $errors[] = $error;\r
70      }\r
71 -    $error = checkPermissions('../logs', "Directory 'logs'", TRUE);\r
72 +    $error = checkPermissions('/var/log/eventum', "Directory '/var/log/eventum'", TRUE);
73      if (!empty($error)) {\r
74          $errors[] = $error;\r
75      }\r
76 -    $error = checkPermissions('../templates_c', "Directory 'templates_c'", TRUE);\r
77 +    $error = checkPermissions('/var/cache/eventum', "Directory '/var/cache/eventum'", TRUE);
78      if (!empty($error)) {\r
79          $errors[] = $error;\r
80      }\r
81 @@ -130,7 +130,7 @@
82      if (!empty($error)) {\r
83          $errors[] = $error;\r
84      }\r
85 -    $error = checkPermissions('../logs/errors.log', "File 'logs/errors.log'");\r
86 +    $error = checkPermissions('/var/log/eventum/errors.log', "File '/var/log/eventum/errors.log'");
87      if (!empty($error)) {\r
88          $errors[] = $error;\r
89      }\r
90 @@ -199,11 +199,11 @@
91  }\r
92  \r
93  ini_set("include_path", '.');\r
94 -include_once("../include/Smarty/Smarty.class.php");\r
95 +include_once('/usr/share/pear/Smarty/Smarty.class.php');
96  \r
97  $tpl = new Smarty();\r
98  $tpl->template_dir = '../templates/en';\r
99 -$tpl->compile_dir = "../templates_c";\r
100 +$tpl->compile_dir = "/var/cache/eventum";
101  $tpl->config_dir = '';\r
102  \r
103  function replace_table_prefix($str)\r
104 @@ -417,23 +417,8 @@
105      $tpl->assign('is_imap_enabled', function_exists('imap_open'));\r
106  }\r
107  \r
108 -\r
109 -$full_url = dirname($HTTP_SERVER_VARS['PHP_SELF']);\r
110 -$pieces = explode("/", $full_url);\r
111 -$relative_url = array();\r
112 -$relative_url[] = '';\r
113 -foreach ($pieces as $piece) {\r
114 -    if ((!empty($piece)) && ($piece != 'setup')) {\r
115 -        $relative_url[] = $piece;\r
116 -    }\r
117 -}\r
118 -$relative_url[] = '';\r
119 -$relative_url = implode("/", $relative_url);\r
120 -\r
121 -if (substr($HTTP_SERVER_VARS['DOCUMENT_ROOT'], -1) == '/') {\r
122 -    $HTTP_SERVER_VARS['DOCUMENT_ROOT'] = substr($HTTP_SERVER_VARS['DOCUMENT_ROOT'], 0, -1);\r
123 -}\r
124 -$installation_path = $HTTP_SERVER_VARS['DOCUMENT_ROOT'] . $relative_url;\r
125 +$installation_path = "/usr/share/eventum";
126 +$relative_url = "/eventum/";
127  \r
128  $tpl->assign("phpversion", phpversion());\r
129  $tpl->assign("rel_url", $relative_url);\r
130 --- ./misc/cli/config.inc.php~  2005-01-24 17:49:25.000000000 +0200
131 +++ ./misc/cli/config.inc.php   2005-01-25 15:52:07.000000000 +0200
132 @@ -47,7 +47,7 @@
133  // definitions of path related variables\r
134  @define("APP_PATH", '/usr/share/eventum/misc/cli/');\r
135  @define("APP_INC_PATH", APP_PATH . "include/");\r
136 -@define("APP_PEAR_PATH", APP_INC_PATH . "pear/");\r
137 +@define("APP_PEAR_PATH", "/usr/share/pear/");
138  if (stristr(PHP_OS, 'darwin')) {\r
139      ini_set("include_path", ".:" . APP_PEAR_PATH);\r
140  } elseif (stristr(PHP_OS, 'win')) {\r
141 --- ./misc/cli/eventum~ 2005-01-24 17:49:25.000000000 +0200
142 +++ ./misc/cli/eventum  2005-01-25 15:48:56.000000000 +0200
143 @@ -13,7 +13,7 @@
144  //\r
145  include_once("/etc/eventum/cli.php");\r
146  include_once(APP_INC_PATH . "class.command_line.php");\r
147 -include_once(APP_PEAR_PATH . "XML_RPC/RPC.php");\r
148 +include_once(APP_PEAR_PATH . "XML/RPC.php");\r
149  \r
150  list($user_email, $user_password, $url, $port, $relative_url) = Command_Line::getEnvironmentSettings();\r
151  if (empty($port)) {\r
152 --- ./misc/cli/include/class.command_line.php   2005-01-05 01:06:03.000000000 +0200
153 +++ ./misc/cli/include/class.command_line.php   2005-01-25 15:48:56.000000000 +0200
154 @@ -29,7 +29,7 @@
155  //\r
156  \r
157  include_once(APP_INC_PATH . "class.misc.php");\r
158 -include_once(APP_PEAR_PATH . "XML_RPC/RPC.php");\r
159 +include_once(APP_PEAR_PATH . "XML/RPC.php");\r
160  \r
161  $_displayed_confirmation = false;\r
162  \r
163 --- ./rpc/xmlrpc.php~   2005-01-05 01:06:19.000000000 +0200
164 +++ ./rpc/xmlrpc.php    2005-01-25 16:35:14.000000000 +0200
165 @@ -41,7 +41,7 @@
166  include_once(APP_INC_PATH . "class.template.php");\r
167  include_once(APP_INC_PATH . "class.customer.php");\r
168  error_reporting(0);\r
169 -include_once(APP_PEAR_PATH . "XML_RPC/Server.php");\r
170 +include_once(APP_PEAR_PATH . "XML/RPC/Server.php");
171  \r
172  function authenticate($email, $password)\r
173  {\r
174 --- ./include/class.notification.php~   2005-01-05 01:06:19.000000000 +0200
175 +++ ./include/class.notification.php    2005-01-25 16:41:23.000000000 +0200
176 @@ -613,9 +613,9 @@
177          }\r
178          if ($old["iss_description"] != $new["description"]) {\r
179              // need real diff engine here\r
180 -            include_once 'Text_Diff/Diff.php';\r
181 -            include_once 'Text_Diff/Diff/Renderer.php';\r
182 -            include_once 'Text_Diff/Diff/Renderer/unified.php';\r
183 +            include_once 'Text/Diff.php';
184 +            include_once 'Text/Diff/Renderer.php';
185 +            include_once 'Text/Diff/Renderer/unified.php';
186              $old['iss_description'] = explode("\n", $old['iss_description']);\r
187              $new['description'] = explode("\n", $new['description']);\r
188              $diff = &new Text_Diff($old["iss_description"], $new["description"]);\r
This page took 0.046474 seconds and 4 git commands to generate.