Can Anyone Intrested to provide me xvideos grabber but for "FREE". I will Be Greatful to That Coder Because it Again REMIND me Old Coding-Talk Days When Lots Of Things are avaliable for FREE here.
Request For xvideos grabber
Collapse
X
-
This is where the video link location is.
Get it like:
PHP Code:$str = urldecode('http%3A%2F%2Fporn.im.b2df2d00.9533237.x.xvideos.com%2Fvideos%2Fflv%2F3%2F2%2F6%2Fxvideos.com_3269213efe0a3ae1107aae46b8aee9a3.flv%3Fe%3D1423581548%26ri%3D1024%26rs%3D85%26h%3De0efd7910d75f29476da021a6aac5e0b');
And the rest is pretty much strait forward with preg-foo, loops and a like ninja stuff.Last edited by arnage; 10.02.15, 12:52.<!DOCTYPE html PUBLIC "-//WAPFORUM.RS
-
Some codes from my site with tree grabbers and link-service, to get an idea...
head.php
PHP Code:<?php
defined('_MYWAPFORUM') or exit('Error');
echo '<!DOCTYPE html>' . NL
. '<html xmlns="http://www.w3.org/1999/xhtml" lang="sr">' . NL
. '<head>' . NL
. '<meta charset="utf-8"/>' . NL
. '<title>' . $title . '</title>' . NL
. '<link rel="stylesheet" type="text/css" media="handheld, screen" href="./style.css"/>' . NL
. '<link rel="shortcut icon" type="image/x-icon" href="./images/favicon.ico"/>' . NL
. '<meta name="google-site-verification" content="uMKDHknFY58IFU5xol6UJCshTaMOonbJm_Tz1jhHxYM"/>' . NL
. '<meta name="googlebot" content="index, follow"/>' . NL
. '<meta name="revisit-after" content="1 days"/>' . NL
. '<meta name="robots" content="index, follow, all"/>' . NL
. '<meta name="rating" content="mature"/>' . NL
. '<meta name="description" content="' . $description . '"/>' . NL
. '<meta name="keywords" content="' . implode(', ', $keywords) . '"/>' . NL
. '<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>' . NL
. '</head>' . NL
. '<body>' . NL
. '<div class="' . (empty($cat) && empty($vid) ? 'body' : 'body2') . '">' . NL;
?>
PHP Code:<?php
defined('_MYWAPFORUM') or exit('Error');
echo '<div class="copy">© ' . (empty($sname) ? $sitename : $sname) . '</div>' . NL;
if (!empty($cat) || !empty($vid))
echo '<div style="text-align: right; vertical-align: middle; font-size: 70%;">' . randomads() . '</div>' . NL;
echo '</div>' . NL;
echo '</body></html>';
?><!DOCTYPE html PUBLIC "-//WAPFORUM.RS
Comment
-
1. grabber, index.php
PHP Code:<?php
define('_MYWAPFORUM', 1);
include 'functions.php';
$navi = str_replace('_', ' ', $cat);
$navi = ucwords($navi);
if ($cat && $page) {
$title= ''.$navi.'';
$url = 'http://mobile.spankwire.com/category/show/name/'.$cat.'/page/'.$page.'';
} elseif ($cat) {
$title= ''.$navi.'';
$url = 'http://mobile.spankwire.com/category/show/name/'.$cat.'';
} else {
$title = 'Mobile Adult Videos';
}
include 'head.php';
echo '<div class="top">Sexy ッ'.(empty($cat) && empty($vid)
? '<a style="float: right; font-size : 0.8em;" href="./indexx'.service_qs(array('adr' => $adress, 'nam' => $sname), '?').'">'.rainbow('NEXT MENU').'</a>' : '').'</div>'.NL;
echo (empty($cat) && empty($vid)
? '<span class="bi" style="float: left; font-size : 0.7em; margin : 0.2em;">'
. '<a href="./service.php'.service_qs(array('adr' => $adress, 'nam' => $sname), '?').'">Wapmasters</a></span>' . NL
: '');
echo '<div class="'.(empty($cat) && empty($vid) ? 'ads' : 'ads2').'">'.capsfirsts($title).''.
($page > 1 ? ' <span style="vertical-align: sub; font-size: 70%;">('.$page.')</span>' : '').'</div>'.NL;
if ($cat == '') {
echo '<div class="menu"><table style="width: 100%;"><tr>
<td style="text-align:left;">
<a href="?cat=amateur'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Amateur</a><br/>
<a href="?cat=anal'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Anal</a><br/>
<a href="?cat=asian'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Asian</a><br/>
<a href="?cat=bbw'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">BBW</a><br/>
<a href="?cat=big_boobs'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Big Boobs</a><br/>
<a href="?cat=blonde'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Blonde</a><br/>
<a href="?cat=blowjob'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Blowjob</a><br/>
<a href="?cat=brunette'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Brunette</a><br/>
</td>
<td style="float: center;">
<a href="?cat=celebrity'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Celebrity</a><br/>
<a href="?cat=dildo_toys'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Dildo/Toys</a><br/>
<a href="?cat=ebony'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Ebony</a><br/>
<a href="?cat=fetish'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Fetish</a><br/>
<a href="?cat=group'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Group</a><br/>
<a href="?cat=hardcore'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Hardcore</a><br/>
<a href="?cat=hentai'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Hentai/Anime</a><br/>
<a href="?cat=interracial'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Interracial</a><br/>
</td>
<td style="text-align:right;">
<a href="?cat=latina'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Latina</a><br/>
<a href="?cat=lesbian'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Lesbian</a><br/>
<a href="?cat=mature'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Mature</a><br/>
<a href="?cat=milf'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Milf</a><br/>
<a href="?cat=porn_stars'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Porn Stars</a><br/>
<a href="?cat=softcore'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Softcore</a><br/>
<a href="?cat=teen'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Teen</a><br/>
<a href="?cat=voyeur'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Voyeur</a>
</td>
</tr>
</table>
</div>';
} elseif ("$cat") {
$result = get_contents($url);
$content = cut($result, '<div class="video_box">', '<div class="clear"></div>');
if (is_array($content)) {
foreach ($content as $v) {
$searchresult = pickup($v);
$arr = explode('/', $searchresult['url']);
$linkurl = 'view?vid='.$arr[4].'&id='.$arr[6];
$stitle = ucfirst(str_replace('_', ' ', $arr[4]));
$stitle = mb_strlen($stitle, ENCODING) > 50
? mb_substr($stitle, 0, 50, ENCODING).'...'
: $stitle;
echo '<div class="menu">'.NL;
echo '<table style="width: 100%">'.NL;
echo '<tr>'.NL;
echo '<td>'.NL;
echo '<div style="float: left; display: inline;">'.NL;
echo '<a href="'.$siteadrs.'/'.$linkurl.''.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">'
.'<img src="'.$searchresult['thumb'].'" width="95" height="85" title="'.$stitle.'" alt="'.$stitle.'"/></a>'.NL;
echo '</div>';
echo '</td>'.NL;
echo '<td>'.NL;
echo '<div style="float: right;"><a href="'.$siteadrs.'/'.$linkurl.''.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">'.$stitle.'</a><br/>';
echo '<span class="s">Length: '.$searchresult['time'].' | Views: '.$searchresult['hits'].'</span></div>';
echo '</td>'.NL;
echo '</tr>'.NL;
echo '</table>'.NL;
echo '</div>'.NL;
}
}
echo '<div class="line">';
if (!$page && $cat) {
$k = $cat;
echo '<a href="'.$dir.'?cat='.$k.'&pg=2'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Next Page »</a>';
} elseif ($page && $cat) {
$p = $page;
$k = $cat;
$i = ($p + 1);
$s = ($p - 1);
echo '<a href="'.$dir.'?cat='.$k.'&pg='.$s.''.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">« Prev Page</a> | <a href="'.$dir.'?cat='.$k.'&pg='.$i.''.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Next Page »</a>';
} else {
$p = $page;
$k = $cat;
$i = ($p + 1);
$s = ($p - 1);
if (!$page) {
echo '<a href="'.$dir.'?pg=2'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Next »</a>';
} else {
echo '<a href="'.$dir.'?pg='.$s.''.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'"> « Prev Page</a> | <a href="'.$dir.'?pg='.$i.''.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Next Page »</a>';
}
}
echo '<form method="post" action="./?cat='.$cat.''.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">' . "\n"
. '<div>' . "\n"
. '<input type="text" name="pg" size="3"/>' . "\n"
. '<input type="submit" value=">>"/>' . "\n"
. '</div>' ."\n"
. '</form>' . "\n";
echo '</div>';
} else {
header('Location: ./');
exit;
}
echo (empty($cat) && empty($vid)
? '<div class="line">WARNING - <span class="c">ADULT CONTENT</span><br/>'.NL
.'<span class="cs">Prohibited for persons under legal age in their respective country</span></div>'
: '<div class="ban"><a href="./'.service_qs(array('adr' => $adress, 'nam' => $sname), '?').'">'
.(!empty($adress) && !empty($sname) ? 'Categories' : 'Home').'</a>'
.(!empty($adress) && !empty($sname) ? ' | <a href="http://'.urlencode($adress).'/">'.convert($sname).'</a>' : '').'</div>').NL;
include 'foot.php';
exit;
?><!DOCTYPE html PUBLIC "-//WAPFORUM.RS
Comment
-
2. grabber, indexx.php
PHP Code:<?php
define('_MYWAPFORUM', 1);
include 'functions.php';
if (!empty($vid) && is_string($vid)) {
if (strpos($vid, '/') !== false) {
$title_link = explode('/', $vid);
$title_link = $title_link[0];
$title = (mb_strlen($title_link, ENCODING) > 30
? capsfirst(str_replace('_', ' ', mb_substr($title_link, 0, 30, ENCODING) . '...'))
: capsfirst(str_replace('_', ' ', $title_link)));
} else exit;
} elseif (!empty($cat) && is_string($cat)) {
if (strpos($cat, '/') !== false) {
$title_cat = explode('/', $cat);
$title = $title_cat[4] !== 'pt' ? capsfirst($title_cat[4]) : 'Browse';
} else exit;
} else {
$title = 'Mobile Adult Videos';
}
include 'head.php';
echo '<div class="top">Sexy ッ' . (empty($cat) && empty($vid)
? '<a style="float: right; font-size : 0.8em;" href="./' . service_qs(array('adr' => $adress, 'nam' => $sname), '?') . '">'
. rainbow('PREVIOUS MENU', true) . '</a>'
: '') . '</div>' . NL;
echo (empty($cat) && empty($vid)
? '<span class="bi" style="float: left; font-size : 0.7em; margin-top : 0.2em;">'
. '<a href="./indexx?cat=/video/browse/order/pt/page/' . service_qs(array('adr' => $adress, 'nam' => $sname), '&') . '">Browse Videos</a></span>' . NL
: '');
$wcurr = !empty($cat) && empty($vid) ? end(explode('/', $cat)) : '';
$curr = ((int) $wcurr > 0 && !$page ? ' <span style="vertical-align: sub; font-size: 70%;">(' . $wcurr . ')</span>'
: ($page ? '<span style="vertical-align: sub; font-size: 70%;">(' . $page . ')</span>' : ''));
echo '<div class="' . (empty($cat) && empty($vid) ? 'ads' : 'ads2') . '">' . capsfirsts($title) . $curr . '</div>' . NL;
if (!empty($cat) && is_string($cat)) {
$file = $page ? get_contents('http://m.tube8.com/' . str_replace(end(explode('/', $cat)), $page, $cat) . '') : get_contents('http://m.tube8.com/' . $cat . '');
$content = $file;
$chunk = explode('<div class="scene_box">', $content);
$count = count($chunk);
for ($i = 1; $i < $count; $i++) {
preg_match('/background: url\((.*)\) no-repeat/i', $chunk[$i], $img);
preg_match('/Click to watch free video: (.*)" title/i', $chunk[$i], $name);
preg_match('/<p>(.*)<\/p>/i', $chunk[$i], $detail);
preg_match('/<p>Views:(.*)<\/p>/i', $chunk[$i], $views);
preg_match('/<a href="\/video\/show\/title\/(.*)\/id\/(.*)" class/i', $chunk[$i], $vids);
preg_match('/class="bold"><span>(.*)<\/span>/i', $chunk[$i], $leng);
echo '<div class="menu">' . NL
. '<table style="width: 100%">' . NL
. '<tr>' . NL
. '<td>' . NL
. '<a href="./indexx?vid='
. $vids[1] . '/id/' . $vids[2] . service_qs(array('adr' => $adress, 'nam' => $sname), '&') . '">'
. '<img src="' . convert($img[1]) . '" alt="' . convert($name[1]) . '" width="95" height="85" title="' . convert($name[1]) . '"/></a>' . NL
. '</td>' . NL
. '<td>' . NL
. '<a href="./indexx?vid='
. $vids[1] . '/id/' . $vids[2] . service_qs(array('adr' => $adress, 'nam' => $sname), '&') . '">'
. (mb_strlen($name[1], ENCODING) > 40
? mb_substr(convert($name[1]), 0, 40, ENCODING) . '...'
: convert($name[1])) . '</a><br/>' . NL
. '<span class="s">Uploaded ' . convert($detail[1]) . '<br/>' . NL
. 'Length: ' . $leng[1] . ' | Views:' . str_replace(' ', ' ', $views[1]) . '<br/>' . NL
. '</span>' . NL
. '</td>' . NL
. '</tr>' . NL
. '</table>' . NL
. '</div>' . NL;
}
$next = pick('<span>...</span>', '<span>...</span>', $file);
$next = str_replace(' <a href="', ' <a href="?cat=', $next);
$next = str_replace(array('<span>', '</span>'), '', $next);
$next = !empty($adress) && !empty($sname)
? str_replace('?cat', '' . service_qs(array('adr' => $adress, 'nam' => $sname), '?') . '&cat', $next) : $next;
echo '<div class="line" style="text-align:center;"><span class="b">' . $next . '</span><br/>' . NL;
$pwcurr = end(explode('/', $cat));
$pcurr = (int) $pwcurr > 0 || $page ? true : false;
if ($pcurr) {
echo '<form method="post" action="./indexx?cat=' . $cat . service_qs(array('adr' => $adress, 'nam' => $sname), '&') . '">' . "\n"
. '<div>' . "\n"
. '<input type="text" name="pg" size="3"/>' . "\n"
. '<input type="submit" value=">>"/>' . "\n"
. '</div>' ."\n"
. '</form>' . "\n";
}
echo '</div>' . "\n";
} elseif (!empty($vid) && is_string($vid)) {
$file = get_contents('http://m.tube8.com/video/show/title/' . $vid . '');
$content = pick('<div id="main_scene_box">', '<div class="video_box_hub_page">', $file);
$vid2 = pick('href="http://cdn', '" class=', $content);
if ($vid2 == '') $vids2 = pick('href="http://im', '" class=', $content);
$img = pick(' style="background: url(', ') no', $content);
$name = pick('alt="Play video ', '"', $content);
echo '<div class="menu">' . NL
. '<a href="http://' . ($vid2 == ''
? 'im' . convert($vids2) . '' : 'cdn' . convert($vid2) . '') . '"><img src="' . $img . '" title="' . convert($name) . '" alt=""/></a><br/>' . NL
. '<span class="i">' . rainbow(convert($name), true) . '</span>' . NL
. '<h4><a href="http://' . ($vid2 == '' ? 'im' . convert($vids2) . '' : 'cdn' . convert($vid2) . '') . '">Download</a></h4>' . NL;
echo '<div class="tab" style="text-align : left;">Related Videos</div>' . NL;
$related = pick('class="h1Title">', '<div class="partner_box">', $file);
$chunks = explode('<div class="scene_box">', $related);
$counts = count($chunks);
for ($i = 1; $i < $counts; $i++) {
preg_match('/background: url\((.*)\) no-repeat/i', $chunks[$i], $img);
preg_match('/Click to watch free video: (.*)" title/i', $chunks[$i], $name);
preg_match('/<p>(.*)<\/p>/i', $chunks[$i], $detail);
preg_match('/<p>Views:(.*)<\/p>/i', $chunks[$i], $views);
preg_match('/<a href="\/video\/show\/title\/(.*)\/id\/(.*)" class/i', $chunks[$i], $vids);
preg_match('/class="bold"><span>(.*)<\/span>/i', $chunks[$i], $leng);
echo '<div class="menu">' . NL
. '<table style="width: 100%">' . NL
. '<tr>' . NL
. '<td>' . NL
. '<a href="./indexx?vid='
. $vids[1] . '/id/' . $vids[2] . service_qs(array('adr' => $adress, 'nam' => $sname), '&') . '">'
. '<img src="' . convert($img[1]) . '" alt="' . convert($name[1]) . '" width="95" height="85" title="' . convert($name[1]) . '"/></a>' . NL
. '</td>' . NL
. '<td>' . NL
. '<a href="./indexx?vid='
. $vids[1] . '/id/' . $vids[2] . service_qs(array('adr' => $adress, 'nam' => $sname), '&') . '">'
. (mb_strlen($name[1], ENCODING) > 40
? mb_substr(convert($name[1]), 0, 40, ENCODING) . '...'
: convert($name[1])) . '</a><br/>' . NL
. '<span class="s">Uploaded ' . convert($detail[1]) . '<br/>' . NL
. 'Length: ' . $leng[1] . ' | Views:' . str_replace(' ', ' ', $views[1]) . '<br/>' . NL
. '</span>' . NL
. '</td>' . NL
. '</tr>' . NL
. '</table>' . NL
. '</div>' . NL;
}
echo '</div>' . NL;
} else {
echo '<div class="menu">' . NL
. '<table style="width: 100%;">' . NL
. '<tr>' . NL
. '<td style="text-align:left;">' . NL
. '<a href="./indexx?cat=/category/show/name/amateur' . service_qs(array('adr' => $adress, 'nam' => $sname), '&') . '">Amateur</a><br/>' . NL
. '<a href="./indexx?cat=/category/show/name/anal' . service_qs(array('adr' => $adress, 'nam' => $sname), '&') . '">Anal</a><br/>' . NL
. '<a href="./indexx?cat=/category/show/name/asian' . service_qs(array('adr' => $adress, 'nam' => $sname), '&') . '">Asian</a><br/>' . NL
. '<a href="./indexx?cat=/category/show/name/blowjob' . service_qs(array('adr' => $adress, 'nam' => $sname), '&') . '">Blowjob</a><br/>' . NL
. '<a href="./indexx?cat=/category/show/name/ebony' . service_qs(array('adr' => $adress, 'nam' => $sname), '&') . '">Ebony</a><br/>' . NL
. '<a href="./indexx?cat=/category/show/name/erotic' . service_qs(array('adr' => $adress, 'nam' => $sname), '&') . '">Erotic</a><br/>' . NL
. '<a href="./indexx?cat=/category/show/name/fetish' . service_qs(array('adr' => $adress, 'nam' => $sname), '&') . '">Fetish</a><br/>' . NL
. '</td>' . NL
. '<td style="float: center; vertical-align: bottom;">' . NL;
$lins = array(
'http://erolist.net/28852.html',
'http://toplistx.com/8318.html',
'http://xtlist.com/8605.html',
'http://sexlist.mobi/8537.html',
'http://kickme.mobi/25117.html'
);
shuffle($lins);
$random = array_rand($lins, 2);
$line = array(
'Kick me',
'More Sex Videos',
'Other Mobile Porn',
'Watch Party Sex',
'XXX Top Sites',
'Free Sexy Download'
);
shuffle($line);
$rands = array_rand($line, 2);
echo '<a href="' . $lins[$random[0]] . '">' . $line[$rands[0]] . '</a><br/>' . NL
. '<a href="'.$lins[$random[1]].'">'.$line[$rands[1]].'</a>' . NL
. '</td>' . NL
. '<td style="text-align:right;">' . NL
. '<a href="./indexx?cat=/category/show/name/hardcore' . service_qs(array('adr' => $adress, 'nam' => $sname), '&') . '">Hardcore</a><br/>' . NL
. '<a href="./indexx?cat=/category/show/name/indian' . service_qs(array('adr' => $adress, 'nam' => $sname), '&') . '">Indian</a><br/>' . NL
. '<a href="./indexx?cat=/category/show/name/latina' . service_qs(array('adr' => $adress, 'nam' => $sname), '&') . '">Latina</a><br/>' . NL
. '<a href="./indexx?cat=/category/show/name/lesbian' . service_qs(array('adr' => $adress, 'nam' => $sname), '&') . '">Lesbian</a><br/>' . NL
. '<a href="./indexx?cat=/category/show/name/mature' . service_qs(array('adr' => $adress, 'nam' => $sname), '&') . '">Mature</a><br/>' . NL
. '<a href="./indexx?cat=/category/show/name/strip' . service_qs(array('adr' => $adress, 'nam' => $sname), '&') . '">Strip</a><br/>' . NL
. '<a href="./indexx?cat=/category/show/name/teen' . service_qs(array('adr' => $adress, 'nam' => $sname), '&') . '">Teen</a><br/>' . NL
. '</td>' . NL
. '</tr>' . NL
. '</table>' . NL
. '</div>' . NL;
}
echo (empty($cat) && empty($vid)
? '<div class="line">WARNING - <span class="c">ADULT CONTENT</span><br/>' . NL
. '<span class="cs">Prohibited for persons under legal age in their respective country</span></div>'
: '<div class="ban"><a href="./indexx' . service_qs(array('adr' => $adress, 'nam' => $sname), '?') . '">'
. (!empty($adress) && !empty($sname) ? 'Categories' : 'Home') . '</a>'
. (!empty($adress) && !empty($sname) ? ' | <a href="http://' . urlencode($adress) . '/">' . convert($sname) . '</a>' : '').'</div>') . NL;
include 'foot.php';
exit;
?><!DOCTYPE html PUBLIC "-//WAPFORUM.RS
Comment
-
3. grabber, ph.php
PHP Code:<?php
define('_MYWAPFORUM', 1);
include 'functions.php';
if (!empty($vid) && is_string($vid)) {
if (strpos($vid, '/') !== false) {
$title_link = explode('/', $vid);
$title_link = $title_link[0];
$title = (mb_strlen($title_link, ENCODING) > 30
? capsfirst(str_replace('_', ' ', mb_substr($title_link, 0, 30, ENCODING).'...'))
: capsfirst(str_replace('_', ' ', $title_link)));
} else exit;
} elseif (!empty($cat) && is_string($cat)) {
if (strpos($cat, '/') !== false) {
$title_cat = explode('/', $cat);
$title = $title_cat[4] !== 'pt' ? capsfirst($title_cat[4]) : 'Browse';
} else exit;
} else {
$title = 'Mobile Adult Videos';
}
include 'head.php';
echo '<div class="top">Sexy ッ'.(empty($cat) && empty($vid)
? '<span style="float: right; font-size : 0.8em;"><a href="./'.service_qs(array('adr' => $adress, 'nam' => $sname), '?').'">'.rainbow('PREVIOUS', true).'</a> | '
.'<a href="./indexx'.service_qs(array('adr' => $adress, 'nam' => $sname), '?').'">'.rainbow('NEXT').'</a></span>'
: '').'</div>'.NL;
echo (empty($cat) && empty($vid)
? '<span class="bi" style="float: left; font-size : 0.7em; margin-top : 0.2em;">'
. '<a href="./ph?cat=/video/browse/order/pt/page/'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Browse Videos</a></span>' . NL
: '');
$wcurr = !empty($cat) && empty($vid) ? end(explode('/', $cat)) : '';
$curr = ((int) $wcurr > 0 && !$page ? ' <span style="vertical-align: sub; font-size: 70%;">('.$wcurr.')</span>'
: ($page ? '<span style="vertical-align: sub; font-size: 70%;">('.$page.')</span>' : ''));
echo '<div class="'.(empty($cat) && empty($vid) ? 'ads' : 'ads2').'">'.$title.$curr.'</div>'.NL;
if (!empty($cat) && is_string($cat)) {
$file = $page ? get_contents('http://m.pornhub.com/'.str_replace(end(explode('/', $cat)), $page, $cat).'') : get_contents('http://m.pornhub.com/'.$cat.'');
$next = pick('<span>...</span>', '<span>...</span>', $file);
$next = str_replace(' <a href="', ' <a href="?cat=', $next);
$next = str_replace(array('<span>', '</span>'), '', $next);
// $content = pick('<center>', '<center>', $file);
$chunk = explode('<div class="video_box">', $file);
$count = count($chunk);
for ($i = 1; $i < $count; $i++) {
preg_match('/background: url\((.*)\) no-repeat/i', $chunk[$i], $img);
preg_match('/alt="(.*)" style=/i', $chunk[$i], $name);
preg_match('/Views:<\/span> (.*)<\/p>/i', $chunk[$i], $views);
preg_match('/<a href="\/video\/show\/title\/(.*)" class=/i', $chunk[$i], $vid);
preg_match('/Length:<\/span> (.*)<\/p>/i', $chunk[$i], $leng);
echo '<div class="menu">'.NL;
echo '<table width="100%">'.NL;
echo '<tr>'.NL;
echo '<td>'.NL;
echo '<a href="./ph?vid='.convert($vid[1]).''.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">'
.'<img src="'.convert($img[1]).'" alt="'.convert($name[1]).'" width="95" height="85" title="'.convert($name[1]).'"/></a>'.NL;
echo '</td>'.NL;
echo '<td>'.NL;
echo '<a href="./ph?vid='.convert($vid[1]).''.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">'
.(mb_strlen($name[1], ENCODING) > 50
? mb_substr(convert($name[1]), 0, 50, ENCODING).'...'
: convert($name[1])).'</a><br/>'.NL;
echo '<span class="s">Length: '.$leng[1].' | Views: '.$views[1].'</span>'.NL;
echo '</td>'.NL;
echo '</tr>'.NL;
echo '</table>'.NL;
echo '</div>'.NL;
}
$next = !empty($adress) && !empty($sname)
? str_replace('?cat', ''.service_qs(array('adr' => $adress, 'nam' => $sname), '?').'&cat', $next) : $next;
echo '<div class="line" style="text-align:center;"><span class="b">'.$next.'</span><br/>'.NL;
$pwcurr = end(explode('/', $cat));
$pcurr = (int) $pwcurr > 0 || $page ? true : false;
if ($pcurr) {
echo '<form method="post" action="./ph?cat=' . $cat . service_qs(array('adr' => $adress, 'nam' => $sname), '&') . '">' . "\n"
. '<div>' . "\n"
. '<input type="text" name="pg" size="3"/>' . "\n"
. '<input type="submit" value=">>"/>' . "\n"
. '</div>' ."\n"
. '</form>' . "\n";
}
echo '</div>' . "\n";
} elseif (!empty($vid) && is_string($vid)) {
$file = get_contents('http://m.pornhub.com/video/show/title/'.$vid.'');
$content = pick('<div id="main_scene_box">', '<strong>Tags', $file);
$vid2 = pick('href="http://cdn', '" class=', $content);
if ($vid2 == '')
$vids2 = pick('href="http://im', '" class=', $content);
$img = pick(' style="background: url(', ') no', $content);
$name = pick('<h1>', '</h1>', $content);
echo '<div class="menu">'.NL;
echo '<a href="http://'.($vid2 == '' ? 'im'.convert($vids2).'' : 'cdn'.convert($vid2).'').'"><img src="'.$img.'" title="'.convert($name).'" alt=""/></a><br/>'.NL;
echo '<span class="i">'.rainbow(convert($name), true).'</span>'.NL;
echo '<h4><a href="http://'.($vid2 == '' ? 'im'.convert($vids2).'' : 'cdn'.convert($vid2).'').'">Download</a></h4>'.NL;
echo '<div class="tab" style="text-align : left;">Related Videos</div>'.NL;
$related = pick('<div style="padding: 0 2px;">', '<div class="partner_box">', $file);
$chunks = explode('<div class="video_box">', $related);
$counts = count($chunks);
for ($i = 1; $i < $counts; $i++) {
preg_match('/background: url\((.*)\) no-repeat/i', $chunks[$i], $img);
preg_match('/alt="(.*)" style=/i', $chunks[$i], $name);
preg_match('/<p>Views: (.*)<\/p>/i', $chunks[$i], $views);
preg_match('/<a href="\/video\/show\/title\/(.*)" class=/i', $chunks[$i], $vid);
preg_match('/<span>Length: (.*)<\/span>/i', $chunks[$i], $leng);
echo '<div class="menu">'.NL;
echo '<table width="100%">'.NL;
echo '<tr>'.NL;
echo '<td>'.NL;
echo '<a href="./ph?vid='.convert($vid[1]).''.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">'
.'<img src="'.convert($img[1]).'" alt="'.convert($name[1]).'" width="95" height="85" title="'.convert($name[1]).'"/></a>'.NL;
echo '</td>'.NL;
echo '<td>'.NL;
echo '<a href="./ph?vid='.convert($vid[1]).''.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">'
.(mb_strlen($name[1], ENCODING) > 50
? mb_substr(convert($name[1]), 0, 50, ENCODING).'...'
: convert($name[1])).'</a><br/>'.NL;
echo '<span class="s">Length: '.$leng[1].' | Views:'.convert(str_replace(' ', ' ', $views[1])).'</span>'.NL;
echo '</td>'.NL;
echo '</tr>'.NL;
echo '</table>'.NL;
echo '</div>'.NL;
}
echo '</div>'.NL;
} else {
echo '<div class="menu">'.NL;
echo '<table style="width: 100%;">'.NL;
echo '<tr>'.NL;
$list = isset($_GET['list']) ? $_GET['list'] : null;
switch($list) {
default:
echo '<div style="float: left; vertical-align: bottom;"><a href="./ph?list=1'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'"><b>E-O</b></a> | '
. '<a href="./ph?list=2'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'"><b>P-W</b></a><br/></div>'.NL;
echo '<td style="text-align: left;">'.NL;
echo '<a href="./ph?cat=/category/show/name/amateur'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Amateur</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/anal'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Anal</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/asian'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Asian</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/ass'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Ass</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/babe'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Babe</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/bbw'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">BBW</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/big_dick'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Big Dick</a><br/>'.NL;
echo '</td>'.NL;
echo '<td style="float: center;">'.NL;
echo '<a href="./ph?cat=/category/show/name/big_tits'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Big Tits</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/blonde'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Blonde</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/blowjob'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Blowjob</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/bondage'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Bondage</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/brunette'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Brunette</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/bukkake'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Bukkake</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/camel_toe'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Camel Toe</a><br/>'.NL;
echo '</td>';
echo '<td style="text-align:right;">'.NL;
echo '<a href="./ph?cat=/category/show/name/celebrity'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Celebrity</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/college'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">College</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/compilation'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Compilation</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/creampie'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Creampie</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/cumshots'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Cumshots</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/dancing'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Dancing</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/double_penetration'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Double Pen</a><br/>'.NL;
echo '</td>';
break;
case 1:
echo '<div style="float: left; vertical-align: bottom;"><a href="./ph'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'"><b>A-D</b></a> | '
. '<a href="./ph?list=2'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'"><b>P-W</b></a><br/></div>'.NL;
echo '<td style="text-align: left;">'.NL;
echo '<a href="./ph?cat=/category/show/name/ebony'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Ebony</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/erotic'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Erotic</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/euro'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Euro</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/female_friendly'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Female Friend</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/fetish'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Fetish</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/gangbang'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Gangbang</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/hd_porn'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">HD Porn</a><br/>'.NL;
echo '</td>'.NL;
echo '<td style="float: center;">'.NL;
echo '<a href="./ph?cat=/category/show/name/handjob'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Handjob</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/hardcore'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Hardcore</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/hentai'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Hentai</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/indian'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Indian</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/interracial'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Interracial</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/japanese'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Japanese</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/latina'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Latina</a><br/>'.NL;
echo '</td>';
echo '<td style="text-align:right;">'.NL;
echo '<a href="./ph?cat=/category/show/name/lesbian'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Lesbian</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/massage'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Massage</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/masturbation'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Masturbation</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/mature'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Mature</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/milf'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Milf</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/orgy'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Orgy</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/outdoor'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Outdoor</a><br/>'.NL;
echo '</td>';
break;
case 2:
echo '<div style="float: left; vertical-align: bottom;"><a href="./ph?list=1'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'"><b>E-O</b></a> | '
. '<a href="./ph'.service_qs(array('adr' => $adress, 'nam' => $sname), '?').'"><b>A-D</b></a><br/></div>'.NL;
echo '<td style="text-align: left;">'.NL;
echo '<a href="./ph?cat=/category/show/name/party'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Party</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/pornstar'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">PornStar</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/pov'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Pov</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/reality'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Reality</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/red_head'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Redhead</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/rough_sex'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Rough Sex</a><br/>'.NL;
echo '</td>'.NL;
echo '<td style="float: center;">'.NL;
echo '<a href="./ph?cat=/category/show/name/sex_facts'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Sex Facts</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/sex_quiz'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Sex Quiz</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/small_tits'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Small Tits</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/solo_male'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Solo Male</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/squirt'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Squirt</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/striptease'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Striptease</a><br/>'.NL;
echo '</td>';
echo '<td style="text-align:right;">'.NL;
echo '<a href="./ph?cat=/category/show/name/teen'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Teen</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/threesome'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Threesome</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/toys'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Toys</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/uniforms'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Uniforms</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/vintage'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">Vintage</a><br/>'.NL;
echo '<a href="./ph?cat=/category/show/name/webcam'.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">WebCam</a><br/>'.NL;
echo '</td>'.NL;
break;
}
echo '</tr>'.NL;
echo '</table>'.NL;
echo '</div>'.NL;
}
echo (empty($cat) && empty($vid)
? '<div class="line">WARNING - <span class="c">ADULT CONTENT</span><br/>'.NL
.'<span class="cs">Prohibited for persons under legal age in their respective country</span></div>'
: '<div class="ban"><a href="./ph'.service_qs(array('adr' => $adress, 'nam' => $sname), '?').'">'
.(!empty($adress) && !empty($sname) ? 'Categories' : 'Home').'</a>'
.(!empty($adress) && !empty($sname) ? ' | <a href="http://'.urlencode($adress).'/">'.convert($sname).'</a>' : '').'</div>').NL;
include 'foot.php';
exit;
?>Last edited by arnage; 10.02.15, 13:22.<!DOCTYPE html PUBLIC "-//WAPFORUM.RS
Comment
-
functions.php
PHP Code:<?php
error_reporting(0);
defined('_MYWAPFORUM') or exit('Error');
define('ENCODING', 'UTF-8');
define('NL', "\n");
$description = 'Download and watch free full length hot videos on your mobile phone!';
$keywords = array(
'video', 'sexy', 'sex', 'porno', 'porn', 'mobile', 'mp4', 'free', 'download', 'phone', 'tube', 'xxx', 'mobile porn', 'hard', 'hard core', 'free mobile porn',
'sex videos', 'video', 'sex tube', 'blackberry', 'android', 'nokia', 'samsung', 'sony ericsson', 'girlfriend', 'amateurs', 'revenge', 'nude', 'pictures',
'girlfriends', 'tits', 'show off', 'herself', 'panties', 'women', 'cute', 'sexy', 'posing', 'casting', 'topless', 'indian', 'japanese', 'asian', 'teen',
'big', 'black'
);
$cat = isset($_GET['cat']) ? convert($_GET['cat']) : null;
$vid = isset($_GET['vid']) ? convert($_GET['vid']) : null;
$id = isset($_GET['id']) ? (int) $_GET['id'] : null;
$page = isset($_GET['pg']) ? (int) $_GET['pg'] : (isset($_POST['pg']) ? (int) $_POST['pg'] : null);
$adress = !empty($_GET['adr']) ? convert($_GET['adr']) : null;
$sname = !empty($_GET['nam']) ? convert($_GET['nam']) : null;
$sitehost = isset($_SERVER['HTTP_HOST']) ? convert($_SERVER['HTTP_HOST']) : '';
$sitename = mb_strtoupper($sitehost);
$siteadrs = 'http://my.wapforum.rs';
function capsfirst($input) {
return mb_strtoupper(mb_substr($input, 0, 1, ENCODING), ENCODING).mb_strtolower(mb_substr($input, 1, mb_strlen($input, ENCODING) - 1, ENCODING), ENCODING);
}
function capsfirsts($string) {
return empty($string) ? '' : preg_replace('/\b(\w)/e', 'capsfirst("$1")', $string);
}
function convert($input) {
return empty($input) ? '' : htmlentities($input, ENT_QUOTES, ENCODING);
}
function pick($start, $stop, $from) {
$from = explode($start, $from);
$from = explode($stop, $from[1]);
$from = $from[0];
return $from;
}
function service_qs($data = array(), $arg) {
global $adress, $sname;
if (isset($data) && is_array($data)) {
$pre = !empty($adress) && !empty($sname) ? $arg : '';
$query = $pre . http_build_query($data, '', '&');
} else {
$query = null;
}
return $query;
}
function pickup($content) {
preg_match("#http://cdn[^\.]+\.image.spankwire.phncdn.com/[^\.]+\.jpg#",$content,$thumb);
preg_match('#<a href="([^"]+)">([^"]+)</a>#is',$content,$url);
preg_match('#<div style="float: right;">([^"]+)</div>#is',$content,$time);
preg_match('#<span>([^"]+)</span>\s+views#is',$content,$hits);
$result['thumb'] = $thumb[0];
$result['url'] = $url[1];
$result['time'] = $time[1];
$result['hits'] = $hits[1];
return $result;
}
function cut($content, $start, $end) {
if ($content && $start && $end) {
$ex = explode($start, $content);
$count = count($ex);
if ($count > 0) {
for ($i = 1; $i < $count; $i++) {
$ex2 = explode($end, $ex[$i]);
$result[] = $ex2[0];
unset($ex2);
}
return $result;
}
}
}
function get_contents($url, $ua = 'Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1', $referer = 'http://www.google.com/') {
if (function_exists('curl_exec')) {
$ua = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : $ua;
// $ua = !empty($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : $ua;
$header[0] = "Accept-Language: en-us,en;q=0.5";
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_USERAGENT, $ua);
curl_setopt($curl, CURLOPT_REFERER, $referer);
curl_setopt($curl, CURLOPT_HTTPHEADER, $header);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_TIMEOUT, 10);
$content = curl_exec($curl);
curl_close($curl);
} else {
$content = file_get_contents($url);
}
return $content;
}
function randomads() {
$userbrowser = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '';
$userbrowser = isset($_SERVER['HTTP_X_OPERAMINI_PHONE_UA']) ? $_SERVER['HTTP_X_OPERAMINI_PHONE_UA'] : $userbrowser;
$userbrowser = isset($_SERVER['HTTP_X_ORIGINAL_USER_AGENT']) ? $_SERVER['HTTP_X_ORIGINAL_USER_AGENT'] : $userbrowser;
$userbrowser = isset($_SERVER['HTTP_X_DEVICE_USER_AGENT']) ? $_SERVER['HTTP_X_DEVICE_USER_AGENT'] : $userbrowser;
$userbrowser = isset($_SERVER['HTTP_X_MOBILE_UA']) ? $_SERVER['HTTP_X_MOBILE_UA'] : $userbrowser;
$userbrowser = isset($_SERVER['HTTP_X_BOLT_PHONE_UA']) ? $_SERVER['HTTP_X_BOLT_PHONE_UA'] : $userbrowser;
$useragent = !empty($userbrowser) ? htmlentities($userbrowser, ENT_QUOTES, 'UTF-8') : 'Browser';
if (strpos($useragent, '/') !== false) {
$agent = explode('/', $useragent);
if (stripos($useragent, 'Mini') !== false) {
$short = $agent[0].'Mini';
}
elseif (stripos($useragent, 'Nokia') !== false) {
if (strcmp($agent[0], 'Mozilla') == 0)
$short = 'Nokia';
else
$short = $agent[0];
}
elseif (stripos($useragent, 'iPhone') !== false) {
$short = 'iPhone';
}
elseif (stripos($useragent, 'MSIE') !== false) {
if (stripos($useragent, 'HTC') !== false)
$short = 'HTC';
elseif (stripos($useragent, 'IEMobile') !== false)
$short = 'WindowsMobile';
else
$short = 'PC';
}
elseif (stripos($useragent, 'Android') !== false) {
if (stripos($useragent, 'HTC') !== false)
$short = 'HTC Android';
else
$short = 'Android';
}
elseif (stripos($useragent, 'BlackBerry') !== false) {
$short = 'BlackBerry';
}
elseif (stripos($useragent, 'lg-') !== false) {
$short = 'LG';
}
elseif (stripos($useragent, 'sie-') !== false) {
$short = 'Siemens';
}
elseif (stripos($useragent, 'Firefox') !== false) {
$short = 'PC';
}
elseif (stripos($useragent, 'Chrome') !== false) {
$short = 'PC';
}
else {
$short = $agent[0];
}
} else {
$short = mb_strlen($useragent, 'UTF-8') > 10 ? mb_substr($useragent, 0, 10, 'UTF-8') : $useragent;
}
$line = array(
'Free '.$short.' Downloads',
'Sexy Videos For '.$short.'',
'Watch On '.$short.' Party Sex',
'Looking For '.$short.' Videos?',
'Find Free '.$short.' Downloads'
);
shuffle($line);
$rands = array_rand($line, 5);
$lins = array(
'http://erolist.net/28852.html',
'http://toplistx.com/8318.html',
'http://xtlist.com/8605.html',
'http://toplistx.com/8318.html',
'http://erolist.net/28852.html'
);
shuffle($lins);
$random = array_rand($lins, 5);
$lines = array(
'<a href="'.$lins[$random[0]].'">'.rainbow($line[$rands[0]], true).'</a>',
'<a href="'.$lins[$random[1]].'">'.rainbow($line[$rands[1]]).'</a>',
'<a href="'.$lins[$random[2]].'">'.rainbow($line[$rands[2]], true).'</a>',
'<a href="'.$lins[$random[3]].'">'.rainbow($line[$rands[3]]).'</a>',
'<a href="'.$lins[$random[4]].'">'.rainbow($line[$rands[4]], true).'</a>'
);
$num = count($lines) - 1;
//srand ((double) microtime() * 1000000);
srand ((float) microtime() * 1000000);
$random = rand(0, $num);
return $randomline = $lines[$random];
}
function rainbow($start = false, $pattern = false) {
if ($start) {
$rainbow = array('#ff0000', '#ff3300', '#ff6600', '#ff9900', '#ffcc00',
'#ffff00', '#ccff00', '#99ff00', '#66ff00', '#33ff00', '#00ff00', '#00ff33',
'#00ff66', '#00ff99', '#00ffcc', '#00ffff', '#00ccff', '#0099ff', '#0066ff',
'#0033ff', '#0000ff', '#3300ff', '#6600ff', '#9900ff', '#cc00ff', '#ff00ff',
'#ff00cc', '#ff0099', '#ff0066', '#ff0033');
$pinkblue = array('#cc0000', '#ff6600', '#ff9900', '#99cc00', '#66cc00',
'#339900', '#339966', '#009999', '#0099cc', '#3399ff', '#3366ff',
'#3333ff', '#3300cc', '#6600cc', '#9900cc', '#cc00cc', '#ff00ff', '#ff00cc',
'#ff0099', '#ff0066', '#ff0033');
$message = strip_tags($start);
if (empty($message)) {
return;
} else {
$message = html_entity_decode($message, ENT_QUOTES | ENT_XHTML, 'UTF-8');
$colorarr = $pattern ? $pinkblue : $rainbow;
$messagearr = preg_split('/(?<!^)(?!$)/u', $message);
$i = 0;
$max = count($colorarr);
foreach ($messagearr as $letter) {
if ($letter != ' ') {
$rainbowmsg .= '<span style="color:'.$colorarr[$i].';">'.convert($letter).'</span>';
} else {
$rainbowmsg .= ' ';
}
$i++;
if ($i == $max) {
$i = 0;
}
}
return $rainbowmsg;
}
}
}
?><!DOCTYPE html PUBLIC "-//WAPFORUM.RS
Comment
-
view.php
PHP Code:<?php
define('_MYWAPFORUM', 1);
include 'functions.php';
if ($vid && $id) {
$scrid = isset($_GET['scr']) ? convert($_GET['scr']) : null;
$stitle = $vid;
$stitle = ucfirst(str_replace('_', ' ', $stitle));
$title = mb_strlen($stitle, ENCODING) > 30
? mb_substr(ucwords($stitle), 0, 30, ENCODING).'...'
: ucwords($stitle);
$url = 'http://mobile.spankwire.com/video/show/title/'.$vid.'/id/'.$id.'';
$result = get_contents($url);
$content = cut($result, '<div class="thumb" style="margin-top: 10px;">', '<div class="clear"></div>');
$konten = $content[0];
preg_match("#http://cdn[^\.]+\.image.spankwire.phncdn.com/[^\.]+\.jpg#", $konten, $thumb);
$img = $thumb[0];
$scr = str_replace(array('1.jpg', '2.jpg', '3.jpg', '4.jpg', '5.jpg', '6.jpg', '7.jpg', '8.jpg', '9.jpg', '10.jpg'), '', $img);
$body = explode('</div>', $konten);
$length = strip_tags($body[1]);
$rate = strip_tags($body[2]);
$views = strip_tags($body[3]);
$mp = explode('<a href="', $body[4]);
$mpe = explode('"', $mp[1]);
$gp = explode('<a href="', $body[5]);
$gpe = explode('"', $gp[1]);
$link1 = $mpe[0];
$link2 = $gpe[0];
include 'head.php';
echo '<div class="top">Sexy ッ</div>'.NL;
echo '<div class="ads2">'.capsfirsts($title).'</div>'.NL;
echo '<div class="menu">'.NL;
if ($scrid == "") {
echo '<p><img class="absmiddle" src="'.$img.'" title="'.$stitle.'" alt="'.$stitle.'" height="100" width="170" /></p>';
} else {
echo '<p class="showimage"><img class="absmiddle" src="'.$scr.''.$scrid.'.jpg" alt="'.$stitle.'" height="100" width="170" /></p>';
}
echo '<p class="showimage">'.NL
.'<img class="absmiddle" src="thumbnail.php?file='.$scr.'1.jpg" alt=""/>'.NL
.'<img class="absmiddle" src="thumbnail.php?file='.$scr.'2.jpg" alt=""/>'.NL
.'<img class="absmiddle" src="thumbnail.php?file='.$scr.'3.jpg" alt=""/>'.NL
.'<img class="absmiddle" src="thumbnail.php?file='.$scr.'4.jpg" alt=""/>'.NL
.'<img class="absmiddle" src="thumbnail.php?file='.$scr.'5.jpg" alt=""/>'.NL
.'<img class="absmiddle" src="thumbnail.php?file='.$scr.'6.jpg" alt=""/>'.NL
.'<img class="absmiddle" src="thumbnail.php?file='.$scr.'7.jpg" alt=""/>'.NL
.'<img class="absmiddle" src="thumbnail.php?file='.$scr.'8.jpg" alt=""/>'.NL
.'<img class="absmiddle" src="thumbnail.php?file='.$scr.'9.jpg" alt=""/>'.NL
.'<img class="absmiddle" src="thumbnail.php?file='.$scr.'10.jpg" alt=""/>'.NL
.'</p>';
echo '<span class="i">'.rainbow(convert($stitle)).'</span>'.NL;
echo '<h4>Download<br/> <a class="dwnLink" rel="nofollow" href="'.htmlentities($link2).'">3GP</a> '.NL
.'| <a class="dwnLink" rel="nofollow" href="'.htmlentities($link1).'">MP4</a></h4>'.NL
.'<span class="s">'.trim($length).' | '.trim($views).'</span>'.NL;
echo '</div>'.NL;
echo '<div class="tab" style="text-align : left;">Related Videos</div>'.NL;
$result = get_contents($url);
$content = cut($result, '<div class="video_box">', '<div class="clear"></div>');
if (is_array($content)) {
foreach ($content as $v) {
$searchresult = pickup($v);
$arr = explode('/', $searchresult['url']);
$linkurl = 'view?vid='.$arr[4].'&id='.$arr[6];
$stitle = ucfirst(str_replace('_', ' ', $arr[4]));
$stitle = mb_strlen($stitle, ENCODING) > 50
? mb_substr($stitle, 0, 50, ENCODING).'...'
: $stitle;
echo '<div class="menu">'.NL;
echo '<table style="width: 100%">'.NL;
echo '<tr>'.NL;
echo '<td>'.NL;
echo '<div style="float: left; display: inline;">'.NL;
echo '<a href="'.$siteadrs.'/'.$linkurl.''.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">'
.'<img src="'.$searchresult['thumb'].'" width="95" height="85" title="'.$stitle.'" alt="'.$stitle.'"/></a>'.NL;
echo '</div>';
echo '</td>'.NL;
echo '<td>'.NL;
echo '<div style="float: right;"><a href="'.$siteadrs.'/'.$linkurl.''.service_qs(array('adr' => $adress, 'nam' => $sname), '&').'">'.$stitle.'</a><br/>';
echo '<span class="s">Length: '.$searchresult['time'].' | Views: '.$searchresult['hits'].'</span></div>';
echo '</td>'.NL;
echo '</tr>'.NL;
echo '</table>'.NL;
echo '</div>'.NL;
}
}
echo '<div class="ban"><a href="./'.service_qs(array('adr' => $adress, 'nam' => $sname), '?').'">'
.(!empty($adress) && !empty($sname) ? 'Categories' : 'Home').'</a>'
.(!empty($adress) && !empty($sname) ? ' | <a href="http://'.urlencode($adress).'/">'.convert($sname).'</a>' : '').'</div>'.NL;
include 'foot.php';
exit;
} else {
header('Location: ./');
exit;
}
?><!DOCTYPE html PUBLIC "-//WAPFORUM.RS
Comment
-
thumbnail.php
PHP Code:<?php
define('_MYWAPFORUM', 1);
$radius = 4;
$file = isset($_GET['file']) ? htmlspecialchars($_GET['file']) : null;
if ($file) {
if (@getimagesize($file)) {
list($width, $height, $type) = getimagesize($file);
switch ($type) {
case 1: $att_ext = 'gif' ;break;
case 2: $att_ext = 'jpeg'; break;
case 3: $att_ext = 'png'; break;
case 4: $att_ext = 'jpg'; break;
}
if ($att_ext) {
$razm = isset($_GET['razm']) ? (int) $_GET['razm'] : 30;
$x_ratio = $razm / $width;
$y_ratio = $razm / $height;
if (($width <= $razm) && ($height <= $razm)) {
$tn_width = $width;
$tn_height = $height;
} else if (($x_ratio * $height) < $razm) {
$tn_height = ceil($x_ratio * $height);
$tn_width = $razm;
} else {
$tn_width = ceil($y_ratio * $width);
$tn_height = $razm;
}
$function = 'imageCreateFrom' . $att_ext;
$image = $function($file);
if($att_ext == 'gif') {
$tmp = imagecreate($tn_width, $tn_height);
$color = imagecolorallocate($tmp, 0, 0, 0);
}
else
$tmp = imageCreateTrueColor($tn_width, $tn_height);
if($att_ext == 'png') {
imageAlphaBlending($tmp, false);
imageSaveAlpha($tmp, true);
} else if($att_ext == 'gif') {
imagecolortransparent($tmp, $color);
}
imageCopyResampled($tmp, $image, 0, 0, 0, 0, $tn_width, $tn_height, $width, $height);
if(($att_ext == 'jpg' || $att_ext == 'jpeg') && $radius > 1 && $radius <= 20)
{
$img = $tmp;
$rate = 3;
imagealphablending($img, false);
imagesavealpha($img, true);
$width = imagesx($img);
$height = imagesy($img);
$rs_radius = $radius * $rate;
$rs_size = $rs_radius * 2;
$corner = imagecreatetruecolor($rs_size, $rs_size);
imagealphablending($corner, false);
$trans = imagecolorallocatealpha($corner, 255, 255, 255, 127);
imagefill($corner, 0, 0, $trans);
$positions = array(
array(0, 0, 0, 0),
array($rs_radius, 0, $width - $radius, 0),
array($rs_radius, $rs_radius, $width - $radius, $height - $radius),
array(0, $rs_radius, 0, $height - $radius),
);
foreach ($positions as $pos) {
imageCopyResampled($corner, $img, $pos[0], $pos[1], $pos[2], $pos[3], $rs_radius, $rs_radius, $radius, $radius);
}
$lx = $ly = 0;
$i = -$rs_radius;
$y2 = -$i;
$r_2 = $rs_radius * $rs_radius;
for (; $i <= $y2; $i++) {
$y = $i;
$x = sqrt($r_2 - $y * $y);
$y += $rs_radius;
$x += $rs_radius;
imageline($corner, $x, $y, $rs_size, $y, $trans);
imageline($corner, 0, $y, $rs_size - $x, $y, $trans);
$lx = $x;
$ly = $y;
}
foreach ($positions as $i => $pos) {
imageCopyResampled($img, $corner, $pos[2], $pos[3], $pos[0], $pos[1], $radius, $radius, $rs_radius, $rs_radius);
}
ob_start();
header('Content-Type: image/png');
imagepng($img);
ob_end_flush();
} else {
ob_start();
switch($att_ext) {
case 'jpg':
case 'jpeg':
@imagejpeg($tmp, null, 100);
break;
case 'gif':
@imagegif($tmp, null);
break;
case 'png':
@imagepng($tmp, null, 9);
break;
default:
// *** No extension - No save.
break;
}
ImageDestroy($tmp);
imageDestroy($image);
Header("Content-Type: image/" . $att_ext);
Header('Content-Disposition: inline; filename=thumbinal.' . $att_ext);
Header('Content-Length: ' . ob_get_length());
ob_end_flush();
}
}
} else {
header('Location: ./');
exit;
}
} else {
header('Location: ./');
exit;
}
?><!DOCTYPE html PUBLIC "-//WAPFORUM.RS
Comment
-
Did you just write all this? because its not working lol...Mobile chat, iphone chat, android chat, chat, rooms http://www.aiochat.com
Comment
-
They're blocking requests from requests with a server UA thats whyMobile chat, iphone chat, android chat, chat, rooms http://www.aiochat.com
Comment
-
Try this:
index.php
PHP Code:<?php
require_once('simple_html_dom.php');
?><!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="http://gui.m.xvideos.com/css/default.css">
<title>XVIDEOS</title>
</head>
<body>
<?php
function dlPage($href) {
$curl = curl_init();
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($curl, CURLOPT_HEADER, false);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($curl, CURLOPT_URL, $href);
curl_setopt($curl, CURLOPT_REFERER, $href);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.125 Safari/533.4");
$str = curl_exec($curl);
curl_close($curl);
// Create a DOM object
$dom = new simple_html_dom();
// Load HTML from a string
$dom->load($str);
return $dom;
}
if(empty($_GET['page']))
{
$page = 1;
$url = 'http://m.xvideos.com';
}
else
{
$page = $_GET['page'];
$url = 'http://m.xvideos.com/scene/browse/page/'.$page;
}
$html = dlPage($url);
?>
<div class="clear"></div>
<div id="content">
<?php
foreach ($html->find('div.scene_row_browse') as $key => $value) {
$data = $value->innertext;
echo str_replace(array('href="/scene/'), array('href="view.php?u=http://m.xvideos.com/scene/'), $data);
}
?>
<hr/>
<?php
if(isset($_GET['page']) && $page>0)
{
$prev = $page-1;
echo '<a href="index.php?page='.$prev.'">Prev</a><hr/>';
}
$next = $page+1;
echo '<a href="index.php?page='.$next.'">Next</a>';
?>
<hr/>
</div>
</body>
</html>
PHP Code:
<?php
require_once('simple_html_dom.php');
?><!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="http://gui.m.xvideos.com/css/default.css">
<title>XVIDEOS</title>
</head>
<body>
<?php
function dlPage($href) {
$curl = curl_init();
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($curl, CURLOPT_HEADER, false);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($curl, CURLOPT_URL, $href);
curl_setopt($curl, CURLOPT_REFERER, $href);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.125 Safari/533.4");
$str = curl_exec($curl);
curl_close($curl);
// Create a DOM object
$dom = new simple_html_dom();
// Load HTML from a string
$dom->load($str);
return $dom;
}
$html = dlPage($_GET['u']);
?>
<div class="clear"></div>
<div id="content">
<?php
$thumb = $html->find('div.thumb img', 0)->src;
echo '<div class="thumb">
<img src="'.$thumb.'" width="142" height="119" alt="Scene" />
</div>';
foreach ($html->find('div.play_video_link a') as $value) {
$link = $value->href;
$title = $value->plaintext;
echo '<a href="'.$link.'"><strong>'.$title.'</strong></a><hr/>';
}
?>
<br/>
<a href="index.php">Home</a>
</div>
</body>
</html>Attached FilesLast edited by kevk3v; 10.02.15, 14:26.Mobile chat, iphone chat, android chat, chat, rooms http://www.aiochat.com
- Likes 1
Comment
-
Comment