array( 'title' => __("Settings Index", "gd-security-headers"), 'icon' => 'cogs', 'scope' => 'network', 'info' => __("All plugin settings are split into panels, and you access each starting from the right.", "gd-security-headers")) ); if (gdsih_scope()->is_master_network_admin()) { $panels['global'] = array( 'title' => __("Global", "gd-security-headers"), 'icon' => 'cog', 'scope' => 'network', 'break' => __("Basic", "gd-security-headers"), 'info' => __("From this panel you control global, common plugin settings.", "gd-security-headers")); $panels['csp'] = array( 'title' => __("Content Security Policy", "gd-security-headers"), 'icon' => 'flag', 'scope' => 'network', 'break' => __("Headers", "gd-security-headers"), 'info' => __("From this panel you control CSP settings.", "gd-security-headers")); $panels['xxp'] = array( 'title' => __("X XSS Protection", "gd-security-headers"), 'icon' => 'window-close', 'scope' => 'network', 'info' => __("From this panel you control XXP settings.", "gd-security-headers")); $panels['feature'] = array( 'title' => __("Feature Policy", "gd-security-headers"), 'icon' => 'cubes', 'scope' => 'network', 'info' => __("From this panel you control Feature Policy header settings.", "gd-security-headers")); $panels['msh'] = array( 'title' => __("More Headers", "gd-security-headers"), 'icon' => 'tags', 'scope' => 'network', 'info' => __("From this panel you control other security headers settings.", "gd-security-headers")); } include(GDSIH_PATH.'forms/shared/top.php'); $scope = is_multisite() ? gdsih_scope()->get_scope() : $panels[$_panel]['scope']; ?>

" class="button-primary">
$obj) { if ($panel == 'index') continue; $url = 'admin.php?page=gd-security-headers-'.$_page.'&panel='.$panel; if (isset($obj['break'])) { ?>

'settings', 'directory' => 'admin'), array('name' => 'walkers', 'directory' => 'admin'), array('name' => 'functions', 'directory' => 'admin') ), GDSIH_D4PLIB); include(GDSIH_PATH.'core/admin/options.php'); $options = new gdsih_admin_settings(); $panel = gdsih_admin()->panel; $groups = $options->get($panel); $render = new d4pSettingsRender($panel, $groups); $render->base = 'gdsihvalue'; $render->render(); } ?>