* 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. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ /** * Global Settings * @author f0o * @copyright 2015 f0o, LibreNMS * @license GPL * @package LibreNMS * @subpackage Page */ /** * Array-To-Table * @param array $a N-Dimensional, Associative Array * @return string */ function a2t($a) { $r = ""; foreach( $a as $k=>$v ) { if( !empty($v) ) { $r .= ""; } } $r .= '
".$k."".(is_array($v)?a2t($v):"".wordwrap($v,75,"
")."
")."
'; return $r; } if( $_SESSION['userlevel'] >= 10 ) { echo "
".a2t($config)."
"; } else { include("includes/error-no-perm.inc.php"); } if ($_SESSION['userlevel'] >= '10') { ?>

System Settings

'); foreach (dbFetchRows("SELECT config_id,config_group FROM `config` WHERE config_hidden='0' GROUP BY config_group ORDER BY config_group ASC ,config_group_order DESC") as $group) { $grp_num = $group['config_group_order']; $grp_title = $group['config_group']; $found++; echo('
'); foreach (dbFetchRows("SELECT * FROM `config` WHERE config_group='".$group['config_group']."' ORDER BY config_sub_group ASC, config_sub_group_order DESC, config_name ASC") as $cfg) { $cfg_ids[] = $cfg['config_id']; $cfg_disabled = ''; if($cfg['config_disabled'] == '1') { $cfg_disabled = 'checked'; } echo('
'); } echo('
'); } echo(' '); if ($debug) { echo("
");
    print_r($config);
    echo("
"); } ?>