" ); print("ERROR ${maintainer[0]}: ${maintainer[1]}" ); print("" ); $maintainer = get_maintainer( $_REQUEST['maintainer'] ); } $screen = 2; } if ( $action == 'e' ) { // Request for edit screen $maintainer = get_maintainer( $_REQUEST['maintainer'] ); $screen = 3; } if ( $action == 's' ) { // Getting the Edit array back from the maintainer // Store preferences and return to Edit screen $maintainer = get_maintainer( $_REQUEST['maintainer'] ); $player = $_REQUEST['player']; $properties = $_REQUEST['properties']; store_player_properties( $player, $maintainer, $properties ); $screen = 3; } if ( $action == 'x' ) { // Request to remove player $maintainer = delete_player( $_REQUEST['player'] ); if ( $maintainer[0] == 0 ) { $screen = 0; } else { $screen = 2; } } assert( '$screen >= 0', "By now \$screen should be set to a value >= 0." ); ?>
" );
print( "ERROR $maintainer[0]: $maintainer[1]" );
print( "" );
// Try again
$screen = 0;
}
// Choose or add a maintainer; default screen
print( $snippets[$screen] );
?>