]> git.pld-linux.org Git - packages/bacula-web.git/blob - bacula-web.patch
- bacula web webapps hacking
[packages/bacula-web.git] / bacula-web.patch
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
3 @@ -26,8 +26,8 @@
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?
13  
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
16 @@ -18,15 +18,11 @@
17  // and we check if it is present at the system
18  
19  if ( function_exists("gettext") ) {
20 -        require($smarty_gettext_path."smarty_gettext.php");     
21 -        $smarty->register_block('t','smarty_translate');
22 -        
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");
30          textdomain($domain);
31  }
32  else {
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
35 @@ -3,12 +3,12 @@
36  // -----------------------------
37  
38  // PhPlot package. version 5.0RC1. http://www.phplot.com
39 -$phplot_path = "external_packages/phplot/";
40 +$phplot_path = "/usr/share/php/phplot/";
41  
42  //Smarty package. version 2.6.10. http://smarty.php.net
43 -$smarty_path = "external_packages/smarty/";
44 +$smarty_path = "Smarty/";
45  
46  //Smarty_gettext. version 0.9. http://www.boom.org.il/smarty/gettext/
47  $smarty_gettext_path = "external_packages/smarty_gettext-0.9/"; 
48  
49 -?>
50 \ No newline at end of file
51 +?>
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
54 @@ -15,7 +15,7 @@
55  +-------------------------------------------------------------------------+ 
56  */
57  // Last Err: 11
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);
63 @@ -187,7 +187,7 @@
64          
65                  global $type;
66          
67 -                require_once ("external_packages/phplot/phplot.php");
68 +                require_once ("phplot/phplot.php");
69  
70                  if ( empty($this->sizex) || empty($this->sizey) ) {    //Default size
71                          $this->sizex = "600";
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
74 @@ -25,8 +25,8 @@
75  //$smarty->debugging = true;
76  
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");
83  require("lang.php");
84  
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
87 @@ -32,8 +32,8 @@
88         Bugs?
89         </a>
90         </td>
91 -       <td background="images/end2.png>
92 +       <td background="images/end2.png">
93         <img src="images/empty.png">
94         </td>
95   </tr>
96 -</table>
97 \ No newline at end of file
98 +</table>
This page took 0.124784 seconds and 3 git commands to generate.