Leia o arquivo LEIAME.md para obter as principais informações sobre a instalação do OCOMON!" . "

You have to configure the config.inc.php file in OCOMON/INCLUDES/ to start using Ocomon!
Read the file LEIAME.md to get the main informations about the Ocomon Installation!"); if (version_compare(phpversion(), '8.1', '<')) { session_start(); session_destroy(); echo "A versão mínima do PHP deve ser a 8.1. Será necessário atualizar o PHP para poder utilizar o OcoMon.
"; echo "OcoMon needs at least PHP 8.1 to run properly."; return; } if (!function_exists('mb_internal_encoding')) { /* Não possui o módulo mbstring */ session_start(); session_destroy(); echo "É necessário instalar o módulo mbstring no seu PHP para que o OcoMon funcione adequadamente.
"; echo "You need to install mbstring PHP module in order to OcoMon runs properly."; return; } session_start(); include "PATHS.php"; require_once "includes/functions/functions.php"; require_once "includes/functions/dbFunctions.php"; include_once "includes/queries/queries.php"; require_once "" . $includesPath . "config.inc.php"; include_once "" . $includesPath . "versao.php"; require_once __DIR__ . "/" . "includes/classes/ConnectPDO.php"; use includes\classes\ConnectPDO; $conn = ConnectPDO::getInstance(); if (!isset($_SESSION['s_logado']) || $_SESSION['s_logado'] != 1) { redirect('./login.php'); exit; } if (!isset($_SESSION['s_language'])) { $_SESSION['s_language'] = "pt_BR.php"; } if (!isset($_SESSION['s_usuario'])) { $_SESSION['s_usuario'] = ""; } if (!isset($_SESSION['s_usuario_nome'])) { $_SESSION['s_usuario_nome'] = ""; } if (!isset($_SESSION['s_logado'])) { $_SESSION['s_logado'] = ""; } if (!isset($_SESSION['s_nivel'])) { $_SESSION['s_nivel'] = ""; } $uName = $_SESSION['s_usuario_nome']; if (!empty($uName)) { $hnt = TRANS('HNT_LOGOFF'); } $screen = getScreenInfo($conn, 1); // $mailConfig = getMailConfig($conn); // $configExt = getConfigValues($conn); $marca = "HOME"; $rootPath = "./"; $ocomonPath = "./ocomon/geral/"; $invmonPath = "./invmon/geral/"; $adminPath = "./admin/geral/"; /* Páginas que serão carregadas por padrão em cada aba */ $simplesHome = (isset($_SESSION['s_page_simples']) ? $_SESSION['s_page_simples'] : $ocomonPath . "tickets_main_user.php?action=listall"); $homeHome = (isset($_SESSION['s_page_home']) ? $_SESSION['s_page_home'] : $ocomonPath . "home.php"); $ocoHome = (isset($_SESSION['s_page_ocomon']) ? $_SESSION['s_page_ocomon'] : $ocomonPath . "tickets_main.php"); $invHome = (isset($_SESSION['s_page_invmon']) ? $_SESSION['s_page_invmon'] : $invmonPath . "inventory_main.php"); $admHome = (isset($_SESSION['s_page_admin']) ? $_SESSION['s_page_admin'] : $adminPath . "users.php"); $admAreaHome = $adminPath . "users.php"; ?> <?= APP_NAME; ?> <?= VERSAO; ?> '; $spanHasNotices = ''; $spanNoNotices = '  '; $messageIcon = '
'.$spanNoNotices.'
  '; $messageIconSm = '
'.$spanNoNotices.'
  '; $userName = '' . $_SESSION["s_usuario_nome"] . ''; ?>
 " . TRANS('MNS_HOME') . " "; if ($_SESSION['s_nivel'] < 3) { if (($_SESSION['s_ocomon'] == 1) && !isIn($_SESSION['s_area'], $screen['conf_ownarea_2'])) { print " " . TRANS('TICKETS') . " "; } elseif (($_SESSION['s_ocomon'] == 1) && isIn($_SESSION['s_area'], $screen['conf_ownarea_2'])) { print " " . TRANS('TICKETS') . " "; } else { print " " . TRANS('TICKETS') . " "; } } if ($_SESSION['s_invmon'] == 1) { print " " . TRANS('INVENTORY') . " "; } else { print " "; } if ($_SESSION['s_nivel'] == 1 || (isset($_SESSION['s_area_admin']) && $_SESSION['s_area_admin'] == '1')) { print " " . TRANS('ADMIN') . " "; } else { print " "; } ?>