Repository navigation
Expand file tree
/
Copy pathcontabo.php
More file actions
79 lines (76 loc) · 1.81 KB
/
Copy pathcontabo.php
File metadata and controls
79 lines (76 loc) · 1.81 KB
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
<?php
require_once 'templating.php';
$name = 'Contabo';
$longName = 'Contabo';
ob_start();
?>
<script>
function src(region_id) {
let cache_buster = "cache_buster=" + (+Date.now());
let code = regions[region_id].code.toLowerCase();
return `https://${code}.speedtest.contabo.net/?${cache_buster}`;
// https://www.speedtest.net/
// https://contabo.com/blog/two-new-us-data-center-regions-launched-today/
}
let regions = [{
text1: "United States",
text2: "St. Louis, MO",
code: "stl",
}, {
text1: "United States",
text2: "Orangeburg, NY",
code: "ony",
}, {
text1: "United States",
text2: "Seattle, WA",
code: "sea",
}, {
text1: "United States",
text2: "New York City, NY",
code: "nyc",
}, {
text1: "United Kingdom",
text2: "Portsmouth",
code: "pme",
}, {
text1: "Germany",
text2: "Dusseldorf",
code: "dus",
},{
text1: "Germany",
text2: "Karlsruhe",
code: "kae",
}, {
// text1: "Germany",
// text2: "Nuremberg",
// code: "nue",
// }, {
// text1: "Germany",
// text2: "Munich",
// code: "muc",
// }, {
text1: "France",
text2: "Lauterbourg",
code: "ltg",
}, {
text1: "India",
text2: "Mumbai",
code: "bom",
}, {
text1: "Australia",
text2: "Sydney",
code: "syd",
}, {
text1: "Japan",
text2: "Tokyo",
code: "tyo",
}, {
text1: "Singapore",
text2: "Singapore",
code: "sin",
}];
</script>
<?php
$body = ob_get_clean();
viewProvider();
?>