|
|
@@ -70,6 +70,22 @@ if ( $action == 's' ) {
|
|
|
$maintainer = get_maintainer( $_REQUEST['maintainer'] );
|
|
|
$player = $_REQUEST['player'];
|
|
|
$properties = $_REQUEST['properties'];
|
|
|
+ if ( in_array( 'ALL', $properties ) ) {
|
|
|
+ $query = <<<QUERY
|
|
|
+ SELECT DISTINCT property FROM properties;
|
|
|
+QUERY;
|
|
|
+ $stmt = $pdo->prepare( $query );
|
|
|
+ $stmt->execute();
|
|
|
+ $rows = $stmt->fetchAll();
|
|
|
+ $properties = [];
|
|
|
+ foreach( $rows as $row ) {
|
|
|
+ $properties[] = $row['property'];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ( in_array( 'NONE', $properties ) ) {
|
|
|
+ $properties = [];
|
|
|
+ $properties[] = "name";
|
|
|
+ }
|
|
|
store_player_properties( $player, $maintainer, $properties );
|
|
|
$screen = 3;
|
|
|
}
|