1 --- bacula-gui-2.4.4/bacula-web/index.php~ 2009-07-20 18:51:35.000000000 +0300
2 +++ bacula-gui-2.4.4/bacula-web/index.php 2009-07-20 18:52:12.016384629 +0300
4 //$smarty->compile_check = true;
5 //$smarty->debugging = true;
6 $smarty->template_dir = "./templates";
7 -$smarty->compile_dir = "./templates_c";
8 -$smarty->config_dir = "./configs";
9 +$smarty->compile_dir = "/var/cache/bacula-web";
10 +$smarty->config_dir = "/etc/webapps/bacula-web";
11 $smarty->config_load("bacula.conf"); // Load config file
12 $mode = $smarty->get_config_vars("mode"); // Lite o Extend?
14 --- ./bacula-web/lang.php~ 2005-06-19 12:57:55.000000000 +0300
15 +++ ./bacula-web/lang.php 2009-07-20 19:01:05.259658012 +0300
17 // and we check if it is present at the system
19 if ( function_exists("gettext") ) {
20 - require($smarty_gettext_path."smarty_gettext.php");
21 - $smarty->register_block('t','smarty_translate');
23 $vars = $smarty->get_config_vars();
24 $language = $vars['lang'];
25 - $domain = "messages";
26 + $domain = "bacula-web";
27 putenv("LANG=$language");
28 setlocale(LC_ALL, $language);
29 - bindtextdomain($domain,"./locale");
33 --- ./bacula-web/paths.php~ 2005-10-06 17:45:48.000000000 +0300
34 +++ ./bacula-web/paths.php 2009-07-20 19:01:53.826992837 +0300
36 // -----------------------------
38 // PhPlot package. version 5.0RC1. http://www.phplot.com
39 -$phplot_path = "external_packages/phplot/";
40 +$phplot_path = "/usr/share/php/phplot/";
42 //Smarty package. version 2.6.10. http://smarty.php.net
43 -$smarty_path = "external_packages/smarty/";
44 +$smarty_path = "Smarty/";
46 //Smarty_gettext. version 0.9. http://www.boom.org.il/smarty/gettext/
47 $smarty_gettext_path = "external_packages/smarty_gettext-0.9/";
50 \ No newline at end of file
52 --- ./bacula-web/classes.inc 2009-07-20 18:57:32.147464445 +0300
53 +++ ./bacula-web/classes.inc 2009-07-20 19:12:27.596925323 +0300
55 +-------------------------------------------------------------------------+
58 -define('CONFIG_DIR', "configs");
59 +define('CONFIG_DIR', "/etc/webapps/bacula-web");
60 define('CONFIG_FILE', "bacula.conf");
61 define('BACULA_TYPE_BYTES_FILES', 1);
62 define('BACULA_TYPE_FILES_JOBID', 2);
67 - require_once ("external_packages/phplot/phplot.php");
68 + require_once ("phplot/phplot.php");
70 if ( empty($this->sizex) || empty($this->sizey) ) { //Default size
72 --- ./bacula-web/report.php~ 2005-10-06 17:45:48.000000000 +0300
73 +++ ./bacula-web/report.php 2009-07-20 19:13:50.036496326 +0300
75 //$smarty->debugging = true;
77 $smarty->template_dir = "./templates";
78 -$smarty->compile_dir = "./templates_c";
79 -$smarty->config_dir = "./configs";
80 +$smarty->compile_dir = "/var/cache/bacula-web";
81 +$smarty->config_dir = "/etc/webapps/bacula-web";
82 $smarty->config_load("bacula.conf");
85 --- ./bacula-web/templates/header.tpl~ 2005-10-06 18:08:14.000000000 +0300
86 +++ ./bacula-web/templates/header.tpl 2009-07-20 19:15:47.352895730 +0300
91 - <td background="images/end2.png>
92 + <td background="images/end2.png">
93 <img src="images/empty.png">
97 \ No newline at end of file