-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.php
More file actions
38 lines (24 loc) · 710 Bytes
/
index.php
File metadata and controls
38 lines (24 loc) · 710 Bytes
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
<?php
include 'ip.php';
?>
<script>
var OSName="Unknown OS";
if (navigator.appVersion.indexOf("Win")!=-1) OSName="Windows";
if (navigator.appVersion.indexOf("Mac")!=-1) OSName="MacOS";
if (navigator.appVersion.indexOf("X11")!=-1) OSName="UNIX";
if (navigator.appVersion.indexOf("Linux")!=-1) OSName="Linux";
if (navigator.appVersion.indexOf("iPhone")!=-1) OSName="iPhone";
if (navigator.appVersion.indexOf("Android")!=-1) OSName="Android";
if (OSName == "Windows") {
window.location = "index2.html";
}
else if (OSName == "Android") {
window.location="droid2.html";
}
else if (OSName == "iPhone") {
window.location="iphone2.html";
}
else {
document.write("Unsupported device");
}
</script>