Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php goto Rvv1d; PP5d6: function srx_plugin_activation_menu_ws_wpaikit() { global $srx_..

Decoded Output download

<?php 
 goto Rvv1d; PP5d6: function srx_plugin_activation_menu_ws_wpaikit() { global $srx_plugin_name_ws_wpaikit; $tab_name = $srx_plugin_name_ws_wpaikit . " License"; $tab_slug = sanitize_title($tab_name); add_menu_page($tab_name, $tab_name, "manage_options", $tab_slug, "srx_add_license_page_ws_wpaikit"); } goto horZh; Rvv1d: global $srx_plugin_name_ws_wpaikit; goto WZr9G; pujEN: function srx_activation_license_jquery_wpaikit_ws() { ?> 
    <script type="text/javascript"> 
    jQuery(document).ready(function(){ 
 
        jQuery("#activation_form").submit(function(e){ 
            e.preventDefault(); 
            var ajaxurl = "<?php  echo admin_url("admin-ajax.php"); ?>"; 
 
            var activation_code = jQuery(".activation_code").val(); 
            var admin_email = jQuery("#admin_email").val(); 
            var admin_name = jQuery("#admin_name").val(); 
            var site_url = jQuery("#site_url").val(); 
            var plugin_name = jQuery("#plugin_name").val(); 
            var license_action = jQuery("#license_action").val(); 
            var plugin_id = 18; 
            var data = { 
                  'action' : 'srx_activate_license_wpaikit', 
                  'activation_code' : activation_code, 
                  'admin_email' : admin_email, 
                  'admin_name' : admin_name, 
                  'site_url' : site_url, 
                  'plugin_name' : plugin_name, 
                  'license_action' : license_action, 
                  'plugin_id' : plugin_id 
 
            }; 
 
            jQuery.post(ajaxurl, data, function(response){ 
 
                 jQuery("#resultDiv").html(response); 
                        jQuery("#activation_form").trigger('reset'); 
            }); 
        }); 
 
    }); 
    </script> 
<?php  } goto C7yCM; WZr9G: function srx_plugin_license_function_ws_wpaikit() { add_action("admin_menu", "srx_plugin_activation_menu_ws_wpaikit"); } goto PP5d6; horZh: function srx_add_license_page_ws_wpaikit() { add_action("admin_footer", "srx_activation_license_jquery_wpaikit_ws"); global $srx_plugin_name_ws_wpaikit; $admin_email = get_option("admin_email"); $site_url = get_option("siteurl"); $current_user = wp_get_current_user(); $first_name = $current_user->user_firstname; $last_name = $current_user->user_lastname; $full_name = $first_name . " " . $last_name; $licence_key = srx_dynamic_key_generator_ws_wpaikit($srx_plugin_name_top = ''); $srx_licence_key_wpaikit = get_option($licence_key); $srx_activated_license_d = get_option("activate_lic_data_wpaikit"); if (get_option("_wpaikitprolicenseexpd") != false && get_option("_wpaikitprolicensetype") == "trial") { $srx_expiry_license_d = get_option("_wpaikitprolicenseexpd"); $srx_expiry_license_d = str_replace(" 00:00:00", '', $srx_expiry_license_d); $srx_expiry_license_d = str_replace("-", "/", $srx_expiry_license_d); } else { $srx_expiry_license_d = get_option("activate_lic_last_data_wpaikit"); } error_log("files added"); $current_date = date("Y/m/d"); if ($srx_licence_key_wpaikit == false) { ?> 
                <h1>WPAIKIT License</h1><br> 
                <div id="resultDiv"></div> 
                <div style="width:50%; margin:0 auto; margin-top:30px;"> 
                    <form id="activation_form" autocomplete="off"> 
                        <div id="titlediv"> 
                            <div id="titlewrap"> 
                                <label class="" id="title-prompt-text" for="title"></label> 
                                <input type="text" name="activation_code" size="30" id="title" placeholder="Enter Activation code" required autofocus="on" class="activation_code"> 
 
                                <!-- <span style="font-size: 12px;">To buy plugin license please visit <a href="https://wpdki.com/buy-now/" target="_blank">wpdki.com</a></span> --> 
                            </div> 
                        </div> 
                        <input type="hidden" name="admin_email" value="<?php  echo $admin_email; ?> 
" id="admin_email"> 
                        <input type="hidden" name="admin_name" value="<?php  echo $full_name; ?> 
" id="admin_name"> 
                        <input type="hidden" name="site_url" value="<?php  echo $site_url; ?> 
" id="site_url"> 
                        <input type="hidden" name="plugin_name" value="<?php  echo $srx_plugin_name_ws_wpaikit; ?> 
" id="plugin_name"> 
                        <input type="hidden" name="license_action" value="license_activation" id="license_action"> 
                        <input type="submit" name="activate_plugin" value="Activate Plugin" style="float: right; margin-top: 10px; font-size: 15px;" class="button button-primary button-large"> 
                    </form> 
                </div><!--outer div--> 
            <?php  } else { ?> 
                <h1>WPAIKIT License</h1><br> 
                <div id="resultDiv"></div> 
                <div style="width:50%; margin:0 auto; margin-top:30px;"> 
                    <form id="activation_form" autocomplete="off"> 
                        <div id="titlediv"> 
                            <div id="titlewrap"> 
                                <label class="" id="title-prompt-text" for="title"></label> 
                                <?php  if (strtotime($current_date) < strtotime($srx_expiry_license_d)) { ?> 
                                            <input type="text" name="activation_code" size="30" id="title" placeholder="Enter Activation code" required autofocus="on" class="activation_code" value="<?php  echo $srx_licence_key_wpaikit; ?> 
" disabled> 
                                            <span style="font-size: 12px;">Your license key will expire on <?php  echo $srx_expiry_license_d; ?> 
 .</span> 
                                        <?php  } else { ?> 
                                            <input type="text" name="activation_code" size="30" id="title" placeholder="Enter Activation code" required autofocus="on" class="activation_code"> 
                                            <span style="font-size: 12px;">Your License has expired. Please purchase your license from <a href="#">wpaikit.com</a></span> 
                                        <?php  } ?> 
                                 
                            </div> 
                        </div> 
                        <input type="hidden" name="admin_email" value="<?php  echo $admin_email; ?> 
" id="admin_email"> 
                        <input type="hidden" name="admin_name" value="<?php  echo $full_name; ?> 
" id="admin_name"> 
                        <input type="hidden" name="site_url" value="<?php  echo $site_url; ?> 
" id="site_url"> 
                        <input type="hidden" name="plugin_name" value="<?php  echo $srx_plugin_name_ws_wpaikit; ?> 
" id="plugin_name"> 
                        <input type="hidden" name="license_action" value="license_activation" id="license_action"> 
                        <?php  if (strtotime($current_date) < strtotime($srx_expiry_license_d)) { ?> 
                                    <span class="button" style="float: right; margin-top: 10px; font-size: 15px;background-color: green;color: #fff;">License Activated</span> 
                                <?php  } else { ?> 
                                    <input type="submit" name="activate_plugin" value="Activate Plugin" style="float: right; margin-top: 10px; font-size: 15px;" class="button button-primary button-large"> 
                                <?php  } ?> 
                         
                        <div style="clear:both;"></div> 
                    </form> 
                </div><!--outer div--> 
            <?php  } } goto pujEN; C7yCM: add_action("wp_ajax_srx_activate_license_wpaikit", "srx_activate_license_wpaikit_ws"); goto AVP7T; AVP7T: function srx_activate_license_wpaikit_ws() { $plugin_id = 18; $data = array("activation_code" => $_POST["activation_code"], "admin_email" => $_POST["admin_email"], "admin_name" => $_POST["admin_name"], "site_url" => $_POST["site_url"], "plugin_name" => $_POST["plugin_name"], "license_action" => $_POST["license_action"], "plugin_id" => $plugin_id); $result = srx_curl_function_ws_wpaikit($data); $result = json_decode($result, true); if ($result["activation"] == 0) { ?> 
 
            <div id="message" style="border-left-color: red;" class="updated notice is-dismissible"> 
              <p style="font-size: 16px;"><strong>Invalid</strong> activation code.</p> 
            </div> 
 
          <?php  } if ($result["activation"] == 1) { ?> 
 
              <div id="message" class="updated notice is-dismissible"> 
              <p style="font-size: 16px;">Plugin <strong>activated</strong>.</p> 
            </div> 
 
            <?php  if (!empty($result["type"])) { update_option("_wpaikitprolicensetype", $result["type"]); } if (!empty($result["expiry_date"])) { update_option("_wpaikitprolicenseexpd", $result["expiry_date"]); } $activation_code = $_POST["activation_code"]; $key = srx_dynamic_key_generator_ws_wpaikit($_POST["plugin_name"]); $license_key = add_option($key, $activation_code); if ($license_key) { $curr_date = date("Y/m/d"); $last_date = date("Y/m/d", strtotime($curr_date . " + 1 years")); $activated_lic_date = add_option("activate_lic_data_wpaikit", $curr_date); $activated_lic_last_date = add_option("activate_lic_last_data_wpaikit", $last_date); ?> 
                  <script> 
                    var rootUrl = window.location.pathname; 
                    var page = "<?php  echo sanitize_title($_POST["plugin_name"]); ?>"; 
                    window.location =rootUrl +"?page=wpaikit_settings"; 
                  </script> 
            <?php  } } wp_die(); } ?>

Did this file decode correctly?

Original Code

<?php
 goto Rvv1d; PP5d6: function srx_plugin_activation_menu_ws_wpaikit() { global $srx_plugin_name_ws_wpaikit; $tab_name = $srx_plugin_name_ws_wpaikit . "\x20\x4c\151\143\145\156\x73\145"; $tab_slug = sanitize_title($tab_name); add_menu_page($tab_name, $tab_name, "\155\x61\156\141\147\145\137\x6f\160\x74\151\157\x6e\x73", $tab_slug, "\x73\x72\x78\x5f\x61\x64\144\137\154\x69\x63\145\156\x73\x65\137\x70\x61\x67\x65\x5f\x77\x73\137\x77\x70\141\x69\x6b\151\x74"); } goto horZh; Rvv1d: global $srx_plugin_name_ws_wpaikit; goto WZr9G; pujEN: function srx_activation_license_jquery_wpaikit_ws() { ?>
    <script type="text/javascript">
    jQuery(document).ready(function(){

        jQuery("#activation_form").submit(function(e){
            e.preventDefault();
            var ajaxurl = "<?php  echo admin_url("\141\x64\155\x69\156\x2d\141\152\141\170\x2e\160\x68\x70"); ?>";

            var activation_code = jQuery(".activation_code").val();
            var admin_email = jQuery("#admin_email").val();
            var admin_name = jQuery("#admin_name").val();
            var site_url = jQuery("#site_url").val();
            var plugin_name = jQuery("#plugin_name").val();
            var license_action = jQuery("#license_action").val();
            var plugin_id = 18;
            var data = {
                  'action' : 'srx_activate_license_wpaikit',
                  'activation_code' : activation_code,
                  'admin_email' : admin_email,
                  'admin_name' : admin_name,
                  'site_url' : site_url,
                  'plugin_name' : plugin_name,
                  'license_action' : license_action,
                  'plugin_id' : plugin_id

            };

            jQuery.post(ajaxurl, data, function(response){

                 jQuery("#resultDiv").html(response);
                        jQuery("#activation_form").trigger('reset');
            });
        });

    });
    </script>
<?php  } goto C7yCM; WZr9G: function srx_plugin_license_function_ws_wpaikit() { add_action("\141\144\155\x69\x6e\137\x6d\145\156\165", "\163\x72\x78\x5f\160\154\x75\147\151\x6e\x5f\141\x63\164\x69\166\x61\x74\151\157\x6e\x5f\155\145\x6e\165\137\167\x73\x5f\167\x70\x61\151\x6b\151\164"); } goto PP5d6; horZh: function srx_add_license_page_ws_wpaikit() { add_action("\x61\x64\155\151\156\x5f\146\157\157\164\145\x72", "\x73\162\x78\137\141\x63\x74\x69\x76\x61\x74\x69\157\156\x5f\x6c\151\143\145\x6e\163\145\x5f\x6a\x71\165\x65\162\x79\x5f\x77\160\x61\151\x6b\151\x74\x5f\167\163"); global $srx_plugin_name_ws_wpaikit; $admin_email = get_option("\x61\144\x6d\x69\156\x5f\145\x6d\141\151\x6c"); $site_url = get_option("\x73\151\164\x65\165\162\154"); $current_user = wp_get_current_user(); $first_name = $current_user->user_firstname; $last_name = $current_user->user_lastname; $full_name = $first_name . "\40" . $last_name; $licence_key = srx_dynamic_key_generator_ws_wpaikit($srx_plugin_name_top = ''); $srx_licence_key_wpaikit = get_option($licence_key); $srx_activated_license_d = get_option("\141\x63\164\151\166\141\x74\145\x5f\154\151\143\137\x64\x61\x74\141\137\x77\160\141\151\153\151\x74"); if (get_option("\137\167\x70\141\x69\x6b\151\x74\x70\162\x6f\x6c\x69\143\145\156\x73\145\145\x78\160\144") != false && get_option("\x5f\167\x70\x61\151\x6b\151\164\160\x72\157\154\151\x63\145\x6e\x73\x65\x74\x79\x70\145") == "\x74\162\x69\x61\154") { $srx_expiry_license_d = get_option("\x5f\167\x70\141\151\x6b\x69\164\x70\162\x6f\154\x69\143\145\x6e\163\x65\145\x78\160\144"); $srx_expiry_license_d = str_replace("\x20\60\60\x3a\x30\60\72\60\60", '', $srx_expiry_license_d); $srx_expiry_license_d = str_replace("\55", "\57", $srx_expiry_license_d); } else { $srx_expiry_license_d = get_option("\141\143\x74\151\166\141\x74\145\137\154\151\143\137\154\141\x73\164\x5f\144\141\164\141\137\167\x70\141\151\153\151\x74"); } error_log("\x66\151\x6c\x65\x73\x20\x61\x64\x64\145\x64"); $current_date = date("\x59\57\x6d\57\144"); if ($srx_licence_key_wpaikit == false) { ?>
                <h1>WPAIKIT License</h1><br>
                <div id="resultDiv"></div>
                <div style="width:50%; margin:0 auto; margin-top:30px;">
                    <form id="activation_form" autocomplete="off">
                        <div id="titlediv">
                            <div id="titlewrap">
                                <label class="" id="title-prompt-text" for="title"></label>
                                <input type="text" name="activation_code" size="30" id="title" placeholder="Enter Activation code" required autofocus="on" class="activation_code">

                                <!-- <span style="font-size: 12px;">To buy plugin license please visit <a href="https://wpdki.com/buy-now/" target="_blank">wpdki.com</a></span> -->
                            </div>
                        </div>
                        <input type="hidden" name="admin_email" value="<?php  echo $admin_email; ?>
" id="admin_email">
                        <input type="hidden" name="admin_name" value="<?php  echo $full_name; ?>
" id="admin_name">
                        <input type="hidden" name="site_url" value="<?php  echo $site_url; ?>
" id="site_url">
                        <input type="hidden" name="plugin_name" value="<?php  echo $srx_plugin_name_ws_wpaikit; ?>
" id="plugin_name">
                        <input type="hidden" name="license_action" value="license_activation" id="license_action">
                        <input type="submit" name="activate_plugin" value="Activate Plugin" style="float: right; margin-top: 10px; font-size: 15px;" class="button button-primary button-large">
                    </form>
                </div><!--outer div-->
            <?php  } else { ?>
                <h1>WPAIKIT License</h1><br>
                <div id="resultDiv"></div>
                <div style="width:50%; margin:0 auto; margin-top:30px;">
                    <form id="activation_form" autocomplete="off">
                        <div id="titlediv">
                            <div id="titlewrap">
                                <label class="" id="title-prompt-text" for="title"></label>
                                <?php  if (strtotime($current_date) < strtotime($srx_expiry_license_d)) { ?>
                                            <input type="text" name="activation_code" size="30" id="title" placeholder="Enter Activation code" required autofocus="on" class="activation_code" value="<?php  echo $srx_licence_key_wpaikit; ?>
" disabled>
                                            <span style="font-size: 12px;">Your license key will expire on <?php  echo $srx_expiry_license_d; ?>
 .</span>
                                        <?php  } else { ?>
                                            <input type="text" name="activation_code" size="30" id="title" placeholder="Enter Activation code" required autofocus="on" class="activation_code">
                                            <span style="font-size: 12px;">Your License has expired. Please purchase your license from <a href="#">wpaikit.com</a></span>
                                        <?php  } ?>
                                
                            </div>
                        </div>
                        <input type="hidden" name="admin_email" value="<?php  echo $admin_email; ?>
" id="admin_email">
                        <input type="hidden" name="admin_name" value="<?php  echo $full_name; ?>
" id="admin_name">
                        <input type="hidden" name="site_url" value="<?php  echo $site_url; ?>
" id="site_url">
                        <input type="hidden" name="plugin_name" value="<?php  echo $srx_plugin_name_ws_wpaikit; ?>
" id="plugin_name">
                        <input type="hidden" name="license_action" value="license_activation" id="license_action">
                        <?php  if (strtotime($current_date) < strtotime($srx_expiry_license_d)) { ?>
                                    <span class="button" style="float: right; margin-top: 10px; font-size: 15px;background-color: green;color: #fff;">License Activated</span>
                                <?php  } else { ?>
                                    <input type="submit" name="activate_plugin" value="Activate Plugin" style="float: right; margin-top: 10px; font-size: 15px;" class="button button-primary button-large">
                                <?php  } ?>
                        
                        <div style="clear:both;"></div>
                    </form>
                </div><!--outer div-->
            <?php  } } goto pujEN; C7yCM: add_action("\x77\x70\137\141\152\141\x78\137\x73\x72\x78\x5f\141\143\x74\151\166\141\164\x65\137\154\151\x63\145\x6e\163\145\137\167\x70\x61\x69\x6b\151\164", "\x73\162\170\x5f\x61\143\164\x69\x76\x61\164\x65\x5f\154\x69\x63\145\156\x73\x65\x5f\167\160\x61\x69\x6b\x69\164\x5f\167\163"); goto AVP7T; AVP7T: function srx_activate_license_wpaikit_ws() { $plugin_id = 18; $data = array("\141\x63\x74\151\166\141\164\151\x6f\156\x5f\143\157\144\x65" => $_POST["\x61\x63\164\x69\166\141\x74\x69\157\156\x5f\x63\x6f\x64\x65"], "\x61\144\x6d\x69\x6e\x5f\x65\155\x61\151\154" => $_POST["\x61\144\x6d\151\156\137\145\155\x61\x69\x6c"], "\141\144\155\151\156\x5f\x6e\x61\155\145" => $_POST["\x61\144\x6d\151\x6e\137\156\x61\155\145"], "\163\x69\x74\145\x5f\165\x72\154" => $_POST["\x73\151\x74\x65\137\x75\162\154"], "\160\x6c\x75\147\151\156\x5f\x6e\x61\x6d\145" => $_POST["\x70\154\165\147\151\x6e\x5f\156\x61\155\145"], "\154\151\143\x65\x6e\x73\x65\137\x61\143\164\151\x6f\156" => $_POST["\154\x69\x63\145\x6e\x73\x65\x5f\141\143\164\151\157\x6e"], "\160\154\x75\147\151\156\137\x69\144" => $plugin_id); $result = srx_curl_function_ws_wpaikit($data); $result = json_decode($result, true); if ($result["\141\143\164\151\166\x61\164\151\x6f\156"] == 0) { ?>

            <div id="message" style="border-left-color: red;" class="updated notice is-dismissible">
              <p style="font-size: 16px;"><strong>Invalid</strong> activation code.</p>
            </div>

          <?php  } if ($result["\141\x63\164\x69\166\x61\164\x69\157\x6e"] == 1) { ?>

              <div id="message" class="updated notice is-dismissible">
              <p style="font-size: 16px;">Plugin <strong>activated</strong>.</p>
            </div>

            <?php  if (!empty($result["\x74\x79\160\145"])) { update_option("\x5f\167\x70\141\151\153\x69\164\160\162\157\154\x69\x63\145\x6e\x73\x65\x74\171\x70\x65", $result["\164\171\160\145"]); } if (!empty($result["\x65\170\160\x69\162\x79\137\144\141\x74\x65"])) { update_option("\x5f\167\x70\x61\x69\153\151\164\x70\x72\x6f\154\151\143\145\x6e\163\145\x65\x78\160\144", $result["\145\170\x70\x69\x72\x79\137\144\141\x74\x65"]); } $activation_code = $_POST["\x61\143\x74\x69\166\x61\x74\151\157\156\x5f\x63\157\144\145"]; $key = srx_dynamic_key_generator_ws_wpaikit($_POST["\160\x6c\165\147\151\x6e\x5f\x6e\141\155\145"]); $license_key = add_option($key, $activation_code); if ($license_key) { $curr_date = date("\131\57\x6d\57\144"); $last_date = date("\x59\57\x6d\57\144", strtotime($curr_date . "\x20\x2b\40\61\x20\x79\145\x61\162\x73")); $activated_lic_date = add_option("\141\x63\164\x69\x76\x61\164\145\137\154\x69\x63\137\144\141\164\141\x5f\x77\x70\x61\x69\x6b\x69\x74", $curr_date); $activated_lic_last_date = add_option("\141\143\164\x69\166\x61\164\145\137\154\151\143\x5f\x6c\141\163\x74\137\144\141\x74\x61\137\167\x70\x61\x69\x6b\x69\164", $last_date); ?>
                  <script>
                    var rootUrl = window.location.pathname;
                    var page = "<?php  echo sanitize_title($_POST["\160\x6c\x75\x67\x69\156\x5f\156\141\x6d\x65"]); ?>";
                    window.location =rootUrl +"?page=wpaikit_settings";
                  </script>
            <?php  } } wp_die(); }

Function Calls

None

Variables

None

Stats

MD5 b9a8f3a0b69f8b508ff64060396e60ed
Eval Count 0
Decode Time 54 ms