This repository has been archived by the owner on Apr 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
43 lines (39 loc) · 1.49 KB
/
index.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
<?php namespace GlobalTechnology\MPDDashboard {
require_once( dirname( __FILE__ ) . '/vendor/autoload.php' );
$wrapper = ApplicationWrapper::singleton();
$wrapper->authenticate();
$min = Config::get( 'application.directory', 'dist' ) === 'dist' ? '.min' : '';
?>
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<!-- Application Configuration -->
<script type="application/javascript">
var MPDDashboard = window.MPDDashboard = window.MPDDashboard || {};
MPDDashboard.config = <?php echo $wrapper->appConfig(); ?>;
MPDDashboard.config.errorCallback = function( reason ) {
if( reason.code === 'ERR_TICKET' ) {
var search = window.top.location.search;
var separator = search.length > 0 ? '&' : '';
window.top.location.search = search + separator + 'requestNewPGT';
}
};
</script>
<style>
body, html {
margin: 0; padding: 0; height: 100%; overflow: hidden;
}
#MPDDashboardApplication {
position:absolute; left: 0; right: 0; bottom: 0; top: 0; height: 100%;
}
</style>
<!--<script type="application/javascript" src="<? echo $wrapper->appDir( "iframeResizer{$min}.js" ); ?>"></script>-->
</head>
<body style="margin: 0;">
<iframe id="MPDDashboardApplication" src="<?php echo $wrapper->appDir( 'index.html' ); ?>" style="width: 100%; border-width: 0;"></iframe>
<!--<script type="application/javascript">iFrameResize( {minHeight: 500}, document.getElementById( 'MPDDashboardApplication' ) );</script>-->
</body>
</html>
<?php }