freebsd-ports/net-mgmt/fruity/files/patch-includes-config.inc.in
Martin Wilke d2a9ca79f8 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/107617
Submitted by:	Dan Langille <dan at langille.org>
2007-01-08 12:26:55 +00:00

50 lines
2.7 KiB
PHP

--- includes/config.inc Mon Dec 4 16:27:26 2006
+++ includes/config.inc.new Sat Dec 30 10:22:52 2006
@@ -24,45 +24,9 @@
Configuration Parameters (DEFINES, and system wide config)
*/
-// Modify the settings below to match your setup
+// Modify the settings in the include file below to match your setup
-// System Configuration
-$sys_config['name'] = 'Groundwork Fruity';
-$sys_config['version'] = '1.0 Release Candidate 2';
-$sys_config['logos_path'] = '/usr/local/groundwork/fruity/logos'; // Must be symlinked or a copy of the logos directory from nagios
-
-$sys_config['network_desc'] = "Our Network";
-
-// Set to true if you want to run a nagios pre-flight check to validate config before committing
-$sys_config['nagios_preflight'] = false;
-$sys_config['nagios_path'] = '/usr/local/nagios/bin/nagios'; // The path to the Nagios binary
-$sys_config['nagios_start'] = '/etc/init.d/nagios start'; // The script to run to start Nagios
-$sys_config['nagios_stop'] = '/etc/init.d/nagios stop'; // The script to run to stop Nagios
-$sys_config['temp_dir'] = '/tmp'; // Where to temporarily export a set of configs for preflight to validate
-
-// MySQL Database Connection Configuration
-$sitedb_config['host'] = 'localhost'; // Address to the database server
-$sitedb_config['username'] = 'root'; // Username to access the database
-$sitedb_config['password'] = ''; // Password to access the database
-$sitedb_config['database'] = 'fruity'; // The database name
-$sitedb_config['dbserv'] = 'mysql'; // The database driver (for now, use mysql)
-
-// AdoDB Session Handler Configuration
-// Uncomment if you want adodb to handle sessions
-// Usually used if fruity is on a server farm with load balancing
-// $ADODB_SESSION_DRIVER='mysql'; // For now, use the mysql adodb driver
-// $ADODB_SESSION_CONNECT='localhost'; // Address to the database server for adodb sessions
-// $ADODB_SESSION_USER ='root'; // Username to access the database
-// $ADODB_SESSION_PWD =''; // Password to access the database
-// $ADODB_SESSION_DB ='fruity'; // What database holds the sessions table
-
-
-// Web Application Path Configuration
-$path_config['doc_root'] = '/fruity/'; // The URL path to fruity (include trailing slash)
-$path_config['image_root'] = $path_config['doc_root'] . 'images/'; // Where images are stored (leave for default)
-
-define("AUTH_MODULES_URL_PATH", $path_config['doc_root'] . "modules/auth/"); // No need to modify this if installed in /fruity/ in url.
-define("SESSION_SECRET", $sys_config['name']."-".$sys_config['version'].":".$sys_config['network_desc']); // A session key to identify this session to PHP.
+include_once('%%PREFIX%%/etc/fruity.config.inc');
// END USER CONFIGURATION (DO NOT TOUCH BELOW)