mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
feature: Added web validation (#7474)
* refactor: convert validations to modules to prep for gui integration * accidentally dropped, schema update * fix accidental output to webui * mention discovery-wrapper.py and re-arrange. * refine some fix statements * rename the Config validation group to Configuration. * fix some scrutinizer issues remove as many local functions from validator.php as possible move extensions from pre-check remove duplicate timezone check looks like there is some db schema differences between mariadb 10.1 and 10.2, investigating * mariadb version diff take2 * Check schema version first for database. Remove stop to go back to command line for install docs. Add helpful link when there is no devices added to /addhost * fix incorrect validation for empty string defaults * Fix style * Add additional file permissions checks * catch exception and fail for invalid timezone Change visuals a bit. * add php version warning * fix space
This commit is contained in:
committed by
Neil Lathwood
parent
383557f628
commit
51ba934e11
@@ -171,7 +171,7 @@ class IRCBot
|
||||
if ($this->config['irc_alert']) {
|
||||
$this->alertData();
|
||||
}
|
||||
|
||||
|
||||
if ($this->config['irc_conn_timeout']) {
|
||||
$inactive_seconds = time() - $this->last_activity;
|
||||
$max_inactive = $this->config['irc_conn_timeout'];
|
||||
@@ -677,7 +677,7 @@ class IRCBot
|
||||
|
||||
private function _version($params)
|
||||
{
|
||||
$versions = version_info(false);
|
||||
$versions = version_info();
|
||||
$schema_version = $versions['db_schema'];
|
||||
$version = substr($versions['local_sha'], 0, 7);
|
||||
|
||||
|
Reference in New Issue
Block a user