Advertisement
plas71k

@blogers file => decoded

Feb 16th, 2013
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 7.63 KB | None | 0 0
  1. <?php
  2. /*
  3. * @ Pirate-Sky Crew :: PHP Decoder v2
  4. * @ Author: pLa$71k
  5. * @ Web: http://pirate-sky.com
  6. * @ Pirate-Sky Crew © 2008 - 2013
  7. */
  8.  
  9. function chk($scr, $clientID, $serverAddr, $licenseStatus, $code)
  10. {
  11.     $generated = md5($scr . $clientID . $serverAddr . "valid" . $code);
  12.     $generated = sha1($generated);
  13.     return $generated;
  14. }
  15.  
  16. function fetchIt($url)
  17. {
  18.     $curl_handle = curl_init();
  19.     curl_setopt($curl_handle, CURLOPT_URL, $url);
  20.     curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 10);
  21.     curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);
  22.     $buffer = curl_exec($curl_handle);
  23.     curl_close($curl_handle);
  24.     return $buffer;
  25. }
  26.  
  27. function print_error($licenseID, $gotCode, $errorCode)
  28. {
  29.     if (empty($errorCode)) {
  30.         $errorCode = "<div style=\"color: red; font-size: 40px; position: absolute; top: 100px; left:200px; z-index:1999;\">ALERT: YOU DONT HAVE A VALID LICENCE<br /><br /><h4>visit <a href=\"http://www.scriptgeni.com\">ScriptGeni</a> to purchase a licence</h4></div>";
  31.     }
  32.     if ($licenseID != $gotCode) {
  33.         echo unhtmlentities($errorCode);
  34.         exit();
  35.     }
  36. }
  37.  
  38. function exx($start, $end, $content)
  39. {
  40.     if ($content && $start && $end) {
  41.         $r = explode($start, $content);
  42.         if (isset($r[1])) {
  43.             $r = explode($end, $r[1]);
  44.             return $r[0];
  45.         }
  46.         return "";
  47.     }
  48. }
  49.  
  50. function disguise_curl($url)
  51. {
  52.     $curl      = curl_init();
  53.     $header[0] = "Accept: text/xml,application/xml,application/xhtml+xml,";
  54.     $header[0] .= "text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5";
  55.     $header[] = "Cache-Control: max-age=0";
  56.     $header[] = "Connection: keep-alive";
  57.     $header[] = "Keep-Alive: 300";
  58.     $header[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  59.     $header[] = "Accept-Language: en-us,en;q=0.5";
  60.     $header[] = "Pragma: ";
  61.     curl_setopt($curl, CURLOPT_URL, $url);
  62.     curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 compatible RSS Fetcher");
  63.     curl_setopt($curl, CURLOPT_HTTPHEADER, $header);
  64.     curl_setopt($curl, CURLOPT_REFERER, "-");
  65.     curl_setopt($curl, CURLOPT_ENCODING, "gzip,deflate");
  66.     curl_setopt($curl, CURLOPT_AUTOREFERER, true);
  67.     curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
  68.     curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 120);
  69.     curl_setopt($curl, CURLOPT_TIMEOUT, 120);
  70.     curl_setopt($curl, CURLOPT_MAXREDIRS, 5);
  71.     $html = curl_exec($curl);
  72.     curl_close($curl);
  73.     return $html;
  74. }
  75.  
  76. function unhtmlentities($string)
  77. {
  78.     $string    = preg_replace("~&#x([0-9a-f]+);~ei", "chr(hexdec(\"\\1\"))", $string);
  79.     $string    = preg_replace("~&#([0-9]+);~e", "chr(\"\\1\")", $string);
  80.     $trans_tbl = get_html_translation_table(HTML_ENTITIES);
  81.     $trans_tbl = array_flip($trans_tbl);
  82.     return strtr($string, $trans_tbl);
  83. }
  84.  
  85. function Get($varId)
  86. {
  87.     $file_name = cache_folder . $varId;
  88.     if (file_exists($file_name)) {
  89.         $fileHandler    = fopen($file_name, "r");
  90.         $varValueResult = fread($fileHandler, filesize($file_name));
  91.         fclose($fileHandler);
  92.         return unserialize($varValueResult);
  93.     }
  94.     return FALSE;
  95. }
  96.  
  97. function Set($varId, $varValue)
  98. {
  99.     Delete($varId);
  100.     $fileHandler = fopen(cache_folder . $varId, "a");
  101.     if (fwrite($fileHandler, serialize($varValue))) {
  102.         return true;
  103.     }
  104.     fclose($fileHandler);
  105.     return false;
  106. }
  107.  
  108. function Delete($varId)
  109. {
  110.     $file_name = cache_folder . $varId;
  111.     if (file_exists($file_name)) {
  112.         @unlink($file_name);
  113.     }
  114. }
  115.  
  116. function get_feeds($sourceUrl, $sourceName, $max = false)
  117. {
  118.     global $query;
  119.     global $jobLocation;
  120.     global $lang;
  121.     global $related;
  122.     $has_curl  = function_exists("curl_init");
  123.     $has_iconv = function_exists("iconv");
  124.     $target    = $has_curl ? disguise_curl($sourceUrl) : file_get_contents($sourceUrl);
  125.     $target    = $has_iconv ? iconv("UTF-8", "UTF-8//TRANSLIT", $target) : $target;
  126.     $i         = 1;
  127.     $deneme    = explode("<item>", $target);
  128.     $count     = count($deneme) - 1;
  129.     if (0 < $count) {
  130.         $count = !empty($max) ? $max : $count;
  131.     }
  132.     $count = _maxlisting < $count ? 20 : $count;
  133.     if ($count == 0) {
  134.         if (!$related) {
  135.             include("layout/nothingfound.php");
  136.         }
  137.     } else {
  138.         while ($i <= $count) {
  139.             $aud                 = explode("<item>", $target);
  140.             $aud                 = explode("</item>", $aud[$i]);
  141.             $aud[0]              = str_replace(array(
  142.                 "<![CDATA[",
  143.                 "]]>"
  144.             ), array(
  145.                 "",
  146.                 ""
  147.             ), $aud[0]);
  148.             $title               = exx("<title>", "</title>", $aud[0]);
  149.             $link                = exx("<link>", "</link>", $aud[0]);
  150.             $description         = exx("<description>", "</description>", $aud[0]);
  151.             $date                = exx("<pubDate>", "</pubDate>", $aud[0]);
  152.             $info['title']       = $title;
  153.             $info['link']        = $link;
  154.             $info['description'] = $description;
  155.             $info['date']        = $date;
  156.             $info['source_name'] = $sourceName;
  157.             $info['query']       = $query;
  158.             $info['location']    = $jobLocation;
  159.             $length              = 300;
  160.             $text                = "{$description}";
  161.             strip_tags($description);
  162.             $description = substr($text, 0, $length);
  163.             if (set(md5($link), $info)) {
  164.                 if (!$related) {
  165.                     include("layout/search-results.php");
  166.                 } else {
  167.                     include("layout/related-results.php");
  168.                 }
  169.             }
  170.             ++$i;
  171.         }
  172.     }
  173. }
  174.  
  175. function parse($countrySelect, $query, $jobLocation, $max)
  176. {
  177.     $directory = "includes/sources/" . $countrySelect . "/";
  178.     $sources   = glob($directory . "*");
  179.     foreach ($sources as $source) {
  180.         if (substr($source, 0 - 4) == ".php") {
  181.             require($source);
  182.             get_feeds($sourceUrl, $sourceName, $max, $related);
  183.         }
  184.     }
  185. }
  186.  
  187. $v = "1.0.0";
  188. unset($scriptID);
  189. $scr        = "jobgeni";
  190. $serverAddr = strtolower($_SERVER['HTTP_HOST']);
  191. $first      = substr($serverAddr, 0, 4);
  192. if ($first == "www.") {
  193.     $serverAddr = str_replace($first, "", $serverAddr);
  194. }
  195. if (file_exists("license.php")) {
  196.     require_once("license.php");
  197. } else {
  198.     echo "no license file found... Please upload license.php file to your ftp";
  199.     exit();
  200. }
  201. if (empty($licenseID) || empty($clientID) || empty($scr)) {
  202.     echo "please make sure you have uploaded the correct license file...";
  203.     exit();
  204. }
  205. $code    = "mQGiBEm6XWkRBADgkaoaGataoddhdxAY18/GgR5GvOIeWMTmxZueXL3SZmlNnDmLYm8VU8AU+G3mTsuDNuqJNinN5c7oqmX/S/MSigHe8bS24yJuXiv5EPEj0IejAbDJY08gWvp9bXNT4dxNxK1MEWgUZWWBfKDGOK7ucTIFBEm6XWkRBADgkaoaGataoddhdxATmxZueXL3SZTZc6R+mvO3Dq0APgZkSSm2PthBw/9r+0JzmXhwinDQSs68JK8lttIz5JIBx6yXdLpvzqX0bfu0dQRyA3o6DGwed4Xq5FYP4EeCu94EeCu91qEhMr7pSaAkl+WL/PY18/GgR5GvOIeWMeDxSwsxhU9wCgpuWN4WYGt815F1TChakjcSJ7ZMkEAJZmHonmdsnN0nnL1qn7hEubcLP6zDxRmuRqmU5mJ2NmlNnJANc3++WL/PeDxSwsxhU9wCgpuWN4WYGt815TZc6R+mvO3Dq0APgZkSSm2PthBw/9r+0JzmXhwinDQSs68JK8lttIz5JIBx6yXdLpvzqX0bfu0dQRyA3o6DGwed4Xq5FYP4EeeMn9Ssqt0kIaA1qEhMr7pSaAklCu94EeCu91qEhMr7pSaAkl+WL/PY18/GgR5GvOIeWMeDxSwsxhU9wCgpuWN4WYGt815F1TChakjcSJ7ZMkEAJZmHonmdsnN0nnL1qn7hEubcLP6zDxRmuRqmU5mJ2NF1TChakjcSJ7ZMkEAJZmHonmdsnN0nnL1qn7hEubcLP6zDxRmuRqmU5mJ2NmlNnDmLYm8VU8AU+G3mTsuDNuqJNinN5c7oqmX/S/MSigHe8bS24yJuXiv5EPEj0IejAbDJY08gWvp9bXNT4dxNxK1MEWgUZWWBfKDGOK7ucTIFJANc3+eMn9Ssqt0kIaA";
  206. $gotCode = chk($scr, $clientID, $serverAddr, "valid", $code);
  207. print_error($licenseID, $gotCode, $errorCode);
  208. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement