moving the onelab www to a fresh location
[plewww.git] / planetlab / nodes / sliver_action.php
index 262530d..cf0b347 100644 (file)
@@ -24,12 +24,12 @@ $_roles= $_person['role_ids'];
 
 
 if( !empty( $_POST['add_sub'] ) ) {
-  $attrib_type= $_POST['sliver'];
+  $tag_type= $_POST['sliver'];
   $value= $_POST['value'];
   $node_id= $_POST['node_id'];
   $slice_id= $_POST['slice_id'];
 
-  $api->AddSliceTag( intval( $slice_id ), intval( $attrib_type ), $value, intval( $node_id ) );
+  $api->AddSliceTag( intval( $slice_id ), intval( $tag_type ), $value, intval( $node_id ) );
 
   header( "location: slivers.php?slice=$slice_id&node=$node_id" );
   exit();
@@ -39,12 +39,12 @@ if( !empty( $_POST['add_sub'] ) ) {
 
 // 
 if( $_GET['rem_id'] ) {
-  $attrib_id= $_GET['rem_id'];
+  $tag_id= $_GET['rem_id'];
   
   // get the slivers for this node
-  $sliver_info= $api->GetSliceTags( array( "slice_tag_id"=>intval( $attrib_id ) ), array( "slice_id", "node_id" ) );
+  $sliver_info= $api->GetSliceTags( array( "slice_tag_id"=>intval( $tag_id ) ), array( "slice_id", "node_id" ) );
   
-  $api->DeleteSliceTag( intval( $attrib_id ) );
+  $api->DeleteSliceTag( intval( $tag_id ) );
 
   header( "location: slivers.php?slice=". $sliver_info[0]['slice_id'] ."&node=". $sliver_info[0]['node_id'] );
   exit();