-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfloorplan.bose.php
95 lines (94 loc) · 3.66 KB
/
floorplan.bose.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
<?php
require 'secure/functions.php';
require '/var/www/authentication.php';
if (!isset($_SESSION['referer'])) {
$_SESSION['referer']='floorplan.php';
}
if (isset($_REQUEST['ip'])) {
$bose=str_replace('bose', '', $_REQUEST['ip']);
} else {
$bose=101;//Living
}
$boses=array(
101=>'Bose Living',
102=>'Bose Keuken',
103=>'Bose boven',
104=>'Bose 104',
105=>'Bose 10-Wit',
106=>'Bose Buiten20',
107=>'Bose 107',
);
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Floorplan</title>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<meta name="HandheldFriendly" content="true">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="theme-color" content="#000">';
if ($ipaddress=='192.168.2.202'||$ipaddress=='192.168.4.3') { //Aarde
echo '
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=0.868,user-scalable=yes,minimal-ui">';
} elseif ($ipaddress=='192.168.2.203'||$ipaddress=='192.168.4.4'||$udevice=='iPad') { //iPad
echo '
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1,user-scalable=yes,minimal-ui">';
} elseif ($ipaddress=='192.168.2.23'||$ipaddress=='192.168.4.5') { //iPhone Kirby
echo '
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=0.755,user-scalable=yes,minimal-ui">';
} elseif ($udevice=='iPhone') {
echo '
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=0.755,user-scalable=yes,minimal-ui">';
} else {
echo '
<meta name="viewport" content="width=device-width,height=device-height,user-scalable=yes,minimal-ui">';
}
echo '
<meta name="msapplication-TileColor" content="#000000">
<meta name="msapplication-TileImage" content="images/domoticzphp48.png">
<link rel="icon" type="image/png" href="images/domoticzphp48.png">
<link rel="shortcut icon" href="images/domoticzphp48.png">
<link rel="apple-touch-startup-image" href="images/domoticzphp450.png">
<link rel="apple-touch-icon" href="images/domoticzphp48.png">
<link rel="stylesheet" type="text/css" href="/styles/floorplan.css?v=2">
<style type="text/css">
.btn{height:5vh;margin:3px;}
.b1{max-width:98vw;}
.b2{margin:1px;}
.input{width:78px;}
.blackmedia{top:50px;left:0px;height:581px;width:100%;background-color:#000;text-align:center;}
#clock{top:0px;left:0px;width:100vw;text-align:center;}
#volume{width:99vw;}
#bass{width:99vw;}
.volume{width:8.4%;height:50px;padding:0!important;margin:0 0.3%;}
</style>
<script type="text/javascript" src="/scripts/jQuery.js"></script>
<script type="text/javascript" src="/scripts/floorplanjs.js?v=2"></script>
<script type="text/javascript">
function navigator_Go(url){window.location.assign(url)}
$(document).ready(function() {
ajaxbose('.$bose.')
myAjaxMedia=setInterval(function(){ajaxbose('.$bose.')},500)
});
</script>
</head>
<body>
<div class="fix" id="clock">
<a href=\'javascript:navigator_Go("floorplan.bose.php?ip='.$bose.'");\' id="time"></a>
</div>
<div class="fix z1" style="bottom:14px;left:14px;">
<a href=\'javascript:navigator_Go("floorplan.php");\'><img src="/images/close.png" width="72px" height="72px" alt="close"></a><span style="font-size:2em;padding:8px;">'.$boses[$bose].'</span>
</div>
<div class="fix blackmedia bose" >
<input type="hidden" name="ip" value="'.$bose.'">
<div id="art"></div>
<h4 id="artist"></h4>
<span id="track"></span><br>
<div id="volume"></div>
<br>
<br>
<div id="power"></div>
</div>
</body>
</html>';