More updates to dynconfig + alert settings

This commit is contained in:
laf
2015-05-16 14:06:48 +01:00
parent 8327466d14
commit d0a0df4e88
2 changed files with 53 additions and 3 deletions

View File

@@ -23,6 +23,35 @@
* @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
* @param array $a N-Dimensional, Associative Array
@@ -278,5 +307,5 @@ $(".toolTip").tooltip();
} else {
include("includes/error-no-perm.inc.php");
}
}
?>

View File

@@ -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>