ItzEdInYourBed

Untitled

Dec 9th, 2019
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.45 KB | None | 0 0
  1. <?php
  2. if (!isset($_GET['slug']) || !file_exists($_SERVER['DOCUMENT_ROOT'] . '/v/' . $_GET['slug'] . '.webm'))
  3. {
  4.     header('Location: /');
  5.     die();
  6. }
  7. $file = '/v/' . $_GET['slug'] . '.webm';
  8. $nsfw_enabled = isset($_COOKIE['boobs']) ? $_COOKIE['boobs'] == 'yes' : False;
  9. ?>
  10. <!DOCTYPE html>
  11. <html>
  12. <head>
  13. <script>
  14. function play()
  15. {
  16.     var video = document.getElementById("video");
  17.     video.play();
  18. }
  19. </script>
  20. <style>
  21. #playButton {
  22.   position: fixed;
  23.   right: 1em;
  24.   bottom: 1em;
  25. }
  26.  
  27. #DMCA {
  28.   position: fixed;
  29.   left: 1em;
  30.   bottom: 2.56em;
  31. }
  32.  
  33. #Discord {
  34.   position: fixed;
  35.   left: 1em;
  36.   bottom: 1em;
  37. }
  38.  
  39. #nsfwButton {
  40.     position: fixed;
  41.     right: 1em;
  42.     bottom: 2.56em;
  43. }
  44. #video {
  45.   width: 100%;
  46.   height: 100vh;
  47. }
  48. </style>
  49. <title>The most scuffed webms on the internet!</title>
  50. </head>
  51. <body style='background-color:black'>
  52. <a href="/">
  53. <video autoplay loop id="video">
  54.     <source src="<?= $file ?>" type="video/webm">
  55. </video>
  56. </a>
  57. <button id="nsfwButton" onclick='window.location.href= "/?nsfw=<?= $nsfw_enabled ? "no" : "yes"?>&redir=<?= $_GET['slug'] ?>"'><?= $nsfw_enabled ? "Disable" : "Enable"?> NSFW Content</button>
  58. <button id="playButton" onclick="play()">unpause video if ur on gay chrome</button>
  59. <button id="DMCA" onclick="location.href='https://www.kisak.club/index.php?help/DMCA/'">DMCA Request</button>
  60. <button id="Discord" onclick="location.href='https://kisak.xyz/discord'">Join Our Discord!</button>
  61. </body>
  62. </html>
Advertisement
Add Comment
Please, Sign In to add comment