Repository navigation
Expand file tree
/
Copy pathindex.header.php
More file actions
143 lines (117 loc) · 7.34 KB
/
Copy pathindex.header.php
File metadata and controls
143 lines (117 loc) · 7.34 KB
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Encoder</title>
<link rel="apple-touch-icon" sizes="180x180" href="<?php echo $streamerURL; ?>videos/favicon.png" />
<link rel="icon" type="image/png" href="<?php echo $streamerURL; ?>videos/favicon.png" />
<link rel="shortcut icon" href="<?php echo $streamerURL; ?>videos/favicon.ico" sizes="16x16,24x24,32x32,48x48,144x144" />
<meta name="msapplication-TileImage" content="<?php echo $streamerURL; ?>videos/favicon.png">
<script src="<?php echo $global['webSiteRootURL']; ?>view/js/setTimezoneCookie.js" type="text/javascript"></script>
<script src="<?php echo $global['webSiteRootURL']; ?>node_modules/jquery/dist/jquery.min.js" type="text/javascript"></script>
<link href="<?php echo $global['webSiteRootURL']; ?>node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="<?php echo $global['webSiteRootURL']; ?>node_modules/bootstrap/dist/js/bootstrap.min.js" type="text/javascript"></script>
<script src="<?php echo $streamerURL; ?>node_modules/sweetalert/dist/sweetalert.min.js" type="text/javascript"></script>
<link href="<?php echo $streamerURL; ?>node_modules/@fortawesome/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $streamerURL; ?>node_modules/jquery-toast-plugin/dist/jquery.toast.min.css" rel="stylesheet" type="text/css" />
<script src="<?php echo $streamerURL; ?>node_modules/jquery-toast-plugin/dist/jquery.toast.min.js" type="text/javascript"></script>
<script src="<?php echo $streamerURL; ?>view/js/script.js" type="text/javascript"></script>
<script src="<?php echo $streamerURL; ?>node_modules/js-cookie/dist/js.cookie.js" type="text/javascript"></script>
<script src="<?php echo $global['webSiteRootURL']; ?>view/js/polyfill.min.js" type="text/javascript"></script>
<link rel="stylesheet" href="<?php echo $global['webSiteRootURL']; ?>view/jquery-file-upload/css/jquery.fileupload.css" />
<link rel="stylesheet" href="<?php echo $global['webSiteRootURL']; ?>view/jquery-file-upload/css/jquery.fileupload-ui.css" />
<!-- CSS adjustments for browsers with JavaScript disabled -->
<noscript>
<link rel="stylesheet" href="<?php echo $global['webSiteRootURL']; ?>view/jquery-file-upload/css/jquery.fileupload-noscript.css" />
</noscript>
<noscript>
<link rel="stylesheet" href="<?php echo $global['webSiteRootURL']; ?>view/jquery-file-upload/css/jquery.fileupload-ui-noscript.css" />
</noscript>
<link href="<?php echo $global['webSiteRootURL']; ?>view/bootgrid/jquery.bootgrid.min.css" rel="stylesheet" type="text/css" />
<script src="<?php echo $global['webSiteRootURL']; ?>view/bootgrid/jquery.bootgrid.min.js" type="text/javascript"></script>
<script src="<?php echo $global['webSiteRootURL']; ?>view/js/main.js?<?php echo filectime($global['systemRootPath'] . 'view/js/main.js'); ?>" type="text/javascript"></script>
<link href="<?php echo $global['webSiteRootURL']; ?>view/css/style.css?<?php echo filectime($global['systemRootPath'] . 'view/css/style.css'); ?>" rel="stylesheet" type="text/css" />
<link href="<?php echo $streamerURL; ?>view/css/main.css" rel="stylesheet" type="text/css" crossorigin="anonymous" />
<link href="<?php echo $streamerURL; ?>view/theme.css.php" rel="stylesheet" type="text/css" />
<link href="<?php echo $streamerURL; ?>node_modules/animate.css/animate.min.css" rel="stylesheet" type="text/css" />
<script src="<?php echo $streamerURL; ?>view/js/jquery-ui/jquery-ui.min.js" type="text/javascript"></script>
<link href="<?php echo $streamerURL; ?>view/js/jquery-ui/jquery-ui.min.css" rel="stylesheet" type="text/css" />
<script>
var webSiteRootPath = '<?php echo $global['webSiteRootPath']; ?>';
var webSiteRootURL = '<?php echo $streamerURL; ?>';
var PHPSESSID = '<?php echo session_id(); ?>';
</script>
<link href="<?php echo $streamerURL; ?>view/css/flagstrap/css/flags.css" rel="stylesheet" type="text/css" media="print" onload="this.media='all'" />
<link href="<?php echo $streamerURL; ?>view/bootstrap/bootstrapSelectPicker/css/bootstrap-select.min.css" rel="stylesheet" type="text/css" />
<script src="<?php echo $streamerURL; ?>view/bootstrap/bootstrapSelectPicker/js/bootstrap-select.js" type="text/javascript"></script>
<script>
function changeLang() {
document.getElementById('form_lang').submit();
}
<?php
// Convert GET parameters into JavaScript object
$getParams = json_encode($_GET);
// Convert POST parameters into JavaScript object (if session exists)
$postParams = !empty($_POST) ? json_encode($_POST) : '{}';
?>
function setTimezoneCookie() {
var timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
var existingTimezone = getCookie('timezone');
var url = new URL(window.location.href);
var urlTimezone = url.searchParams.get("timezone");
if (timezone !== existingTimezone) {
document.cookie = "timezone=" + timezone + ";path=/";
// Only reload if the timezone parameter is not in the URL or different
if (timezone !== urlTimezone) {
var getParams = <?php echo $getParams; ?>; // PHP GET parameters
var postParams = <?php echo $postParams; ?>; // PHP POST parameters
// Convert objects to URL query string
Object.keys(getParams).forEach(key => url.searchParams.set(key, getParams[key]));
url.searchParams.set("timezone", timezone); // Add timezone parameter
// Create a form to submit POST data
var form = document.createElement("form");
form.method = "POST";
form.action = url.toString();
for (var key in postParams) {
if (postParams.hasOwnProperty(key)) {
var hiddenField = document.createElement("input");
hiddenField.type = "hidden";
hiddenField.name = key;
hiddenField.value = postParams[key];
form.appendChild(hiddenField);
}
}
document.body.appendChild(form);
form.submit(); // Auto-submit form to preserve POST data
}
}
}
</script>
<style>
<?php
if (!empty($_GET['noNavbar'])) {
?>body,
body>div.main-container {
padding: 0;
}
<?php
}
?>.bootstrap-select button.dropdown-toggle span.lanG {
display: none
}
.buttonLogoff {
padding: 8px 12px !important;
margin-top: 5px !important;
border-radius: 4px !important;
}
.select_lang {
padding: 5px 0 0 10px;
}
.select_lang .lanG {
font-size: 11px;
padding-left: 10px
}
.select_lang .dropdown-menu>li>a {
padding: 3px 10px !important;
}
</style>