You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Lilac Index Page, Displays Menu, and Statistics */ include_once 'includes/config.inc'; require_once 'classes/NagiosMainConfiguration.php'; // Get Existing Main Configuration $mainConfig = $lilac->get_main_conf(); if (isset($_GET['request'])) { if ($_GET['request'] == "delete" && $_GET['section'] == "broker") { // We want to delete an event broker module $module = NagiosBrokerModulePeer::retrieveByPK($_GET['module_id']); if ($module) { $module->delete(); $success = "Deleted event broker module."; } } } if (isset($_POST['request'])) { $modifiedData = array(); if (isset($_POST['main_config']) && count($_POST['main_config'])) { foreach ($_POST['main_config'] as $key => $value) { if (is_array($value)) { $modifiedData[$key] = $value; } else { $modifiedData[$key] = (string) $value; }