1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00
freebsd-ports/www/bacula-web/files/patch-bacula-web-index.php
Ion-Mihai Tetcu 32c5c9cdf9 Bacula-web is a php based web program that provides you a summarized output
of jobs that have already run. It obtains its information from your catalog
database. Aside from a nice graphical display, it provides summaries of your
jobs, as well as graphs of job usage. This is a fairly high level bacula
management tool. Here are a few points that one user made concerning this
important tool:

- It is web-based so can be accessed from anywhere.
- It is "read only" users can examine the state of the backups but not write
to anything and therefore do no damage
- It packs a phenomenal amount of information into a single web-page - that I
credit as being very good design!

The documentation for bacula-web can be found in a separate bacula-web
document in the bacula-docs release.

WWW: http://www.bacula.org/

PR:		ports/101457
Submitted by:	Dan Langille <dan at langille.org>
2006-08-08 14:44:24 +00:00

30 lines
1.1 KiB
PHP

--- bacula-web/index.php.orig Thu Oct 6 10:45:48 2005
+++ bacula-web/index.php Sat Apr 29 16:35:59 2006
@@ -26,9 +26,9 @@
//$smarty->compile_check = true;
//$smarty->debugging = true;
$smarty->template_dir = "./templates";
-$smarty->compile_dir = "./templates_c";
-$smarty->config_dir = "./configs";
-$smarty->config_load("bacula.conf"); // Load config file
+$smarty->compile_dir = "/var/bacula-web/templates_c";
+$smarty->config_dir = "/usr/local/etc";
+$smarty->config_load("bacula-web.conf"); // Load config file
$mode = $smarty->get_config_vars("mode"); // Lite o Extend?
require("lang.php");
@@ -75,8 +75,11 @@
$client->free();
$totalfiles->free();
-$last24bytes->free();
-
+if ( $dbSql->driver == "mysql" ) {
+ $last24bytes->free();
+} else {
+# $last24bytes->freeResult();
+}
// report_select.tpl & last_run_report.tpl
$res = $dbSql->link->query("select Name from Job group by Name");