brute-force changed access to $_GET['key'] to use get_array instead
[plewww.git] / planetlab / tags / tag_action.php
index 7f66e4e..247ffb3 100644 (file)
@@ -16,7 +16,6 @@ include 'plc_header.php';
 
 // Common functions
 require_once 'plc_functions.php';
-require_once 'plc_sorts.php';
 
 // find person roles
 $_person= $plc->person;
@@ -30,9 +29,9 @@ return;
 // TAGS -------------------------------------------------
 
 // tag deletion
-if( $_GET['rem_id'] ) {
+if( get_array($_GET, 'rem_id') ) {
   // get the id of the tag to remove from GET
-  $tag_id= intval( $_GET['rem_id'] );
+  $tag_id= intval( get_array($_GET, 'rem_id') );
 
   // get slice_id 
   $tag_info= $api->GetSliceTags( array( $tag_id ), array( "slice_id" ) );
@@ -112,19 +111,6 @@ if( $_POST['edit_type'] ) {
 }
 
 
-// delete tag types
-if( $_GET['del_type'] ) {
-  // get vars
-  $type_id= intval( $_GET['del_type'] );
-
-  // delete it!
-  $api->DeleteTagType( $type_id );
-  
-  plc_redirect( "tags.php?type=slice" );
-}
-
-  
-  
 /*
 // Print footer
 include 'plc_footer.php';