Commit a3e02f6c16891f73d28bb5808d4bb1ebaa5169b0
1 parent
30eb1708
Exists in
master
and in
1 other branch
Gerente "trunk" atualizado
- correção de validação de dados de subrede - corrigido inicialização de sessão em "library" (melhorias em validação de sessão; ex: "antspy") git-svn-id: http://svn.softwarepublico.gov.br/svn/cacic/cacic/trunk/gerente@390 fecfc0c7-e812-0410-ae72-849f08638ee7
Showing
2 changed files
with
8 additions
and
4 deletions
Show diff stats
admin/redes/incluir_rede.php
... | ... | @@ -208,7 +208,7 @@ function SetaServidorUpdates() |
208 | 208 | |
209 | 209 | function valida_form(frmForm) |
210 | 210 | { |
211 | - VerificaRedeMascara(frmForm); | |
211 | + | |
212 | 212 | if ( document.form.frm_nu_limite_ftp.value == "" ) |
213 | 213 | { |
214 | 214 | document.form.frm_nu_limite_ftp.value = "30"; |
... | ... | @@ -290,7 +290,10 @@ function valida_form(frmForm) |
290 | 290 | alert("Digite a Senha para Login no Servidor de Updates pelo Módulo Gerente"); |
291 | 291 | document.form.frm_te_senha_login_serv_updates_gerente.focus(); |
292 | 292 | return false; |
293 | - } | |
293 | + } | |
294 | + | |
295 | + VerificaRedeMascara(frmForm); | |
296 | + | |
294 | 297 | return true; |
295 | 298 | } |
296 | 299 | </script> | ... | ... |
include/library.php
... | ... | @@ -13,7 +13,8 @@ |
13 | 13 | Você deve ter recebido uma cópia da Licença Pública Geral GNU, sob o título "LICENCA.txt", junto com este programa, se não, escreva para a Fundação do Software |
14 | 14 | Livre(FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
15 | 15 | */ |
16 | -//session_start(); | |
16 | + | |
17 | +session_start(); | |
17 | 18 | @define('CACIC',1); |
18 | 19 | |
19 | 20 | @include_once('config.php'); |
... | ... | @@ -49,7 +50,7 @@ function AntiSpy($strNiveisPermitidos = '') |
49 | 50 | $boolNivelPermitido) |
50 | 51 | return true; |
51 | 52 | //$_SERVER['HTTP_HOST'] |
52 | - $strLocation = 'http://'.$_SERVER['SERVER_ADDR'].'/cacic2/include/acesso_nao_permitido.php'; | |
53 | + $strLocation = 'http://'.$_SERVER['HTTP_HOST'].'/cacic2/include/acesso_nao_permitido.php'; | |
53 | 54 | header ("Location: $strLocation"); |
54 | 55 | exit; |
55 | 56 | } | ... | ... |