Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $serie = $_GET['serie'];
- $site = $serie;
- $ch = curl_init($site);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
- $content = curl_exec($ch);
- curl_close($ch);
- $text = preg_replace("/[\r\n]+/", "\n", $content);
- $text = preg_replace("/\s+/", ' ', $text);
- preg_match_all("/(\d+)-stream(?:\?episode=(\d+))?/m", $text, $array);
- for($i=1; $i<count($array[2]); $i++) {
- echo '<pre>'; print_r('<a href=get_files.php?id=' .$array[1][0] ."&" ."ep=" .$array[2][$i] .'>' .$array[2][$i] ."</a>"); echo '</pre>';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement