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());