forked from VarunAgw/CloudPingTest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlinode.php
126 lines (120 loc) · 2.59 KB
/
linode.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<?php
require_once 'templating.php';
$name = 'Linode';
$longName = $name;
ob_start();
?>
<script>
function src(region_id) {
let cache_buster = "cache_buster=" + (+Date.now());
let code = regions[region_id].code;
return `https://speedtest.${code}.linode.com/empty.php?${cache_buster}`;
}
// https://speedtest.singapore.linode.com/empty.php
// https://status.linode.com/
let regions = [{
text1: "US East",
text2: "Newark",
code: "newark"
}, {
text1: "US Central",
text2: "Dallas",
code: "dallas"
}, {
text1: "US West",
text2: "Fremont",
code: "fremont"
}, {
text1: "US Southeast",
text2: "Atlanta",
code: "atlanta"
}, {
text1: "US-IAD",
text2: "Washington",
code: "washington",
}, {
text1: "US-ORD",
text2: "Chicago",
code: "chicago",
}, {
text1: "CA Central",
text2: "Toronto",
code: "toronto1",
}, {
text1: "EU West",
text2: "London",
code: "london"
}, {
text1: "EU Central",
text2: "Frankfurt",
code: "frankfurt"
}, {
text1: "FR-PAR",
text2: "Paris",
code: "paris"
}, {
text1: "AP South",
text2: "Singapore",
code: "singapore"
}, {
text1: "AP Northeast-2",
text2: "Tokyo 2",
code: "tokyo2",
}, {
text1: "AP West",
text2: "Mumbai",
code: "mumbai1",
}, {
text1: "AP-Southeast",
text2: "Sydney",
code: "syd1",
}, {
text1: "SE-STO",
text2: "Stockholm",
code: "stockholm",
}, {
text1: "US-SEA",
text2: "Seattle",
code: "seattle",
}, {
text1: "IT-MIL",
text2: "Milan",
code: "milan",
}, {
text1: "JP-OSA",
text2: "Osaka",
code: "osaka",
}, {
text1: "IN-MAA",
text2: "Chennai",
code: "chennai",
}, {
text1: "ID-CGK",
text2: "Jakarta",
code: "jakarta",
}, {
text1: "BR-GRU",
text2: "Sao Paulo",
code: "sao-paulo",
}, {
text1: "NL-AMS",
text2: "Amsterdam",
code: "amsterdam",
}, {
text1: "US-MIA",
text2: "Miami",
code: "miami",
}, {
text1: "US-LAX",
text2: "Los Angeles",
code: "los-angeles",
}, {
text1: "ES-MAD",
text2: "Madrid",
code: "madrid",
}];
</script>
<?php
$body = ob_get_clean();
viewProvider();
?>