diff --git a/config.php b/config.php new file mode 100644 index 0000000..a9f4e37 --- /dev/null +++ b/config.php @@ -0,0 +1,15 @@ + $key, "query" => $query); + return http_build_query($data); +} + +function request_exec($data){ + echo $data; + $output = file_get_contents(API_URL . $data); + $output = json_decode($output); + #$output = API_URL . $data; + return $output; +} + +function gen_html($ip, $port, $active){ + return " +
$ip:$port
+ "; +} + +function build_all($json){ + $serverlist = ""; + foreach($json->matches as $match){ + $ip = $match->ip_str; + $port = $match->port; + if(strpos($match->data,"Online Players: 0") !== false){ + $active = "false"; + } else{ + $active = "true"; + } + $serverlist = $serverlist . gen_html($ip, $port, $active); + } + $header = " + k0rnh0li0's grief list with Getgle Characteristics +

k0rnh0li0's grief list with Getgle Characteristics

+ + 100 most recently indexed minecraft 1.17.1 servers. + Updated every 2 mins.
+ SOURCE CODE HERE +
Red = players are online
+
"; + file_put_contents(OUTPUT_FILE, $header . $serverlist); +} + +$json = request_exec( + request_construct() +); + +build_all($json); diff --git a/public/.htaccess b/public/.htaccess new file mode 100644 index 0000000..717ec6f --- /dev/null +++ b/public/.htaccess @@ -0,0 +1 @@ +DirectoryIndex index.html diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..d959f81 --- /dev/null +++ b/public/index.html @@ -0,0 +1,209 @@ + + k0rnh0li0's grief list with Getgle Characteristics +

k0rnh0li0's grief list with Getgle Characteristics

+ + 100 most recently indexed minecraft 1.17.1 servers. + Updated every 2 mins.
+ SOURCE CODE HERE +
Red = players are online
+
+
164.132.194.26:25565
+ +
190.83.19.132:25565
+ +
13.72.10.138:25565
+ +
71.84.223.40:25565
+ +
37.59.37.210:25565
+ +
162.33.21.249:25565
+ +
198.27.79.251:25565
+ +
184.98.90.244:25565
+ +
67.161.217.126:25565
+ +
34.199.228.237:25565
+ +
75.170.227.123:25565
+ +
52.160.105.213:25565
+ +
128.61.105.132:25565
+ +
49.12.20.115:25565
+ +
3.16.231.144:25565
+ +
1.116.227.247:25565
+ +
176.57.177.69:25565
+ +
75.72.43.196:25565
+ +
45.139.114.239:25565
+ +
108.21.247.66:25565
+ +
172.223.140.37:25565
+ +
178.33.108.23:25565
+ +
176.57.155.192:25565
+ +
104.219.7.71:25565
+ +
51.195.121.167:25565
+ +
54.39.125.90:25565
+ +
114.132.240.123:25565
+ +
45.32.198.42:25565
+ +
130.237.188.213:25565
+ +
51.161.93.28:25565
+ +
87.106.195.45:25565
+ +
45.85.218.55:25565
+ +
94.110.63.168:25565
+ +
92.64.63.34:25565
+ +
94.250.197.157:25565
+ +
119.195.132.138:25565
+ +
118.27.16.137:25565
+ +
87.122.245.17:25565
+ +
160.251.46.244:25565
+ +
88.150.171.109:25565
+ +
89.35.34.254:25565
+ +
51.38.77.178:25565
+ +
23.101.195.58:25565
+ +
20.52.151.10:25565
+ +
172.104.10.125:25565
+ +
179.189.180.19:25565
+ +
73.223.194.252:25565
+ +
173.44.59.220:25565
+ +
160.251.41.137:25565
+ +
176.57.162.36:25565
+ +
96.55.237.197:25565
+ +
136.243.155.42:25565
+ +
3.217.194.233:25565
+ +
173.70.92.214:25565
+ +
15.235.5.89:25565
+ +
104.143.1.66:25565
+ +
192.95.48.159:25565
+ +
138.68.153.78:25565
+ +
62.104.189.228:25565
+ +
104.143.2.143:25565
+ +
104.219.7.139:25565
+ +
185.223.31.219:25565
+ +
51.161.84.207:25565
+ +
173.44.44.236:25565
+ +
147.135.49.55:25565
+ +
115.36.149.158:25565
+ +
176.10.132.53:25565
+ +
160.251.18.128:25565
+ +
34.69.44.148:25565
+ +
98.224.220.179:25565
+ +
73.50.224.197:25565
+ +
51.195.31.250:25565
+ +
176.57.172.98:25565
+ +
98.179.108.48:25565
+ +
191.235.73.241:25565
+ +
140.190.31.153:25565
+ +
118.27.26.72:25565
+ +
138.75.162.207:25565
+ +
185.249.198.163:25565
+ +
1.123.241.142:25565
+ +
31.124.151.32:25565
+ +
193.165.143.234:25565
+ +
60.79.196.115:25565
+ +
72.73.43.94:25565
+ +
135.125.173.15:25565
+ +
101.142.48.2:25565
+ +
92.117.120.235:25565
+ +
89.163.193.173:25565
+ +
119.18.18.202:25565
+ +
92.222.245.60:25565
+ +
122.116.239.217:25565
+ +
188.40.126.110:25565
+ +
51.79.5.150:25565
+ +
139.99.114.102:25565
+ +
45.15.24.175:25565
+ +
81.2.80.219:25565
+ +
128.22.141.210:25565
+ +
182.155.76.197:25565
+ +
51.81.112.33:25565
+ +
128.187.61.11:25565
+ \ No newline at end of file diff --git a/public/static/getgle.gif b/public/static/getgle.gif new file mode 100644 index 0000000..ba5afcb Binary files /dev/null and b/public/static/getgle.gif differ diff --git a/public/static/k0rnh0li0.gif b/public/static/k0rnh0li0.gif new file mode 100644 index 0000000..f20fece Binary files /dev/null and b/public/static/k0rnh0li0.gif differ diff --git a/public/style.css b/public/style.css new file mode 100644 index 0000000..55c61e7 --- /dev/null +++ b/public/style.css @@ -0,0 +1,21 @@ +body{ + background:url("static/k0rnh0li0.gif") fixed bottom right no-repeat, url("static/getgle.gif") fixed bottom right no-repeat #000; + font-family:monospace; + color:#0f0; + font-size:24px; + margin:10px; + +} +h1{ + margin:0; +} +.message{ +display:block; +margin-bottom:10px; +} +a, .active-false{ + color:rgb(0, 81, 255); +} +.active-true{ + color:rgb(255,0,0); +} \ No newline at end of file