" ); 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']; if ( in_array( 'ALL', $properties ) ) { $query = <<prepare( $query ); $stmt->execute(); $rows = $stmt->fetchAll(); $properties = []; foreach( $rows as $row ) { $properties[] = $row['property']; } } if ( in_array( 'NONE', $properties ) ) { $properties = []; $properties[] = "name"; } print( "
" );
    print_r( $properties );
    print( "
" ); store_player_properties( $player, $maintainer, $properties ); $screen = 3; } if ( $action == 'r' ) { // If remove then ask verification first $screen = 4; } 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." ); ?> Slork
 
0 && $maintainer[0] < 100 ) { // Error in creating maintainer print( "
" );
                  print( "ERROR $maintainer[0]: $maintainer[1]" );
                  print( "
" ); // Try again $screen = 0; } // Choose or add a maintainer; default screen print( $snippets[$screen] ); ?>