Advertisement
Guest User

Untitled

a guest
Jul 12th, 2014
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     <?php
  2.       $selected_radio = 1;
  3.       if ($selected_radio == "1") {
  4.         $width = "100%";
  5.         $height = "100%";
  6.       }
  7.       if ($selected_radio == "2") {
  8.         $width = $_POST["width"]."px";
  9.         $height = $_POST["height"]."px";
  10.       }
  11.      
  12.       //Get the cookie from the website
  13.       $lines = file('http://era.graalonline.com', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
  14.       $cookie = substr($lines[203], 101, 32);
  15.     ?>
  16. <html>
  17.   <head>
  18.     <title>GraalOnline Era</title>
  19.       <style type="text/css">
  20.         body {
  21.           background-color: #8FD8D8;
  22.           overflow: hidden;
  23.           margin: 0;
  24.         }
  25.         #qplay {
  26.           height: -moz-calc(<?php print $height; ?> + 130px);
  27.           /* WebKit */
  28.           height: -webkit-calc(<?php print $height; ?> + 130px);
  29.           /* Opera */
  30.           height: -o-calc(<?php print $height; ?> + 130px);
  31.           /* Standard */
  32.           height: calc(<?php print $height; ?> + 130px);
  33.           width: <?php print $width; ?>;
  34.           z-index: 1;
  35.         }
  36.         #fullscreen {
  37.           position: absolute;
  38.           right: 0;
  39.           bottom: 0;
  40.           margin-right: 0px;
  41.           margin-bottom: 0px;
  42.           z-index: 10;
  43.         }
  44.     </style>
  45.   </head>
  46.   <body onload = "window.scrollTo(0, 0);">
  47.     <div id = "fullscreen">
  48.       <input type="button" value="Try Full Screen" onclick="toggleFullScreen()" width = "36px" id = "but" />
  49.     </div>
  50.     <div id = "app">
  51.       <object style="visibility: visible;" id="qplay" data="flash/era_flash.swf" type="application/x-shockwave-flash">
  52.         <param value="true" name="allowFullScreen">
  53.         <param name="wmode" value="transparent">
  54.         <param value="false" name="seamlesstabbing">
  55.         <param value="noscale" name="scale">
  56.         <param value="tl" name="salign">
  57.         <param value="qplaycookie=<?php echo $cookie ?>&amp;gamefile=gamefiles/era_game.png" name="flashvars">
  58.       </object>
  59.     </div>
  60.   <script type = "text/javascript">
  61.     function toggleFullScreen() {
  62.       if ((document.fullScreenElement && document.fullScreenElement !== null) ||    
  63.        (!document.mozFullScreen && !document.webkitIsFullScreen)) {
  64.         if (document.documentElement.requestFullScreen) {  
  65.           document.documentElement.requestFullScreen();  
  66.         } else if (document.documentElement.mozRequestFullScreen) {  
  67.           document.documentElement.mozRequestFullScreen();  
  68.         } else if (document.documentElement.webkitRequestFullScreen) {  
  69.           document.documentElement.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);  
  70.         }  
  71.       } else {  
  72.         if (document.cancelFullScreen) {  
  73.           document.cancelFullScreen();  
  74.         } else if (document.mozCancelFullScreen) {  
  75.           document.mozCancelFullScreen();  
  76.         } else if (document.webkitCancelFullScreen) {  
  77.           document.webkitCancelFullScreen();  
  78.         }  
  79.       }  
  80.     }
  81.   </script>
  82.   </body>
  83. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement