root/server/getWolves.php
| Revision 1, 182 bytes (checked in by swizec, 3 years ago) |
|---|
| Line | |
|---|---|
| 1 | <?php |
| 2 | |
| 3 | include( "wolf.php" ); |
| 4 | include( "wolves.php" ); |
| 5 | |
| 6 | $id = ( isset( $_POST[ "id" ] ) ) ? intval( $_POST[ "id" ] ) : -1; |
| 7 | |
| 8 | unset( $wolves[ $id ] ); |
| 9 | |
| 10 | echo json_encode( $wolves ); |
| 11 | |
| 12 | ?> |
Note: See TracBrowser
for help on using the browser.