Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $selected_radio = 1;
- if ($selected_radio == "1") {
- $width = "100%";
- $height = "100%";
- }
- if ($selected_radio == "2") {
- $width = $_POST["width"]."px";
- $height = $_POST["height"]."px";
- }
- //Get the cookie from the website
- $lines = file('http://era.graalonline.com', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
- $cookie = substr($lines[203], 101, 32);
- ?>
- <html>
- <head>
- <title>GraalOnline Era</title>
- <style type="text/css">
- body {
- background-color: #8FD8D8;
- overflow: hidden;
- margin: 0;
- }
- #qplay {
- height: -moz-calc(<?php print $height; ?> + 130px);
- /* WebKit */
- height: -webkit-calc(<?php print $height; ?> + 130px);
- /* Opera */
- height: -o-calc(<?php print $height; ?> + 130px);
- /* Standard */
- height: calc(<?php print $height; ?> + 130px);
- width: <?php print $width; ?>;
- z-index: 1;
- }
- #fullscreen {
- position: absolute;
- right: 0;
- bottom: 0;
- margin-right: 0px;
- margin-bottom: 0px;
- z-index: 10;
- }
- </style>
- </head>
- <body onload = "window.scrollTo(0, 0);">
- <div id = "fullscreen">
- <input type="button" value="Try Full Screen" onclick="toggleFullScreen()" width = "36px" id = "but" />
- </div>
- <div id = "app">
- <object style="visibility: visible;" id="qplay" data="flash/era_flash.swf" type="application/x-shockwave-flash">
- <param value="true" name="allowFullScreen">
- <param name="wmode" value="transparent">
- <param value="false" name="seamlesstabbing">
- <param value="noscale" name="scale">
- <param value="tl" name="salign">
- <param value="qplaycookie=<?php echo $cookie ?>&gamefile=gamefiles/era_game.png" name="flashvars">
- </object>
- </div>
- <script type = "text/javascript">
- function toggleFullScreen() {
- if ((document.fullScreenElement && document.fullScreenElement !== null) ||
- (!document.mozFullScreen && !document.webkitIsFullScreen)) {
- if (document.documentElement.requestFullScreen) {
- document.documentElement.requestFullScreen();
- } else if (document.documentElement.mozRequestFullScreen) {
- document.documentElement.mozRequestFullScreen();
- } else if (document.documentElement.webkitRequestFullScreen) {
- document.documentElement.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);
- }
- } else {
- if (document.cancelFullScreen) {
- document.cancelFullScreen();
- } else if (document.mozCancelFullScreen) {
- document.mozCancelFullScreen();
- } else if (document.webkitCancelFullScreen) {
- document.webkitCancelFullScreen();
- }
- }
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement