Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //NOTE: this requires a place to write the file that's writable by the webserver user.
- //It's currently set to use a /tmp subdir in the current working directory; change
- //this if needed. Ensure the directory exists too!
- $downloadErr = "";
- $action=$_REQUEST['action'];
- $username=$_REQUEST['name'];
- $password=$_REQUEST['pass'];
- $target="http://plexdreams.xyz:6562/get.php?username=" . $username . "&password=" . $password . "&type=m3u_plus&output=ts";
- $output=file_get_contents($target);
- file_put_contents("./tmp/playlist.m3u8", $output);
- if (filesize('./tmp/playlist.m3u8') > 0)
- {
- header('Content-Type: application/octet-stream');
- header('Content-Disposition: attachment; filename="vlc_playlist.m3u8"');
- readfile($target);
- }
- else
- {
- if (!empty($_POST))
- {
- $downloadErr="Please check your login details.";
- }
- }
- unlink('./tmp/playlist.m3u8');
- ?>
- <link rel='stylesheet' id='follow-up-emails-css' href='https://oober.tv/wp-content/plugins/woocommerce-follow-up-emails/templates/followups.css' type='text/css' media='all' />
- <link rel='stylesheet' id='woocommerce-layout-css' href='//oober.tv/wp-content/plugins/woocommerce/assets/css/woocommerce-layout.css' type='text/css' media='all' />
- <link rel='stylesheet' id='woocommerce-general-css' href='//oober.tv/wp-content/plugins/woocommerce/assets/css/woocommerce.css' type='text/css' media='all' />
- <link rel='stylesheet' id='xmas-advent-calendar-css' href='https://oober.tv/wp-content/plugins/xmas-advent-calendar/public/css/xmas-advent-calendar-public.css' type='text/css' media='all' />
- <link rel='stylesheet' id='font-body-css' href='https://fonts.googleapis.com/css?family=Open+Sans' type='text/css' media='screen, projection' />
- <link rel='stylesheet' id='style-fontawesome-css' href='https://oober.tv/wp-content/themes/primashop-wc/style-fontawesome.min.css' type='text/css' media='screen, projection' />
- <link rel='stylesheet' id='style-theme-parent-css' href='https://oober.tv/wp-content/themes/primashop-wc/style.css' type='text/css' media='all' />
- <link rel='stylesheet' id='style-theme-css' href='https://oober.tv/wp-content/themes/my-primashop-wc/style.css' type='text/css' media='all' />
- <link rel='stylesheet' id='style-responsive-parent-css' href='https://oober.tv/wp-content/themes/primashop-wc/style-responsive.css' type='text/css' media='all' />
- <link rel='stylesheet' id='style-responsive-css' href='https://oober.tv/wp-content/themes/my-primashop-wc/style-responsive.css' type='text/css' media='all' />
- <form action="" method="POST" enctype="multipart/form-data">
- <input type="hidden" name="action" value="submit">
- Your username:<br>
- <input name="name" type="text" value="" size="30"/><br>
- Your password:<br>
- <input name="pass" type="text" value="" size="30"/><br>
- <input type="submit" value="Generate playlist"/><br>
- <?php echo $downloadErr;?>
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement