Prezado(a)s,
Criei uma nova aplicação de segurança com o novo menu para uma aplicação que já existia.
No ambiente de desenvolviemento trabalha normalmente.
Quando posto para produção e faço login, sou redirecionado para o menu sem nenhuma opção com esse monte de texto na tela.
Pensquei que poderia estar relacionado com o Log das aplicações, refiz todos eles, configurei nas aplicações, porem o erro continua.
Alguem tem alguma ideia ?
O Erro começa assim:
$str_root . $_SESSION['scriptcase']['appSecV2_menu']['glo_nm_path_prod'] . '/third/COOLjsMenu/', 'url' => $_SESSION['scriptcase']['appSecV2_menu']['glo_nm_path_prod'] . '/third/COOLjsMenu/'); if ((isset($nmgp_outra_jan) && $nmgp_outra_jan == "true") || (isset($_SESSION['scriptcase']['sc_outra_jan']) && $_SESSION['scriptcase']['sc_outra_jan'] == 'appSecV2_menu')) { $_SESSION['sc_session'][1]['appSecV2_menu']['sc_outra_jan'] = true; unset($_SESSION['scriptcase']['sc_outra_jan']); $_SESSION['scriptcase']['sc_saida_appSecV2_menu'] = "javascript:window.close()"; } /* Variáveis de Configuração do Menu */ if (!isset($_SESSION['scriptcase']['sc_apl_seg'])) { $_SESSION['scriptcase']['sc_apl_seg'] = array(); } if(is_file($path_apls . $this->tab_grupo[0] . "_lib/_app_data/dashboard_ini.php")) { include($path_apls . $this->tab_grupo[0] . "_lib/_app_data/dashboard_ini.php"); if ((!isset($arr_data['status']) || trim($arr_data['status']) == "NAO") || (isset($_SESSION['nm_session']['user']['sec']['flag']) && $_SESSION['nm_session']['user']['sec']['flag'] == "N")) { if (!isset($_SESSION['scriptcase']['sc_apl_seg']['dashboard'])) { $_SESSION['scriptcase']['sc_apl_seg']['dashboard'] = "on"; } } } if (isset($_SESSION['nm_session']['user']['sec']['flag']) && $_SESSION['nm_session']['user']['sec']['flag'] == "N") { $_SESSION['scriptcase']['sc_apl_seg']['dashboard'] = "on"; } if (is_file($path_apls . $this->tab_grupo[0] . "_lib/_app_data/grid_tb_fornecedor_ini.php")) { include($path_apls . $this->tab_grupo[0] . "_lib/_app_data/grid_tb_fornecedor_ini.php"); if ((!isset($arr_data['status']) || trim($arr_data['status']) == "NAO") || (isset($_SESSION['nm_session']['user']['sec']['flag']) && $_SESSION['nm_session']['user']['sec']['flag'] == "N")) { if (!isset($_SESSION['scriptcase']['sc_apl_seg']['grid_tb_fornecedor'])) { $_SESSION['scriptcase']['sc_apl_seg']['grid_tb_fornecedor'] = "on"; } } if (isset($_SESSION['nm_session']['user']['sec']['flag']) && $_SESSION['nm_session']['user']['sec']['flag'] == "N") { $_SESSION['scriptcase']['sc_apl_seg']['grid_tb_fornecedor'] = "on"; } } if (isset($_SESSION['nm_session']['user']['sec']['flag']) && $_SESSION['nm_session']['user']['sec']['flag'] == "N") { $_SESSION['scriptcase']['sc_apl_seg']['grid_tb_fornecedor'] = "on"; } if (is_file($path_apls . $this->tab_grupo[0] . "_lib/_app_data/form_tb_fornecedor_tipo_ini.php")) { include($path_apls . $this->tab_grupo[0] . "_lib/_app_data/form_tb_fornecedor_tipo_ini.php"); if ((!isset($arr_data['status']) || trim($arr_data['status']) == "NAO") || (isset($_SESSION['nm_session']['user']['sec']['flag']) && $_SESSION['nm_session']['user']['sec']['flag'] == "N")) { if (!isset($_SESSION['scriptcase']['sc_apl_seg']['form_tb_fornecedor_tipo'])) { $_SESSION['scriptcase']['sc_apl_seg']['form_tb_fornecedor_tipo'] = "on"; } } if (isset($_SESSION['nm_session']['user']['sec']['flag']) && $_SESSION['nm_session']['user']['sec']['flag'] == "N") { $_SESSION['scriptcase']['sc_apl_seg']['form_tb_fornecedor_tipo'] = "on"; } } if (isset($_SESSION['nm_session']['user']['sec']['flag']) && $_SESSION['nm_session']['user']['sec']['flag'] == "N") { $_SESSION['scriptcase']['sc_apl_seg']['form_tb_fornecedor_tipo'] = "on"; } if (is_file($path_apls . $this->tab_grupo[0] . "_lib/_app_data/form_vl_tb_produto_custo_ini.php")) { include($path_apls . $this->tab_grupo[0] . "_lib/_app_data/form_vl_tb_produto_custo_ini.php"); if ((!isset($arr_data['status']) || trim($arr_data['status']) == "NAO") || (isset($_SESSION['nm_session']['user']['sec']['flag']) && $_SESSION['nm_session']['user']['sec']['flag'] == "N")) { if (!isset($_SESSION['scriptcase']['sc_apl_seg']['form_vl_tb_produto_custo'])) { $_SESSION['scriptcase']['sc_apl_seg']['form_vl_tb_produto_custo'] = "on"; } } if (isset($_SESSION['nm_session']['user']['sec']['flag']) && $_SESSION['nm_session']['user']['sec']['flag'] == "N") { $_SESSION['scriptcase']['sc_apl_seg']['form_vl_tb_produto_custo'] = "on"; } } if (isset($_SESSION['nm_session']['user']['sec']['flag']) && $_SESSION['nm_session']['user']['sec']['flag'] == "N") { $_SESSION['scriptcase']['sc_apl_seg']['form_vl_tb_produto_custo'] = "on"; } if (is_file($path_apls . $this->tab_grupo[0] . "_lib/_app_data/grid_vl_tb_orcamento_pedido_consulta_todos_v2_ini.php")) { include($path_apls . $this->tab_grupo[0] . "_lib/_app_data/grid_vl_tb_orcamento_pedido_consulta_todos_v2_ini.php"); if ((!isset($arr_data['status']) || trim($arr_data['status']) == "NAO") || (isset($_SESSION['nm_session']['user']['sec']['flag']) && $_SESSION['nm_session']['user']['sec']['flag'] == "N")) { if (!isset($_SESSION['scriptcase']['sc_apl_seg']['grid_vl_tb_orcamento_pedido_consulta_todos_v2'])) { $_SESSION['scriptcase']['sc_apl_seg']['grid_vl_tb_orcamento_pedido_consulta_todos_v2'] = "on"; } } if (isset($_SESSION['nm_session']['user']['sec']['flag']) && $_SESSION['nm_session']['user']['sec']['flag'] == "N") { $_SESSION['scriptcase']['sc_apl_seg']['grid_vl_tb_orcamento_pedido_consulta_todos_v2'] = "on"; } } if (isset($_SESSION['nm_session']['user']['sec']['flag']) && $_SESSION['nm_session']['user']['sec']['flag'] == "N") { $_SESSION['scriptcase']['sc_apl_seg']['grid_vl_tb_orcamento_pedido_consulta_todos_v2'] = "on"; } if (is_file($path_apls . $this->tab_grupo[0] . "_lib/_app_data/appSecV2_grid_sec_users_ini.php")) { include($path_apls . $this->tab_grupo[0] . "_lib/_app_data/appSecV2_grid_sec_users_ini.php"); if ((!isset($arr_data['status']) || trim($arr_data['status']) == "NAO") || (isset($_SESSION['nm_session']['user']['sec']['flag']) && $_SESSION['nm_session']['user']['sec']['flag'] == "N")) { if (!isset($_SESSION['scriptcase']['sc_apl_seg']['appSecV2_grid_sec_users'])) { $_SESSION['scriptcase']['sc_apl_seg']['appSecV2_grid_sec_users'] = "on"; } } if (isset($_SESSION['nm_session']['user']['sec']['flag']) && $_SESSION['nm_session']['user']['sec']['flag'] == "N") { $_SESSION['scriptcase']['sc_apl_seg']['appSecV2_grid_sec_users'] = "on"; } } if (isset($_SESSION['nm_session']['user']['sec']['flag']) && $_SESSION['nm_session']['user']['sec']['flag'] == "N") { $_SESSION['scriptcase']['sc_apl_seg']['appSecV2_grid_sec_users'] = "on"; } if (is_file($path_apls . $this->tab_grupo[0] . "_lib/_app_data/appSecV2_grid_sec_apps_ini.php")) { include($path_apls . $this->tab_grupo[0] . "_lib/_app_data/appSecV2_grid_sec_apps_ini.php"); if ((!isset($arr_data['status']) || trim($arr_data['status']) == "NAO") || (isset($_SESSION['nm_session'].......urlencode($appSecV2_menu_menuData['url']['link']) . "&sc_usa_grupo=" . $_SESSION['scriptcase']['appSecV2_menu']['glo_nm_usa_grupo'] . "", 'hint' => $str_hint, 'icon_fa' => "fas fa-fingerprint", 'link_target' => "self", 'fav_check' => "N", 'icon_check' => "S", 'id' => "item_28", 'target' => $this->appSecV2_menu_target('_self'), 'disabled' => $str_disabled, 'parent_list' => array ( 0 => 'item_1', ), 'itens' => [], ); $str_disabled = 'N'; if (!isset($_SESSION['scriptcase']['sc_apl_seg']['appSecV2_Login']) || strtolower($_SESSION['scriptcase']['sc_apl_seg']['appSecV2_Login']) != "on") { $str_link = "#"; $str_disabled = 'Y'; } $str_label = "" . $this->Nm_lang['lang_exit'] . ""; $str_hint = ""; if ($_SESSION['scriptcase']['charset'] != "UTF-8" && !NM_is_utf8($str_label)) { $str_label = sc_convert_encoding($str_label, "UTF-8", $_SESSION['scriptcase']['charset']); $str_hint = sc_convert_encoding($str_hint, "UTF-8", $_SESSION['scriptcase']['charset']); } $appSecV2_menu_menuData['data']['itens']['item_8'] = array( 'label' => $str_label, 'link' => "appSecV2_menu_form_php.php?sc_item_menu=item_8&sc_apl_menu=appSecV2_Login&sc_apl_link=" . urlencode($appSecV2_menu_menuData['url']['link']) . "&sc_usa_grupo=" . $_SESSION['scriptcase']['appSecV2_menu']['glo_nm_usa_grupo'] . "", 'hint' => $str_hint, 'icon_fa' => "fas fa-sign-out-alt", 'link_target' => "parente", 'fav_check' => "N", 'icon_check' => "S", 'id' => "item_8", 'target' => $this->appSecV2_menu_target('_self'), 'disabled' => $str_disabled, 'parent_list' => array ( ), 'itens' => [], ); $str_disabled = 'N'; if (!isset($_SESSION['scriptcase']['sc_apl_seg']['search']) || strtolower($_SESSION['scriptcase']['sc_apl_seg']['search']) != "on") { $str_link = "#"; $str_disabled = 'Y'; } $str_label = "Filtro"; $str_hint = ""; if ($_SESSION['scriptcase']['charset'] != "UTF-8" && !NM_is_utf8($str_label)) { $str_label = sc_convert_encoding($str_label, "UTF-8", $_SESSION['scriptcase']['charset']); $str_hint = sc_convert_encoding($str_hint, "UTF-8", $_SESSION['scriptcase']['charset']); } $appSecV2_menu_menuData['data_tb']['itens']['item_tb_1'] = array( 'label' => $str_label, 'link' => "appSecV2_menu_form_php.php?sc_item_menu=item_tb_1&sc_apl_menu=search&sc_apl_link=" . urlencode($appSecV2_menu_menuData['url']['link']) . "&sc_usa_grupo=" . $_SESSION['scriptcase']['appSecV2_menu']['glo_nm_usa_grupo'] . "", 'hint' => $str_hint, 'icon_fa' => "fas fa-file", 'link_target' => "self", 'fav_check' => "N", 'icon_check' => "S", 'id' => "item_tb_1", 'target' => $this->appSecV2_menu_target('_self'), 'disabled' => $str_disabled, 'parent_list' => false, 'itens' => [], ); $str_disabled = 'N'; if (!isset($_SESSION['scriptcase']['sc_apl_seg']['languages']) || strtolower($_SESSION['scriptcase']['sc_apl_seg']['languages']) != "on") { $str_link = "#"; $str_disabled = 'Y'; } $str_label = "Idiomas"; $str_hint = ""; if ($_SESSION['scriptcase']['charset'] != "UTF-8" && !NM_is_utf8($str_label)) { $str_label = sc_convert_encoding($str_label, "UTF-8", $_SESSION['scriptcase']['charset']); $str_hint = sc_convert_encoding($str_hint, "UTF-8", $_SESSION['scriptcase']['charset']); } $appSecV2_menu_menuData['data_tb']['itens']['item_tb_2'] = array( 'label' => $str_label, 'link' => "appSecV2_menu_form_php.php?sc_item_menu=item_tb_2&sc_apl_menu=languages&sc_apl_link=" . urlencode($appSecV2_menu_menuData['url']['link']) . "&sc_usa_grupo=" . $_SESSION['scriptcase']['appSecV2_menu']['glo_nm_usa_grupo'] . "", 'hint' => $str_hint, 'icon_fa' => "fas fa-file", 'link_target' => "self", 'fav_check' => "N", 'icon_check' => "S", 'id' => "item_tb_2", 'target' => $this->appSecV2_menu_target('_self'), 'disabled' => $str_disabled, 'parent_list' => false, 'itens' => [], ); $str_disabled = 'N'; if (!isset($_SESSION['scriptcase']['sc_apl_seg']['themes']) || strtolower($_SESSION['scriptcase']['sc_apl_seg']['themes']) != "on") { $str_link = "#"; $str_disabled = 'Y'; } $str_label = "Temas"; $str_hint = ""; if ($_SESSION['scriptcase']['charset'] != "UTF-8" && !NM_is_utf8($str_label)) { $str_label = sc_convert_encoding($str_label, "UTF-8", $_SESSION['scriptcase']['charset']); $str_hint = sc_convert_encoding($str_hint, "UTF-8", $_SESSION['scriptcase']['charset']); } $appSecV2_menu_menuData['data_tb']['itens']['item_tb_3'] = array( 'label' => $str_label, 'link' => "appSecV2_menu_form_php.php?sc_item_menu=item_tb_3&sc_apl_menu=themes&sc_apl_link=" . urlencode($appSecV2_menu_menuData['url']['link']) . "&sc_usa_grupo=" . $_SESSION['scriptcase']['appSecV2_menu']['glo_nm_usa_grupo'] . "", 'hint' => $str_hint, 'icon_fa' => "fas fa-file", 'link_target' => "self", 'fav_check' => "N", 'icon_check' => "S", 'id' => "item_tb_3", 'target' => $this->appSecV2_menu_target('_self'), 'disabled' => $str_disabled, 'parent_list' => false, 'itens' => [], ); $str_disabled = 'N'; if (!isset($_SESSION['scriptcase']['sc_apl_seg']['shortcuts']) || strtolower($_SESSION['scriptcase']['sc_apl_seg']['shortcuts']) != "on") { $str_link = "#"; $str_disabled = 'Y'; } $str_label = "Atalhos"; $str_hint = ""; if ($_SESSION['scriptcase']['charset'] != "UTF-8" && !NM_is_utf8($str_label)) { $str_label = sc_convert_encoding($str_label, "UTF-8", $_SESSION['scriptcase']['charset']); $str_hint = sc_convert_encoding($str_hint, "UTF-8", $_SESSION['scriptcase']['charset']); } $appSecV2_menu_menuData['data_tb']['itens']['item_tb_4'] = array( 'label' => $str_label, 'link' => "appSecV2_menu_form_php.php?sc_item_menu=item_tb_4&sc_apl_menu=shortcuts&sc_apl_link=" . urlencode($appSecV2_menu_menuData['url']['link']) . "&sc_usa_grupo=" . $_SESSION['scriptcase']['appSecV2_menu']['glo_nm_usa_grupo'] . "", 'hint' => $str_hint, 'icon_fa' => "fas fa-file", 'link_target' => "self", 'fav_check' => "N", 'icon_check' => "S", 'id' => "item_tb_4", 'target' => $this->appSecV2_menu_target('_self'), 'disabled' => $str_disabled, 'parent_list' => false, 'itens' => [], ); if (isset($_SESSION['scriptcase']['sc_def_menu']['appSecV2_menu'])) { $appSecV2_menu_menuData['data']['itens'] = $_SESSION['scriptcase']['sc_def_menu']['appSecV2_menu']; } if (isset($_SESSION['scriptcase']['sc_usermenu']['appSecV2_menu'])) { $appSecV2_menu_menuData['data_user']['itens'] = $_SESSION['scriptcase']['sc_usermenu']['appSecV2_menu']; } if (isset($_SESSION['scriptcase']['sc_def_shortcuts']['appSecV2_menu']) && !empty($_SESSION['scriptcase']['sc_def_shortcuts']['appSecV2_menu'])) { $appSecV2_menu_menuData['shortcuts'] = $_SESSION['scriptcase']['sc_def_shortcuts']['appSecV2_menu']; } if (is_file("appSecV2_menu_help.txt")) { $Arq_WebHelp = file("appSecV2_menu_help.txt"); if (isset($Arq_WebHelp[0]) && !empty($Arq_WebHelp[0])) { $Arq_WebHelp[0] = str_replace("\r\n" , "", trim($Arq_WebHelp[0])); $Tmp = explode(";", $Arq_WebHelp[0]); foreach ($Tmp as $Cada_help) { $Tmp1 = explode(":", $Cada_help); if (!empty($Tmp1[0]) && isset($Tmp1[1]) && !empty($Tmp1[1]) && $Tmp1[0] == "menu" && is_file($str_root . $path_help . $Tmp1[1])) { $str_disabled = "N"; $str_link = "" . $path_help . $Tmp1[1] . ""; $str_icon = ""; $icon_aba = ""; $icon_aba_inactive = ""; if(empty($icon_aba) && isset($arr_menuicons['']['active'])) { $icon_aba = $arr_menuicons['']['active']; } if(empty($icon_aba_inactive) && isset($arr_menuicons['']['inactive'])) { $icon_aba_inactive = $arr_menuicons['']['inactive']; } $appSecV2_menu_menuData['data'][] = array( 'label' => "" . $this->Nm_lang['lang_btns_help_hint'] . "", 'level' => "0", 'link' => $str_link, 'hint' => "" . $this->Nm_lang['lang_btns_help_hint'] . "", 'id' => "item_Help", 'icon' => $str_icon, 'icon_aba' => $icon_aba, 'icon_aba_inactive' => $icon_aba_inactive, 'target' => "" . $this->appSecV2_menu_target('_blank') . "", 'sc_id' => "item_Help", 'disabled' => $str_disabled, 'display' => "text", 'display_position'=> "", 'icon_fa' => "", 'icon_color' => "", 'icon_color_hover' => "", 'icon_color_disabled' => "", ); } } } } if (isset($_SESSION['scriptcase']['sc_menu_del']['appSecV2_menu']) && !empty($_SESSION['scriptcase']['sc_menu_del']['appSecV2_menu'])) { sc_menu_delete($appSecV2_menu_menuData['data'], $_SESSION['scriptcase']['sc_menu_del']['appSecV2_menu']); sc_menu_delete($appSecV2_menu_menuData['data_user'], $_SESSION['scriptcase']['sc_menu_del']['appSecV2_menu']); } if (isset($_SESSION['scriptcase']['sc_menu_disable']['appSecV2_menu']) && !empty($_SESSION['scriptcase']['sc_menu_disable']['appSecV2_menu'])) { sc_menu_disable($appSecV2_menu_menuData['data'], $_SESSION['scriptcase']['sc_menu_disable']['appSecV2_menu']); sc_menu_disable($appSecV2_menu_menuData['data_user'], $_SESSION['scriptcase']['sc_menu_disable']['appSecV2_menu']); } sc_menu_clearitens($appSecV2_menu_menuData['data']); sc_menu_clearitens($appSecV2_menu_menuData['data_user']); /* Cabeçalho HTML */ header("X-XSS-Protection: 1; mode=block"); header("X-Frame-Options: SAMEORIGIN"); ?>