forked from VarunAgw/CloudPingTest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathovhcloud.php
84 lines (80 loc) · 2.16 KB
/
ovhcloud.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
<?php
require_once 'templating.php';
$name = 'OVHcloud';
$longName = 'OVHcloud';
ob_start();
?>
<script>
function src(region_id) {
let cache_buster = "cache_buster=" + (+Date.now());
let code = regions[region_id].code2 !== undefined ? regions[region_id].code2 : regions[region_id].code;
return `https://${code}.nperf.net/${cache_buster}`;
}
// https://s3.sbg.cloud.ovh.net/
// https://ws.nperf.com/partner/frame?l=05d1f5db-f38f-42ed-924b-87e3b0f2d5b6
let regions = [{
text1: "France",
text2: "Roubaix",
code: "fr-ovh-roubaix",
code2: "fr-ovh-roubaix-02-10g",
}, {
text1: "France",
text2: "Strasbourg",
code: "fr-ovh-strasbourg",
code2: "fr-ovh-strasbourg-02-10g"
}, {
text1: "Canada",
text2: "Beauharnois",
code: "ca-ovh-beauharnois",
code2: "ca-ovh-beauharnois-02-10g"
}, {
text1: "France",
text2: "Gravelines",
code: "fr-ovh-gravelines",
code2: "fr-ovh-gravelines-02-10g"
}, {
text1: "United Kingdom",
text2: "Erith",
code: "gb-ovh-erith",
code2: "gb-ovh-erith-01-10g"
}, {
text1: "Germany",
text2: "Limburg",
code: "de-ovh-limburg",
code2: "de-ovh-limburg-01-10g"
}, {
text1: "Poland",
text2: "Warsaw",
code: "pl-ovh-warsaw",
code2: "pl-ovh-warsaw-01-10g"
}, {
text1: "Australia",
text2: "Sydney",
code: "au-ovh-sydney",
code2: "au-ovh-sydney-01-10g"
}, {
text1: "Singapore",
text2: "Singapore",
code: "sg-ovh-singapore",
code2: "sg-ovh-singapore-01-10g"
}, {
text1: "United States",
text2: "Hillsboro",
code: "us-ovh-hillsboro",
code2: "us-ovh-hillsboro-01-10g"
}, {
text1: "United States",
text2: "Vint Hill",
code: "us-ovh-vinthill",
code2: "us-ovh-vinthill-01-10g"
}, {
text1: "India",
text2: "Mumbai",
code: "in-ovh-mumbai",
code2: "in-ovh-mumbai-01-10g-1"
}];
</script>
<?php
$body = ob_get_clean();
viewProvider();
?>