case 'groupadmin': include_once($config["base_path"]."/include/top_header.php"); weathermap_group_editor(); weathermap_footer_links(); include_once($config["base_path"]."/include/bottom_footer.php"); break; case 'chgroup_update': $mapid = -1; $groupid = -1; if( isset($_REQUEST['map_id']) && is_numeric($_REQUEST['map_id'])) { $mapid = intval($_REQUEST['map_id']); } if( isset($_REQUEST['new_group']) && is_numeric($_REQUEST['new_group'])) { $groupid = intval($_REQUEST['new_group']); } if( ($groupid > 0) && ($mapid >= 0)) { weathermap_set_group($mapid,$groupid); } header("Location: weathermap-cacti-plugin-mgmt.php"); break; case 'chgroup': if( isset($_REQUEST['id']) && is_numeric($_REQUEST['id']) ) { include_once($config["base_path"]."/include/top_header.php"); weathermap_chgroup( intval($_REQUEST['id']) ); include_once($config["base_path"]."/include/bottom_footer.php"); } else { print "Something got lost back there."; }
include_once $config["base_path"] . "/include/top_header.php"; weathermap_group_editor(); weathermap_footer_links(); include_once $config["base_path"] . "/include/bottom_footer.php"; break; case 'chgroup_update': $mapid = -1; $groupid = -1; if (isset($_REQUEST['map_id']) && is_numeric($_REQUEST['map_id'])) { $mapid = intval($_REQUEST['map_id']); } if (isset($_REQUEST['new_group']) && is_numeric($_REQUEST['new_group'])) { $groupid = intval($_REQUEST['new_group']); } if ($groupid > 0 && $mapid >= 0) { weathermap_set_group($mapid, $groupid); } header("Location: weathermap-cacti-plugin-mgmt.php"); break; case 'chgroup': if (isset($_REQUEST['id']) && is_numeric($_REQUEST['id'])) { include_once $config["base_path"] . "/include/top_header.php"; weathermap_chgroup(intval($_REQUEST['id'])); include_once $config["base_path"] . "/include/bottom_footer.php"; } else { print "Something got lost back there."; } break; case 'map_settings_delete': $mapid = NULL; $settingid = NULL;