Beispiel #1
0
 public static function deactivate_key()
 {
     if (PP_MULTISITE && !is_super_admin() && (pp_is_network_activated(PPC_BASENAME) || pp_is_mu_plugin(PPC_FILE))) {
         return;
     }
     require_once dirname(__FILE__) . '/plugin_pp.php';
     $support_key = pp_get_option('support_key');
     $request_vars = array('key' => $support_key[1], 'site' => site_url(''));
     $response = PP_Plugin_Status::callhome('deactivate-key', $request_vars);
     $result = json_decode($response);
     if ($result[0] == "0") {
         pp_delete_option('support_key');
     }
     echo $response;
     exit;
 }
Beispiel #2
0
 function default_options($args)
 {
     check_admin_referer('pp-update-options');
     $default_prefix = apply_filters('pp_options_apply_default_prefix', '', $args);
     $reviewed_options = array_merge(explode(',', $_POST['all_options']), explode(',', $_POST['all_otype_options']));
     foreach ($reviewed_options as $option_name) {
         pp_delete_option($default_prefix . $option_name, $args);
     }
 }