Example #1
0
function get_local_time_zone()
{
    $link = "http://www.ip2location.com";
    $string = str_between(g_file($link), ">Time Zone</label></td>", "</tr>");
    $string = str_between($string, '<label for="chkTimeZone">', "</label>");
    return $string;
}
function mylink($string)
{
    $html = file_get_contents($string);
    $l = str_between($html, 'value=&quot;', '&');
    if ($l != "") {
        $file = get_headers($l);
        foreach ($file as $key => $value) {
            if (strstr($value, "Location")) {
                $url = ltrim($value, "Location: ");
                $link1 = str_between($url, "file=", "&");
            }
            // end if
        }
        // end foreach
        if ($link1 != "") {
            return $link1;
        }
    }
}
Example #3
0
function pr_func_call($file, $line, $ofp = stdout)
{
    $alt_line = str_replace(" ", "", $line);
    $x = str_between("=", "(", $line);
    if (!isset($x)) {
        return;
    }
    $x = trim($x);
    $y = strtolower($x);
    $Y = str_split($y);
    $to_pr = true;
    for ($i = 0; $i < count($Y); $i++) {
        if (ctype_alnum($Y[$i]) === true || $Y[$i] == "_") {
            /* all is well */
        } else {
            $to_pr = false;
            break;
        }
    }
    if ($to_pr === true) {
        fprintf($ofp, "%s,%s\n", $file, $x);
    }
}
Example #4
0
function get_movie($noob1, $s, $id1, $auth1, $hd1, $tv1, $id1)
{
    $i = $s;
    if ($tv1 == "1") {
        $hd1 = "0";
    }
    $l = $noob1 . "/fork.php?type=flv&auth=" . $auth1 . "&loc=" . $i . "&hd=" . $hd1 . "&tv=" . $tv1;
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $l);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    //curl_setopt($ch, CURLOPT_FOLLOWLOCATION  ,1);
    curl_setopt($ch, CURLOPT_HEADER, 1);
    curl_setopt($ch, CURLOPT_NOBODY, 1);
    curl_setopt($ch, CURLOPT_COOKIEFILE, "/tmp/noobroom.txt");
    curl_setopt($ch, CURLOPT_REFERER, $noob1 . "/player.swf");
    curl_setopt($ch, CURLOPT_HTTPHEADER, array("Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Language: ro-ro,ro;q=0.8,en-us;q=0.6,en-gb;q=0.4,en;q=0.2", "Accept-Encoding: gzip, deflate"));
    curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 5.1; rv:14.0) Gecko/20100101 Firefox/14.0.1');
    $html = curl_exec($ch);
    curl_close($ch);
    $link = trim(str_between($html, "Location:", "/index.php"));
    $movie_link = $link . "/index.php?file=" . $id1 . "&start=0&type=flv&hd=" . $hd1 . "&auth=" . $auth1 . "&tv=" . $tv1;
    return $movie_link;
}
    $len = strpos($string, $end, $ini) - $ini;
    return substr($string, $ini, $len);
}
$videos = explode('<div class="video">', $html);
unset($videos[0]);
$videos = array_values($videos);
foreach ($videos as $video) {
    $t1 = explode('href="', $video);
    $t2 = explode('"', $t1[1]);
    $link = "http://www.redtube.com" . $t2[0];
    $link = $host . "/scripts/adult/php/redtube_link.php?file=" . $link;
    $t1 = explode("src='", $video);
    $t2 = explode("'", $t1[1]);
    $image = $t2[0];
    $title = str_between($video, 'title="', '"');
    $data = trim(str_between($video, '<span class="d">', "<"));
    $data = "Durata: " . $data;
    $name = preg_replace('/[^A-Za-z0-9_]/', '_', $title) . ".flv";
    echo '
    <item>
    <title>' . $title . '</title>
    <onClick>
    <script>
    showIdle();
    url="' . $link . '";
    movie=getUrl(url);
    cancelIdle();
    streamArray = null;
    streamArray = pushBackStringArray(streamArray, "");
    streamArray = pushBackStringArray(streamArray, "");
    streamArray = pushBackStringArray(streamArray, movie);
Example #6
0
    $len = strpos($string, $end, $ini) - $ini;
    return substr($string, $ini, $len);
}
$cookie = "/tmp/futubox_c.txt";
//$cookie="D://futubox_c.txt";
$serv = "s01";
$link = urldecode($link);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $link);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 GTB5');
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie);
$html = curl_exec($ch);
curl_close($ch);
$sid = str_between($html, 'url_key:encodeURIComponent("', '"');
//$y=str_between($html,'setChannel("','"');
$h1 = explode("this.setChannel", $html);
preg_match_all("/z\\d{6}/", $h1[1], $m);
$ch = $m[0];
if ($ch[1]) {
    if ($server == "HD") {
        $y = $ch[0];
    } else {
        $y = $ch[1];
    }
} else {
    $y = $ch[0];
}
$y = $y . ".stream" . $sid;
$rtmp = "rtmp://" . $serv . ".webport.tv:1935/live";
	<menu>main menu</menu>
<?php 
function str_between($string, $start, $end)
{
    $string = " " . $string;
    $ini = strpos($string, $start);
    if ($ini == 0) {
        return "";
    }
    $ini += strlen($start);
    $len = strpos($string, $end, $ini) - $ini;
    return substr($string, $ini, $len);
}
$html = file_get_contents("http://www.hardsextube.com/categories/");
$img = "image/movies.png";
$html = str_between($html, '<div class="catfloat"', '</table>');
$videos = explode('href="', $html);
unset($videos[0]);
$videos = array_values($videos);
foreach ($videos as $video) {
    $t3 = explode(">", $video);
    $t4 = explode("<", $t3[1]);
    $title = trim($t4[0]);
    if (strpos($video, "?search=") !== false && $title != "") {
        $link = str_replace(" ", "%20", $title);
        $link = $host . "/scripts/adult/php/hardsextube.php?query=1," . trim(strtolower($link));
        echo '
  	<item>
  		<title>' . $title . '</title>
  		<link>' . $link . '</link>
  	</item>';
#!/usr/local/bin/Resource/www/cgi-bin/php
<?php 
function str_between($string, $start, $end)
{
    $string = " " . $string;
    $ini = strpos($string, $start);
    if ($ini == 0) {
        return "";
    }
    $ini += strlen($start);
    $len = strpos($string, $end, $ini) - $ini;
    return substr($string, $ini, $len);
}
$link = $_GET["file"];
$html = file_get_contents($link);
$link = str_between($html, 'url":"', '"');
print $link;
Example #9
0
<link>' . $url . '</link>
<annotation>Předchozí strana</annotation>
<durata></durata>
<pub></pub>
<mediaDisplay name="threePartsView"/>
</item>';
}
$videos = explode('<entry>', $html);
unset($videos[0]);
$videos = array_values($videos);
foreach ($videos as $video) {
    $id = str_between($video, "<id>http://gdata.youtube.com/feeds/api/videos/", "</id>");
    $title = str_between($video, "<title type='text'>", "</title>");
    $descriere = str_between($video, "<content type='text'>", "</content>");
    $durata = sec2hms(str_between($video, "duration='", "'"));
    $data = str_between($video, "<updated>", "</updated>");
    $data = str_replace("T", " ", $data);
    $data = str_replace("Z", "", $data);
    $data = explode(" ", $data);
    $data = $data[0];
    $name = preg_replace('/[^A-Za-z0-9_]/', '_', $title) . ".mp4";
    $item['title'] = $title;
    $item['id'] = $id;
    $item['name'] = $name;
    $item['annotation'] = $descriere;
    $item['durata'] = $durata;
    $item['pub'] = $data;
    echo CreateItem($item);
}
$sThisFile = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME'];
$url = $sThisFile . "?query=" . ($page + 25) . ",";
Example #10
0
$videos = explode('<div class="moviebox"', $html);
unset($videos[0]);
$videos = array_values($videos);
foreach ($videos as $video) {
    $t1 = explode('<a href="', $video);
    $t2 = explode('"', $t1[1]);
    $link = "http://www.eporner.com" . $t2[0];
    $link = $host . "/scripts/adult/php/eporner_link.php?file=" . $link;
    $t1 = explode('src="', $video);
    $t2 = explode('"', $t1[1]);
    $image = $t2[0];
    $t1 = explode('title="', $video);
    $t2 = explode('>', $t1[2]);
    $t3 = explode('<', $t2[1]);
    $title = $t3[0];
    $data = str_between($video, '<div class="mitime" >', "</div>");
    $data = preg_replace("/(<\\/?)(\\w+)([^>]*>)/e", "", $data);
    echo '
  <item>
  <title>' . $title . '</title>
  <link>' . $link . '</link>
  <image>' . $image . '</image>
  <annotation>' . $data . '</annotation>
  <media:thumbnail url="' . $image . '" />
  <mediaDisplay name="threePartsView"/>
  </item>
  ';
}
?>

<item>
Example #11
0
}
$videos = explode('<div class="vidbox">', $html);
unset($videos[0]);
$videos = array_values($videos);
foreach ($videos as $video) {
    $t1 = explode('a href="', $video);
    $t2 = explode('"', $t1[1]);
    $link = "http://www.flytube.com" . $t2[0];
    $t1 = explode('src="', $video);
    $t2 = explode('"', $t1[1]);
    $image = $t2[0];
    $t1 = explode('alt="', $video);
    $t2 = explode('"', $t1[1]);
    $title = htmlspecialchars_decode($t2[0]);
    $link = $host . '/scripts/adult/php/flytube_link.php?file=' . $link;
    $data = "Durata: " . str_between($video, '<div class="box-left">', "<");
    $name = preg_replace('/[^A-Za-z0-9_]/', '_', $title) . ".flv";
    echo '
    <item>
    <title>' . $title . '</title>
    <onClick>
    <script>
    showIdle();
    url="' . $link . '";
    movie=getUrl(url);
    cancelIdle();
    storagePath = getStoragePath("tmp");
    storagePath_stream = storagePath + "stream.dat";
    streamArray = null;
    streamArray = pushBackStringArray(streamArray, "");
    streamArray = pushBackStringArray(streamArray, "");
#!/usr/local/bin/Resource/www/cgi-bin/php
<?php 
function str_between($string, $start, $end)
{
    $string = " " . $string;
    $ini = strpos($string, $start);
    if ($ini == 0) {
        return "";
    }
    $ini += strlen($start);
    $len = strpos($string, $end, $ini) - $ini;
    return substr($string, $ini, $len);
}
$link = $_GET["file"];
$html = file_get_contents($link);
$link = str_between($html, 'file=', '&');
print $link;
<channel>
	<title>www.990.ro - filme pe ani</title>
<?php 
function str_between($string, $start, $end)
{
    $string = " " . $string;
    $ini = strpos($string, $start);
    if ($ini == 0) {
        return "";
    }
    $ini += strlen($start);
    $len = strpos($string, $end, $ini) - $ini;
    return substr($string, $ini, $len);
}
$html = file_get_contents("http://www.990.ro");
$html = str_between($html, "Filme dupa ani", "</ul>");
$host = "http://127.0.0.1:82";
$image = "image/movies.png";
$videos = explode("<li>", $html);
unset($videos[0]);
$videos = array_values($videos);
foreach ($videos as $video) {
    $t1 = explode('a href="', $video);
    $t2 = explode('"', $t1[1]);
    $link = "http://www.990.ro/" . $t2[0];
    $pos = strlen(substr(strrchr($link, "-"), 1));
    $link = substr($link, 0, -$pos);
    $t1 = explode('title="', $video);
    $t2 = explode('"', $t1[1]);
    $title = $t2[0];
    $link = $host . "/scripts/filme/php/990_filme.php?query=," . $link;
}
$videos = explode('<div class="itemContainer">', $html);
unset($videos[0]);
$videos = array_values($videos);
foreach ($videos as $video) {
    $t1 = explode('href="', $video);
    $t2 = explode('"', $t1[4]);
    $link = $t2[0];
    $t1 = explode('src="', $video);
    $t2 = explode('"', $t1[1]);
    $image = $t2[0];
    $t1 = explode('title="Permalink of &quot;', $video);
    $t2 = explode('&', $t1[1]);
    $title = $t2[0];
    if (strpos($link, "mp4") !== false) {
        $data = trim(str_between($video, '"postedDate">', "<"));
        $name = preg_replace('/[^A-Za-z0-9_]/', '_', $title) . ".mp4";
        echo '
	<item>
	<title>' . $title . '</title>
    <onClick>
    <script>
    showIdle();
    url="' . $link . '";
    cancelIdle();
    storagePath = getStoragePath("tmp");
    storagePath_stream = storagePath + "stream.dat";
    streamArray = null;
    streamArray = pushBackStringArray(streamArray, "");
    streamArray = pushBackStringArray(streamArray, "");
    streamArray = pushBackStringArray(streamArray, url);
#!/usr/local/bin/Resource/www/cgi-bin/php
<?php 
function str_between($string, $start, $end)
{
    $string = " " . $string;
    $ini = strpos($string, $start);
    if ($ini == 0) {
        return "";
    }
    $ini += strlen($start);
    $len = strpos($string, $end, $ini) - $ini;
    return substr($string, $ini, $len);
}
$link = $_GET["file"];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $link);
curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$h = curl_exec($ch);
curl_close($ch);
$link = str_between($h, 'vPlayer.swf?f=', '"');
$h = file_get_contents($link);
$link = str_between($h, "<src>", "</src>");
print $link;
#!/usr/local/bin/Resource/www/cgi-bin/php
<?php 
function str_between($string, $start, $end)
{
    $string = " " . $string;
    $ini = strpos($string, $start);
    if ($ini == 0) {
        return "";
    }
    $ini += strlen($start);
    $len = strpos($string, $end, $ini) - $ini;
    return substr($string, $ini, $len);
}
$link = $_GET["file"];
$html = file_get_contents($link);
$link = "http://tvt89.bridgeman.ro/" . str_between($html, "file=", "&");
$link = str_replace(' ', '%20', $link);
print $link;
Example #17
0
#!/usr/local/bin/Resource/www/cgi-bin/php
<?php 
function str_between($string, $start, $end)
{
    $string = " " . $string;
    $ini = strpos($string, $start);
    if ($ini == 0) {
        return "";
    }
    $ini += strlen($start);
    $len = strpos($string, $end, $ini) - $ini;
    return substr($string, $ini, $len);
}
$link = $_GET["file"];
$html = file_get_contents($link);
$link = str_between($html, "formatCode: 1002, url: '", "'");
$link = str_replace('\\x3a', ':', $link);
$link = str_replace('\\x2f', '/', $link);
$link = str_replace(' ', '%20', $link);
print $link;
#!/usr/local/bin/Resource/www/cgi-bin/php
<?php 
function str_between($string, $start, $end)
{
    $string = " " . $string;
    $ini = strpos($string, $start);
    if ($ini == 0) {
        return "";
    }
    $ini += strlen($start);
    $len = strpos($string, $end, $ini) - $ini;
    return substr($string, $ini, $len);
}
//http://cdn1.public.spankwire.phncdn.com/201302/03/710331/240P_300K_710331.mp4?nvb=20130313050647&nva=20130313070647&hash=092d1bf49464a25c3681b
//iframe src="http://www.spankwire.com/EmbedPlayer.aspx?ArticleId=710331
$link = $_GET["file"];
$html = file_get_contents($link);
$link = str_between($html, "file: '", "'");
if ($link == "") {
    $l1 = str_between($html, 'iframe src="', '"');
    $h = file_get_contents($l1);
    $link = urldecode(str_between($h, 'flashvars.video_url = "', '"'));
}
print $link;
Example #19
0
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
    curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookies.txt');
    curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt');
    $html = curl_exec($ch);
    curl_close($ch);
    /**################ All links ################**/
    if (preg_match_all("/(http\\b.*?)(\"|\\')+/i", $html, $matches)) {
        $links = $matches[1];
    }
    for ($i = 0; $i < count($links); $i++) {
        $cur_link = $links[$i];
        if (preg_match($s, $cur_link)) {
            if ($cur_link != $last_link) {
                if (!preg_match("/facebook|twitter|img\\.youtube/", $cur_link)) {
                    $link = "http://127.0.0.1/cgi-bin/scripts/filme/php/link1.php?file=" . urlencode($cur_link);
                    $server = str_between($cur_link, "http://", "/");
                    $last_link = $cur_link;
                    $title = $server . " - part2 - With seek - SDK4";
                    echo '
	    <item>
	    <title>' . $title . '</title>
        <onClick>
        <script>
        showIdle();
        movie="' . $link . '";
        url=getUrl(movie);
        cancelIdle();
        streamArray = null;
        streamArray = pushBackStringArray(streamArray, "");
        streamArray = pushBackStringArray(streamArray, "");
        streamArray = pushBackStringArray(streamArray, url);
#!/usr/local/bin/Resource/www/cgi-bin/php
<?php 
function str_between($string, $start, $end)
{
    $string = " " . $string;
    $ini = strpos($string, $start);
    if ($ini == 0) {
        return "";
    }
    $ini += strlen($start);
    $len = strpos($string, $end, $ini) - $ini;
    return substr($string, $ini, $len);
}
$link = $_GET["file"];
$html = file_get_contents($link);
$link = urldecode(str_between($html, 's1.addParam("flashvars","file=', '&'));
print $link;
Example #21
0
unset($videos[0]);
$videos = array_values($videos);
foreach ($videos as $video) {
    $t1 = explode('itemprop="genre">', $video);
    $t2 = explode("<", $t1[1]);
    $gen .= trim($t2[0]) . " | ";
}
$gen = substr($gen, 0, -2);
$gen = trim(preg_replace("/(<\\/?)(\\w+)([^>]*>)/e", "", $gen));
$gen = str_replace("&nbsp;", "", $gen);
$gen = str_replace("\n", "", $gen);
$gen = str_replace("\t", "", $gen);
$gen = str_replace("  ", "", $gen);
//$gen="Gen: ".$gen;
//echo $gen;
$desc = trim(str_between($html, '<p itemprop="description">', "</p>"));
$desc = str_replace("&#x27;", "'", $desc);
$desc = str_replace("&nbsp;", " ", $desc);
$desc = str_replace("&raquo;", ">>", $desc);
$desc = str_replace("&#xE9;", "e", $desc);
$desc = str_replace("&#xCE;", "I", $desc);
$desc = str_replace("&#xEE;", "i", $desc);
$desc = str_replace("&#xE2;", "a", $desc);
$desc = trim(preg_replace("/<(.*)>|(\\{(.*)\\})/e", "", $desc));
$ttxml .= $tit . "\n";
//title
$ttxml .= $year . "\n";
//an
$ttxml .= $img . "\n";
//image
$ttxml .= $gen . "\n";
Example #22
0
    $s = str_replace("%26", "&", $s);
    $s = str_replace("%3B", ";", $s);
    $s = str_replace("%2F", "/", $s);
    $s = str_replace("%23", "#", $s);
    $s = str_replace("%5B", "[", $s);
    $s = str_replace("%5D", "]", $s);
    return $s;
}
$h = file_get_contents("http://hdforall.googlecode.com/files/rtmp_last.xml");
$videos = explode('<item', $h);
unset($videos[0]);
$videos = array_values($videos);
foreach ($videos as $video) {
    $title = str_between($video, "<title>", "</title>");
    $url = str_between($video, '<url>', '</url>');
    $titlu = str_between($video, '<titlu>', '</titlu>');
    echo '
    <item>
    <title>' . $title . '</title>
    <onClick>
    <script>
    showIdle();
    url="' . $url . '";
    titlu="' . $titlu . '";
    cancelIdle();
    playItemUrl(url,10);
    </script>
    </onClick>
    <annotation>' . $titlu . '</annotation>
    <link1>' . urlencode($url) . '</link1>
    <title1>' . urlencode($title) . '</title1>
Example #23
0
    return substr($string, $ini, $len);
}
$file = $_GET["file"];
$html = file_get_contents("http://www.bing.com/videos/browse/source/fox-sports-fox-soccer-fsc?q=browse:source/fox+sports%3afox_soccer_fsc");
$videos = explode('<li class="vxp_gallery_item"', $html);
unset($videos[0]);
$videos = array_values($videos);
foreach ($videos as $video) {
    $t1 = explode('href="', $video);
    $t2 = explode('"', $t1[1]);
    $link = $t2[0];
    $t3 = explode('title="', $video);
    $t4 = explode('"', $t3[1]);
    $title = $t4[0];
    $image = "/scripts/tv/image/bing.jpg";
    $durata = trim(str_between($video, '<em class="vxp_gallery_date vxp_tb2">', '</em>'));
    $descriere = $title;
    $name = preg_replace('/[^A-Za-z0-9_]/', '_', $title) . ".wmv";
    echo '
    <item>
    <title>' . $title . '</title>
    <onClick>
    <script>
    showIdle();
    url="' . $host . '/scripts/tv/php/bing_link.php?file=' . $link . '";
    movie=getUrl(url);
    cancelIdle();
    playItemUrl(movie,10);
    </script>
    </onClick>
    <download>' . $link . '</download>
Example #24
0
}
$cat = $_GET["cat"];
echo '
  <title>' . $cat . '</title>
  ';
//http://live.1hd.ro/ondemand.php?categ=Divertisment
$link = "http://live.1hd.ro/ondemand.php?categ=" . $cat;
$html = file_get_contents($link);
$videos = explode('class="slide-wrapper"', $html);
unset($videos[0]);
$videos = array_values($videos);
foreach ($videos as $video) {
    //playondemand.php?server=193.238.58.18&playfile=Ramnic_0.m4v&subtitrare=&
    $server = str_between($video, "server=", "&");
    $file = str_between($video, "playfile=", "&");
    //$file = str_replace(" ","%20",$file);
    $link = "rtmp://" . $server . "/vod/" . $file;
    $link = "http://127.0.0.1/cgi-bin/translate?stream,Content-type:video/mp4," . $link;
    $title = str_between($video, "<h2>", "</h2>");
    echo '
    <item>
    <title>' . $title . '</title>
    <link>' . $link . '</link>
    <enclosure type="video/mp4" url="' . $link . '"/>
    </item>
    ';
}
?>
</channel>
</rss>
Example #25
0
#!/usr/local/bin/Resource/www/cgi-bin/php
<?php 
$link = $_GET["file"];
function str_between($string, $start, $end)
{
    $string = " " . $string;
    $ini = strpos($string, $start);
    if ($ini == 0) {
        return "";
    }
    $ini += strlen($start);
    $len = strpos($string, $end, $ini) - $ini;
    return substr($string, $ini, $len);
}
//http://v.mccont.com/ItemFiles/%5BFrom%20www.metacafe.com%5D%209089514.23935216.4.mp4?__gda__=1347632054_e2fd8a03ea84125650d6b52240cb5b8d
//http://v.mccont.com/ItemFiles/%5BFrom%20www.metacafe.com%5D%209089514.23935216.4.mp4?__gda__=1347632471_9a21f3bbd97a2582f2a985f78b0c9c68
//http://v.mccont.com/ItemFiles/%5BFrom%20www.metacafe.com%5D%209089514.23935216.4.mp4?__gda__=__gda__
$html = file_get_contents($link);
$link = urldecode(str_between($html, '<object classid="', '</object>'));
//echo $link;
$link1 = str_between($link, '"mediaURL":"', '"');
//echo $link1;
$key = str_between($link, 'key":"__gda__","value":"', '"');
$link1 = str_replace('\\/', '/', $link1);
$link1 = str_replace('\\/', '/', $link1);
$link1 = str_replace(' ', '%20', $link1);
$link1 = str_replace('[', '%5B', $link1);
$link1 = str_replace(']', '%5D', $link1);
$link2 = $link1 . "?__gda__=" . $key;
print $link2;
Example #26
0
{
    $string = " " . $string;
    $ini = strpos($string, $start);
    if ($ini == 0) {
        return "";
    }
    $ini += strlen($start);
    $len = strpos($string, $end, $ini) - $ini;
    return substr($string, $ini, $len);
}
$url = "http://livehd.tv/live.php";
$html = file_get_contents($url);
$token = str_between($html, "token':'", "'");
$url2 = "http://livehd.tv/rtmp/flash-mbr.php";
$html2 = file_get_contents($url2);
$server = str_between($html2, "<jwplayer:streamer>", "</jwplayer:streamer>");
?>
<rss version="2.0">
<onEnter>
  startitem = "middle";
  setRefreshTime(1);
</onEnter>

<onRefresh>
  setRefreshTime(-1);
  itemCount = getPageInfo("itemCount");
</onRefresh>

<mediaDisplay name="threePartsView"
	sideLeftWidthPC="0"
	sideRightWidthPC="0"
Example #27
0
#!/usr/local/bin/Resource/www/cgi-bin/php
<?php 
$link = $_GET["file"];
function str_between($string, $start, $end)
{
    $string = " " . $string;
    $ini = strpos($string, $start);
    if ($ini == 0) {
        return "";
    }
    $ini += strlen($start);
    $len = strpos($string, $end, $ini) - $ini;
    return substr($string, $ini, $len);
}
$link = urldecode($link);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $link);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 GTB5');
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
$html = curl_exec($ch);
curl_close($ch);
//$html=file_get_contents($link);
$rtmp = urldecode(str_between($html, "streamer=", "&"));
$y = str_between($html, "file=", "&");
$w = "http://stream.tv-kino.net/player.swf";
$l = "Rtmp-options:-W " . $w . " -y " . $y . "," . $rtmp;
$l = str_replace(" ", "%20", $l);
print $l;
Example #28
0
    }
    $ini += strlen($start);
    $len = strpos($string, $end, $ini) - $ini;
    return substr($string, $ini, $len);
}
$link = "http://www.movie2k.to/genres-movies.html";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $link);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 GTB5');
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt');
$html = curl_exec($ch);
curl_close($ch);
$html = str_between($html, 'TABLE id="tablemovies"', '</TABLE>');
$image = "image/movies.png";
$videos = explode('<TR>', $html);
unset($videos[0]);
$videos = array_values($videos);
foreach ($videos as $video) {
    $t0 = explode('href="', $video);
    $t1 = explode('"', $t0[1]);
    $link = $t1[0];
    $l1 = explode("-", $link);
    $link = $l1[2];
    $t2 = explode('>', $t0[1]);
    $t3 = explode('<', $t2[1]);
    $title = $t3[0];
    if ($link != "" && $title != "") {
        $link = $host . "/scripts/filme/php/movie2k_cat.php?query=1," . $link . "," . urlencode($title);
$videos = explode('<li', $html);
unset($videos[0]);
$videos = array_values($videos);
foreach ($videos as $video) {
    $t1 = explode('href="', $video);
    $t2 = explode('"', $t1[1]);
    $link = $t2[0];
    $t3 = explode(">", $t1[1]);
    $t4 = explode("<", $t3[1]);
    $title = trim($t4[0]);
    if ($title == "") {
        $t3 = explode('title="', $video);
        $t4 = explode('"', $t3[1]);
        $title = trim($t4[0]);
    }
    $data = str_between($video, "<p>", "</p>");
    $data = preg_replace("/(<\\/?)([^>]*>)/e", "", $data);
    $data = trim($data);
    $t1 = explode('src=', $video);
    $t2 = explode('&', $t1[2]);
    $image = $t2[0];
    $link = 'http://127.0.0.1:82/scripts/filme/php/filme_link.php?' . $link . "," . urlencode($title);
    echo '
  <item>
    <link>' . $link . '</link>
    <title>' . $title . '</title>
    <annotation>' . $data . '</annotation>
    <image>' . $image . '</image>
    <media:thumbnail url="' . $image . '" />
    <mediaDisplay name="threePartsView"/>
  </item>';
Example #30
0
    $ini += strlen($start);
    $len = strpos($string, $end, $ini) - $ini;
    return substr($string, $ini, $len);
}
$link = $host . "/scripts/adult/php/redtube.php?query=1,http://www.redtube.com/";
echo '
  	<item>
  		<title>New</title>
  		<link>' . $link . '</link>
  	</item>';
$html = file_get_contents("http://www.redtube.com/channels");
//$html = str_between($html,'<ul class="smallChannels">','</ul>');
$videos = explode('<div class="video">', $html);
unset($videos[0]);
$videos = array_values($videos);
foreach ($videos as $video) {
    $t = explode('href="', $video);
    $t1 = explode('"', $t[1]);
    $link = "http://www.redtube.com" . $t1[0];
    $title = str_between($video, 'title="', '"');
    $link = $host . "/scripts/adult/php/redtube.php?query=1," . $link;
    echo '
  	<item>
  		<title>' . $title . '</title>
  		<link>' . $link . '</link>
  	</item>';
}
?>
</channel>
</rss>