';
//* Begin Pagination *//
$lpp = 5; // link pagination to show
$lps = floor($p/$lpp) * $lpp; // link pagination start
$lpf = $lps + $lpp; // link pagination finish
if ($lps > 0) echo '
[<] ';
for($lps; $lps<$lpf; $lps++) {
if ($lps == $p) echo ' ['.$p.'] ';
elseif ($lps < 0) echo '';
elseif ($lps > $tp) echo '';
else echo '
'.$lps.' ';
}
if ($lpf < $tp) echo '
[>] ';
//* End Pagination *//
echo '
';
}
elseif ($dl) {
$url = gzinflate(base64_decode(($dl)));
$html = get_contents($url);
libxml_use_internal_errors(true);
$doc = new DomDocument();
$doc->loadHTML($html);
$xpath = new DOMXPath($doc);
$metas = $xpath->query('//meta[@property="og:url"]');
foreach($metas as $meta) $property = $meta->getAttribute('content');
echo '