New upstream version 0.6.27

This commit is contained in:
geos_one
2025-08-06 18:11:51 +02:00
parent a6b4158f1f
commit 56a986c0ba
563 changed files with 45811 additions and 35282 deletions

View File

@@ -1,58 +1,74 @@
<?php defined('SYSPATH') OR die('No direct access allowed.');
/**
<?php
defined('SYSPATH') or die('No direct access allowed.');
/*
* Base path of the web site. If this includes a domain, eg: localhost/kohana/
* then a full URL will be used, eg: http://localhost/kohana/. If it only includes
* the path, and a site_protocol is specified, the domain will be auto-detected.
*/
$config['site_domain'] = BASE_URL;
$config['site_domain'] = PNP_URL;
/**
/*
* Force a default protocol to be used by the site. If no site_protocol is
* specified, then the current protocol is used, or when possible, only an
* absolute path (with no protocol/domain) is used.
*/
$config['site_protocol'] = '';
/**
/*
* Name of the front controller for this application. Default: index.php
*
* This can be removed by using URL rewriting.
*/
$config['index_page'] = '';
/**
/*
* Fake file extension that will be added to all generated URLs. Example: .html
*/
$config['url_suffix'] = '';
/**
/*
* Length of time of the internal cache in seconds. 0 or FALSE means no caching.
* The internal cache stores file paths and config entries across requests and
* can give significant speed improvements at the expense of delayed updating.
*/
$config['internal_cache'] = FALSE;
$config['internal_cache'] = false;
/**
/*
* rrdtool graph uses pango to do graphics, and pango calls fontconfig to
* deal with font stuff...but fontconfig needs a cache directory in
* XDG_CACHE_HOME. Automatically set up for interactive use, but not for
* web servers. It should be a 'cache' directory writable by the webserver
* So for apache on linux, /var/cache/httpd is already set up and owned by
* apache...but for other systems/webservers this may need changed.
* NOTE that this propagates down to application/models/rrdtool.php where the
* environment variable is set for rrdtool to use.
*/
$config['fontconfig_cache'] = CACHE_DIR;
/*
* Enable or disable gzip output compression. This can dramatically decrease
* server bandwidth usage, at the cost of slightly higher CPU usage. Set to
* the compression level (1-9) that you want to use, or FALSE to disable.
*
* Do not enable this option if you are using output compression in php.ini!
*/
$config['output_compression'] = FALSE;
$config['output_compression'] = false;
/**
/*
* Enable or disable global XSS filtering of GET, POST, and SERVER data. This
* option also accepts a string to specify a specific XSS filtering tool.
*/
$config['global_xss_filtering'] = TRUE;
$config['global_xss_filtering'] = true;
/**
/*
* Enable or disable hooks.
*/
$config['enable_hooks'] = FALSE;
$config['enable_hooks'] = false;
/**
/*
* Log thresholds:
* 0 - Disable logging
* 1 - Errors and exceptions
@@ -62,81 +78,86 @@ $config['enable_hooks'] = FALSE;
*/
$config['log_threshold'] = 0;
/**
/*
* Message logging directory.
*/
$config['log_directory'] = PNP_LOG_PATH.'/kohana';
$config['log_directory'] = PNP_LOG_PATH . '/kohana';
/**
/*
* Enable or disable displaying of Kohana error pages. This will not affect
* logging. Turning this off will disable ALL error pages.
*/
$config['display_errors'] = TRUE;
$config['display_errors'] = true;
/**
/*
* Enable or disable statistics in the final output. Stats are replaced via
* specific strings, such as {execution_time}.
*
* @see http://docs.kohanaphp.com/general/configuration
*/
$config['render_stats'] = TRUE;
$config['render_stats'] = true;
/**
/*
* Filename prefixed used to determine extensions. For example, an
* extension to the Controller class would be named MY_Controller.php.
*/
$config['extension_prefix'] = 'MY_';
/**
/*
* Additional resource paths, or "modules". Each path can either be absolute
* or relative to the docroot. Modules can include any resource that can exist
* in your application directory, configuration files, controllers, views, etc.
*/
$config['modules'] = array
(
// MODPATH.'auth', // Authentication
// MODPATH.'kodoc', // Self-generating documentation
// MODPATH.'gmaps', // Google Maps integration
// MODPATH.'archive', // Archive utility
// MODPATH.'payment', // Online payments
// MODPATH.'unit_test', // Unit testing
);
$config['modules'] = [
// MODPATH.'auth', // Authentication
// MODPATH.'kodoc', // Self-generating documentation
// MODPATH.'gmaps', // Google Maps integration
// MODPATH.'archive', // Archive utility
// MODPATH.'payment', // Online payments
// MODPATH.'unit_test', // Unit testing
];
/**
/*
* PNP Config
*
* pnp_etc_path points to $sysconfdir
*/
$config['pnp_etc_path'] = PNP_ETC_PATH;
/**
/*
* Default Theme
*/
$config['theme'] = 'smoothness';
/*
* Available Doc Languages
*/
$config['doc_language'] = array("en_US", "de_DE");
$config['doc_language'] = [
'en_US',
'de_DE',
];
/*
* Default template dirs
*/
$config['template_dirs'] = array(DOCROOT."/templates",DOCROOT."/templates.dist");
$config['template_dirs'] = [
DOCROOT . '/templates',
DOCROOT . '/templates.dist',
];
/*
* Default graph dimensions
* Default graph dimensions
*/
$config['graph_width'] = "500";
$config['graph_height'] = "100";
$config['zgraph_width'] = "500";
$config['zgraph_height'] = "100";
$config['pdf_width'] = "675";
$config['pdf_height'] = "100";
$config['right_zoom_offset'] = "30";
$config['mobile_devices'] = "iPhone";
$config['pdf_page_size'] = "A4";
$config['pdf_margin_left'] = "17.5";
$config['pdf_margin_right'] = "10";
$config['pdf_margin_top'] = "30";
$config['auth_multisite_enabled'] = "0";
$config['auth_multisite_htpasswd'] = "";
$config['auth_multisite_serials'] = "";
$config['auth_multisite_secret'] = "";
$config['auth_multisite_login_url'] = "/check_mk/login.py";
$config['graph_width'] = '500';
$config['graph_height'] = '100';
$config['zgraph_width'] = '500';
$config['zgraph_height'] = '100';
$config['pdf_width'] = '675';
$config['pdf_height'] = '100';
$config['right_zoom_offset'] = '30';
$config['mobile_devices'] = 'iPhone';
$config['pdf_page_size'] = 'A4';
$config['pdf_margin_left'] = '17.5';
$config['pdf_margin_right'] = '10';
$config['pdf_margin_top'] = '30';
$config['auth_multisite_enabled'] = '0';
$config['auth_multisite_htpasswd'] = '';
$config['auth_multisite_serials'] = '';
$config['auth_multisite_secret'] = '';
$config['auth_multisite_login_url'] = '/check_mk/login.py';

View File

@@ -1,16 +1,23 @@
<?php defined('SYSPATH') OR die('No direct access allowed.');
/**
* @package Core
<?php
defined('SYSPATH') or die('No direct access allowed.');
/*
* @package Core
*
* Default language locale name(s).
* First item must be a valid i18n directory name, subsequent items are alternative locales
* for OS's that don't support the first (e.g. Windows). The first valid locale in the array will be used.
* @see http://php.net/setlocale
* @see http://php.net/setlocale
*/
$config['language'] = array('en_US', 'de_DE', 'es_ES');
$config['language'] = [
'en_US',
'de_DE',
'es_ES',
];
/**
/*
* Locale timezone. Defaults to use the server timezone.
*
* @see http://php.net/timezones
*/
$config['timezone'] = '';

View File

@@ -1,6 +1,8 @@
<?php defined('SYSPATH') OR die('No direct access allowed.');
/**
* @package Core
<?php
defined('SYSPATH') or die('No direct access allowed.');
/*
* @package Core
*
* Sets the default route to "welcome"
*/

View File

@@ -1,47 +1,49 @@
<?php defined('SYSPATH') OR die('No direct access allowed.');
/**
<?php
defined('SYSPATH') or die('No direct access allowed.');
/*
* @package Session
*
* Session driver name.
*/
$config['driver'] = 'native';
/**
/*
* Session storage parameter, used by drivers.
*/
$config['storage'] = '';
/**
/*
* Session name.
* It must contain only alphanumeric characters and underscores. At least one letter must be present.
*/
$config['name'] = 'pnp4nagios';
/**
/*
* Session parameters to validate: user_agent, ip_address, expiration.
*/
$config['validate'] = array('user_agent, ip_address');
$config['validate'] = ['user_agent, ip_address'];
/**
/*
* Enable or disable session encryption.
* Note: this has no effect on the native session driver.
* Note: the cookie driver always encrypts session data. Set to TRUE for stronger encryption.
*/
$config['encryption'] = FALSE;
$config['encryption'] = false;
/**
/*
* Session lifetime. Number of seconds that each session will last.
* A value of 0 will keep the session active until the browser is closed (with a limit of 24h).
*/
$config['expiration'] = 0;
/**
/*
* Number of page loads before the session id is regenerated.
* A value of 0 will disable automatic session id regeneration.
*/
$config['regenerate'] = 0;
/**
/*
* Percentage probability that the gc (garbage collection) routine is started.
*/
$config['gc_probability'] = 0;