Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 3.5.0.0
- * @ Author : DeZender
- * @ Release on : 22.06.2018
- * @ Official site : http://DeZender.Net
- *
- */
- set_time_limit(0);
- require_once 'config.php';
- require_once ABSPATH . '/firewall.php';
- ob_end_clean();
- session_write_close();
- $slug = $var->get->slug;
- $videos = $db->query("SELECT id,link,slug,source FROM files WHERE slug='" . $slug . "'");
- if ($videos->num_rows != '1') {
- ERROR_404();
- }
- $links = $db->query("SELECT * FROM links WHERE uid='" . $var->get->uid . "'");
- if ($links->num_rows != '1') {
- ERROR_404();
- }
- $link = $links->fetch_object();
- $video = $videos->fetch_object();
- $data = json_decode($link->data);
- if ($link->type == 'video_download' && $var->session('fingerprint') != $var->get->sid) {
- ERROR_404();
- }
- $source = $data->sources->{$var->get->quality}->file;
- if (!empty($source)) {
- $source = get_video($data);
- $headers = $source['headers'];
- $db->close();
- header($headers[0]);
- header('Devloped-By: JuicyCodes.Com');
- if (http_response_code() != '403') {
- if ($link->type == 'video_download') {
- header('Pragma: public');
- header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
- header('Content-Disposition: attachment; filename="video_' . $var->get->quality . 'p.mp4"');
- }
- if (isset($headers['Content-Type'])) {
- header('Content-Type: ' . $headers['Content-Type']);
- }
- if (isset($headers['Content-Length'])) {
- header('Content-Length: ' . $headers['Content-Length']);
- }
- if (isset($headers['Accept-Ranges'])) {
- header('Accept-Ranges: ' . $headers['Accept-Ranges']);
- }
- if (isset($headers['Content-Range'])) {
- header('Content-Range: ' . $headers['Content-Range']);
- }
- $fp = fopen($source['link'], 'rb');
- while (!feof($fp)) {
- echo fread($fp, 1024 * 1024 * IT\Data::Get('chunk_size'));
- flush();
- ob_flush();
- }
- fclose($fp);
- } else {
- ERROR_404();
- }
- } else {
- ERROR_404();
- }
- function get_video($data)
- {
- global $db;
- global $var;
- global $link;
- global $video;
- global $reloads;
- $source = $data->sources->{$var->get->quality}->file;
- $cookies = implode('; ', $data->cookies);
- $options = array('http' => array('header' => set_headers($cookies)));
- stream_context_set_default($options);
- $headers = get_headers($source, true);
- if (isset($headers['Location'])) {
- if (is_array($headers['Location'])) {
- $headers['Location'] = end($headers['Location']);
- }
- $source = $headers['Location'];
- $headers = get_headers($source, true);
- .........................................................................
- ......................................
- ....................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement