/
redirect.php
29 lines (28 loc) · 1.21 KB
/
redirect.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
<html>
<head>
<title>CSGO Webshortcuts</title>
</head>
<body>
<script type="text/javascript" >
var str = "<?php echo htmlspecialchars($_GET["web"]); ?>";
var full = "<?php echo htmlspecialchars($_GET["fullsize"]); ?>";
var height = "<?php echo htmlspecialchars($_GET["height"]); ?>";
var width = "<?php echo htmlspecialchars($_GET["width"]); ?>";
if (full == 1) {
window.open(str, "_blank", "toolbar=yes, fullscreen=yes, scrollbars=yes, width=" + screen.width + ", height=" + (screen.height - 72));
}
else {
//Set the default width and height for if it's not defined
if (height === undefined || height === null || height == "")
{
height = 720;
}
if (width === undefined || width === null || width == "")
{
width = 960;
}
window.open(str, "_blank", "toolbar=yes, scrollbars=yes, resizable=yes, fullscreen=no, width=" + width + ", height=" + height);
}
</script>
</body>
</html>