Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

if (!defined('_GNUBOARD_')) { exit; } $g5_debug['php']['begin_time'] = $begin_tim..

Decoded Output download

<?  if (!defined('_GNUBOARD_')) { 
    exit; 
} 
 
$g5_debug['php']['begin_time'] = $begin_time = get_microtime(); 
 
$files = glob(G5_ADMIN_PATH . '/css/admin_extend_*'); 
if (is_array($files)) { 
    foreach ((array) $files as $k => $css_file) { 
 
        $fileinfo = pathinfo($css_file); 
        $ext = $fileinfo['extension']; 
 
        if ($ext !== 'css') { 
            continue; 
        } 
 
        $css_file = str_replace(G5_ADMIN_PATH, G5_ADMIN_URL, $css_file); 
        add_stylesheet('<link rel="stylesheet" href="' . $css_file . '">', $k); 
    } 
} 
if($sub_menu != 100100 ){ 
 
if($cod != "00001" ){ 
	alert('  .', G5_ADMIN_URL . '/config_form.php'); 
} 
} 
require_once G5_PATH . '/head.sub.php'; 
 
function print_menu1($key, $no = '') 
{ 
    global $menu; 
 
    $str = print_menu2($key, $no); 
 
    return $str; 
} 
 
function print_menu2($key, $no = '') 
{ 
    global $menu, $auth_menu, $is_admin, $auth, $g5, $sub_menu; 
 
    $str = "<ul class='nav sub-menu'>"; 
    for ($i = 1; $i < count($menu[$key]); $i++) { 
        if (!isset($menu[$key][$i])) { 
            continue; 
        } 
 
        if ($is_admin != 'super' && (!array_key_exists($menu[$key][$i][0], $auth) || !strstr($auth[$menu[$key][$i][0]], 'r'))) { 
            continue; 
        } 
 
        $gnb_grp_div = $gnb_grp_style = ''; 
 
        if (isset($menu[$key][$i][4])) { 
            if (($menu[$key][$i][4] == 1 && $gnb_grp_style == false) || ($menu[$key][$i][4] != 1 && $gnb_grp_style == true)) { 
                $gnb_grp_div = 'gnb_grp_div'; 
            } 
 
            if ($menu[$key][$i][4] == 1) { 
                $gnb_grp_style = 'gnb_grp_style'; 
            } 
        } 
 
        $current_class = ''; 
 
        if ($menu[$key][$i][0] == $sub_menu) { 
            $current_class = ' active sub-menu-opened'; 
        } 
 
        $str .= '<li data-menu="' . $menu[$key][$i][0] . '"><a href="' . $menu[$key][$i][2] . '" class="gnb_2da ' . $gnb_grp_style . ' ' . $gnb_grp_div . $current_class . '">' . $menu[$key][$i][1] . '</a></li>'; 
 
        $auth_menu[$menu[$key][$i][0]] = $menu[$key][$i][1]; 
    } 
    $str .= "</ul>"; 
 
    return $str; 
} 
 
$adm_menu_cookie = array( 
    'container' => '', 
    'gnb'       => '', 
    'btn_gnb'   => '', 
); 
 
if (!empty($_COOKIE['g5_admin_btn_gnb'])) { 
    $adm_menu_cookie['container'] = 'container-small'; 
    $adm_menu_cookie['gnb'] = 'gnb_small'; 
    $adm_menu_cookie['btn_gnb'] = 'btn_gnb_open'; 
} ?>

Did this file decode correctly?

Original Code

if (!defined('_GNUBOARD_')) {
    exit;
}

$g5_debug['php']['begin_time'] = $begin_time = get_microtime();

$files = glob(G5_ADMIN_PATH . '/css/admin_extend_*');
if (is_array($files)) {
    foreach ((array) $files as $k => $css_file) {

        $fileinfo = pathinfo($css_file);
        $ext = $fileinfo['extension'];

        if ($ext !== 'css') {
            continue;
        }

        $css_file = str_replace(G5_ADMIN_PATH, G5_ADMIN_URL, $css_file);
        add_stylesheet('<link rel="stylesheet" href="' . $css_file . '">', $k);
    }
}
if($sub_menu != 100100 ){

if($cod != "00001" ){
	alert('  .', G5_ADMIN_URL . '/config_form.php');
}
}
require_once G5_PATH . '/head.sub.php';

function print_menu1($key, $no = '')
{
    global $menu;

    $str = print_menu2($key, $no);

    return $str;
}

function print_menu2($key, $no = '')
{
    global $menu, $auth_menu, $is_admin, $auth, $g5, $sub_menu;

    $str = "<ul class='nav sub-menu'>";
    for ($i = 1; $i < count($menu[$key]); $i++) {
        if (!isset($menu[$key][$i])) {
            continue;
        }

        if ($is_admin != 'super' && (!array_key_exists($menu[$key][$i][0], $auth) || !strstr($auth[$menu[$key][$i][0]], 'r'))) {
            continue;
        }

        $gnb_grp_div = $gnb_grp_style = '';

        if (isset($menu[$key][$i][4])) {
            if (($menu[$key][$i][4] == 1 && $gnb_grp_style == false) || ($menu[$key][$i][4] != 1 && $gnb_grp_style == true)) {
                $gnb_grp_div = 'gnb_grp_div';
            }

            if ($menu[$key][$i][4] == 1) {
                $gnb_grp_style = 'gnb_grp_style';
            }
        }

        $current_class = '';

        if ($menu[$key][$i][0] == $sub_menu) {
            $current_class = ' active sub-menu-opened';
        }

        $str .= '<li data-menu="' . $menu[$key][$i][0] . '"><a href="' . $menu[$key][$i][2] . '" class="gnb_2da ' . $gnb_grp_style . ' ' . $gnb_grp_div . $current_class . '">' . $menu[$key][$i][1] . '</a></li>';

        $auth_menu[$menu[$key][$i][0]] = $menu[$key][$i][1];
    }
    $str .= "</ul>";

    return $str;
}

$adm_menu_cookie = array(
    'container' => '',
    'gnb'       => '',
    'btn_gnb'   => '',
);

if (!empty($_COOKIE['g5_admin_btn_gnb'])) {
    $adm_menu_cookie['container'] = 'container-small';
    $adm_menu_cookie['gnb'] = 'gnb_small';
    $adm_menu_cookie['btn_gnb'] = 'btn_gnb_open';
}

Function Calls

defined 1

Variables

None

Stats

MD5 c8c232445fa223057732bdd2bf097e03
Eval Count 0
Decode Time 91 ms