Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function EXTube($url)
- {
- $url = str_replace(' ', '', $url);
- if(!empty($url)):
- curl_setopt($curl = curl_init($url), CURLOPT_RETURNTRANSFER, 1);
- preg_match("/video_url = '([^';]+)/i", curl_exec($curl), $video);
- curl_close($curl);
- $video = str_replace('∫', '&int', $video[1]);
- header("Location: ".urldecode($video));
- endif;
- }
- (!empty($_GET['url'])) ? EXTube($_GET['url']) : 'E o link ?';
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement