if( isset($_REQUEST['id']) && is_numeric($_REQUEST['id']) ) { include_once($config["base_path"]."/include/top_header.php"); perms_list($_REQUEST['id']); include_once($config["base_path"]."/include/bottom_footer.php"); } else { print "Something got lost back there."; } break; case 'delete_map': if( isset($_REQUEST['id']) && is_numeric($_REQUEST['id']) ) map_delete($_REQUEST['id']); header("Location: weathermap-cacti-plugin-mgmt.php"); break; case 'deactivate_map': if( isset($_REQUEST['id']) && is_numeric($_REQUEST['id']) ) map_deactivate($_REQUEST['id']); header("Location: weathermap-cacti-plugin-mgmt.php"); break; case 'activate_map': if( isset($_REQUEST['id']) && is_numeric($_REQUEST['id']) ) map_activate($_REQUEST['id']); header("Location: weathermap-cacti-plugin-mgmt.php"); break; case 'move_map_up': if( isset($_REQUEST['id']) && is_numeric($_REQUEST['id']) &&
perms_delete_user($_REQUEST['mapid'], $_REQUEST['userid']); header("Location: weathermap-cacti-plugin-mgmt.php?action=perms_edit&id=" . $_REQUEST['mapid']); } break; case 'perms_edit': if (isset($_REQUEST['id']) && is_numeric($_REQUEST['id'])) { include_once $config["base_path"] . "/include/top_header.php"; perms_list($_REQUEST['id']); include_once $config["base_path"] . "/include/bottom_footer.php"; } else { print "Something got lost back there."; } break; case 'delete_map': if (isset($_REQUEST['id']) && is_numeric($_REQUEST['id'])) { map_delete($_REQUEST['id']); } header("Location: weathermap-cacti-plugin-mgmt.php"); break; case 'deactivate_map': if (isset($_REQUEST['id']) && is_numeric($_REQUEST['id'])) { map_deactivate($_REQUEST['id']); } header("Location: weathermap-cacti-plugin-mgmt.php"); break; case 'activate_map': if (isset($_REQUEST['id']) && is_numeric($_REQUEST['id'])) { map_activate($_REQUEST['id']); } header("Location: weathermap-cacti-plugin-mgmt.php"); break;