forked from VarunAgw/CloudPingTest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathngrok.php
52 lines (48 loc) · 938 Bytes
/
ngrok.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
http_response_code(404);
die();
require_once 'templating.php';
$name = 'ngrok';
$longName = 'ngrok';
ob_start();
?>
<script>
function src(region_id) {
let cache_buster = "cache_buster=" + (+Date.now());
return `https://ping.${regions[region_id].code}.ngrok.io/${cache_buster}`;
}
let regions = [{
text1: "United States",
text2: "",
code: "us",
code2: "",
}, {
text1: "Europe",
text2: "",
code: "eu"
}, {
text1: "Asia/Pacific",
text2: "",
code: "ap"
}, {
text1: "Australia",
text2: "",
code: "au"
}, {
text1: "South America",
text2: "",
code: "sa"
}, {
text1: "Japan",
text2: "",
code: "jp"
}, {
text1: "India",
text2: "",
code: "in"
}];
</script>
<?php
$body = ob_get_clean();
viewProvider();
?>