From 1f7caf7179d08e42fc04dc9a47f26387c1777911 Mon Sep 17 00:00:00 2001 From: Bruno Date: Wed, 13 Mar 2024 16:08:03 -0400 Subject: [PATCH] =?UTF-8?q?colocar=20include=5Fonce=20para=20n=C3=A3o=20te?= =?UTF-8?q?r=20conflito=20util/funcoesLicenca.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- checaSessao.php | 2 +- configGeral.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/checaSessao.php b/checaSessao.php index e7fa04ba..8988977e 100644 --- a/checaSessao.php +++ b/checaSessao.php @@ -26,7 +26,7 @@ if (!isset($_SESSION["SSinSession"]) || ($_SESSION["SSinSession"] != "ok")) { } -include "util/funcoesLicenca.php"; +include_once "util/funcoesLicenca.php"; /** * Direciona o usuário para autenticação diff --git a/configGeral.php b/configGeral.php index add593b6..009852f7 100644 --- a/configGeral.php +++ b/configGeral.php @@ -538,8 +538,8 @@ if ($idSubProg == CONFIG_BASE_DADOS) { $smarty->assign("idSubProg", $idSubProg); DispRel($smarty, $tpl); } else if ($idSubProg == CONFIG_LICENCA) { - include "util/funcoesLicenca.php"; - + include_once "util/funcoesLicenca.php"; + $fields = filter_input_array(INPUT_POST, FILTER_SANITIZE_SPECIAL_CHARS); $query = sprintf("SELECT perm_licenca FROM pbx_usuarios WHERE matricula = '%s';", GetMatricula());