forked from VarunAgw/CloudPingTest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathibm_cloud.php
65 lines (61 loc) · 1.47 KB
/
ibm_cloud.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
<?php
require_once 'templating.php';
$name = 'IBM Cloud';
$longName = 'IBM Cloud';
ob_start();
?>
<script>
function src(region_id) {
let cache_buster = "cache_buster=" + (+Date.now());
let code = regions[region_id].code;
return `https://s3.${code}.cloud-object-storage.appdomain.cloud/?${cache_buster}`;
}
// You have to scroll down to see some more regions like Osaka
// https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-endpoints
// https://cloud.ibm.com/docs/overview?topic=overview-locations
let regions = [{
text1: "Americas",
text2: "Dallas",
code: "us-south"
}, {
text1: "Americas",
text2: "Sao Paulo",
code: "br-sao"
}, {
text1: "Americas",
text2: "Toronto",
code: "ca-tor"
}, {
text1: "Americas",
text2: "Washington DC",
code: "us-east"
}, {
text1: "Europe",
text2: "Frankfurt",
code: "eu-de"
}, {
text1: "Europe",
text2: "London",
code: "eu-gb"
}, {
text1: "Europe",
text2: "Madrid",
code: "eu-es"
}, {
text1: "Asia Pacific",
text2: "Sydney",
code: "au-syd"
}, {
text1: "Asia Pacific",
text2: "Tokyo",
code: "jp-tok"
}, {
text1: "Asia Pacific",
text2: "Osaka",
code: "jp-osa"
}];
</script>
<?php
$body = ob_get_clean();
viewProvider();
?>