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']) &&
		isset($_REQUEST['order']) && is_numeric($_REQUEST['order']) )
		map_move($_REQUEST['id'],$_REQUEST['order'],-1);
	header("Location: weathermap-cacti-plugin-mgmt.php");
	break;
case 'move_map_down':
	if( isset($_REQUEST['id']) && is_numeric($_REQUEST['id']) &&
		isset($_REQUEST['order']) && is_numeric($_REQUEST['order']) )
		map_move($_REQUEST['id'],$_REQUEST['order'],+1);
	header("Location: weathermap-cacti-plugin-mgmt.php");
	break;
     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']) && isset($_REQUEST['order']) && is_numeric($_REQUEST['order'])) {
         map_move($_REQUEST['id'], $_REQUEST['order'], -1);
     }
     header("Location: weathermap-cacti-plugin-mgmt.php");
     break;
 case 'move_map_down':
     if (isset($_REQUEST['id']) && is_numeric($_REQUEST['id']) && isset($_REQUEST['order']) && is_numeric($_REQUEST['order'])) {
         map_move($_REQUEST['id'], $_REQUEST['order'], +1);
     }
     header("Location: weathermap-cacti-plugin-mgmt.php");
     break;