işine yaraması dilegiyle

<?php
// Code : Kedinet
// Mail :kadir@projeman.com
// Scripts Name : Youtube Replace Scripts
// Date : 05/02/2010
// ornek dosya konumu ytvideo.php?v=7z4KST71sRs&hd=ok hd istiyorsanız sonuna "&hd=ok" yazmanız yeterli 
                        $ytid   = $_GET["video"];
						$ytid = str_replace('.flv','',$ytid);
						if($_GET["hd"]=="ok") {
						$mime_type	= 'video/x-mp4';
						$sitem = file_get_contents("http://bot.projeman.com/ytreplace_server.php?v=$ytid&fmt=18");
						} else {
						$mime_type	= 'video/x-flv';
						$sitem = file_get_contents("http://bot.projeman.com/ytreplace_server.php?v=$ytid&fmt=5");
						}
						preg_match('#<yturl>(.*?)</yturl>#i ', $sitem, $ytlink); 
						$file=$ytlink[1];
												
						header("Cache-Control: no-store, no-cache, must-revalidate");
						header("Content-Type: ". $mime_type);
						header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
						header('Location: '. $file);
?>