├── favicon.ico ├── images ├── dayz.jpg ├── arma2.jpg ├── arma3.jpg ├── linux_logo.jpg └── windows_logo.jpg ├── .gitmodules ├── css └── style.css ├── config.inc.php ├── index.php ├── README.md ├── query-servers.php ├── license.txt └── javascript └── jquery-2.1.4.min.js /favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firefly2442/phparma2serverstatus/HEAD/favicon.ico -------------------------------------------------------------------------------- /images/dayz.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firefly2442/phparma2serverstatus/HEAD/images/dayz.jpg -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "gameq"] 2 | path = gameq 3 | url = git://github.com/firefly2442/GameQ.git 4 | -------------------------------------------------------------------------------- /images/arma2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firefly2442/phparma2serverstatus/HEAD/images/arma2.jpg -------------------------------------------------------------------------------- /images/arma3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firefly2442/phparma2serverstatus/HEAD/images/arma3.jpg -------------------------------------------------------------------------------- /images/linux_logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firefly2442/phparma2serverstatus/HEAD/images/linux_logo.jpg -------------------------------------------------------------------------------- /images/windows_logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/firefly2442/phparma2serverstatus/HEAD/images/windows_logo.jpg -------------------------------------------------------------------------------- /css/style.css: -------------------------------------------------------------------------------- 1 | 2 | a { 3 | text-decoration: none; 4 | } 5 | 6 | a:hover { 7 | text-decoration: underline; 8 | } 9 | 10 | body 11 | { 12 | background-color: #FFFFFF; 13 | } 14 | 15 | 16 | a:link {color:#0066FF} 17 | a:visited {color:#0066FF} 18 | a:active {color:#000099} 19 | a:hover {color:#000099} 20 | 21 | .like-link { 22 | color: #0066FF; 23 | } 24 | 25 | /*CSS Table*/ 26 | .div-table { 27 | display: table; 28 | border: 1px; 29 | } 30 | .div-table-row { 31 | display: table-row; 32 | height: auto; 33 | } 34 | .div-table-col { 35 | display: table-cell; 36 | padding: 5px; 37 | border: 1px; 38 | height: auto; 39 | } 40 | 41 | .div-left { 42 | width: 30%; 43 | } 44 | .div-right { 45 | width: 70%; 46 | } 47 | 48 | .error { 49 | color: red; 50 | text-decoration: none; 51 | font-weight: bold; 52 | } 53 | 54 | .underline { 55 | text-decoration: underline; 56 | } 57 | -------------------------------------------------------------------------------- /config.inc.php: -------------------------------------------------------------------------------- 1 | 'AlphaSquad Arma 3', 8 | 'type' => 'arma3', 9 | 'host' => '207.182.138.242:2302', 10 | 'options' => [ 11 | 'query_port' => 2303 12 | ] 13 | ], 14 | //[ 15 | //'id' => 'Arma 2 OA Test', 16 | //'type' => 'armedassault2oa', 17 | //'host' => '107.191.44.98:2302' 18 | //], 19 | //[ 20 | //'id' => 'DayZ Test', 21 | //'type' => 'dayz', 22 | //'host' => '198.12.65.82:2302' 23 | //] 24 | ]; 25 | 26 | 27 | //TODO: currently offline, looking into alternatives 28 | //change this to toggle querying geographic information based on the IP address 29 | //define("GEOIP", "true"); 30 | 31 | 32 | /* phparma2serverstatus version (you don't need to change this) */ 33 | define("VERSION", "0.2"); 34 | 35 | ?> 36 | -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
\n";
46 | } else if (isset($server['gq_mod']) && $server['gq_mod'] == "dayz") {
47 | echo "
\n";
48 | } else { //arma3pc
49 | echo "
\n";
50 | }
51 | /*if (GEOIP == "true") {
52 | //Use GeoIP to determine country
53 | //TODO: look into public APIs
54 | }*/
55 |
56 | //server OS (Windows/Linux)
57 | //https://community.bistudio.com/wiki/Arma_3_ServerBrowserProtocol2
58 | if (isset($server['os']) && $server['os'] == "w") {
59 | echo "
\n";
60 | } else {
61 | echo "
\n";
62 | }
63 | //display join link
64 | if (isset($server['gq_joinlink'])) {
65 | echo "Join Server";
66 | }
67 | echo "Dedicated: "; 151 | if ($server['gq_dedicated'] == 'd') { 152 | echo "Yes
\n"; 153 | } else { 154 | echo "No\n"; 155 | } 156 | echo "The server " . $key . " is down.
"; 178 | } 179 | } 180 | echo "