Guest viewing is limited
    • You MUST read  Myiptvforum Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.
    • The ONLY language allowed in this forum is ENGLISH and it should be used in ALL POSTS.

    • If you use a proxy server or a VPN for registration or login, your account could be directly banned. The reason is that you may register or login via an IP address that was used by a Members which was banned in the past. The same applies if different users use one device (PC, laptop, smartphone), this will also leads to a ban!
    • If you are banned for using a VPN Contact us by open ticket
    • All new Registrations will be manually approved Please do not use VPN or you will automatically get banned!

I Need Your Help i ned help whit scripts

Currently reading:
I Need Your Help i ned help whit scripts

I Need Your Help

safin

New member
Member
Joined
Dec 30, 2021
Local time
12:36 PM
Threads
8
Messages
18
Reaction score
77
Points
13
Location
Sweden

maverick

New member
Staff member
The Boss
Moderator
Joined
Jun 6, 2020
Local time
11:36 AM
Threads
23
Messages
68
Reaction score
1,203
Points
83
Location
Portugal
you have to be more specific. we are in the time of magic, but here no one can guess what you need...
 

ian

Administrator
Staff member
The Boss
Joined
Apr 4, 2020
Local time
11:36 AM
Threads
632
Messages
2,036
Reaction score
9,994
Points
153
Location
UK
OP
S

safin

New member
Member
Joined
Dec 30, 2021
Local time
12:36 PM
Threads
8
Messages
18
Reaction score
77
Points
13
Location
Sweden
i make this scrips to my xc ui panal befor is working good but now is not working i ned help how i can fix this agen


<?php

//http://127.0.0.1/karwan.php?id=kurdsat-news-tv

$id=$_GET['id'];

$d='
Please, Log in or Register to view URLs content!


$post= post($d);

$post2=search($post,'src="/live/','"');

$url='https://karwan.tv/live/'.$post2;

$m3u=post($url);

$m3u8=search($m3u,"hls: '","'");

$m3u8=str_replace('playlist','chunks',$m3u8);

header('Location:'.$m3u8);



function post($po)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $po);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, TRUE);
//curl_setopt($ch, CURLOPT_POSTFIELDS,$po);
//curl_setopt($ch, CURLOPT_COOKIEJAR, dirname(__FILE__).'/CW1');
//curl_setopt($ch, CURLOPT_COOKIEFILE, dirname(__FILE__).'/CW1');
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch,CURLOPT_ENCODING, 'gz');
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3',
'Accept-Encoding: gzip, deflate, br',
'Accept-Language: es-ES,es;q=0.9,fr;q=0.8',
'Cache-Control: max-age=0',
'Connection: keep-alive',
'Host: karwan.tv',
'Referer:
Please, Log in or Register to view URLs content!
',
'Sec-Fetch-Mode: navigate',
'Sec-Fetch-Site: same-origin',
'Sec-Fetch-User: ?1',
'Upgrade-Insecure-Requests: 1',
'User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36'

));

$response = curl_exec($ch);
curl_close($ch);
return $response ;
}

function post2($po)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $po);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, TRUE);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch,CURLOPT_ENCODING, 'gz');
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3',
'Accept-Encoding: gzip, deflate, br',
'Accept-Language: es-ES,es;q=0.9,fr;q=0.8',
'Cache-Control: max-age=0',
'Connection: keep-alive',
'Host: karwan.tv',
'Referer:
Please, Log in or Register to view URLs content!
',
'Sec-Fetch-Mode: navigate',
'Sec-Fetch-Site: same-origin',
'Sec-Fetch-User: ?1',
'Upgrade-Insecure-Requests: 1',
'User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36'

));

$response = curl_exec($ch);
curl_close($ch);
return $response ;
}


function search($target, $start, $end){
$start_at = strpos($target, $start) + strlen($start);
$target = substr($target,$start_at);
$end_at = strpos($target, $end);
return substr($target, 0, $end_at);
}



?>
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Top