Guest User

Untitled

a guest
Jul 12th, 2012
33
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html><head><script src="flowplayer-3.2.11.min.js"></script></head>
  2. <body style="background-color:black;color:white;">
  3. <?php
  4. if (isset($_GET['video']))
  5. if(preg_match('/^[a-zA-Z0-9\s.]+$/', $_GET['video']))
  6. $video=$_GET['video'];
  7. else
  8. $video="test.flv";
  9. ?>
  10. <div style="height:100%;width:100%;"><a href="<?php echo $video; ?>" style="display:block;width:624px;height:352px;position:relative; top:10%; left: 50%; margin-left:-312;" id="player"></a>
  11. <script language="JavaScript">
  12. flowplayer("player", "flowplayer-3.2.12.swf");
  13. </script><br><br><br><br><center>
  14. <?php
  15. exec("find . -name '*flv' -type f; find . -name '*mp4' -type f", $videos);
  16. foreach ($videos as &$lista) {
  17. $nombre=strrpos($lista, "/")+1;
  18. echo "<a style='text-decoration:none;' href='".$_SERVER['PHP_SELF']."?video=".substr($lista,2)."'>".str_replace(".", " ", substr($lista,$nombre, -4))."</a><br>";
  19. }
  20. ?>
  21. </center></div>
  22. </body></html>
RAW Paste Data