Created
February 25, 2018 13:55
-
-
Save dwisiswant0/72f6bafdbe8737f8cb59d80dc6a68f12 to your computer and use it in GitHub Desktop.
citpekalongan Auto Grab DL Link
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# citpekalongan Auto Grab DL Link | |
# 2018 (c) made by dw1.co | |
$xml = simplexml_load_string(file_get_contents("http://www.citpekalongan.com/feeds/posts/default?alt=rss")); | |
foreach ($xml->channel->item as $key => $value) { | |
echo $value->category . " (" . $value->pubDate . ")\n"; | |
preg_match_all("/href=\"http:\/\/linkshrink.net\/(.*?)\"/i", $value->description, $linkshrink); | |
// preg_match_all("/href=\"http:\/\/safelinku.net\/(.*?)\"/i", $value->description, $safelinku); | |
// echo "<a " . $linkshrink[0][0] . " target=\"_blank\">linkshrink</a> "; | |
// echo "<a " . $safelinku[0][0] . " target=\"_blank\">safelinku</a> "; | |
echo "readmore http://linkshrink.net/" . $linkshrink[1][0]; | |
$dl = ls_decode(pekalongan_cits(ls_decode("http://linkshrink.net/" . $linkshrink[1][0]))); | |
echo (empty($dl) ? null : " / dl " . $dl); | |
echo "\n\n"; | |
} | |
function ls_decode($url) { | |
if (empty($url)) return null; | |
preg_match_all("/window.open\(revC\(\"(.*?)\"\), '_blank'\)/i", file_get_contents($url), $b64); | |
return "http://linkshrink.net/" . base64_decode($b64[1][0]); | |
} | |
function pekalongan_cits($url) { | |
preg_match_all("/<b><a href=\"(.*?)\" rel=\"nofollow\" target=\"_blank\">Download<\/a> \(ADFLY\) Link Utama/i", file_get_contents($url), $linkshrink); | |
return (empty($linkshrink[1][0]) ? null : $linkshrink[1][0]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment