SHOW:
|
|
- or go back to the newest paste.
| 1 | <?php | |
| 2 | ||
| 3 | /* | |
| 4 | Multiplayer Profiles Public Servers Example Script - 2012 - 2013 | |
| 5 | ||
| 6 | Created by: Cory Gillenkirk | |
| 7 | @Website: http://justonemoreblock.com | |
| 8 | @Twitter: http://twitter.com/GetOneMoreBlock | |
| 9 | @YouTube: http://youtube.com/GetOneMoreBlock | |
| 10 | */ | |
| 11 | ||
| 12 | $servers = array( | |
| 13 | ||
| 14 | array( name => "PVP Server 1", | |
| 15 | hostname => "pvp1.domain.com", | |
| 16 | ), | |
| 17 | ||
| 18 | array( name => "Server Name 1", | |
| 19 | hostname => "Server Hostname 1", | |
| 20 | ), | |
| 21 | ||
| 22 | array( name => "Server Name 2", | |
| 23 | hostname => "Server Hostname 2", | |
| 24 | ), | |
| 25 | ||
| 26 | array( name => "Server Name 3", | |
| 27 | hostname => "Server Hostname 3", | |
| 28 | ), | |
| 29 | ||
| 30 | array( name => "Server Name 4", | |
| 31 | hostname => "Server Hostname 4", | |
| 32 | ), | |
| 33 | ||
| 34 | array( name => "Server Name 5", | |
| 35 | hostname => "Server Hostname 5", | |
| 36 | ), | |
| 37 | ||
| 38 | //If you need more copy and paste from array to the ), and edit. | |
| 39 | ||
| 40 | ||
| 41 | ); | |
| 42 | ||
| 43 | /* DO NOT EDIT */ | |
| 44 | $profiles['servers'] = $servers; | |
| 45 | $json = json_encode($profiles); | |
| 46 | echo $json; | |
| 47 | ||
| 48 | ?> |