person; $_roles= $_person['role_ids']; //print_r( $_person ); // if no id then go back to slice index if( !$_GET['id'] ) header( "index.php" ); // get slice id from get $slice_id= $_GET['id']; // delete it! if( $_POST['delete'] ) { $api->DeleteSlice( intval( $slice_id ) ); plc_redirect(l_slices()); } // Print header require_once 'plc_drupal.php'; drupal_set_title('Slices'); include 'plc_header.php'; // get slice info from API call $slice_info= $api->GetSlices( array( intval( $slice_id ) ), array( "name", "expires", "description" ) ); // start form echo "
\n"; // show delete confirmation echo "

Delete slice ". $slice_info[0]['name'] ."

\n"; echo "

Are you sure you want to delete this slice?\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
Name: ". $slice_info[0]['name'] ."
Description: ". $slice_info[0]['description'] ."
Expiration: ". gmstrftime( "%A %b-%d-%y %T %Z", $slice_info[0]['expires'] ) ."
\n"; echo "\n"; echo "