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 pEJOn; pEJOn: function dt_config_mo($arr) { global $g5, $config, $theme_l..
Decoded Output download
<?php
//,
goto pEJOn; pEJOn: function dt_config_mo($arr) { global $g5, $config, $theme_license, $theme_license_yc; if ($theme_license_yc) { if ($theme_license) { $theme_license = $theme_license . "/" . $theme_license_yc; } else { $theme_license = $theme_license_yc; } } if ($arr["cc_id"] == "x") { return; } if (!isset($config["cf_dt_auth_domain"])) { sql_query("alter table {$g5["config_table"]} add cf_dt_auth_domain longtext NOT NULL after cf_mobile_page_rows"); sql_query("alter table {$g5["config_table"]} add cf_dt_auth_ip longtext NOT NULL after cf_dt_auth_domain "); sql_query("alter table {$g5["config_table"]} add cf_dt_auth_datetime longtext NOT NULL after cf_dt_auth_ip"); sql_query("alter table {$g5["config_table"]} add cf_dt_auth_theme longtext NOT NULL after cf_dt_auth_datetime"); } if (trim($arr["cc_domain"]) && $arr["cc_id"] != "x") { if ($config["cf_dt_auth_domain"]) { $cf_dt_a_d = $config["cf_dt_auth_domain"] . "___" . $arr["cc_domain"]; } else { $cf_dt_a_d = $arr["cc_domain"]; } sql_query("update {$g5["config_table"]} set cf_dt_auth_domain = '{$cf_dt_a_d}' "); sql_query("update {$g5["config_table"]} set cf_dt_auth_ip = '{$arr["cc_ip"]}' "); sql_query("update {$g5["config_table"]} set cf_dt_auth_datetime = '{$arr["cc_datetime"]}' "); sql_query("update {$g5["config_table"]} set cf_dt_auth_theme = '{$theme_license}' "); } } goto FsMWK; HFeK0: $hn_dt = isset($_SERVER["HTTP_HOST"]) ? str_replace("www.", '', $_SERVER["HTTP_HOST"]) : str_replace("www.", '', $_SERVER["SERVER_NAME"]); goto yYWXA; FsMWK: if (!isset($_SERVER["HTTPS"])) { $c_u_dt_re = "http://daontheme.cafe24.com/dtlog2.php"; } else { $c_u_dt_re = "https://daontheme.cafe24.com/dtlog2.php"; } goto evGxB; evGxB: $c_u_dt = isset($c_u_dt) ? $c_u_dt : $c_u_dt_re; goto HFeK0; yYWXA: if (extension_loaded("curl") && is_callable("curl_setopt")) { function DT_chk_get_c($url) { global $_SERVER, $theme_license, $theme_license_yc; if ($theme_license_yc) { if ($theme_license) { $theme_license = $theme_license . "/" . $theme_license_yc; } else { $theme_license = $theme_license_yc; } } $p_d_arr = array("dt_cc_d_A" => urlencode(isset($_SERVER["HTTP_HOST"]) ? str_replace("www.", '', $_SERVER["HTTP_HOST"]) : str_replace("www.", '', $_SERVER["SERVER_NAME"])), "dt_cc_i_A" => urlencode($_SERVER["REMOTE_ADDR"]), "dt_cc_T_A" => urlencode($theme_license), "dt_cc_method" => urlencode("curl"), "dt_cc_si_A" => urlencode($_SERVER["SERVER_ADDR"]), "dt_cc_TU_A" => urlencode(G5_THEME_URL)); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $p_d_arr); curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER["HTTP_USER_AGENT"]); $response = curl_exec($ch); curl_close($ch); $data = json_decode($response, true); return $data; } if (trim($config["cf_dt_auth_domain"]) == '') { $dt_d_c = DT_chk_get_c($c_u_dt); dt_config_mo($dt_d_c); } else { if (!preg_match("/" . $hn_dt . "/", trim($config["cf_dt_auth_domain"]))) { $dt_d_c = DT_chk_get_c($c_u_dt); dt_config_mo($dt_d_c); } } } ?>
Did this file decode correctly?
Original Code
<?php
//,
goto pEJOn; pEJOn: function dt_config_mo($arr) { global $g5, $config, $theme_license, $theme_license_yc; if ($theme_license_yc) { if ($theme_license) { $theme_license = $theme_license . "\57" . $theme_license_yc; } else { $theme_license = $theme_license_yc; } } if ($arr["\x63\143\137\151\144"] == "\170") { return; } if (!isset($config["\143\x66\x5f\x64\164\137\x61\x75\164\x68\137\x64\x6f\x6d\x61\151\156"])) { sql_query("\141\154\x74\145\162\x20\x74\x61\142\154\145\x20{$g5["\143\x6f\156\x66\x69\x67\x5f\164\141\x62\x6c\145"]}\x20\141\x64\x64\40\x63\146\x5f\x64\x74\137\x61\165\x74\150\137\x64\157\155\x61\x69\156\40\x6c\157\156\147\x74\145\170\x74\x20\x4e\117\x54\x20\116\125\x4c\114\x20\x61\x66\164\x65\162\40\x63\x66\137\x6d\157\142\151\154\x65\x5f\160\141\147\145\137\x72\157\167\x73"); sql_query("\141\x6c\x74\145\x72\x20\x74\141\142\x6c\x65\x20{$g5["\x63\x6f\x6e\146\151\x67\137\x74\x61\x62\154\145"]}\x20\x61\144\144\x20\143\x66\x5f\144\x74\137\x61\x75\164\x68\137\151\160\x20\x6c\x6f\156\147\x74\145\x78\164\40\116\117\x54\40\116\x55\114\x4c\40\141\146\x74\145\162\x20\143\x66\x5f\144\x74\x5f\x61\165\x74\150\x5f\144\x6f\155\141\151\x6e\x20"); sql_query("\x61\154\x74\145\x72\40\164\141\x62\x6c\145\40{$g5["\x63\157\x6e\146\x69\147\137\164\x61\x62\x6c\145"]}\40\141\144\144\40\143\146\x5f\x64\164\x5f\x61\165\164\x68\x5f\x64\x61\164\x65\164\151\155\145\x20\154\x6f\156\147\x74\145\x78\164\x20\x4e\117\124\x20\116\125\114\x4c\40\141\146\164\145\x72\40\143\146\x5f\144\x74\137\x61\165\x74\150\x5f\151\160"); sql_query("\x61\154\x74\145\x72\40\x74\141\x62\x6c\x65\40{$g5["\x63\157\x6e\146\x69\x67\137\x74\x61\142\x6c\145"]}\40\x61\x64\144\40\x63\146\x5f\x64\x74\137\141\x75\164\150\x5f\164\x68\x65\x6d\145\40\154\x6f\x6e\x67\x74\x65\x78\x74\x20\x4e\x4f\x54\x20\x4e\x55\x4c\x4c\40\141\146\164\x65\162\x20\143\x66\137\144\164\x5f\x61\165\164\x68\137\144\x61\164\x65\164\x69\155\x65"); } if (trim($arr["\143\143\x5f\x64\157\155\x61\x69\x6e"]) && $arr["\x63\143\x5f\151\144"] != "\170") { if ($config["\x63\146\x5f\144\x74\137\x61\x75\164\150\137\144\x6f\155\x61\x69\x6e"]) { $cf_dt_a_d = $config["\143\x66\137\144\x74\137\141\165\x74\150\137\144\x6f\x6d\x61\x69\x6e"] . "\x5f\137\137" . $arr["\x63\x63\137\144\157\155\141\x69\156"]; } else { $cf_dt_a_d = $arr["\143\x63\137\x64\157\x6d\141\x69\x6e"]; } sql_query("\x75\160\x64\141\164\x65\x20{$g5["\x63\157\x6e\x66\151\x67\137\x74\141\142\154\x65"]}\40\163\145\164\40\143\146\137\x64\164\137\x61\x75\x74\x68\137\x64\157\x6d\x61\x69\x6e\40\75\x20\x27{$cf_dt_a_d}\47\40"); sql_query("\165\x70\x64\x61\x74\x65\40{$g5["\x63\157\x6e\146\x69\147\137\164\x61\142\154\x65"]}\x20\x73\x65\x74\40\x63\x66\137\144\x74\x5f\141\165\x74\150\137\x69\160\x20\75\x20\47{$arr["\x63\143\137\151\160"]}\x27\x20"); sql_query("\165\160\144\141\x74\145\x20{$g5["\143\x6f\156\146\151\147\137\x74\x61\x62\154\x65"]}\40\x73\145\164\40\x63\x66\137\x64\x74\137\141\x75\x74\150\137\144\141\164\145\164\x69\155\145\x20\x3d\40\x27{$arr["\143\143\x5f\x64\141\164\145\164\151\155\x65"]}\47\40"); sql_query("\165\160\144\x61\164\x65\40{$g5["\x63\157\x6e\146\x69\147\137\164\141\142\154\145"]}\40\163\x65\x74\40\x63\146\x5f\144\x74\x5f\141\x75\x74\x68\x5f\x74\150\x65\x6d\145\40\x3d\x20\47{$theme_license}\x27\40"); } } goto FsMWK; HFeK0: $hn_dt = isset($_SERVER["\110\124\x54\x50\x5f\x48\x4f\x53\x54"]) ? str_replace("\x77\167\x77\56", '', $_SERVER["\110\x54\x54\x50\137\x48\117\123\124"]) : str_replace("\167\167\x77\x2e", '', $_SERVER["\123\x45\122\126\105\122\x5f\x4e\101\x4d\105"]); goto yYWXA; FsMWK: if (!isset($_SERVER["\110\124\x54\x50\x53"])) { $c_u_dt_re = "\x68\164\164\x70\72\57\x2f\x64\141\x6f\156\x74\x68\145\x6d\x65\56\x63\x61\146\145\x32\x34\56\143\x6f\155\x2f\x64\164\x6c\x6f\x67\x32\56\160\150\x70"; } else { $c_u_dt_re = "\150\164\164\x70\x73\x3a\57\x2f\144\141\157\156\x74\150\x65\155\x65\56\143\141\146\145\62\64\56\143\x6f\x6d\x2f\x64\x74\x6c\x6f\147\x32\x2e\x70\150\160"; } goto evGxB; evGxB: $c_u_dt = isset($c_u_dt) ? $c_u_dt : $c_u_dt_re; goto HFeK0; yYWXA: if (extension_loaded("\143\165\162\154") && is_callable("\143\165\x72\154\x5f\x73\145\164\157\160\164")) { function DT_chk_get_c($url) { global $_SERVER, $theme_license, $theme_license_yc; if ($theme_license_yc) { if ($theme_license) { $theme_license = $theme_license . "\57" . $theme_license_yc; } else { $theme_license = $theme_license_yc; } } $p_d_arr = array("\144\164\x5f\x63\143\137\x64\x5f\101" => urlencode(isset($_SERVER["\110\124\124\x50\x5f\110\x4f\123\x54"]) ? str_replace("\167\167\x77\56", '', $_SERVER["\x48\x54\124\x50\137\110\117\123\x54"]) : str_replace("\167\167\167\x2e", '', $_SERVER["\123\105\122\x56\105\122\137\116\101\x4d\x45"])), "\x64\x74\137\x63\x63\137\x69\137\x41" => urlencode($_SERVER["\122\x45\115\x4f\124\105\137\101\104\x44\x52"]), "\x64\x74\137\143\x63\137\124\x5f\x41" => urlencode($theme_license), "\x64\164\x5f\x63\x63\137\x6d\x65\x74\x68\157\144" => urlencode("\x63\165\x72\x6c"), "\x64\164\137\x63\143\x5f\163\x69\137\x41" => urlencode($_SERVER["\x53\x45\122\126\105\x52\137\x41\x44\104\122"]), "\x64\164\x5f\x63\143\x5f\124\125\137\x41" => urlencode(G5_THEME_URL)); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $p_d_arr); curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER["\110\124\x54\x50\x5f\x55\x53\105\x52\x5f\x41\107\105\116\x54"]); $response = curl_exec($ch); curl_close($ch); $data = json_decode($response, true); return $data; } if (trim($config["\x63\x66\x5f\144\164\137\141\165\x74\x68\x5f\x64\157\155\141\x69\x6e"]) == '') { $dt_d_c = DT_chk_get_c($c_u_dt); dt_config_mo($dt_d_c); } else { if (!preg_match("\x2f" . $hn_dt . "\x2f", trim($config["\x63\x66\x5f\x64\x74\x5f\141\165\x74\150\x5f\144\x6f\155\141\x69\x6e"]))) { $dt_d_c = DT_chk_get_c($c_u_dt); dt_config_mo($dt_d_c); } } }
Function Calls
None |
Stats
MD5 | a09ab4a77e6b307c4c3a8b203ddb50cd |
Eval Count | 0 |
Decode Time | 68 ms |