rosaage

video.php

Feb 15th, 2014
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.18 KB | None | 0 0
  1. <?php
  2. $video = $_GET["v"]
  3. ?>
  4. <!DOCTYPE html>
  5. <html>
  6.     <head>
  7.         <meta name="viewport" content="width=device-width">
  8.         <style type="text/css">
  9.         </style>
  10.         <title><?php echo str_replace("_", " ", str_replace("/", " ", str_replace("Film/", "Film: ", str_replace("%20", " ", str_replace("video", "", substr($video, 0, -4)))))); ?></title>
  11.     </head>
  12.     <body>
  13.         <div  style="width: 640px; height: 480px; margin: 0 auto;">
  14.             <h1><?php echo str_replace("_", " ", str_replace("/", " ", str_replace("Film/", "Film: ", str_replace("%20", " ", str_replace("video", "", substr($video, 0, -4)))))); ?></h1>
  15.                 <object classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616" width="730" height="480" codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab">
  16.                     <param name="custommode" value="none" />
  17.                     <param name="mode" value="full" />
  18.                     <param name="src" value="http://<?php echo $_SERVER['SERVER_NAME'] ?>/<?php echo $video; ?>" />
  19.                     <embed type="video/divx" src="http://<?php echo $_SERVER['SERVER_NAME'] ?>/<?php echo $video; ?>" custommode="none" width="730" height="480" mode="full"  pluginspage="http://go.divx.com/plugin/download/">
  20.                     </embed>
  21.                 </object>
  22.                     <br />No video? <a href="http://www.divx.com/software/divx-plus/web-player" target="_blank">Download</a> the DivX Plus Web Player.
  23.             <button onclick="toggleContent()">Beskrivelse</button><button onclick="goBack()">Tilbake</button>
  24.            
  25.             <div ID="content" style="display:none">
  26.             <p>Denne virke egentle ikkje s&#229; godt enn&#229;...</p>
  27.             <p>Kanskje &#230;g fikse dette viss &#230;g gidde en dag...</p>
  28.             </div>
  29.         </div>
  30.        
  31.            
  32.         <script type="text/javascript">
  33.             function toggleContent() {
  34.             // Get the DOM reference
  35.             var contentId = document.getElementById("content");
  36.             // Toggle
  37.             contentId.style.display == "block" ? contentId.style.display = "none" :
  38.             contentId.style.display = "block";
  39.             }
  40.             function goBack(){
  41.                 window.history.back()
  42.             }
  43.         </script>
  44.         <div style="position: relative" id="copy">
  45.             <p style="position: fixed; bottom: 0; width:100%; text-align: center">Video script &copy; 2014 rosaage.
  46.             </p>
  47.         </div>
  48.     </body>
  49. </html>
Advertisement
Add Comment
Please, Sign In to add comment