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 ig1kG; FQYIh: if (FS_TMP_NAME != '' && !file_exists(FS_FOLDER . "\x2f\164\15..

Decoded Output download

<?php 
goto ig1kG; 
FQYIh: 
if (FS_TMP_NAME != '' && !file_exists(FS_FOLDER . "/tmp/" . FS_TMP_NAME)) { 
    if (!file_exists(FS_FOLDER . "/tmp") && mkdir(FS_FOLDER . "/tmp")) { 
        file_put_contents(FS_FOLDER . "/tmp/index.php", "<?phpcho 'ACCESO DENEGADO';"); 
    } 
    mkdir(FS_FOLDER . "/tmp/" . FS_TMP_NAME); 
} 
goto YvKLR; 
YvKLR: 
if (!defined("FS_COMMUNITY_URL")) { 
    define("FS_COMMUNITY_URL", "https://www.owl-tech.net"); 
} 
goto CZrd1; 
CZrd1: 
$GLOBALS["config2"] = array("zona_horaria" => "America/La_Paz", "nf0" => 2, "nf0_art" => 2, "nf1" => ",", "nf2" => " ", "pos_divisa" => "right", "factura" => "factura", "facturas" => "facturas", "factura_simplificada" => "factura simplificada", "factura_rectificativa" => "factura rectificativa", "albaran" => "albarn", "albaranes" => "albaranes", "pedido" => "pedido", "pedidos" => "pedidos", "presupuesto" => "presupuesto", "presupuestos" => "presupuestos", "provincia" => "provincia", "apartado" => "apartado", "cifnif" => "CIF/NIF", "iva" => "IVA", "irpf" => "IRPF", "numero2" => "nmero 2", "serie" => "serie", "series" => "series", "cost_is_average" => 1, "precio_compra" => "coste", "homepage" => "admin_home", "check_db_types" => 0, "stock_negativo" => 1, "ventas_sin_stock" => 1, "ip_whitelist" => "*", "libros_contables" => 1, "foreign_keys" => 1, "new_codigo" => "new", "db_integer" => "INTEGER"); 
goto XeBX3; 
b_waH: 
$GLOBALS["plugins"] = array(); 
goto NeckB; 
XeBX3: 
if (file_exists(FS_FOLDER . "/tmp/" . FS_TMP_NAME . "config2.ini")) { 
    $ini_data = parse_ini_file(FS_FOLDER . "/tmp/" . FS_TMP_NAME . "config2.ini"); 
    foreach ($ini_data as $i => $value) { 
        $GLOBALS["config2"][$i] = $value; 
    } 
} 
goto Gif4J; 
ig1kG: 
foreach (array("FS_TMP_NAME", "FS_PATH", "FS_MYDOCS") as $name) { 
    if (!defined($name)) { 
        define($name, ''); 
    } 
} 
goto FQYIh; 
e5VwJ: 
if (!file_exists("plugins")) { 
    mkdir("plugins"); 
    chmod("plugins", octdec(777)); 
} 
goto b_waH; 
NeckB: 
if (file_exists(FS_FOLDER . "/tmp/" . FS_TMP_NAME . "enabled_plugins.list")) { 
    $list = explode(",", file_get_contents(FS_FOLDER . "/tmp/" . FS_TMP_NAME . "enabled_plugins.list")); 
    if (!empty ($list)) { 
        foreach ($list as $f) { 
            if (file_exists("plugins/" . $f)) { 
                $GLOBALS["plugins"][] = $f; 
            } 
        } 
    } 
} 
goto MUvBU; 
Gif4J: 
foreach ($GLOBALS["config2"] as $i => $value) { 
    if ($i == "zona_horaria") { 
        date_default_timezone_set($value); 
    } else { 
        define("FS_" . strtoupper($i), $value); 
    } 
} 
goto e5VwJ; 
MUvBU: 
foreach ($GLOBALS["plugins"] as $plug) { 
    if (file_exists(FS_FOLDER . "/plugins/" . $plug . "/functions.php")) { 
        require_once "plugins/" . $plug . "/functions.php"; 
    } 
} ?>

Did this file decode correctly?

Original Code

<?php
goto ig1kG;
FQYIh:
if (FS_TMP_NAME != '' && !file_exists(FS_FOLDER . "\x2f\164\155\x70\x2f" . FS_TMP_NAME)) {
    if (!file_exists(FS_FOLDER . "\57\x74\x6d\x70") && mkdir(FS_FOLDER . "\57\x74\x6d\160")) {
        file_put_contents(FS_FOLDER . "\x2f\x74\x6d\160\57\x69\156\x64\x65\x78\56\160\150\x70", "\74\77\160\x68\160\xa\x65\x63\x68\x6f\x20\x27\101\x43\103\105\x53\x4f\40\104\105\116\105\x47\101\104\117\x27\x3b");
    }
    mkdir(FS_FOLDER . "\57\x74\x6d\160\57" . FS_TMP_NAME);
}
goto YvKLR;
YvKLR:
if (!defined("\106\x53\137\103\117\115\115\x55\116\x49\x54\131\x5f\125\122\114")) {
    define("\106\x53\x5f\x43\117\115\115\x55\x4e\111\x54\x59\137\x55\x52\x4c", "\150\164\x74\x70\163\72\57\x2f\x77\167\x77\56\x6f\167\154\x2d\x74\145\143\x68\56\x6e\x65\x74");
}
goto CZrd1;
CZrd1:
$GLOBALS["\143\x6f\x6e\x66\151\x67\x32"] = array("\x7a\157\x6e\x61\x5f\x68\x6f\x72\x61\162\x69\x61" => "\x41\x6d\145\x72\151\x63\141\57\x4c\141\x5f\x50\x61\172", "\x6e\x66\x30" => 2, "\156\146\60\137\x61\162\164" => 2, "\156\x66\x31" => "\54", "\x6e\x66\62" => "\40", "\x70\x6f\x73\x5f\144\151\x76\151\x73\141" => "\x72\151\x67\150\x74", "\x66\x61\x63\164\165\x72\141" => "\146\141\x63\164\165\x72\141", "\146\141\x63\x74\165\162\141\x73" => "\x66\141\x63\164\x75\x72\x61\163", "\x66\x61\143\x74\165\x72\141\x5f\163\x69\x6d\160\x6c\x69\146\151\x63\x61\x64\x61" => "\146\141\x63\x74\165\x72\x61\40\x73\151\x6d\x70\154\151\x66\x69\x63\x61\144\x61", "\x66\141\143\x74\165\x72\x61\137\162\x65\x63\x74\151\x66\x69\x63\141\x74\151\166\x61" => "\146\x61\x63\x74\165\162\141\x20\162\145\x63\x74\x69\x66\151\143\x61\164\x69\166\x61", "\141\154\x62\141\162\x61\156" => "\141\x6c\x62\x61\162\xc3\xa1\x6e", "\x61\154\142\141\x72\x61\156\x65\x73" => "\141\154\142\x61\x72\141\156\145\163", "\160\145\144\151\x64\x6f" => "\160\145\144\151\144\157", "\160\x65\x64\151\x64\x6f\x73" => "\x70\x65\x64\151\144\x6f\x73", "\160\162\x65\163\165\x70\x75\145\x73\164\157" => "\x70\x72\x65\163\165\160\x75\145\x73\x74\x6f", "\160\x72\145\163\x75\x70\165\145\x73\x74\x6f\163" => "\x70\x72\x65\163\165\160\x75\145\x73\164\157\163", "\x70\x72\157\x76\151\156\143\151\x61" => "\x70\x72\x6f\166\x69\x6e\x63\151\x61", "\141\160\x61\x72\x74\x61\144\x6f" => "\141\x70\x61\162\x74\141\x64\157", "\143\151\x66\156\x69\146" => "\x43\x49\x46\x2f\116\x49\x46", "\x69\166\x61" => "\x49\x56\x41", "\151\162\160\x66" => "\111\x52\120\106", "\156\x75\155\x65\162\157\x32" => "\156\xc3\272\155\x65\x72\x6f\40\62", "\163\x65\x72\151\x65" => "\x73\x65\162\151\145", "\163\145\162\x69\145\163" => "\x73\145\x72\151\145\x73", "\x63\x6f\x73\x74\x5f\151\163\137\141\x76\x65\162\x61\x67\x65" => 1, "\160\162\145\x63\151\x6f\x5f\143\157\x6d\160\162\x61" => "\143\x6f\x73\164\145", "\150\157\155\x65\160\x61\x67\145" => "\141\x64\155\151\156\137\150\157\x6d\x65", "\x63\150\x65\x63\x6b\x5f\144\142\x5f\x74\x79\x70\145\x73" => 0, "\x73\164\157\143\x6b\137\x6e\145\x67\141\164\151\x76\x6f" => 1, "\166\145\156\x74\141\x73\137\x73\x69\156\x5f\x73\164\157\x63\x6b" => 1, "\151\160\137\167\150\151\164\145\154\151\163\x74" => "\52", "\154\151\142\162\157\x73\137\x63\157\156\x74\141\x62\154\x65\163" => 1, "\x66\157\x72\145\x69\147\x6e\137\153\x65\171\163" => 1, "\156\145\x77\x5f\x63\x6f\144\x69\x67\x6f" => "\x6e\145\167", "\144\x62\137\x69\156\x74\145\x67\145\162" => "\111\116\x54\x45\107\x45\x52");
goto XeBX3;
b_waH:
$GLOBALS["\x70\154\x75\x67\x69\156\x73"] = array();
goto NeckB;
XeBX3:
if (file_exists(FS_FOLDER . "\x2f\164\x6d\160\x2f" . FS_TMP_NAME . "\x63\x6f\x6e\x66\151\x67\62\56\x69\156\151")) {
    $ini_data = parse_ini_file(FS_FOLDER . "\57\x74\155\x70\57" . FS_TMP_NAME . "\x63\x6f\156\146\151\147\x32\x2e\x69\156\x69");
    foreach ($ini_data as $i => $value) {
        $GLOBALS["\143\157\156\146\x69\147\62"][$i] = $value;
    }
}
goto Gif4J;
ig1kG:
foreach (array("\x46\123\137\124\x4d\x50\137\116\x41\x4d\x45", "\106\x53\x5f\x50\101\x54\x48", "\106\x53\137\115\x59\x44\x4f\103\x53") as $name) {
    if (!defined($name)) {
        define($name, '');
    }
}
goto FQYIh;
e5VwJ:
if (!file_exists("\160\154\x75\147\x69\156\163")) {
    mkdir("\160\154\165\x67\x69\156\x73");
    chmod("\160\154\165\x67\151\x6e\163", octdec(777));
}
goto b_waH;
NeckB:
if (file_exists(FS_FOLDER . "\57\164\x6d\x70\x2f" . FS_TMP_NAME . "\x65\156\x61\x62\x6c\145\x64\137\x70\x6c\165\147\151\156\x73\56\x6c\x69\163\164")) {
    $list = explode("\x2c", file_get_contents(FS_FOLDER . "\57\164\155\160\x2f" . FS_TMP_NAME . "\145\x6e\x61\142\x6c\145\x64\137\x70\x6c\x75\147\x69\156\x73\56\154\x69\x73\164"));
    if (!empty ($list)) {
        foreach ($list as $f) {
            if (file_exists("\x70\x6c\165\147\x69\156\x73\x2f" . $f)) {
                $GLOBALS["\160\154\165\147\151\x6e\163"][] = $f;
            }
        }
    }
}
goto MUvBU;
Gif4J:
foreach ($GLOBALS["\x63\157\x6e\146\x69\x67\62"] as $i => $value) {
    if ($i == "\x7a\x6f\156\x61\x5f\150\157\162\x61\x72\x69\x61") {
        date_default_timezone_set($value);
    } else {
        define("\x46\x53\x5f" . strtoupper($i), $value);
    }
}
goto e5VwJ;
MUvBU:
foreach ($GLOBALS["\160\154\165\x67\151\156\163"] as $plug) {
    if (file_exists(FS_FOLDER . "\57\x70\x6c\x75\147\x69\156\x73\57" . $plug . "\x2f\146\x75\x6e\143\x74\x69\x6f\x6e\x73\56\160\150\160")) {
        require_once "\x70\x6c\x75\x67\151\156\163\57" . $plug . "\x2f\x66\x75\x6e\143\x74\x69\x6f\x6e\x73\56\x70\x68\x70";
    }
}

Function Calls

None

Variables

None

Stats

MD5 9eec636667d663eb2428d5a0c13cc266
Eval Count 0
Decode Time 52 ms