mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-02 00:32:09 +02:00
More updates to dynconfig + alert settings
This commit is contained in:
@@ -23,6 +23,35 @@
|
|||||||
* @subpackage Page
|
* @subpackage Page
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (isset($vars['sub'])) {
|
||||||
|
|
||||||
|
if (file_exists(mres($vars['sub']))) {
|
||||||
|
require_once "pages/settings/".mres($vars['sub']).".inc.php";
|
||||||
|
} else {
|
||||||
|
print_error("This settings page doesn't exist, please go to the main settings page");
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
<div class="container-fluid">
|
||||||
|
<div class="row">
|
||||||
|
<?php
|
||||||
|
foreach (dbFetchRows("SELECT `config_group` FROM `config` GROUP BY `config_group`") as $sub_page) {
|
||||||
|
$sub_page = $sub_page['config_group'];
|
||||||
|
?>
|
||||||
|
<div class="col-lg-1 col-md-1 col-sm-1 col-xs-1">
|
||||||
|
<a class="btn btn-primary" href="<?php echo(generate_url(array('page'=>'settings','sub'=>$sub_page))); ?>"><?php echo ucfirst($sub_page); ?></a>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Array-To-Table
|
* Array-To-Table
|
||||||
* @param array $a N-Dimensional, Associative Array
|
* @param array $a N-Dimensional, Associative Array
|
||||||
@@ -275,8 +304,8 @@ $(".toolTip").tooltip();
|
|||||||
</script>
|
</script>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
include("includes/error-no-perm.inc.php");
|
include("includes/error-no-perm.inc.php");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
* LibreNMS
|
||||||
|
*
|
||||||
|
* Copyright (c) 2014 Neil Lathwood <https://github.com/laf/ http://www.lathwood.co.uk/fa>
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify it
|
||||||
|
* under the terms of the GNU General Public License as published by the
|
||||||
|
* Free Software Foundation, either version 3 of the License, or (at your
|
||||||
|
* option) any later version. Please see LICENSE.txt at the top level of
|
||||||
|
* the source code distribution for details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
<form>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
Reference in New Issue
Block a user