-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmonitor.php
More file actions
49 lines (32 loc) · 902 Bytes
/
Copy pathmonitor.php
File metadata and controls
49 lines (32 loc) · 902 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
39
40
41
42
43
44
45
<?PHP
include 'header.php';
include 'language.php';
include 'jsonfunc.php';
$uname=$_SESSION['uname'];
$admin=$_SESSION['admin'];
if (!isset($_GET['id']))
header ("Location: dashboard.php");
$dbid=$_GET['id'];
?>
<!DOCTYPE html>
<html>
<?php include('header.html');?>
<body class="hold-transition <?PHP echo $skin;?> sidebar-mini">
<div class="wrapper">
<!-- Navigation -->
<?PHP include 'navigation.php';?>
<div class="content-wrapper">
<section class="content">
<iframe id="gframe" height="900" frameBorder="0" scrolling="no" width="100%" ></iframe>
</section>
</div>
</div>
<?PHP include('js.html');?>
</body>
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
var src="http://<?PHP echo $_SESSION['grafana'].':3000/dashboard/'.$dbid.'?kiosk=tv';?>";
$("#gframe",parent.document.body).attr("src",src);
});
</script>
</html>