Commit a3e02f6c16891f73d28bb5808d4bb1ebaa5169b0

Authored by Adriano Vieira
1 parent 30eb1708
Exists in master and in 1 other branch 3.1

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
admin/redes/incluir_rede.php
@@ -208,7 +208,7 @@ function SetaServidorUpdates() @@ -208,7 +208,7 @@ function SetaServidorUpdates()
208 208
209 function valida_form(frmForm) 209 function valida_form(frmForm)
210 { 210 {
211 - VerificaRedeMascara(frmForm); 211 +
212 if ( document.form.frm_nu_limite_ftp.value == "" ) 212 if ( document.form.frm_nu_limite_ftp.value == "" )
213 { 213 {
214 document.form.frm_nu_limite_ftp.value = "30"; 214 document.form.frm_nu_limite_ftp.value = "30";
@@ -290,7 +290,10 @@ function valida_form(frmForm) @@ -290,7 +290,10 @@ function valida_form(frmForm)
290 alert("Digite a Senha para Login no Servidor de Updates pelo Módulo Gerente"); 290 alert("Digite a Senha para Login no Servidor de Updates pelo Módulo Gerente");
291 document.form.frm_te_senha_login_serv_updates_gerente.focus(); 291 document.form.frm_te_senha_login_serv_updates_gerente.focus();
292 return false; 292 return false;
293 - } 293 + }
  294 +
  295 + VerificaRedeMascara(frmForm);
  296 +
294 return true; 297 return true;
295 } 298 }
296 </script> 299 </script>
include/library.php
@@ -13,7 +13,8 @@ @@ -13,7 +13,8 @@
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 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 Livre(FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 14 Livre(FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
15 */ 15 */
16 -//session_start(); 16 +
  17 +session_start();
17 @define('CACIC',1); 18 @define('CACIC',1);
18 19
19 @include_once('config.php'); 20 @include_once('config.php');
@@ -49,7 +50,7 @@ function AntiSpy($strNiveisPermitidos = &#39;&#39;) @@ -49,7 +50,7 @@ function AntiSpy($strNiveisPermitidos = &#39;&#39;)
49 $boolNivelPermitido) 50 $boolNivelPermitido)
50 return true; 51 return true;
51 //$_SERVER['HTTP_HOST'] 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 header ("Location: $strLocation"); 54 header ("Location: $strLocation");
54 exit; 55 exit;
55 } 56 }