Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- * @ Pirate-Sky Crew :: PHP Decoder v2
- * @ Author: pLa$71k
- * @ Web: http://pirate-sky.com
- * @ Pirate-Sky Crew © 2008 - 2013
- */
- function chk($scr, $clientID, $serverAddr, $licenseStatus, $code)
- {
- $generated = md5($scr . $clientID . $serverAddr . "valid" . $code);
- $generated = sha1($generated);
- return $generated;
- }
- function fetchIt($url)
- {
- $curl_handle = curl_init();
- curl_setopt($curl_handle, CURLOPT_URL, $url);
- curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 10);
- curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);
- $buffer = curl_exec($curl_handle);
- curl_close($curl_handle);
- return $buffer;
- }
- function print_error($licenseID, $gotCode, $errorCode)
- {
- if (empty($errorCode)) {
- $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>";
- }
- if ($licenseID != $gotCode) {
- echo unhtmlentities($errorCode);
- exit();
- }
- }
- function exx($start, $end, $content)
- {
- if ($content && $start && $end) {
- $r = explode($start, $content);
- if (isset($r[1])) {
- $r = explode($end, $r[1]);
- return $r[0];
- }
- return "";
- }
- }
- function disguise_curl($url)
- {
- $curl = curl_init();
- $header[0] = "Accept: text/xml,application/xml,application/xhtml+xml,";
- $header[0] .= "text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5";
- $header[] = "Cache-Control: max-age=0";
- $header[] = "Connection: keep-alive";
- $header[] = "Keep-Alive: 300";
- $header[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
- $header[] = "Accept-Language: en-us,en;q=0.5";
- $header[] = "Pragma: ";
- curl_setopt($curl, CURLOPT_URL, $url);
- curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 compatible RSS Fetcher");
- curl_setopt($curl, CURLOPT_HTTPHEADER, $header);
- curl_setopt($curl, CURLOPT_REFERER, "-");
- curl_setopt($curl, CURLOPT_ENCODING, "gzip,deflate");
- curl_setopt($curl, CURLOPT_AUTOREFERER, true);
- curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 120);
- curl_setopt($curl, CURLOPT_TIMEOUT, 120);
- curl_setopt($curl, CURLOPT_MAXREDIRS, 5);
- $html = curl_exec($curl);
- curl_close($curl);
- return $html;
- }
- function unhtmlentities($string)
- {
- $string = preg_replace("~&#x([0-9a-f]+);~ei", "chr(hexdec(\"\\1\"))", $string);
- $string = preg_replace("~&#([0-9]+);~e", "chr(\"\\1\")", $string);
- $trans_tbl = get_html_translation_table(HTML_ENTITIES);
- $trans_tbl = array_flip($trans_tbl);
- return strtr($string, $trans_tbl);
- }
- function Get($varId)
- {
- $file_name = cache_folder . $varId;
- if (file_exists($file_name)) {
- $fileHandler = fopen($file_name, "r");
- $varValueResult = fread($fileHandler, filesize($file_name));
- fclose($fileHandler);
- return unserialize($varValueResult);
- }
- return FALSE;
- }
- function Set($varId, $varValue)
- {
- Delete($varId);
- $fileHandler = fopen(cache_folder . $varId, "a");
- if (fwrite($fileHandler, serialize($varValue))) {
- return true;
- }
- fclose($fileHandler);
- return false;
- }
- function Delete($varId)
- {
- $file_name = cache_folder . $varId;
- if (file_exists($file_name)) {
- @unlink($file_name);
- }
- }
- function get_feeds($sourceUrl, $sourceName, $max = false)
- {
- global $query;
- global $jobLocation;
- global $lang;
- global $related;
- $has_curl = function_exists("curl_init");
- $has_iconv = function_exists("iconv");
- $target = $has_curl ? disguise_curl($sourceUrl) : file_get_contents($sourceUrl);
- $target = $has_iconv ? iconv("UTF-8", "UTF-8//TRANSLIT", $target) : $target;
- $i = 1;
- $deneme = explode("<item>", $target);
- $count = count($deneme) - 1;
- if (0 < $count) {
- $count = !empty($max) ? $max : $count;
- }
- $count = _maxlisting < $count ? 20 : $count;
- if ($count == 0) {
- if (!$related) {
- include("layout/nothingfound.php");
- }
- } else {
- while ($i <= $count) {
- $aud = explode("<item>", $target);
- $aud = explode("</item>", $aud[$i]);
- $aud[0] = str_replace(array(
- "<![CDATA[",
- "]]>"
- ), array(
- "",
- ""
- ), $aud[0]);
- $title = exx("<title>", "</title>", $aud[0]);
- $link = exx("<link>", "</link>", $aud[0]);
- $description = exx("<description>", "</description>", $aud[0]);
- $date = exx("<pubDate>", "</pubDate>", $aud[0]);
- $info['title'] = $title;
- $info['link'] = $link;
- $info['description'] = $description;
- $info['date'] = $date;
- $info['source_name'] = $sourceName;
- $info['query'] = $query;
- $info['location'] = $jobLocation;
- $length = 300;
- $text = "{$description}";
- strip_tags($description);
- $description = substr($text, 0, $length);
- if (set(md5($link), $info)) {
- if (!$related) {
- include("layout/search-results.php");
- } else {
- include("layout/related-results.php");
- }
- }
- ++$i;
- }
- }
- }
- function parse($countrySelect, $query, $jobLocation, $max)
- {
- $directory = "includes/sources/" . $countrySelect . "/";
- $sources = glob($directory . "*");
- foreach ($sources as $source) {
- if (substr($source, 0 - 4) == ".php") {
- require($source);
- get_feeds($sourceUrl, $sourceName, $max, $related);
- }
- }
- }
- $v = "1.0.0";
- unset($scriptID);
- $scr = "jobgeni";
- $serverAddr = strtolower($_SERVER['HTTP_HOST']);
- $first = substr($serverAddr, 0, 4);
- if ($first == "www.") {
- $serverAddr = str_replace($first, "", $serverAddr);
- }
- if (file_exists("license.php")) {
- require_once("license.php");
- } else {
- echo "no license file found... Please upload license.php file to your ftp";
- exit();
- }
- if (empty($licenseID) || empty($clientID) || empty($scr)) {
- echo "please make sure you have uploaded the correct license file...";
- exit();
- }
- $code = "mQGiBEm6XWkRBADgkaoaGataoddhdxAY18/GgR5GvOIeWMTmxZueXL3SZmlNnDmLYm8VU8AU+G3mTsuDNuqJNinN5c7oqmX/S/MSigHe8bS24yJuXiv5EPEj0IejAbDJY08gWvp9bXNT4dxNxK1MEWgUZWWBfKDGOK7ucTIFBEm6XWkRBADgkaoaGataoddhdxATmxZueXL3SZTZc6R+mvO3Dq0APgZkSSm2PthBw/9r+0JzmXhwinDQSs68JK8lttIz5JIBx6yXdLpvzqX0bfu0dQRyA3o6DGwed4Xq5FYP4EeCu94EeCu91qEhMr7pSaAkl+WL/PY18/GgR5GvOIeWMeDxSwsxhU9wCgpuWN4WYGt815F1TChakjcSJ7ZMkEAJZmHonmdsnN0nnL1qn7hEubcLP6zDxRmuRqmU5mJ2NmlNnJANc3++WL/PeDxSwsxhU9wCgpuWN4WYGt815TZc6R+mvO3Dq0APgZkSSm2PthBw/9r+0JzmXhwinDQSs68JK8lttIz5JIBx6yXdLpvzqX0bfu0dQRyA3o6DGwed4Xq5FYP4EeeMn9Ssqt0kIaA1qEhMr7pSaAklCu94EeCu91qEhMr7pSaAkl+WL/PY18/GgR5GvOIeWMeDxSwsxhU9wCgpuWN4WYGt815F1TChakjcSJ7ZMkEAJZmHonmdsnN0nnL1qn7hEubcLP6zDxRmuRqmU5mJ2NF1TChakjcSJ7ZMkEAJZmHonmdsnN0nnL1qn7hEubcLP6zDxRmuRqmU5mJ2NmlNnDmLYm8VU8AU+G3mTsuDNuqJNinN5c7oqmX/S/MSigHe8bS24yJuXiv5EPEj0IejAbDJY08gWvp9bXNT4dxNxK1MEWgUZWWBfKDGOK7ucTIFJANc3+eMn9Ssqt0kIaA";
- $gotCode = chk($scr, $clientID, $serverAddr, "valid", $code);
- print_error($licenseID, $gotCode, $errorCode);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement