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 CuxFt; Tu5mw: function tpf_custom_maintenance_settings() { add_options_page("..
Decoded Output download
<?php
goto CuxFt; Tu5mw: function tpf_custom_maintenance_settings() { add_options_page("Onderhoudsmodus instellingen", "Onderhoudsmodus", "manage_options", "tpf-custom-maintenance-settings", "tpf_custom_maintenance_settings_page"); } goto sCZ1M; ogp10: function tpf_get_user_ip() { if (isset($_SERVER["HTTP_CF_CONNECTING_IP"])) { return $_SERVER["HTTP_CF_CONNECTING_IP"]; } else { return $_SERVER["REMOTE_ADDR"]; } } goto qZnhr; CuxFt: if (!defined("ABSPATH")) { die; } goto El1gB; El1gB: function tpf_custom_maintenance_mode() { $allowed_ips = get_option("tpf_custom_maintenance_allowed_ips", array()); $current_ip = tpf_get_user_ip(); if (isset($_GET["tpf-allow-me"]) && !in_array($current_ip, $allowed_ips)) { $allowed_ips[] = $current_ip; update_option("tpf_custom_maintenance_allowed_ips", $allowed_ips); } if (!in_array($current_ip, $allowed_ips)) { status_header(503); header("Retry-After: 3600"); wp_redirect("https://www.tpf.nu"); die; } } goto IWp7W; Ino0o: function tpf_custom_maintenance_settings_page() { if (!current_user_can("manage_options")) { wp_die("Je hebt geen toegang tot deze pagina."); } if (isset($_POST["submit"])) { $allowed_ips = explode("\xa", sanitize_textarea_field($_POST["allowed_ips"])); $allowed_ips = array_map("trim", $allowed_ips); update_option("tpf_custom_maintenance_allowed_ips", $allowed_ips); echo "<div class="updated"><p>Instellingen opgeslagen.</p></div>"; } $allowed_ips = get_option("tpf_custom_maintenance_allowed_ips", array()); ?>
<div class="wrap"><h2>Onderhoudsmodus Instellingen</h2><form action=""method="post"><label for="allowed_ips">Toegestane IP-adressen (n per regel):</label><br><textarea cols="50"id="allowed_ips"name="allowed_ips"rows="5"><?php echo implode("\xa", array_map("esc_attr", $allowed_ips)); ?>
</textarea><br><br><input class="button button-primary"name="submit"type="submit"value="Opslaan"></form></div><?php } goto tGRMP; yiRvU: add_action("admin_notices", "tpf_check_caching_plugin"); goto N5XWH; IWp7W: add_action("wp", "tpf_custom_maintenance_mode"); goto ogp10; qZnhr: function tpf_display_maintenance_page() { wp_die("<h1>Website is in onderhoud</h1><p>Probeer het later opnieuw.</p>"); } goto Tu5mw; tGRMP: function tpf_check_caching_plugin() { $active_plugins = get_option("active_plugins"); $caching_plugins = array("wp-super-cache/wp-cache.php", "w3-total-cache/w3-total-cache.php", "wp-fastest-cache/wpFastestCache.php", "wp-rocket/wp-rocket.php", "wp-optimize/wp-optimize.php", "autoptimize/autoptimize.php"); foreach ($caching_plugins as $plugin) { if (in_array($plugin, $active_plugins)) { echo "<div class="notice notice-warning is-dismissible"><p><strong>Onderhoudsmodus waarschuwing:</strong> Er is een caching-plugin geactiveerd. Zorg ervoor dat je de homepage uitsluit van caching om problemen te voorkomen tijdens onderhoud.</p></div>"; break; } } } goto yiRvU; sCZ1M: add_action("admin_menu", "tpf_custom_maintenance_settings"); goto Ino0o; N5XWH: ?>
Did this file decode correctly?
Original Code
<?php
goto CuxFt; Tu5mw: function tpf_custom_maintenance_settings() { add_options_page("\117\156\x64\x65\x72\x68\157\165\x64\163\x6d\x6f\x64\165\x73\x20\x69\156\x73\164\x65\x6c\x6c\151\x6e\x67\145\156", "\117\x6e\144\145\162\x68\157\165\144\163\x6d\x6f\144\165\163", "\155\x61\x6e\141\147\145\137\x6f\x70\x74\151\157\156\x73", "\164\160\146\x2d\143\x75\163\x74\x6f\155\x2d\155\x61\x69\x6e\x74\x65\156\x61\156\143\x65\x2d\x73\145\164\164\151\156\x67\x73", "\164\x70\x66\137\x63\165\163\164\157\x6d\137\155\141\151\x6e\164\145\x6e\141\156\x63\x65\x5f\163\x65\164\164\x69\x6e\147\163\137\x70\141\x67\145"); } goto sCZ1M; ogp10: function tpf_get_user_ip() { if (isset($_SERVER["\x48\124\124\x50\x5f\x43\x46\x5f\103\x4f\x4e\116\105\x43\x54\x49\x4e\x47\137\111\120"])) { return $_SERVER["\x48\x54\x54\x50\x5f\x43\x46\137\x43\x4f\116\x4e\x45\103\x54\x49\116\107\137\x49\x50"]; } else { return $_SERVER["\122\105\115\117\x54\x45\137\x41\104\104\122"]; } } goto qZnhr; CuxFt: if (!defined("\x41\x42\x53\x50\x41\x54\110")) { die; } goto El1gB; El1gB: function tpf_custom_maintenance_mode() { $allowed_ips = get_option("\x74\x70\146\137\x63\165\163\x74\157\x6d\x5f\x6d\x61\x69\156\x74\x65\156\x61\x6e\143\145\137\x61\x6c\x6c\x6f\167\x65\x64\x5f\x69\160\163", array()); $current_ip = tpf_get_user_ip(); if (isset($_GET["\164\160\x66\55\141\154\x6c\x6f\x77\55\x6d\145"]) && !in_array($current_ip, $allowed_ips)) { $allowed_ips[] = $current_ip; update_option("\164\x70\x66\137\x63\165\163\164\x6f\x6d\x5f\x6d\141\151\156\x74\x65\x6e\141\x6e\x63\x65\137\x61\x6c\x6c\157\x77\145\x64\x5f\151\x70\x73", $allowed_ips); } if (!in_array($current_ip, $allowed_ips)) { status_header(503); header("\x52\x65\x74\162\x79\55\x41\146\164\145\162\72\40\x33\66\x30\x30"); wp_redirect("\x68\164\x74\x70\163\72\57\57\167\167\x77\x2e\164\x70\x66\x2e\x6e\165"); die; } } goto IWp7W; Ino0o: function tpf_custom_maintenance_settings_page() { if (!current_user_can("\155\141\x6e\x61\x67\x65\x5f\157\x70\x74\x69\x6f\x6e\x73")) { wp_die("\112\x65\40\x68\145\x62\x74\40\147\145\145\x6e\x20\164\x6f\x65\x67\x61\156\147\40\x74\x6f\164\x20\144\145\x7a\x65\40\x70\x61\x67\x69\156\x61\x2e"); } if (isset($_POST["\163\x75\x62\x6d\x69\164"])) { $allowed_ips = explode("\xa", sanitize_textarea_field($_POST["\x61\x6c\x6c\x6f\x77\145\144\x5f\x69\160\x73"])); $allowed_ips = array_map("\x74\162\151\x6d", $allowed_ips); update_option("\164\x70\146\x5f\x63\165\x73\164\x6f\155\x5f\x6d\141\x69\156\164\x65\x6e\141\156\143\145\137\141\154\154\157\167\145\x64\x5f\151\160\163", $allowed_ips); echo "\74\144\151\x76\40\x63\x6c\x61\163\x73\75\42\x75\x70\144\x61\164\145\x64\x22\76\x3c\x70\76\111\156\x73\164\x65\x6c\x6c\151\x6e\147\x65\x6e\40\x6f\x70\x67\145\163\x6c\141\x67\x65\156\x2e\x3c\57\x70\x3e\74\x2f\x64\151\166\76"; } $allowed_ips = get_option("\164\160\x66\x5f\143\165\x73\x74\x6f\x6d\137\155\141\151\x6e\164\x65\156\x61\x6e\143\145\137\x61\x6c\154\157\x77\x65\x64\137\x69\x70\163", array()); ?>
<div class="wrap"><h2>Onderhoudsmodus Instellingen</h2><form action=""method="post"><label for="allowed_ips">Toegestane IP-adressen (n per regel):</label><br><textarea cols="50"id="allowed_ips"name="allowed_ips"rows="5"><?php echo implode("\xa", array_map("\145\x73\x63\x5f\x61\x74\164\162", $allowed_ips)); ?>
</textarea><br><br><input class="button button-primary"name="submit"type="submit"value="Opslaan"></form></div><?php } goto tGRMP; yiRvU: add_action("\x61\144\x6d\151\156\x5f\x6e\x6f\x74\x69\143\x65\163", "\x74\x70\146\x5f\x63\x68\x65\x63\153\x5f\143\141\143\x68\x69\x6e\x67\x5f\x70\154\165\147\151\x6e"); goto N5XWH; IWp7W: add_action("\167\x70", "\x74\160\146\137\x63\x75\x73\164\x6f\x6d\x5f\155\141\151\x6e\x74\x65\x6e\x61\156\x63\x65\137\155\x6f\x64\145"); goto ogp10; qZnhr: function tpf_display_maintenance_page() { wp_die("\x3c\x68\x31\76\x57\x65\142\x73\x69\164\x65\x20\x69\x73\40\151\156\x20\157\156\x64\145\162\150\x6f\x75\144\x3c\x2f\150\61\76\x3c\160\x3e\x50\162\157\x62\145\x65\162\x20\150\x65\164\x20\x6c\x61\164\145\x72\x20\157\160\156\x69\x65\165\167\56\x3c\x2f\x70\x3e"); } goto Tu5mw; tGRMP: function tpf_check_caching_plugin() { $active_plugins = get_option("\x61\143\x74\151\166\x65\x5f\160\154\x75\x67\151\x6e\163"); $caching_plugins = array("\167\160\55\x73\165\160\x65\x72\55\143\141\143\150\145\x2f\167\160\x2d\x63\141\143\x68\145\x2e\160\x68\160", "\x77\63\x2d\164\157\x74\x61\x6c\55\x63\x61\143\x68\x65\x2f\167\63\x2d\x74\157\164\141\154\55\x63\x61\143\150\145\x2e\160\x68\160", "\x77\160\55\146\141\163\164\x65\163\164\x2d\143\141\x63\150\145\57\x77\x70\x46\x61\x73\x74\x65\163\x74\x43\141\x63\x68\x65\56\x70\x68\160", "\x77\160\55\162\157\143\x6b\x65\164\57\x77\x70\55\162\x6f\x63\153\x65\164\x2e\x70\x68\x70", "\167\x70\x2d\157\x70\164\151\x6d\151\172\145\57\167\x70\x2d\157\160\164\151\x6d\x69\172\145\56\x70\x68\160", "\141\x75\x74\x6f\x70\x74\151\155\151\172\x65\57\x61\x75\164\157\x70\164\151\x6d\151\x7a\x65\x2e\x70\x68\x70"); foreach ($caching_plugins as $plugin) { if (in_array($plugin, $active_plugins)) { echo "\x3c\144\151\166\40\x63\x6c\141\x73\163\75\x22\156\157\164\151\x63\145\40\156\x6f\164\x69\x63\145\x2d\x77\x61\x72\x6e\x69\156\147\x20\x69\163\55\144\151\163\x6d\151\163\x73\151\142\154\x65\x22\x3e\x3c\x70\76\74\163\164\162\x6f\x6e\x67\76\117\x6e\144\x65\162\x68\157\165\144\163\155\157\x64\165\163\40\167\x61\141\162\x73\143\150\165\x77\151\156\147\x3a\x3c\57\163\x74\x72\157\x6e\147\76\x20\x45\162\x20\x69\x73\x20\145\x65\x6e\x20\143\141\143\150\151\x6e\x67\55\x70\154\165\147\x69\156\40\x67\145\141\x63\164\151\x76\x65\145\162\144\56\40\132\x6f\162\147\40\x65\x72\166\157\x6f\x72\40\x64\x61\164\x20\152\x65\40\x64\145\x20\x68\x6f\155\x65\160\141\147\x65\x20\165\x69\x74\163\x6c\x75\x69\x74\x20\x76\141\x6e\x20\143\x61\143\x68\x69\x6e\x67\x20\157\155\40\160\162\x6f\142\x6c\145\155\x65\156\40\164\145\40\x76\x6f\x6f\x72\x6b\x6f\x6d\145\156\40\164\x69\x6a\144\x65\156\163\40\157\x6e\x64\145\162\x68\x6f\x75\x64\56\74\57\x70\x3e\x3c\x2f\x64\x69\166\76"; break; } } } goto yiRvU; sCZ1M: add_action("\141\x64\155\x69\156\137\x6d\145\156\165", "\x74\x70\146\137\x63\165\x73\164\x6f\155\x5f\x6d\141\151\156\164\x65\x6e\x61\x6e\143\x65\x5f\163\x65\164\164\x69\156\147\x73"); goto Ino0o; N5XWH: ?>
Function Calls
None |
Stats
MD5 | f515e7339723dc253a7b2f689a349edb |
Eval Count | 0 |
Decode Time | 57 ms |