• 05-09-2014, 23:50:56
    #1
    Kimlik doğrulama veya yönetimden onay bekliyor.
    İyi günler arkadaşlar. bayağı zamanımı aldı ama sanırım birşeyler çıkarttım ortaya

    DEMO:http://teknolojihaberi.org/ytplayer2...ch=ZZ2cftjyHys

    Sondaki video id değerine göre çalışır.(ZZ2cftjyHys) Scriptin içindeki sitem.com adresi yerine kendi adresinizi yazmayı unutmayın.

    <?php
    session_start();
    if ($_GET["gvl"]) {
    while(readfile('http://www.youtube.com/get_video_info?video_id='.$_GET['gvl'].'')=="") {
    readfile('http://www.youtube.com/get_video_info?video_id='.$_GET['gvl'].'');
    }
    }
    else if ($_GET["v"]) {
    function pmall($b,$s,$d){
    preg_match("#$b(.*?)$s#si",$d,$sd);
    return $sd[1];
    }
    function get_video($vd) {
    preg_match_all('#&url=(.*?)&url=#si',$vd,$b);
    for ($a=0;$a<=count($b[1])-1;$a++) {
    $ex=explode('fallback_host=',$b[1][$a]);
    if ($ex[1]!="") {
    $ex2=explode('video/mp4',$b[1][$a]);
    if ($ex2[1]!="") {
    return $b[1][$a];
    break;
    } else {
    $ex3=explode('video/webm',$b[1][$a]);
    if ($ex3[1]!="") {
    return $b[1][$a];
    break;
    }
    }
    }
    }
    }
    $a=str_replace('%2C',',',urldecode(str_replace('%25','%',file_get_contents('http://sitem.com/getvideo.php?gvl='.$_GET["v"].''))));
    $rr=explode('errorcode=',$a);
    if ($rr[1]!="") {
    function crl($data){
    $ch = curl_init();
    curl_setopt($ch,CURLOPT_URL,"http://m.youtube.com/watch?v=".$data.""); 
    curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
    curl_setopt($ch,CURLOPT_REFERER,"https://www.google.com.tr"); 
    curl_setopt($ch,CURLOPT_USERAGENT,"Mozilla/5.0 (iPad; U; CPU OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B334b Safari/531.21.10");
    $aa=curl_exec($ch);
    curl_close($ch);
    $a=str_replace('\\\\u0026','&',htmlspecialchars(urldecode($aa)));
    @$b=@explode('&url=',$a);
    @$b=@explode('&url=',$b[1]);
    $b1=urldecode($b[0]);
    return $b1;
    }
    $b=crl($_GET["v"]);
    while($b==""){
    $b=crl($_GET["v"]);
    }
    $b1=pmall("http://",".com/videoplayback?",$b);
    $b2=pmall("sver=","&",$b);
    $b3=pmall("sparams=","&",$b);
    $b4=pmall("key=","&",$b);
    $b5=pmall("fexp=","&",$b);
    $b6=pmall("signature=","&",$b);
    $b7=pmall("mt=","&",$b);
    $b8=explode(',',$b3);
    echo "http://$b1.com/videoplayback?mt=$b7&fexp=$b5&sver=$b2&sparams=";
    for ($z=0;$z<=count($b8)-1;$z++) {
    if (substr($b8[$z],0,3)!="fal") {
    if ($z!=count($b8)-1) {
    echo $b8[$z].",";
    } else {
    echo $b8[$z]."";
    }
    }
    }
    echo "&signature=$b6&key=yt5";
    $f=explode('sparams=',$b);
    $f=explode('&',$f[1]);
    $f=explode(',',$f[0]);
    for ($r=0;$r<=count($f)-1;$r++) {
    $g=pmall("$f[$r]=","&",$b);
    if ($f[$r]=="ms") {
    echo "&ms=au";
    } else {
    $s1=explode(',',$g);
    if ($s1[1]!="") {
    echo "&".$f[$r]."=".$s1[0]."";
    } else {
    echo "&".$f[$r]."=".$g."";
    }
    }
    }
    } else {
    $b=get_video($a);
    while($b=="") {
    $b=get_video($a);
    }
    $b1=pmall("http://",".com/videoplayback?",$b);
    $b2=pmall("sver=","&",$b);
    $b3=pmall("sparams=","&",$b);
    $b4=pmall("key=","&",$b);
    $b5=pmall("fexp=","&",$b);
    $b6=pmall("signature=","&",$b);
    $b7=pmall("mt=","&",$b);
    $b8=explode(',',$b3);
    echo "http://$b1.com/videoplayback?mt=$b7&fexp=$b5&sver=$b2&sparams=";
    for ($z=0;$z<=count($b8)-1;$z++) {
    if (substr($b8[$z],0,3)!="fal") {
    if ($z!=count($b8)-1) {
    echo $b8[$z].",";
    } else {
    echo $b8[$z]."";
    }
    }
    }
    echo "&signature=$b6&key=yt5";
    $f=explode('sparams=',$b);
    $f=explode('&',$f[1]);
    $f=explode(',',$f[0]);
    for ($r=0;$r<=count($f)-1;$r++) {
    $g=pmall("$f[$r]=","&",$b);
    if ($f[$r]=="ms") {
    echo "&ms=au";
    } else {
    $s1=explode(',',$g);
    if ($s1[1]!="") {
    echo "&".$f[$r]."=".$s1[0]."";
    } else {
    echo "&".$f[$r]."=".$g."";
    }
    }
    }
    }
    }
    else if ($_GET['watch']) {
    function getvid($data){
    $a=file_get_contents("http://sitem.com/getvideo.php?v=$data");
    $_SESSION["lnk"]=$a;
    $r=explode('clen=',$a);
    return $r[1];
    }
    $t=getvid($_GET['watch']);
    while($t!="") {
    $t=getvid($_GET['watch']);
    }
    /*header("Content-type: video/webm;video/mp4");
    header('Content-disposition: inline');
    header("Content-Transfer-Encoding:* binary");
    readfile($_SESSION["lnk"]);*/
    header("Location:{$_SESSION['lnk']}");
    } else {
    die();
    }
    ?>
  • 05-09-2014, 23:56:49
    #2
    Teşekkürler reiz baya iş görür bu