Advertisement
plas71k

@ngetes => ioncube file => decoded

Apr 4th, 2013
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 15.92 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 pkalrp_get_cached_results($cache_key)
  10. {
  11.     $license = get_option("transient_mods_d4f3cd42325105d8d24a5a77996b6d92");
  12.     if ("10" != $license) {
  13.         return get_transient($cache_key);
  14.     }
  15. }
  16.  
  17. function pkalrp_set_cached_results($cache_key, $output)
  18. {
  19.     $license = get_option("transient_mods_d4f3cd42325105d8d24a5a77996b6d92");
  20.     $options = get_option("alrp_gs_options");
  21.     if ("10" != $license) {
  22.         set_transient($cache_key, $output, 3600 * 24 * $options['expire']);
  23.     }
  24. }
  25.  
  26. function pkalrp_premium_slidebox_ads()
  27. {
  28.     $license = get_option("transient_mods_d4f3cd42325105d8d24a5a77996b6d92");
  29.     $options = get_option("alrp_sb_options");
  30.     if ("22" == $license && 1 == $options['enableads']) {
  31.         $output = "";
  32.         if (!empty($options['azonaffid'])) {
  33.             $xml       = simplexml_load_file("http://pipes.yahoo.com/pipes/pipe.run?_id=9e055c6e7324317e950587170637f91d&_render=rss", "SimpleXMLElement", LIBXML_NOCDATA);
  34.             $ads_url   = str_replace("tempatwisataw-20", $options['azonaffid'], $xml->channel->item->link);
  35.             $ads_title = $xml->channel->item->title;
  36.             if (!empty($ads_url) && !empty($ads_title)) {
  37.                 $output .= pkalrp_premium_slidebox_adcontent($ads_title, $ads_url);
  38.             }
  39.         }
  40.         if (!empty($options['customadstitle']) && !empty($options['customadslink'])) {
  41.             $ads_url   = $options['customadslink'];
  42.             $ads_title = $options['customadstitle'];
  43.             $output .= pkalrp_premium_slidebox_adcontent($ads_title, $ads_url);
  44.         }
  45.         if (!empty($options['customadstitle2']) && !empty($options['customadslink2'])) {
  46.             $ads_url   = $options['customadslink2'];
  47.             $ads_title = $options['customadstitle2'];
  48.             $output .= pkalrp_premium_slidebox_adcontent($ads_title, $ads_url);
  49.         }
  50.         return $output;
  51.     }
  52. }
  53.  
  54. function pkalrp_premium_slidebox_adcontent($ads_title, $ads_url)
  55. {
  56.     $output = "<li>";
  57.     $output .= "<span class=\"date\">" . date("l, d/m/Y g:i A") . "</span>";
  58.     $output .= "<h5 class=\"blue\"><a href=\"" . $ads_url . "\" target=\"_blank\" rel=\"nofollow\">" . $ads_title . "</a></h5>";
  59.     $output .= "<div class=\"clearfix\"></div>";
  60.     $output .= "</li>";
  61.     return $output;
  62. }
  63.  
  64. function pkalrp_reg_premium_features()
  65. {
  66.     include_once("loader.php");
  67.     if (ALRP_PREMIUM) {
  68.         update_option("transient_mods_d4f3cd42325105d8d24a5a77996b6d92", "22");
  69.         update_option("alrp_status", "premium");
  70.         pkalrp_reg_enable_features();
  71.     }
  72. }
  73.  
  74. function pkalrp_chk_prev_settings()
  75. {
  76.     $prev_status = get_option("transient_mods_d4f3cd42325105d8d24a5a77996b6d92", "10");
  77.     if ("10" == $prev_status) {
  78.         delete_option("alrp_status");
  79.         delete_option("transient_mods_d4f3cd42325105d8d24a5a77996b6d92");
  80.     }
  81. }
  82.  
  83. function pkalrp_admin_notices()
  84. {
  85.     $alrp_admin_url = admin_url("admin.php?page=alrp");
  86.     if ("00" == get_option("transient_mods_d4f3cd42325105d8d24a5a77996b6d92", "00")) {
  87.         echo "<div class='updated'><p>" . sprintf(__("SEO Auto Links and Related Posts plugin is <strong>NOT ACTIVATED</strong> yet. <strong><a href=\"%s\">Click here to activate</a></strong>."), $alrp_admin_url) . "</p></div>";
  88.     }
  89. }
  90.  
  91. function pkalrp_admin_dashboard_page()
  92. {
  93.     $license = get_option("transient_mods_d4f3cd42325105d8d24a5a77996b6d92", "00");
  94.     $prev    = !empty($_GET['prev']) ? $_GET['prev'] : "";
  95.     if (!empty($prev) || "01" == $license || "11" == $license) {
  96.         pkalrp_admin_registration();
  97.     } else {
  98.         pkalrp_admin_print_dashboard();
  99.     }
  100.     pkalrp_admin_print_current_license();
  101. }
  102.  
  103. function pkalrp_admin_init_relatedposts_page()
  104. {
  105.     $license = get_option("transient_mods_d4f3cd42325105d8d24a5a77996b6d92", "00");
  106.     if ("12" != $license && "22" != $license && "10" != $license) {
  107.         pkalrp_admin_print_not_activated_header("Related Posts Settings");
  108.     } else {
  109.         pkalrp_relatedposts_page();
  110.     }
  111. }
  112.  
  113. function pkalrp_admin_init_slideout_page()
  114. {
  115.     $license = get_option("transient_mods_d4f3cd42325105d8d24a5a77996b6d92", "00");
  116.     if ("12" != $license && "22" != $license && "10" != $license) {
  117.         pkalrp_admin_print_not_activated_header("Slide Out Related Posts Settings");
  118.     } else {
  119.         pkalrp_slideout_page();
  120.     }
  121. }
  122.  
  123. function pkalrp_admin_init_autolinks_page()
  124. {
  125.     $license = get_option("transient_mods_d4f3cd42325105d8d24a5a77996b6d92", "00");
  126.     if ("12" != $license && "22" != $license && "10" != $license) {
  127.         pkalrp_admin_print_not_activated_header("Auto Links Settings");
  128.     } else {
  129.         pkalrp_autolinks_page();
  130.     }
  131. }
  132.  
  133. function pkalrp_reg_enable_features()
  134. {
  135.     $options           = get_option("alrp_rp_options");
  136.     $options['enable'] = 1;
  137.     if ("free" == get_option("alrp_status")) {
  138.         $options['timthumb'] = 0;
  139.     }
  140.     update_option("alrp_rp_options", $options);
  141.     $options           = get_option("alrp_al_options");
  142.     $options['enable'] = 1;
  143.     update_option("alrp_al_options", $options);
  144.     $options           = get_option("alrp_sb_options");
  145.     $options['enable'] = 1;
  146.     update_option("alrp_sb_options", $options);
  147. }
  148.  
  149. function pkalrp_admin_registration()
  150. {
  151.     $prev    = !empty($_GET['prev']) ? $_GET['prev'] : "";
  152.     $next    = !empty($_GET['next']) ? $_GET['next'] : "";
  153.     $email   = !empty($_GET['email']) ? urldecode($_GET['email']) : "";
  154.     $license = !empty($_GET['key']) ? urldecode($_GET['key']) : "";
  155.     if ("new" == $prev && "two" == $next) {
  156.         update_option("transient_mods_d4f3cd42325105d8d24a5a77996b6d92", "11");
  157.         echo "\t\t\t<h3>STEP 2 - REGISTRATION</h3>\n\t\t\t<p>A confirmation email with subject \"Confirm your subscription for SEO ALRP plugin\" has been sent to you.</p><p>Please follow the following steps to finish your registration.</p>\n\t\t\t\t<ol>\n\t\t\t\t\t<li>Click the confirmation link inside the email, and you'll got another email with your license key in it.</li>\n\t\t\t\t\t<li>Fill in the form below with your email and license key.</l";
  158.         echo "i>\n\t\t\t\t</ol>\n\t\t\t\t<p>Note: Some time, the email will took a few minutes to arrived, so please wait.</p>\n\t\t";
  159.         pkalrp_reg_print_alreg_form();
  160.         echo "<p><a href=\"" . admin_url("admin.php?page=alrp&next=two&prev=alreg") . "\">Register as New User</a></p>";
  161.     } else if ("new" == $prev && "finish" == $next) {
  162.         update_option("transient_mods_d4f3cd42325105d8d24a5a77996b6d92", "12");
  163.         update_option("alrp_status", "registered");
  164.         pkalrp_reg_enable_features();
  165.         echo "\t\t\t<h3>REGISTRATION FINISH</h3>\n\t\t\t\t<p>Thank you! Your registration is finish.</p><p>You can start using the plugin by adjusting the <a href=\"";
  166.         echo admin_url("admin.php?page=alrp-autolinks");
  167.         echo "\">Auto Links</a>, <a href=\"";
  168.         echo admin_url("admin.php?page=alrp-relatedposts");
  169.         echo "\">Related Posts</a> and <a href=\"";
  170.         echo admin_url("admin.php?page=alrp-slideout");
  171.         echo "\">Slide Out Related Posts</a> settings to your needs.</p>\n\t\t";
  172.     } else if ("alreg" == $prev && "finish" == $next) {
  173.         if (pkalrp_reg_license_checker($email, $license)) {
  174.             update_option("transient_mods_d4f3cd42325105d8d24a5a77996b6d92", "12");
  175.             update_option("alrp_status", "registered");
  176.             update_option("alrp_users", array(
  177.                 "email" => $email,
  178.                 "license key" => $license
  179.             ));
  180.             pkalrp_reg_enable_features();
  181.             echo "\t\t\t<h3>REGISTRATION FINISH</h3>\n\t\t\t\t<p>Thank you! Your registration is finish.</p><p>You can start using the plugin by adjusting the <a href=\"";
  182.             echo admin_url("admin.php?page=alrp-autolinks");
  183.             echo "\">Auto Links</a>, <a href=\"";
  184.             echo admin_url("admin.php?page=alrp-relatedposts");
  185.             echo "\">Related Posts</a> and <a href=\"";
  186.             echo admin_url("admin.php?page=alrp-slideout");
  187.             echo "\">Slide Out Related Posts</a> settings to your needs.</p>\t\t\t\n\t\t";
  188.         } else {
  189.             update_option("transient_mods_d4f3cd42325105d8d24a5a77996b6d92", "11");
  190.             echo "\t\t\t\t<h3>STEP 2 - REGISTRATION</h3>\n\t\t\t\t<p>The license key is invalid, please try again.</p>\n\t\t\t";
  191.             pkalrp_reg_print_alreg_form($email);
  192.             echo "<p><a href=\"" . admin_url("admin.php?page=alrp&next=two&prev=alreg") . "\">Register as New User</a></p>";
  193.         }
  194.     } else if ("free" == $prev && "finish" == $next) {
  195.         update_option("transient_mods_d4f3cd42325105d8d24a5a77996b6d92", "10");
  196.         update_option("alrp_status", "free");
  197.         $options             = pkalrp_get_admin_rp_options();
  198.         $options['timthumb'] = 0;
  199.         update_option("alrp_rp_options", $options);
  200.         pkalrp_reg_enable_features();
  201.         echo "\t\t<h3>REGISTRATION FINISH</h3>\n\t\t<p>Thank you! Your registration is finish.</p><p>You can start using the plugin by adjusting the <a href=\"";
  202.         echo admin_url("admin.php?page=alrp-autolinks");
  203.         echo "\">Auto Links</a>, <a href=\"";
  204.         echo admin_url("admin.php?page=alrp-relatedposts");
  205.         echo "\">Related Posts</a> and <a href=\"";
  206.         echo admin_url("admin.php?page=alrp-slideout");
  207.         echo "\">Slide Out Related Posts</a> settings to your needs.</p>\n\t\t";
  208.     } else {
  209.         update_option("transient_mods_d4f3cd42325105d8d24a5a77996b6d92", "01");
  210.         echo "\t\t<h3>STEP 1 - REGISTRATION</h3>\n\t\t<p>Use form A if you already have the license key, and use form B to register as new user.</p>\n\t\t<h4>A. ALREADY REGISTERED BEFORE</h4>\n\t\t";
  211.         pkalrp_reg_print_alreg_form();
  212.         pkalrp_reg_print_aweber_form();
  213.     }
  214.     echo "\t    ";
  215.     echo "<s";
  216.     echo "cript type=\"text/javascript\">\n\t\t\tjQuery(document).ready(function(\$) {\n\t\t\t\t\$(\"#aweberform\").submit(function (event) {\n\t\t\t\t\tvar \$email = \$(\"#email\").val();\n\t\t\t\t\t\$('#token').val(\$.md5(\$email));\n\t\t\t\t});\n\t\t\t\t\$(\"#aweberform\").validate();\n\t\t\t\t\$(\"#reguser\").validate();\n\t\t\t});\n\t\t</script>\n\t";
  217. }
  218.  
  219. function pkalrp_reg_license_checker($email, $license)
  220. {
  221.     if ("3d4" . md5($email) . "d8d24" === $license) {
  222.         return true;
  223.     }
  224. }
  225.  
  226. function pkalrp_readonly_input($checkbox = false)
  227. {
  228.     if ("22" != get_option("transient_mods_d4f3cd42325105d8d24a5a77996b6d92", "00")) {
  229.         if ($checkbox) {
  230.             echo "disabled=\"disabled\"";
  231.         } else {
  232.             echo "readonly=\"readonly\"";
  233.         }
  234.     }
  235. }
  236.  
  237. function pkalrp_admin_print_current_license()
  238. {
  239.     $license = get_option("transient_mods_d4f3cd42325105d8d24a5a77996b6d92", "00");
  240.     switch ($license) {
  241.         case "22":
  242.             $ret = "<strong>PREMIUM USER</strong>. Thank you for your support!";
  243.             break;
  244.         case "12":
  245.             $ret = "<strong>REGISTERED USER</strong>. Thank you!";
  246.             break;
  247.         case "11":
  248.             $ret = "<strong>STEP 2 - REGISTRATION</strong>, please input your license key below.";
  249.             break;
  250.         case "01":
  251.             $ret = "<strong>STEP 1 - REGISTRATION</strong>, please complete the form below.";
  252.             break;
  253.         case "10":
  254.             $ret = "<strong>FREE USER</strong>.";
  255.             break;
  256.         case "00":
  257.             $ret = "<strong>PLUGIN NOT ACTIVATED</strong>. Select the type of license that you want below, and <strong>click the Activate button</strong>.";
  258.     }
  259.     echo "<div id=\"message\" class=\"updated fade\"><p>Your current license: " . $ret . "</p></div>";
  260. }
  261.  
  262. function pkalrp_admin_print_premium_auto_links($options)
  263. {
  264.     echo "\t<tr>\n        <th scope=\"row\">Manual auto links</th>\n        <td>\n\t        <label>";
  265.     echo "<s";
  266.     echo "pan style=\"color:#666666;margin-left:2px;\">Use this to promote ";
  267.     echo "<s";
  268.     echo "trong>affiliate product</strong> or auto create ";
  269.     echo "<s";
  270.     echo "trong>external link</strong> to trusted sites for SEO purpose.\n          \t";
  271.     pkalrp_print_manual_links($options['manuallinks']);
  272.     echo "        \tEdit below with format: ";
  273.     echo "<s";
  274.     echo "trong>Keyword,URL,nofollow</strong>. Use <i>comma</i> as delimiter; <i>one Keyword-URL per line</i>; use nofollow in affiliate link.</span><br />\n            <textarea rows=\"4\" cols=\"100\" name=\"alrp_al_options[manuallinks]\" ";
  275.     pkalrp_readonly_input();
  276.     echo "/>";
  277.     echo $options['manuallinks'];
  278.     echo "</textarea>\n            </label>\n        </td>\n     </tr>\n    ";
  279. }
  280.  
  281. function pkalrp_admin_print_premium_slideout($options)
  282. {
  283.     echo "\t<tr>\n\t\t<th scope=\"row\" colspan=\"2\" class=\"rowtitle\">";
  284.     echo "<s";
  285.     echo "trong>PREMIUM FEATURES</strong></th>\n\t</tr>\n\t<tr>\n\t\t<th scope=\"row\">Enable slidebox Ads</th>\n\t\t<td><label>\n\t\t    <input  ";
  286.     pkalrp_readonly_input(true);
  287.     echo " name=\"alrp_sb_options[enableads]\" type=\"checkbox\" value=\"1\" ";
  288.     checked($options['enableads'], 1);
  289.     echo " />\n\t\t    &nbsp;&nbsp;Yes<br/></label></td>\n\t</tr>\n\t<tr>\n\t\t<th scope=\"row\">Ad Slot #1</th>\n\t\t<td>\n\t\t\t<label>Amazon.com Affiliate Tracking ID<br/>\t\t\t\t    \n\t\t\t\t<input  ";
  290.     pkalrp_readonly_input();
  291.     echo "  type=\"text\" size=\"35\" name=\"alrp_sb_options[azonaffid]\" value=\"";
  292.     echo $options['azonaffid'];
  293.     echo "\" />\n\t\t\t\t    ";
  294.     echo "<s";
  295.     echo "pan>Needed to display Amazon Best Deal's of The Day</span></label>\n\t\t</td>\n\t</tr>\n\t<tr><th scope=\"row\">Ad Slot #2</th>\n\t\t<td>\n\t\t\t<table style=\"padding:0px;margin:-8px -10px;\">\n\t\t\t<tr>\n\t\t\t\t<td>\n\t\t\t\t\t<label>Ad Title:<br />\n\t\t\t\t\t<input  ";
  296.     pkalrp_readonly_input();
  297.     echo "  type=\"text\" size=\"35\" name=\"alrp_sb_options[customadstitle]\" value=\"";
  298.     echo $options['customadstitle'];
  299.     echo "\" /></label></td>\n\t\t\t\t\t<td><label>Ad URL:<br />\n\t\t\t\t\t<input  ";
  300.     pkalrp_readonly_input();
  301.     echo "  type=\"text\" size=\"75\"  name=\"alrp_sb_options[customadslink]\" value=\"";
  302.     echo $options['customadslink'];
  303.     echo "\" />\n\t\t    </label></td>\n\t\t\t</tr>\n\t\t\t</table>\n\t\t</td>\n\t</tr>\n\t<tr><th scope=\"row\">Ad Slot #3</th>\n\t\t<td>\n\t\t\t<table style=\"padding:0px;margin:-8px -10px;\">\n\t\t\t<tr>\n\t\t\t\t<td>\n\t\t\t\t\t<label>Ad Title:<br />\n\t\t\t\t\t<input  ";
  304.     pkalrp_readonly_input();
  305.     echo "  type=\"text\" size=\"35\" name=\"alrp_sb_options[customadstitle2]\" value=\"";
  306.     echo $options['customadstitle2'];
  307.     echo "\" /></label></td>\n\t\t\t\t\t<td><label>Ad URL:<br />\n\t\t\t\t\t<input  ";
  308.     pkalrp_readonly_input();
  309.     echo "  type=\"text\" size=\"75\"  name=\"alrp_sb_options[customadslink2]\" value=\"";
  310.     echo $options['customadslink2'];
  311.     echo "\" />\n\t\t    </label></td>\n\t\t\t</tr>\n\t\t\t</table>\n\t\t</td>\n\t</tr>\n\n      ";
  312. }
  313.  
  314. function pkalrp_admin_print_header_amazonaws()
  315. {
  316.     $ret     = get_transient("alrp_amazonaws");
  317.     $default = "<a href=\"http://www.jvzoo.com/c/8090/1816\" target=\"_blank\" class=\"alrptip\"><strong>#1 Seo Fast Indexer</strong> - Index Your Links in Record Time - Special Price (\$4.97)</a>";
  318.     if (empty($ret) && function_exists("curl_init")) {
  319.         $url     = "https://s3.amazonaws.com/poer/seo-alrp/seo-alrp.txt";
  320.         $crl     = curl_init();
  321.         $timeout = 5;
  322.         curl_setopt($crl, CURLOPT_URL, $url);
  323.         curl_setopt($crl, CURLOPT_RETURNTRANSFER, 1);
  324.         curl_setopt($crl, CURLOPT_CONNECTTIMEOUT, $timeout);
  325.         $ret = curl_exec($crl);
  326.         curl_close($crl);
  327.     }
  328.     if (empty($ret)) {
  329.         $ret = $default;
  330.     }
  331.     set_transient("alrp_amazonaws", $ret, 3600 * 24);
  332.     echo "<p style=\"padding-left: 10px;\">Check this out: " . $ret . "</p>";
  333. }
  334.  
  335. add_action("admin_notices", "pkalrp_admin_notices");
  336. include_once("form.php");
  337. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement