. * * @package LibreNMS * @link http://librenms.org * @copyright 2015 Daniel Preussker * @copyright 2016 Tony Murray * @author f0o */ ?>
hasGlobalAdmin()) { echo '

'; if ($curr_page != 'Global') { if (file_exists("includes/html/pages/settings/$curr_page.inc.php")) { require_once "includes/html/pages/settings/$curr_page.inc.php"; } else { print_error("This settings page doesn't exist, please go to the main settings page"); } } else { /** * Array-To-Table * @param array $a N-Dimensional, Associative Array * @return string */ function a2t($a) { $excluded = array( 'db_pass', 'email_smtp_password', 'password', 'auth_ad_bindpassword', ); $r = ''; foreach ($a as $k => $v) { if (!empty($v)) { if (!in_array($k, $excluded, true)) { $r .= ''; } } } $r .= '
' . $k . ''; $r .= is_array($v) ? a2t($v) : '' . wordwrap($v, 75, '
') . '
'; $r .= '
'; return $r; } echo '
' . a2t(\LibreNMS\Config::getAll()) . '
'; if ($debug && Auth::user()->hasGlobalAdmin()) { echo("
");
            print_r(\LibreNMS\Config::getAll());
            echo("
"); } } } else { include 'includes/html/error-no-perm.inc.php'; } ?>