Guest User

Untitled

a guest
Jan 16th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.62 KB | None | 0 0
  1. <?php
  2. if(!empty($_GET["video"]) AND empty($_SESSION["url"])){
  3. if (!empty($_GET["video"]) && getDomain($_GET["video"]) === "facebook.com" && parse_url($_GET["video"])["path"] != "/story.php") {
  4.  
  5. $data = url_get_contents($_GET["video"]);
  6.  
  7. $hdlink = hdLink($data);
  8.  
  9. $sdlink = sdLink($data);
  10.  
  11. if (!empty($sdlink)) {
  12.  
  13. $_SESSION['type'] = "video";
  14.  
  15. $_SESSION['url'] = $sdlink;
  16.  
  17. $_SESSION['url-hd'] = $hdlink;
  18.  
  19. redirect($config["url"] . "?d=1&video=".$_GET["video"]."#download");
  20.  
  21. die();
  22.  
  23. } else {
  24.  
  25. customError($config["url"], $lang["deleted-video"]);
  26.  
  27. die();
  28.  
  29. }
  30.  
  31. } else if (!empty($_GET["video"]) && parse_url($_GET["video"])["host"] === "m.facebook.com") {
  32.  
  33. $data = url_get_contents($_GET["video"]);
  34.  
  35. $link = convertUrl(mobilLink($data));
  36.  
  37. if (!empty($link)) {
  38.  
  39. $_SESSION['type'] = "video";
  40.  
  41. $_SESSION['url'] = $link;
  42.  
  43. redirect($config["url"] . "?d=1&video=".$_GET["video"]."#download");
  44.  
  45. die();
  46.  
  47. } else {
  48.  
  49. customError($config["url"], $lang["deleted-video"]);
  50.  
  51. die();
  52.  
  53. }
  54.  
  55. } else {
  56.  
  57. errorDialog($config["url"]);
  58.  
  59. die();
  60.  
  61. }
  62. }
  63.  
  64. ?>
  65.  
  66. <section class="section">
  67.  
  68. <?php include("adcode.html"); ?>
  69.  
  70. </br>
  71. <center>
  72. <script data-cfasync='false' type='text/javascript' src='//p263899.clksite.com/adServe/banners?tid=263899_508792_3'></script>
  73. </center>
  74. </br>
  75.  
  76. <div class="container text-center">
  77.  
  78. <h1 class="display-1"><?php echo $config["title"]; ?></h1>
  79.  
  80. <p class="lead"><?php echo $lang["homepage-slogan"]; ?></p>
  81.  
  82. </div>
  83.  
  84.  
  85.  
  86. <div class="container text-center">
  87.  
  88. <div class="card sec-pri-gradient text-white rounded">
  89.  
  90. <div class="card-body">
  91.  
  92. <div class="row">
  93.  
  94. <div class="col-md-4">
  95.  
  96. <p class="lead"><?php echo $lang["preview"]; ?></p>
  97.  
  98. <div class="embed-responsive embed-responsive-4by3" style="margin-top:-10%;">
  99.  
  100. <?php echo '<video controls autoplay><source src="' . $_SESSION["url"] . '" type="video/mp4">Your browser does not support the HTML5 video.</video>'; ?>
  101.  
  102. </div>
  103.  
  104. </div>
  105.  
  106. <div class="col-md-8" id="download" style="margin-top:3%;">
  107.  
  108. <div class="alert alert-success alert-dismissible fade show" role="alert">
  109.  
  110. <button type="button" class="close" data-dismiss="alert" aria-label="Close">
  111.  
  112. <span aria-hidden="true">×</span>
  113.  
  114. </button>
  115.  
  116. <?php echo $lang["download-ready"]; ?>
  117.  
  118. </div>
  119.  
  120. <a class="btn btn-fill btn-lg btn-light btn-block" href="<?php echo $_SESSION["url"]; ?>"
  121.  
  122. download>
  123.  
  124. <i class="fa fa-download"></i><?php echo $lang["download"]; ?>
  125.  
  126. </a>
  127. <center>
  128. <script data-cfasync='false' type='text/javascript' src='//p263899.clksite.com/adServe/banners?tid=263899_508792_0'></script>
  129. </center>
  130.  
  131. <?php if (!empty($_SESSION['url-hd'])) { ?>
  132.  
  133. <a class="btn btn-fill btn-lg btn-light btn-block" href="<?php echo $_SESSION["url-hd"]; ?>"
  134.  
  135. download>
  136.  
  137. <i class="fa fa-download"></i><?php echo $lang["download"]; ?> HD
  138.  
  139. </a>
  140.  
  141. <?php } ?>
  142.  
  143. </div>
  144.  
  145. </div>
  146.  
  147. </div>
  148.  
  149. </div>
  150.  
  151. </div>
  152.  
  153. </section>
Add Comment
Please, Sign In to add comment