Page 2 of 3 FirstFirst 123 LastLast
Results 6 to 10 of 13

Thread: Canlı Tv Sitesinden alinan php kod deyistimi

  1. Go to Thank YouDownload #6
    Go to Thank You
    Yeni Üye zmotsan's Avatar

    Info

    Go to Top of Post

    Bu Kodu Nasıl Kullanacağız? Açıklayabilir misiniz?


  2. The Following 8 Users Say Thank You to zmotsan For This Useful Post:

  3. Go to Thank YouDownload #7
    Go to Thank You
    Yönetici yilmaz's Avatar

    Info

    Go to Top of Post

    PHP Code:
    1. <?php
    2. function url_get_contents($Url) {
    3.     $ch curl_init();
    4.     curl_setopt($chCURLOPT_URL$Url);
    5.     curl_setopt($chCURLOPT_HTTPHEADER, array( 'Referer: https://www.canlitv.me' ));
    6.     curl_setopt($chCURLOPT_RETURNTRANSFERtrue);
    7.     curl_setopt($chCURLOPT_FOLLOWLOCATIONtrue);
    8.     $output curl_exec($ch);
    9.     curl_close($ch);
    10.     return $output;
    11. }
    12. function JS_charCodeAt($str$index) {
    13.     $utf16 mb_convert_encoding($str'UTF-16LE''UTF-8');
    14.     return ord($utf16[$index*2]) + (ord($utf16[$index*2+1]) << 8);
    15. }
    16. if (!function_exists('mb_chr')) {
    17.     function mb_chr($ord$encoding 'UTF-8') {
    18.         if ($encoding === 'UCS-4BE') {
    19.             return pack("N"$ord);
    20.         } else {
    21.             return mb_convert_encoding(mb_chr($ord'UCS-4BE'), $encoding'UCS-4BE');
    22.         }
    23.     }
    24. }
    25. function unwise ($w$i$s$e) {
    26.     $lIll 0;
    27.     $ll1I 0;
    28.     $Il1l 0;
    29.     $ll1l = [];
    30.     $l1lI = [];
    31.     while (true) {
    32.         if ($lIll 5) { array_push($l1lI$w{$lIll}); }
    33.         else if ($lIll strlen($w)) { array_push($ll1l$w{$lIll}); }
    34.         $lIll++;
    35.         if ($ll1I 5) { array_push($l1lI$i{$ll1I}); }
    36.         else if ($ll1I strlen($i)) { array_push($ll1l$i{$ll1I}); }
    37.         $ll1I++;
    38.         if ($Il1l 5) { array_push($l1lI$s{$Il1l}); }
    39.         else if ($Il1l strlen($s)) { array_push($ll1l$s{$Il1l}); }
    40.         $Il1l++;
    41.         if (strlen($w) + strlen($i) + strlen($s) + strlen($e) == count($ll1l) + count($l1lI) + strlen($e)) { break; }
    42.     }
    43.     $lI1l join("",$ll1l);
    44.     $I1lI join("",$l1lI);
    45.     $ll1I 0;
    46.     $l1ll = [];
    47.     for ($lIll 0$lIll count($ll1l); $lIll += 2) {
    48.         $ll11 = -1;
    49.         if ( JS_charCodeAt($I1lI$ll1I) % 2) { $ll11 1; }
    50.         array_push($l1llmb_chr(intval(substr($lI1l,$lIll2), 36) - $ll11));
    51.         $ll1I++;
    52.         if ($ll1I >= count($l1lI)) { $ll1I 0; }
    53.     }
    54.     return join("",$l1ll);
    55. }
    56. if (isset($_GET['stream'])) { $stream $_GET['stream']; } else { $stream "1"; }
    57. $page url_get_contents("https://www.canlitv.me/".$_GET['channel']."/".$_GET['stream']);
    58. preg_match_all('#src="(.*?)" frameborder#'$page$iframe);
    59. $coded url_get_contents($iframe[1][0]);
    60. preg_match_all("#\}\('(.*?)','(.*?)','(.*?)','(.*?)'\)\);#"$coded$wise);
    61. $coded =  unwise($wise[1][0], $wise[2][0], $wise[3][0], $wise[4][0]);
    62. preg_match_all("#\}\('(.*?)','(.*?)','(.*?)','(.*?)'\)\);#"$coded$wise);
    63. $coded =  unwise($wise[1][0], $wise[2][0], $wise[3][0], $wise[4][0]);
    64. preg_match_all("#\}\('(.*?)','(.*?)','(.*?)','(.*?)'\)\);#"$coded$wise);
    65. $coded =  unwise($wise[1][1], $wise[2][1], $wise[3][1], $wise[4][1]);
    66. $pos strpos($coded'changeVideo');
    67. if ($pos === false) {
    68.  preg_match_all("#{file: '(.*?)'#"$coded$m3u8);
    69. } else {
    70.  preg_match_all("#changeVideo\('(.*?)'\)#"$coded$m3u8);
    71. }
    72. header("location: ".$m3u8[1][0]);
    73. ?>
    Selam ve Saygılarla İyi Forumlar...



  4. The Following 10 Users Say Thank You to yilmaz For This Useful Post:

  5. Go to Thank YouDownload #8
    Go to Thank You
    Yönetici yilmaz's Avatar

    Info

    Go to Top of Post

    ergün ustam bir üsteki mesajdaki kodu çalışır hale getirdim.

    zmotsan ustam bu php kodeyi php destekleyen bir hosta misal test.php adında kayıt ediyorsun siteadresin/test.php?channel=kanal-7-canli-hd&stream=1
    olarak adresi çalıştırıyorsun o kanalın m3u8 dosyası geliyor.
    Selam ve Saygılarla İyi Forumlar...



  6. The Following 7 Users Say Thank You to yilmaz For This Useful Post:

  7. Go to Thank YouDownload #9
    Go to Thank You
    Kıdemli Üye ergün's Avatar

    Info

    Go to Top of Post

    süpersin yilmaz ustam cok tesekkürler


  8. The Following 5 Users Say Thank You to ergün For This Useful Post:

  9. Go to Thank YouDownload #10
    Go to Thank You
    Kıdemli Üye ergün's Avatar

    Info

    Go to Top of Post

    yilmaz ustam bu kod gine deyisti galiba bir bakabilirmisin


  10. The Following 3 Users Say Thank You to ergün For This Useful Post:

Page 2 of 3 FirstFirst 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •