Commit f98270fc4b5afbee10fdbf0d3c33b399d7c2b915

Authored by anderson.peterle@previdencia.gov.br
1 parent b108b78b
Exists in master and in 1 other branch 3.1

Foi retirado o menu principal para usuario nao logado; Foi acrescentado grafico …

…de acesso por local na data; Algumas correcoes em relatorio/consulta patrimonial.

git-svn-id: http://svn.softwarepublico.gov.br/svn/cacic/cacic/trunk/gerente@104 fecfc0c7-e812-0410-ae72-849f08638ee7
Showing 175 changed files with 1200 additions and 2097 deletions   Show diff stats
admin/acoes.php
@@ -14,15 +14,6 @@ @@ -14,15 +14,6 @@
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 session_start();
17 -  
18 -/*  
19 - * verifica se houve login e também as permissões de usuário  
20 - */  
21 -if(!isset($_SESSION['id_usuario']))  
22 - die('Acesso negado!');  
23 -else { // Inserir regras para verificar permissões do usuário!  
24 -}  
25 -  
26 require_once('../include/library.php'); 17 require_once('../include/library.php');
27 // Comentado temporariamente - AntiSpy(); 18 // Comentado temporariamente - AntiSpy();
28 $id_acao = $_GET['id_acao']; 19 $id_acao = $_GET['id_acao'];
@@ -392,9 +383,7 @@ function remove(box) { @@ -392,9 +383,7 @@ function remove(box) {
392 </tr> 383 </tr>
393 <tr> 384 <tr>
394 <td> <div align="center"> 385 <td> <div align="center">
395 - <!-- <input name="submit" type="submit" value=" Gravar Informa&ccedil;&otilde;es " onClick="SelectAll(this.form.elements['list2[]']); SelectAll(this.form.elements['list4[]']); SelectAll(this.form.elements['list5[]']);return Confirma('Confirma Configuração de Ação?');">  
396 --->  
397 - <input name="submit" type="submit" value=" Gravar Informa&ccedil;&otilde;es " onClick="SelectAll(this.form.elements['list2[]']); SelectAll(this.form.elements['list4[]']); SelectAll(this.form.elements['list5[]']);return Confirma('Confirma Configuração de Ação?');" <? echo ($_SESSION['cs_nivel_administracao']<>1&&$_SESSION['cs_nivel_administracao']<>3?'disabled':'')?>> 386 + <input name="submit" type="submit" value=" Gravar Informa&ccedil;&otilde;es " onClick="SelectAll(this.form.elements['list2[]']); SelectAll(this.form.elements['list4[]']); SelectAll(this.form.elements['list5[]']);return Confirma('Confirma Configuração de Ação?');" <? echo ($_SESSION['cs_nivel_administracao']<>1&&$_SESSION['cs_nivel_administracao']<>3?'disabled':'')?>>
398 <? 387 <?
399 // <input name="submit" type="submit" value=" Gravar Informa&ccedil;&otilde;es " onClick="document.forma.elements['list2[]'].disabled=false; SelectAll(this.forma.elements['list2[]']); SelectAll(this.forma.elements['list4[]']); SelectAll(this.forma.elements['list5[]']);return Confirma('Confirma Configuração de Ação?');"> 388 // <input name="submit" type="submit" value=" Gravar Informa&ccedil;&otilde;es " onClick="document.forma.elements['list2[]'].disabled=false; SelectAll(this.forma.elements['list2[]']); SelectAll(this.forma.elements['list4[]']); SelectAll(this.forma.elements['list5[]']);return Confirma('Confirma Configuração de Ação?');">
400 ?> 389 ?>
admin/acoes_set.php
@@ -14,14 +14,6 @@ @@ -14,14 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 -  
25 require_once('../include/library.php'); 17 require_once('../include/library.php');
26 // Comentado temporariamente - AntiSpy(); 18 // Comentado temporariamente - AntiSpy();
27 $id_acao = $_POST['id_acao']; 19 $id_acao = $_POST['id_acao'];
admin/atualizar_base.php
@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 <title>Atualiza&ccedil;&atilde;o de Base de Dados</title> 4 <title>Atualiza&ccedil;&atilde;o de Base de Dados</title>
5 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 5 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6 </head> 6 </head>
7 - <body background="../imgs/linha_v.gif"> 7 + <body background="file:///h|/cacic2sg/imgs/linha_v.gif">
8 <table width="90%" border="0" align="center"> 8 <table width="90%" border="0" align="center">
9 <tr> 9 <tr>
10 10
@@ -169,7 +169,7 @@ while ($row = mysql_fetch_array($result_GERENTES)) @@ -169,7 +169,7 @@ while ($row = mysql_fetch_array($result_GERENTES))
169 @ftp_delete($v_conexao_ftp,$v_nomes_arquivos_FTP[$cnt_nomes_arquivos_FTP]); 169 @ftp_delete($v_conexao_ftp,$v_nomes_arquivos_FTP[$cnt_nomes_arquivos_FTP]);
170 if (@ftp_put($v_conexao_ftp, 170 if (@ftp_put($v_conexao_ftp,
171 $v_nomes_arquivos_FTP[$cnt_nomes_arquivos_FTP], 171 $v_nomes_arquivos_FTP[$cnt_nomes_arquivos_FTP],
172 - $_SERVER['DOCUMENT_ROOT'] . '../repositorio/' . $v_nomes_arquivos_REP[$cnt_nomes_arquivos_REP], 172 + $_SERVER['DOCUMENT_ROOT'] . '/cacic2sg/repositorio/' . $v_nomes_arquivos_REP[$cnt_nomes_arquivos_REP],
173 FTP_BINARY)) 173 FTP_BINARY))
174 { 174 {
175 array_push($v_array_objetos_atualizados, $v_nomes_arquivos_REP[$cnt_nomes_arquivos_REP]); 175 array_push($v_array_objetos_atualizados, $v_nomes_arquivos_REP[$cnt_nomes_arquivos_REP]);
@@ -190,7 +190,7 @@ while ($row = mysql_fetch_array($result_GERENTES)) @@ -190,7 +190,7 @@ while ($row = mysql_fetch_array($result_GERENTES))
190 { 190 {
191 if (@ftp_put($v_conexao_ftp, 191 if (@ftp_put($v_conexao_ftp,
192 $v_nomes_arquivos_REP[$cnt_nomes_arquivos_REP], 192 $v_nomes_arquivos_REP[$cnt_nomes_arquivos_REP],
193 - $_SERVER['DOCUMENT_ROOT'] . '../repositorio/' . $v_nomes_arquivos_REP[$cnt_nomes_arquivos_REP], 193 + $_SERVER['DOCUMENT_ROOT'] . '/cacic2sg/repositorio/' . $v_nomes_arquivos_REP[$cnt_nomes_arquivos_REP],
194 FTP_BINARY)) 194 FTP_BINARY))
195 { 195 {
196 array_push($v_array_objetos_enviados, $v_nomes_arquivos_REP[$cnt_nomes_arquivos_REP]); 196 array_push($v_array_objetos_enviados, $v_nomes_arquivos_REP[$cnt_nomes_arquivos_REP]);
@@ -342,13 +342,13 @@ while ($row = mysql_fetch_array($result_GERENTES)) @@ -342,13 +342,13 @@ while ($row = mysql_fetch_array($result_GERENTES))
342 trim($row['te_senha_login_repositorio']) == '') 342 trim($row['te_senha_login_repositorio']) == '')
343 { 343 {
344 ?> 344 ?>
345 - <font color="#FF0000" size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="gerentes/detalhes_gerente.php?id_ip_gerente=<? echo $row['id_ip_gerente']; ?>" style="color: red"><strong>FTP não configurado!</strong></a></font> 345 + <font color="#FF0000" size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="file:///h|/cacic2sg/admin/gerentes/detalhes_gerente.php?id_ip_gerente=<? echo $row['id_ip_gerente']; ?>" style="color: red"><strong>FTP não configurado!</strong></a></font>
346 <? 346 <?
347 } 347 }
348 else 348 else
349 { 349 {
350 ?> 350 ?>
351 - <font color="#FF0000" size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="gerentes/detalhes_gerente.php?id_ip_gerente=<? echo $row['id_ip_gerente']; ?>" style="color: red"><strong>Servidor OffLine!</strong></a></font> 351 + <font color="#FF0000" size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="file:///h|/cacic2sg/admin/gerentes/detalhes_gerente.php?id_ip_gerente=<? echo $row['id_ip_gerente']; ?>" style="color: red"><strong>Servidor OffLine!</strong></a></font>
352 <? 352 <?
353 } 353 }
354 } 354 }
@@ -382,4 +382,4 @@ while ($row = mysql_fetch_array($result_GERENTES)) @@ -382,4 +382,4 @@ while ($row = mysql_fetch_array($result_GERENTES))
382 382
383 </table> 383 </table>
384 </body> 384 </body>
385 - </html> 385 + </html>
386 \ No newline at end of file 386 \ No newline at end of file
admin/autorizacoes.php
1 <? 1 <?
2 session_start(); 2 session_start();
3 -/*  
4 - * verifica se houve login e também as permissões de usuário  
5 - */  
6 -if(!isset($_SESSION['id_usuario']))  
7 - die('Acesso negado!');  
8 -else { // Inserir regras para verificar permissões do usuário!  
9 -}  
10 -  
11 //Mostrar computadores baseados no tipo de pesquisa solicitada pelo usuário 3 //Mostrar computadores baseados no tipo de pesquisa solicitada pelo usuário
12 require_once('../include/library.php'); 4 require_once('../include/library.php');
13 ?> 5 ?>
admin/config_agentes.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 ?> 17 ?>
25 <html> 18 <html>
26 <head> 19 <head>
@@ -230,9 +223,7 @@ require_once(&#39;../include/opcoes_avancadas_combos.js&#39;); @@ -230,9 +223,7 @@ require_once(&#39;../include/opcoes_avancadas_combos.js&#39;);
230 </tr> 223 </tr>
231 <tr> 224 <tr>
232 <td><div align="center"> 225 <td><div align="center">
233 -<!--<input name="submit" type="submit" value=" Gravar Informa&ccedil;&otilde;es " onClick="return SelectAll_Forca_Coleta();return Confirma('Confirma Configuração de Agentes?');">-->  
234 - <input name="submit" type="submit" value=" Gravar Informa&ccedil;&otilde;es " onClick="return SelectAll_Forca_Coleta();return Confirma('Confirma Configuração de Agentes?');" <? echo ($_SESSION['cs_nivel_administracao']<>1&&$_SESSION['cs_nivel_administracao']<>3?'disabled':'')?>>  
235 - 226 + <input name="submit" type="submit" value=" Gravar Informa&ccedil;&otilde;es " onClick="return SelectAll_Forca_Coleta();return Confirma('Confirma Configuração de Agentes?');" <? echo ($_SESSION['cs_nivel_administracao']<>1&&$_SESSION['cs_nivel_administracao']<>3?'disabled':'')?>>
236 </div></td> 227 </div></td>
237 </tr> 228 </tr>
238 </table> 229 </table>
admin/config_agentes_set.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 require_once('../include/library.php'); 17 require_once('../include/library.php');
25 // Comentado temporariamente - AntiSpy(); 18 // Comentado temporariamente - AntiSpy();
26 conecta_bd_cacic(); 19 conecta_bd_cacic();
admin/config_gerais.php
@@ -14,15 +14,6 @@ @@ -14,15 +14,6 @@
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 session_start();
17 -  
18 -/*  
19 - * verifica se houve login e também as permissões de usuário  
20 - */  
21 -if(!isset($_SESSION['id_usuario']))  
22 - die('Acesso negado!');  
23 -else { // Inserir regras para verificar permissões do usuário!  
24 -}  
25 -  
26 ?> 17 ?>
27 <html> 18 <html>
28 <head> 19 <head>
@@ -254,8 +245,7 @@ function SetaServidorUpdates() @@ -254,8 +245,7 @@ function SetaServidorUpdates()
254 </tr> 245 </tr>
255 <tr> 246 <tr>
256 <td><div align="center"> 247 <td><div align="center">
257 -<!-- <input name="submit" type="submit" value=" Gravar Informa&ccedil;&otilde;es " onClick="SelectAll(this.form.elements['list2[]'])">-->  
258 - <input name="submit" type="submit" value=" Gravar Informa&ccedil;&otilde;es " onClick="SelectAll(this.form.elements['list2[]'])" <? echo ($_SESSION['cs_nivel_administracao']<>1&&$_SESSION['cs_nivel_administracao']<>3?'disabled':'')?>> 248 + <input name="submit" type="submit" value=" Gravar Informa&ccedil;&otilde;es " onClick="SelectAll(this.form.elements['list2[]'])" <? echo ($_SESSION['cs_nivel_administracao']<>1&&$_SESSION['cs_nivel_administracao']<>3?'disabled':'')?>>
259 </div></td> 249 </div></td>
260 </tr> 250 </tr>
261 </table> 251 </table>
admin/config_gerais_set.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 require_once('../include/library.php'); 17 require_once('../include/library.php');
25 // Comentado temporariamente - AntiSpy(); 18 // Comentado temporariamente - AntiSpy();
26 conecta_bd_cacic(); 19 conecta_bd_cacic();
admin/exclui_informacoes_computadores.php
@@ -14,14 +14,6 @@ @@ -14,14 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 -  
25 require_once('../include/library.php'); 17 require_once('../include/library.php');
26 // Comentado temporariamente - AntiSpy(); 18 // Comentado temporariamente - AntiSpy();
27 if ($_POST['submit_cond']) 19 if ($_POST['submit_cond'])
@@ -113,7 +105,7 @@ if ($_POST[&#39;submit_cond&#39;]) @@ -113,7 +105,7 @@ if ($_POST[&#39;submit_cond&#39;])
113 </head> 105 </head>
114 106
115 <body background="../imgs/linha_v.gif"> 107 <body background="../imgs/linha_v.gif">
116 - <script language="JavaScript" type="text/javascript" src="../include/cacic.js"></script> 108 + <script language="JavaScript" type="text/javascript" src="../../include/cacic.js"></script>
117 <form name="form1" method="post"> 109 <form name="form1" method="post">
118 <table width="95%" border="0" align="center"> 110 <table width="95%" border="0" align="center">
119 <tr> 111 <tr>
@@ -473,4 +465,4 @@ else @@ -473,4 +465,4 @@ else
473 </html> 465 </html>
474 <? 466 <?
475 } 467 }
476 - ?> 468 + ?>
477 \ No newline at end of file 469 \ No newline at end of file
admin/forca_coleta_estacao.php
@@ -15,13 +15,6 @@ @@ -15,13 +15,6 @@
15 */ 15 */
16 16
17 session_start(); 17 session_start();
18 -/*  
19 - * verifica se houve login e também as permissões de usuário  
20 - */  
21 -if(!isset($_SESSION['id_usuario']))  
22 - die('Acesso negado!');  
23 -else { // Inserir regras para verificar permissões do usuário!  
24 -}  
25 require_once('../include/library.php'); 18 require_once('../include/library.php');
26 // Comentado temporariamente - AntiSpy(); 19 // Comentado temporariamente - AntiSpy();
27 ?> 20 ?>
admin/gerencia_licencas/arquivo/aquisicoes.php
@@ -3,11 +3,9 @@ @@ -3,11 +3,9 @@
3 */ 3 */
4 require_once('../../../include/inicio_gerencia_licencas_inc.php'); 4 require_once('../../../include/inicio_gerencia_licencas_inc.php');
5 ?> 5 ?>
6 -  
7 -  
8 <script src="../../../include/sniffer.js" type="text/javascript" language="javascript"></script> 6 <script src="../../../include/sniffer.js" type="text/javascript" language="javascript"></script>
9 -<script src="../../../include/dyncalendar.js" type="text/javascript" language="javascript"></script>  
10 -<link href="../../../include/dyncalendar.css" media="screen" rel="stylesheet"> 7 + <script src="../../../include/dynCalendar.js" type="text/javascript" language="javascript"></script>
  8 + <link href="/cacic2/include/dynCalendar.css" media="screen" rel="stylesheet">
11 9
12 <table width="90%" border="0" align="center"> 10 <table width="90%" border="0" align="center">
13 <tr> 11 <tr>
admin/gerencia_licencas/arquivo/cadastros/frmSoftwares.php
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 -<link rel="stylesheet" type="text/css" href="../../../../include/cacic.css"> 4 +<link rel="stylesheet" type="text/css" href="/cacic2/include/cacic.css">
5 <title>Cadastro de Softwares</title> 5 <title>Cadastro de Softwares</title>
6 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 6 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
7 <script language="JavaScript"> 7 <script language="JavaScript">
@@ -24,7 +24,7 @@ function validaForm() { @@ -24,7 +24,7 @@ function validaForm() {
24 </script> 24 </script>
25 <link href="../../../../include/cacic.css" rel="stylesheet" type="text/css"> 25 <link href="../../../../include/cacic.css" rel="stylesheet" type="text/css">
26 </head> 26 </head>
27 -<body bgcolor="#FFFFFF" topmargin="5" onload="document.forms[0].nome.focus()" background="../../../../imgs/linha_v.gif"> 27 +<body bgcolor="#FFFFFF" topmargin="5" onload="document.forms[0].nome.focus()" background="/cacic2/imgs/linha_v.gif">
28 <table width="90%" border="0" align="center"> 28 <table width="90%" border="0" align="center">
29 <tr> 29 <tr>
30 <td class="cabecalho">Cadastro de Softwares</td> 30 <td class="cabecalho">Cadastro de Softwares</td>
admin/gerencia_licencas/arquivo/cadastros/frmSoftwaresEstacao.php
1 <? 1 <?
2 session_start(); 2 session_start();
3 -/*  
4 - * verifica se houve login e também as permissões de usuário  
5 - */  
6 -if(!isset($_SESSION['id_usuario']))  
7 - die('Acesso negado!');  
8 -else { // Inserir regras para verificar permissões do usuário!  
9 -}  
10 -  
11 require_once('../../../../include/library.php'); 3 require_once('../../../../include/library.php');
12 conecta_bd_cacic(); 4 conecta_bd_cacic();
13 ?> 5 ?>
14 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 6 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
15 <html> 7 <html>
16 <head> 8 <head>
17 -<link rel="stylesheet" type="text/css" href="../../../../include/cacic.css"> 9 +<link rel="stylesheet" type="text/css" href="/cacic2/include/cacic.css">
18 <title></title> 10 <title></title>
19 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 11 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
20 <script language="JavaScript"> 12 <script language="JavaScript">
@@ -51,7 +43,7 @@ if (texto.substring(0,1) != saida) @@ -51,7 +43,7 @@ if (texto.substring(0,1) != saida)
51 </script> 43 </script>
52 <link href="../../../../include/cacic.css" rel="stylesheet" type="text/css"> 44 <link href="../../../../include/cacic.css" rel="stylesheet" type="text/css">
53 </head> 45 </head>
54 -<body bgcolor="#FFFFFF" topmargin="5" onload="document.forms[0].patrimonio.focus()" background="../../../../imgs/linha_v.gif"> 46 +<body bgcolor="#FFFFFF" topmargin="5" onload="document.forms[0].patrimonio.focus()" background="/cacic2/imgs/linha_v.gif">
55 <table width="90%" border="0" align="center"> 47 <table width="90%" border="0" align="center">
56 <tr> 48 <tr>
57 <td class="cabecalho">Cadastro de Softwares por Esta&ccedil;&atilde;o</td> 49 <td class="cabecalho">Cadastro de Softwares por Esta&ccedil;&atilde;o</td>
@@ -134,10 +126,7 @@ if (texto.substring(0,1) != saida) @@ -134,10 +126,7 @@ if (texto.substring(0,1) != saida)
134 <td></td> 126 <td></td>
135 </tr> 127 </tr>
136 <tr> 128 <tr>
137 -<!-- <td align="right"><input type="reset" name="cancelar" value="Cancelar"/></td>  
138 - <td align="left"><input type="submit" name="gravar" value="Gravar" width="100"></td>  
139 --->  
140 - <td align="center" colspan="2"><input type="submit" name="gravar" value="Gravar" width="100" <? echo ($_SESSION['cs_nivel_administracao']<>1&&$_SESSION['cs_nivel_administracao']<>3?'disabled':'')?>></td> 129 + <td align="center" colspan="2"><input type="submit" name="gravar" value="Gravar" width="100" <? echo ($_SESSION['cs_nivel_administracao']<>1&&$_SESSION['cs_nivel_administracao']<>3?'disabled':'')?>></td>
141 </tr> 130 </tr>
142 </table> 131 </table>
143 <p>&nbsp;</p> 132 <p>&nbsp;</p>
admin/gerencia_licencas/arquivo/cadastros/softwares.php
1 <?php 1 <?php
2 session_start(); 2 session_start();
3 -/*  
4 - * verifica se houve login e também as permissões de usuário  
5 - */  
6 -if(!isset($_SESSION['id_usuario']))  
7 - die('Acesso negado!');  
8 -else { // Inserir regras para verificar permissões do usuário!  
9 -}  
10 -require_once('../../../../include/library.php'); 3 +require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php');
11 conecta_bd_cacic(); 4 conecta_bd_cacic();
12 5
13 $query_select = "select max(id_software) as ID FROM softwares"; 6 $query_select = "select max(id_software) as ID FROM softwares";
@@ -36,4 +29,4 @@ conecta_bd_cacic(); @@ -36,4 +29,4 @@ conecta_bd_cacic();
36 } 29 }
37 ?> 30 ?>
38 <br><br> 31 <br><br>
39 -<div align="center"><input type="button" name="btnVoltar" value="Voltar" onClick="javascript:window.location='frmSoftwares.php'"/></div> 32 +<div align="center"><input type="button" name="btnVoltar" value="Voltar" onClick="javascript:window.location='frmSoftwares.php'"/></div>
40 \ No newline at end of file 33 \ No newline at end of file
admin/gerencia_licencas/arquivo/cadastros/softwaresEstacao.php
@@ -9,14 +9,7 @@ function DataParaBd($data){ @@ -9,14 +9,7 @@ function DataParaBd($data){
9 } 9 }
10 10
11 session_start(); 11 session_start();
12 -/*  
13 - * verifica se houve login e também as permissões de usuário  
14 - */  
15 -if(!isset($_SESSION['id_usuario']))  
16 - die('Acesso negado!');  
17 -else { // Inserir regras para verificar permissões do usuário!  
18 -}  
19 -require_once('../../../../include/library.php'); 12 +require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php');
20 conecta_bd_cacic(); 13 conecta_bd_cacic();
21 14
22 $patrimonio = $_REQUEST[patrimonio]; 15 $patrimonio = $_REQUEST[patrimonio];
admin/gerencia_licencas/arquivo/rel_cadastro_aquisicao.php
@@ -2,13 +2,7 @@ @@ -2,13 +2,7 @@
2 /* 2 /*
3 */ 3 */
4 session_start(); 4 session_start();
5 -/*  
6 - * verifica se houve login e também as permissões de usuário  
7 - */  
8 -if(!isset($_SESSION['id_usuario']))  
9 - die('Acesso negado!');  
10 -else { // Inserir regras para verificar permissões do usuário!  
11 -} 5 +
12 if($_POST['submit']) { 6 if($_POST['submit']) {
13 7
14 // Aqui eu inverto as datas para YYYYMMDD 8 // Aqui eu inverto as datas para YYYYMMDD
@@ -34,7 +28,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0 @@ -34,7 +28,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0
34 <body bgcolor="#FFFFFF" topmargin="5"> 28 <body bgcolor="#FFFFFF" topmargin="5">
35 <table border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#999999"> 29 <table border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#999999">
36 <tr bgcolor="#E1E1E1"> 30 <tr bgcolor="#E1E1E1">
37 - <td rowspan="5" bgcolor="#FFFFFF"><img src="../../../imgs/cacic_novo.gif" width="50" height="50"></td> 31 + <td rowspan="5" bgcolor="#FFFFFF"><img src="/cacic2/imgs/cacic_novo.gif" width="50" height="50"></td>
38 <td rowspan="5" bgcolor="#FFFFFF">&nbsp;</td> 32 <td rowspan="5" bgcolor="#FFFFFF">&nbsp;</td>
39 <td bgcolor="#FFFFFF">&nbsp;</td> 33 <td bgcolor="#FFFFFF">&nbsp;</td>
40 </tr> 34 </tr>
@@ -55,7 +49,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0 @@ -55,7 +49,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0
55 <br> 49 <br>
56 <br> 50 <br>
57 <? 51 <?
58 -require_once('../../../include/library.php'); 52 +require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php');
59 conecta_bd_cacic(); 53 conecta_bd_cacic();
60 54
61 $query = "SELECT id_aquisicao, dt_aquisicao, nr_processo 55 $query = "SELECT id_aquisicao, dt_aquisicao, nr_processo
admin/gerencia_licencas/arquivo/softwares_aquisicao.php
@@ -2,13 +2,6 @@ @@ -2,13 +2,6 @@
2 /* 2 /*
3 */ 3 */
4 session_start(); 4 session_start();
5 -/*  
6 - * verifica se houve login e também as permissões de usuário  
7 - */  
8 -if(!isset($_SESSION['id_usuario']))  
9 - die('Acesso negado!');  
10 -else { // Inserir regras para verificar permissões do usuário!  
11 -}  
12 5
13 $v_aquisicao = $_GET['id_aquisicao']; 6 $v_aquisicao = $_GET['id_aquisicao'];
14 $v_processo = $_GET['nr_processo']; 7 $v_processo = $_GET['nr_processo'];
@@ -31,7 +24,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0 @@ -31,7 +24,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0
31 <body bgcolor="#FFFFFF" topmargin="5"> 24 <body bgcolor="#FFFFFF" topmargin="5">
32 <table border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#999999"> 25 <table border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#999999">
33 <tr bgcolor="#E1E1E1"> 26 <tr bgcolor="#E1E1E1">
34 - <td rowspan="5" bgcolor="#FFFFFF"><img src="../../../imgs/cacic_novo.gif" width="50" height="50"></td> 27 + <td rowspan="5" bgcolor="#FFFFFF"><img src="/cacic2/imgs/cacic_novo.gif" width="50" height="50"></td>
35 <td rowspan="5" bgcolor="#FFFFFF">&nbsp;</td> 28 <td rowspan="5" bgcolor="#FFFFFF">&nbsp;</td>
36 <td bgcolor="#FFFFFF">&nbsp;</td> 29 <td bgcolor="#FFFFFF">&nbsp;</td>
37 </tr> 30 </tr>
@@ -52,7 +45,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0 @@ -52,7 +45,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0
52 <br> 45 <br>
53 <br> 46 <br>
54 <? 47 <?
55 -require_once('../../../include/library.php'); 48 +require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php');
56 conecta_bd_cacic(); 49 conecta_bd_cacic();
57 50
58 $query = "SELECT s.nm_software, ai.qt_licenca, tl.te_tipo_licenca 51 $query = "SELECT s.nm_software, ai.qt_licenca, tl.te_tipo_licenca
admin/gerencia_licencas/consulta/autorizados_por_estacao.php
1 <? 1 <?
2 session_start(); 2 session_start();
3 -/*  
4 - * verifica se houve login e também as permissões de usuário  
5 - */  
6 -if(!isset($_SESSION['id_usuario']))  
7 - die('Acesso negado!');  
8 -else { // Inserir regras para verificar permissões do usuário!  
9 -}  
10 -  
11 require_once('../../../include/library.php'); 3 require_once('../../../include/library.php');
12 conecta_bd_cacic(); 4 conecta_bd_cacic();
13 5
admin/gerencia_licencas/consulta/autorizados_por_orgao.php
1 <? 1 <?
2 session_start(); 2 session_start();
3 -/*  
4 - * verifica se houve login e também as permissões de usuário  
5 - */  
6 -if(!isset($_SESSION['id_usuario']))  
7 - die('Acesso negado!');  
8 -else { // Inserir regras para verificar permissões do usuário!  
9 -}  
10 -require_once($_SERVER['DOCUMENT_ROOT'] . '../../../include/library.php'); 3 +require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php');
11 conecta_bd_cacic(); 4 conecta_bd_cacic();
12 5
13 if ($_POST['consultar']) { 6 if ($_POST['consultar']) {
@@ -21,14 +14,14 @@ if ($_POST[&#39;consultar&#39;]) { @@ -21,14 +14,14 @@ if ($_POST[&#39;consultar&#39;]) {
21 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 14 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
22 <html> 15 <html>
23 <head> 16 <head>
24 -<link rel="stylesheet" type="text/css" href="../../../include/cacic.css"> 17 +<link rel="stylesheet" type="text/css" href="/cacic2/include/cacic.css">
25 18
26 <title></title> 19 <title></title>
27 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 20 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
28 </head> 21 </head>
29 22
30 -<body bgcolor="#FFFFFF" background="../../../imgs/linha_v.gif" onLoad="SetaCampo('string_autorizado_orgao')">  
31 -<script language="JavaScript" type="text/javascript" src="http://<? echo $_SERVER['HTTP_HOST'].'../../../include/cacic.js';?>"></script> 23 +<body bgcolor="#FFFFFF" background="/cacic2/imgs/linha_v.gif" onLoad="SetaCampo('string_autorizado_orgao')">
  24 +<script language="JavaScript" type="text/javascript" src="http://<? echo $_SERVER['HTTP_HOST'].'/cacic2/include/cacic.js';?>"></script>
32 25
33 <form action="<? echo $PHP_SELF; ?>" method="post" name="form1"> 26 <form action="<? echo $PHP_SELF; ?>" method="post" name="form1">
34 <table width="90%" border="0" align="center"> 27 <table width="90%" border="0" align="center">
admin/gerencia_licencas/consulta/detalhes_software.php
1 <? 1 <?
2 session_start(); 2 session_start();
3 -/*  
4 - * verifica se houve login e também as permissões de usuário  
5 - */  
6 -if(!isset($_SESSION['id_usuario']))  
7 - die('Acesso negado!');  
8 -else { // Inserir regras para verificar permissões do usuário!  
9 -}  
10 //Mostrar computadores com nomes repetidos na base 3 //Mostrar computadores com nomes repetidos na base
11 -require_once('../../../include/library.php'); 4 +require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php');
12 ?> 5 ?>
13 6
14 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 7 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
15 <html> 8 <html>
16 <head> 9 <head>
17 -<link rel="stylesheet" type="text/css" href="../../../include/cacic.css"> 10 +<link rel="stylesheet" type="text/css" href="/cacic2/include/cacic.css">
18 <title>Relat&oacute;rio de Softwares Inventariados por M&aacute;quinas</title> 11 <title>Relat&oacute;rio de Softwares Inventariados por M&aacute;quinas</title>
19 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 12 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
20 <script language="JavaScript" type="text/JavaScript"> 13 <script language="JavaScript" type="text/JavaScript">
@@ -29,7 +22,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0 @@ -29,7 +22,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0
29 <body bgcolor="#FFFFFF" topmargin="5"> 22 <body bgcolor="#FFFFFF" topmargin="5">
30 <table border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#999999"> 23 <table border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#999999">
31 <tr bgcolor="#E1E1E1"> 24 <tr bgcolor="#E1E1E1">
32 - <td rowspan="5" bgcolor="#FFFFFF"><img src="../../../imgs/cacic_novo.gif" width="50" height="50"></td> 25 + <td rowspan="5" bgcolor="#FFFFFF"><img src="/cacic2/imgs/cacic_novo.gif" width="50" height="50"></td>
33 <td rowspan="5" bgcolor="#FFFFFF">&nbsp;</td> 26 <td rowspan="5" bgcolor="#FFFFFF">&nbsp;</td>
34 <td bgcolor="#FFFFFF">&nbsp;</td> 27 <td bgcolor="#FFFFFF">&nbsp;</td>
35 </tr> 28 </tr>
admin/gerencia_licencas/consulta/lista_aquisicoes.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 - else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 $v_id_software = $_GET['id_software']; 17 $v_id_software = $_GET['id_software'];
25 ?> 18 ?>
26 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 19 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
admin/gerencia_licencas/consulta/lista_aquisicoes_software.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 $v_id_software = $_GET['id_software']; 17 $v_id_software = $_GET['id_software'];
25 ?> 18 ?>
26 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 19 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
@@ -40,7 +33,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0 @@ -40,7 +33,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0
40 <body bgcolor="#FFFFFF" topmargin="5"> 33 <body bgcolor="#FFFFFF" topmargin="5">
41 <table border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#999999"> 34 <table border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#999999">
42 <tr bgcolor="#E1E1E1"> 35 <tr bgcolor="#E1E1E1">
43 - <td rowspan="5" bgcolor="#FFFFFF"><img src="../../../imgs/cacic_novo.gif" width="50" height="50"></td> 36 + <td rowspan="5" bgcolor="#FFFFFF"><img src="/cacic2/imgs/cacic_novo.gif" width="50" height="50"></td>
44 <td rowspan="5" bgcolor="#FFFFFF">&nbsp;</td> 37 <td rowspan="5" bgcolor="#FFFFFF">&nbsp;</td>
45 <td bgcolor="#FFFFFF">&nbsp;</td> 38 <td bgcolor="#FFFFFF">&nbsp;</td>
46 </tr> 39 </tr>
@@ -60,7 +53,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0 @@ -60,7 +53,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0
60 <br> 53 <br>
61 <br> 54 <br>
62 <? 55 <?
63 -require_once('../../../include/library.php'); 56 +require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php');
64 conecta_bd_cacic(); 57 conecta_bd_cacic();
65 58
66 $query = "SELECT s.nm_software, s.qt_licenca 59 $query = "SELECT s.nm_software, s.qt_licenca
admin/gerencia_licencas/consulta/lista_aquisicoes_software_particular.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 $v_id_software = $_GET['id_software']; 17 $v_id_software = $_GET['id_software'];
25 ?> 18 ?>
26 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 19 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
@@ -40,7 +33,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0 @@ -40,7 +33,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0
40 <body bgcolor="#FFFFFF" topmargin="5"> 33 <body bgcolor="#FFFFFF" topmargin="5">
41 <table border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#999999"> 34 <table border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#999999">
42 <tr bgcolor="#E1E1E1"> 35 <tr bgcolor="#E1E1E1">
43 - <td rowspan="5" bgcolor="#FFFFFF"><img src="../../../imgs/cacic_novo.gif" width="50" height="50"></td> 36 + <td rowspan="5" bgcolor="#FFFFFF"><img src="/cacic2/imgs/cacic_novo.gif" width="50" height="50"></td>
44 <td rowspan="5" bgcolor="#FFFFFF">&nbsp;</td> 37 <td rowspan="5" bgcolor="#FFFFFF">&nbsp;</td>
45 <td bgcolor="#FFFFFF">&nbsp;</td> 38 <td bgcolor="#FFFFFF">&nbsp;</td>
46 </tr> 39 </tr>
@@ -60,7 +53,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0 @@ -60,7 +53,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0
60 <br> 53 <br>
61 <br> 54 <br>
62 <? 55 <?
63 -require_once('../../../include/library.php'); 56 +require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php');
64 conecta_bd_cacic(); 57 conecta_bd_cacic();
65 58
66 $query = "SELECT s.nm_software, SUM(ai.qt_licenca) as qtde 59 $query = "SELECT s.nm_software, SUM(ai.qt_licenca) as qtde
admin/gerencia_licencas/consulta/lista_instalacoes_software.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 $v_id_software = $_GET['id_software']; 17 $v_id_software = $_GET['id_software'];
25 ?> 18 ?>
26 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 19 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
@@ -40,7 +33,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0 @@ -40,7 +33,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0
40 <body bgcolor="#FFFFFF" topmargin="5"> 33 <body bgcolor="#FFFFFF" topmargin="5">
41 <table border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#999999"> 34 <table border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#999999">
42 <tr bgcolor="#E1E1E1"> 35 <tr bgcolor="#E1E1E1">
43 - <td rowspan="5" bgcolor="#FFFFFF"><img src="../../../imgs/cacic_novo.gif" width="50" height="50"></td> 36 + <td rowspan="5" bgcolor="#FFFFFF"><img src="/cacic2/imgs/cacic_novo.gif" width="50" height="50"></td>
44 <td rowspan="5" bgcolor="#FFFFFF">&nbsp;</td> 37 <td rowspan="5" bgcolor="#FFFFFF">&nbsp;</td>
45 <td bgcolor="#FFFFFF">&nbsp;</td> 38 <td bgcolor="#FFFFFF">&nbsp;</td>
46 </tr> 39 </tr>
@@ -60,7 +53,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0 @@ -60,7 +53,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0
60 <br> 53 <br>
61 <br> 54 <br>
62 <? 55 <?
63 -require_once('../../../include/library.php'); 56 +require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php');
64 conecta_bd_cacic(); 57 conecta_bd_cacic();
65 58
66 $query = "SELECT s.nm_software, COUNT(se.id_software) 59 $query = "SELECT s.nm_software, COUNT(se.id_software)
admin/gerencia_licencas/consulta/lista_instalacoes_software_particular.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 $v_id_software = $_GET['id_software']; 17 $v_id_software = $_GET['id_software'];
25 ?> 18 ?>
26 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 19 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
@@ -40,7 +33,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0 @@ -40,7 +33,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0
40 <body bgcolor="#FFFFFF" topmargin="5"> 33 <body bgcolor="#FFFFFF" topmargin="5">
41 <table border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#999999"> 34 <table border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#999999">
42 <tr bgcolor="#E1E1E1"> 35 <tr bgcolor="#E1E1E1">
43 - <td rowspan="5" bgcolor="#FFFFFF"><img src="../../../imgs/cacic_novo.gif" width="50" height="50"></td> 36 + <td rowspan="5" bgcolor="#FFFFFF"><img src="/cacic2/imgs/cacic_novo.gif" width="50" height="50"></td>
44 <td rowspan="5" bgcolor="#FFFFFF">&nbsp;</td> 37 <td rowspan="5" bgcolor="#FFFFFF">&nbsp;</td>
45 <td bgcolor="#FFFFFF">&nbsp;</td> 38 <td bgcolor="#FFFFFF">&nbsp;</td>
46 </tr> 39 </tr>
@@ -60,7 +53,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0 @@ -60,7 +53,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0
60 <br> 53 <br>
61 <br> 54 <br>
62 <? 55 <?
63 -require_once('../../../include/library.php'); 56 +require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php');
64 conecta_bd_cacic(); 57 conecta_bd_cacic();
65 58
66 $query = "SELECT s.nm_software, COUNT(se.id_software) 59 $query = "SELECT s.nm_software, COUNT(se.id_software)
admin/gerencia_licencas/consulta/lista_processos.php
@@ -14,14 +14,6 @@ @@ -14,14 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 - if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 - else { // Inserir regras para verificar permissões do usuário!  
23 - }  
24 -  
25 17
26 ?> 18 ?>
27 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 19 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
admin/gerencia_licencas/consulta/lista_softwares.php
@@ -14,13 +14,7 @@ @@ -14,13 +14,7 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -} 17 +
24 ?> 18 ?>
25 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 19 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
26 <html> 20 <html>
admin/gerencia_licencas/consulta/rel_autorizados_por_orgao.php
1 <? 1 <?
2 session_start(); 2 session_start();
3 -/*  
4 - * verifica se houve login e também as permissões de usuário  
5 - */  
6 -if(!isset($_SESSION['id_usuario']))  
7 - die('Acesso negado!');  
8 -else { // Inserir regras para verificar permissões do usuário!  
9 -}  
10 -  
11 //Mostrar computadores baseados no tipo de pesquisa solicitada pelo usuário 3 //Mostrar computadores baseados no tipo de pesquisa solicitada pelo usuário
12 -require_once('../../../include/library.php'); 4 +require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php');
13 ?> 5 ?>
14 6
15 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 7 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
@@ -29,7 +21,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0 @@ -29,7 +21,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0
29 <body bgcolor="#FFFFFF" topmargin="5"> 21 <body bgcolor="#FFFFFF" topmargin="5">
30 <table border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#999999"> 22 <table border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#999999">
31 <tr bgcolor="#E1E1E1"> 23 <tr bgcolor="#E1E1E1">
32 - <td rowspan="5" bgcolor="#FFFFFF"><img src="../../../imgs/cacic_novo.gif" width="50" height="50"></td> 24 + <td rowspan="5" bgcolor="#FFFFFF"><img src="/cacic2/imgs/cacic_novo.gif" width="50" height="50"></td>
33 <td rowspan="5" bgcolor="#FFFFFF">&nbsp;</td> 25 <td rowspan="5" bgcolor="#FFFFFF">&nbsp;</td>
34 <td bgcolor="#FFFFFF">&nbsp;</td> 26 <td bgcolor="#FFFFFF">&nbsp;</td>
35 </tr> 27 </tr>
admin/gerencia_licencas/consulta/resumo_licencas.php
1 <? 1 <?
2 session_start(); 2 session_start();
3 -/*  
4 - * verifica se houve login e também as permissões de usuário  
5 - */  
6 -if(!isset($_SESSION['id_usuario']))  
7 - die('Acesso negado!');  
8 -else { // Inserir regras para verificar permissões do usuário!  
9 -}  
10 -  
11 require_once('../../../include/library.php'); 3 require_once('../../../include/library.php');
12 conecta_bd_cacic(); 4 conecta_bd_cacic();
13 5
@@ -26,7 +18,7 @@ if ($_POST[&#39;consultar&#39;]) { @@ -26,7 +18,7 @@ if ($_POST[&#39;consultar&#39;]) {
26 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 18 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
27 </head> 19 </head>
28 20
29 -<body bgcolor="#FFFFFF" background="../../../imgs/linha_v.gif" onLoad="SetaCampo('filtro_consulta')"> 21 +<body bgcolor="#FFFFFF" background="/cacic2/imgs/linha_v.gif" onLoad="SetaCampo('filtro_consulta')">
30 <script language="JavaScript" type="text/javascript" src="../../../include/cacic.js"></script> 22 <script language="JavaScript" type="text/javascript" src="../../../include/cacic.js"></script>
31 23
32 <form action="<? echo $PHP_SELF; ?>" method="post" name="form1"> 24 <form action="<? echo $PHP_SELF; ?>" method="post" name="form1">
admin/gerencia_licencas/consulta/resumo_project.php
1 <? 1 <?
2 session_start(); 2 session_start();
3 -/*  
4 - * verifica se houve login e também as permissões de usuário  
5 - */  
6 -if(!isset($_SESSION['id_usuario']))  
7 - die('Acesso negado!');  
8 -else { // Inserir regras para verificar permissões do usuário!  
9 -}  
10 -  
11 -require_once($_SERVER['DOCUMENT_ROOT'] . '../../../include/library.php'); 3 +require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php');
12 conecta_bd_cacic(); 4 conecta_bd_cacic();
13 5
14 if ($_POST['consultar']) { 6 if ($_POST['consultar']) {
@@ -20,14 +12,14 @@ if ($_POST[&#39;consultar&#39;]) { @@ -20,14 +12,14 @@ if ($_POST[&#39;consultar&#39;]) {
20 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 12 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
21 <html> 13 <html>
22 <head> 14 <head>
23 -<link rel="stylesheet" type="text/css" href="../../../include/cacic.css"> 15 +<link rel="stylesheet" type="text/css" href="/cacic2/include/cacic.css">
24 16
25 <title></title> 17 <title></title>
26 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 18 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
27 </head> 19 </head>
28 20
29 -<body bgcolor="#FFFFFF" background="../../../imgs/linha_v.gif" onLoad="SetaCampo('filtro_consulta')">  
30 -<script language="JavaScript" type="text/javascript" src="http://<? echo $_SERVER['HTTP_HOST'].'../../../include/cacic.js';?>"></script> 21 +<body bgcolor="#FFFFFF" background="/cacic2/imgs/linha_v.gif" onLoad="SetaCampo('filtro_consulta')">
  22 +<script language="JavaScript" type="text/javascript" src="http://<? echo $_SERVER['HTTP_HOST'].'/cacic2/include/cacic.js';?>"></script>
31 23
32 <form action="<? echo $PHP_SELF; ?>" method="post" name="form1"> 24 <form action="<? echo $PHP_SELF; ?>" method="post" name="form1">
33 <table width="90%" border="0" align="center"> 25 <table width="90%" border="0" align="center">
admin/gerencia_licencas/consulta/software_particular.php
1 <? 1 <?
2 session_start(); 2 session_start();
3 -/*  
4 - * verifica se houve login e também as permissões de usuário  
5 - */  
6 -if(!isset($_SESSION['id_usuario']))  
7 - die('Acesso negado!');  
8 -else { // Inserir regras para verificar permissões do usuário!  
9 -}  
10 -  
11 //Mostrar computadores com nomes repetidos na base 3 //Mostrar computadores com nomes repetidos na base
12 require_once('../../../include/library.php'); 4 require_once('../../../include/library.php');
13 ?> 5 ?>
admin/gerencia_licencas/consulta/softwares_aquisicao.php
@@ -14,13 +14,7 @@ @@ -14,13 +14,7 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -} 17 +
24 $v_aquisicao = $_GET['id_aquisicao']; 18 $v_aquisicao = $_GET['id_aquisicao'];
25 $v_processo = $_GET['nr_processo']; 19 $v_processo = $_GET['nr_processo'];
26 $v_proprietario = $_GET['nm_proprietario']; 20 $v_proprietario = $_GET['nm_proprietario'];
@@ -43,7 +37,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0 @@ -43,7 +37,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0
43 <body bgcolor="#FFFFFF" topmargin="5"> 37 <body bgcolor="#FFFFFF" topmargin="5">
44 <table border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#999999"> 38 <table border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#999999">
45 <tr bgcolor="#E1E1E1"> 39 <tr bgcolor="#E1E1E1">
46 - <td rowspan="5" bgcolor="#FFFFFF"><img src="../../../imgs/cacic_novo.gif" width="50" height="50"></td> 40 + <td rowspan="5" bgcolor="#FFFFFF"><img src="/cacic2/imgs/cacic_novo.gif" width="50" height="50"></td>
47 <td rowspan="5" bgcolor="#FFFFFF">&nbsp;</td> 41 <td rowspan="5" bgcolor="#FFFFFF">&nbsp;</td>
48 <td bgcolor="#FFFFFF">&nbsp;</td> 42 <td bgcolor="#FFFFFF">&nbsp;</td>
49 </tr> 43 </tr>
@@ -63,7 +57,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0 @@ -63,7 +57,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0
63 <br> 57 <br>
64 <br> 58 <br>
65 <? 59 <?
66 -require_once('../../../include/library.php'); 60 +require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php');
67 conecta_bd_cacic(); 61 conecta_bd_cacic();
68 62
69 $query = "SELECT s.nm_software, ai.qt_licenca, tl.te_tipo_licenca, ai.te_obs, a.nm_proprietario 63 $query = "SELECT s.nm_software, ai.qt_licenca, tl.te_tipo_licenca, ai.te_obs, a.nm_proprietario
admin/gerencia_licencas/consulta/softwares_inventario_cacic.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 $v_id_software = $_GET['id_software']; 17 $v_id_software = $_GET['id_software'];
25 ?> 18 ?>
26 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 19 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
@@ -40,7 +33,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0 @@ -40,7 +33,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0
40 <body bgcolor="#FFFFFF" topmargin="5"> 33 <body bgcolor="#FFFFFF" topmargin="5">
41 <table border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#999999"> 34 <table border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#999999">
42 <tr bgcolor="#E1E1E1"> 35 <tr bgcolor="#E1E1E1">
43 - <td rowspan="5" bgcolor="#FFFFFF"><img src="../../../imgs/cacic_novo.gif" width="50" height="50"></td> 36 + <td rowspan="5" bgcolor="#FFFFFF"><img src="/cacic2/imgs/cacic_novo.gif" width="50" height="50"></td>
44 <td rowspan="5" bgcolor="#FFFFFF">&nbsp;</td> 37 <td rowspan="5" bgcolor="#FFFFFF">&nbsp;</td>
45 <td bgcolor="#FFFFFF">&nbsp;</td> 38 <td bgcolor="#FFFFFF">&nbsp;</td>
46 </tr> 39 </tr>
@@ -60,7 +53,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0 @@ -60,7 +53,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0
60 <br> 53 <br>
61 <br> 54 <br>
62 <? 55 <?
63 -require_once('../../../include/library.php'); 56 +require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php');
64 conecta_bd_cacic(); 57 conecta_bd_cacic();
65 58
66 $query = "SELECT s.nm_software 59 $query = "SELECT s.nm_software
@@ -100,7 +93,7 @@ while ($row = mysql_fetch_row($result)) { //Table body @@ -100,7 +93,7 @@ while ($row = mysql_fetch_row($result)) { //Table body
100 if ($cor) { echo 'bgcolor="#E1E1E1"'; } 93 if ($cor) { echo 'bgcolor="#E1E1E1"'; }
101 echo '>'; 94 echo '>';
102 echo '<td nowrap align="right"><font size="1" face="Verdana, Arial">' . $num_registro . '</font></td>'; 95 echo '<td nowrap align="right"><font size="1" face="Verdana, Arial">' . $num_registro . '</font></td>';
103 - echo '<td nowrap align="left"><font size="1" face="Verdana, Arial"><a href="../../../relatorios/softwares/rel_softwares_orgao.php?id_software_inventariado=' . $row[0] . '&nm_software_inventariado=' . $row[1] . '&nm_maquina="">' . $row[1] . '</a></td>'; 96 + echo '<td nowrap align="left"><font size="1" face="Verdana, Arial"><a href="/cacic2/relatorios/softwares/rel_softwares_orgao.php?id_software_inventariado=' . $row[0] . '&nm_software_inventariado=' . $row[1] . '&nm_maquina="">' . $row[1] . '</a></td>';
104 echo '<td nowrap align="center"><font size="1" face="Verdana, Arial">' . $row[2] .'&nbsp;</td>'; 97 echo '<td nowrap align="center"><font size="1" face="Verdana, Arial">' . $row[2] .'&nbsp;</td>';
105 $cor=!$cor; 98 $cor=!$cor;
106 $num_registro++; 99 $num_registro++;
admin/gerencia_licencas/consulta/softwares_processo.php
@@ -14,13 +14,7 @@ @@ -14,13 +14,7 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -} 17 +
24 $v_processo = $_GET['nr_processo']; 18 $v_processo = $_GET['nr_processo'];
25 19
26 ?> 20 ?>
@@ -41,7 +35,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0 @@ -41,7 +35,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0
41 <body bgcolor="#FFFFFF" topmargin="5"> 35 <body bgcolor="#FFFFFF" topmargin="5">
42 <table border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#999999"> 36 <table border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#999999">
43 <tr bgcolor="#E1E1E1"> 37 <tr bgcolor="#E1E1E1">
44 - <td rowspan="5" bgcolor="#FFFFFF"><img src="../../../imgs/cacic_novo.gif" width="50" height="50"></td> 38 + <td rowspan="5" bgcolor="#FFFFFF"><img src="/cacic2/imgs/cacic_novo.gif" width="50" height="50"></td>
45 <td rowspan="5" bgcolor="#FFFFFF">&nbsp;</td> 39 <td rowspan="5" bgcolor="#FFFFFF">&nbsp;</td>
46 <td bgcolor="#FFFFFF">&nbsp;</td> 40 <td bgcolor="#FFFFFF">&nbsp;</td>
47 </tr> 41 </tr>
@@ -61,7 +55,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0 @@ -61,7 +55,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0
61 <br> 55 <br>
62 <br> 56 <br>
63 <? 57 <?
64 -require_once('../../../include/library.php'); 58 +require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php');
65 conecta_bd_cacic(); 59 conecta_bd_cacic();
66 60
67 $query = "SELECT s.nm_software, ai.qt_licenca, tl.te_tipo_licenca 61 $query = "SELECT s.nm_software, ai.qt_licenca, tl.te_tipo_licenca
admin/gerencia_licencas/importacao/aquisicoes.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 require_once('../../../include/library.php'); 17 require_once('../../../include/library.php');
25 conecta_bd_cacic(); 18 conecta_bd_cacic();
26 19
@@ -35,14 +28,14 @@ if ($_POST[&#39;consultar&#39;]) { @@ -35,14 +28,14 @@ if ($_POST[&#39;consultar&#39;]) {
35 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 28 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
36 <html> 29 <html>
37 <head> 30 <head>
38 -<link rel="stylesheet" type="text/css" href="../../../include/cacic.css"> 31 +<link rel="stylesheet" type="text/css" href="/cacic2/include/cacic.css">
39 32
40 <title></title> 33 <title></title>
41 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 34 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
42 </head> 35 </head>
43 36
44 -<body bgcolor="#FFFFFF" background="../../../imgs/linha_v.gif" onLoad="SetaCampo('tipo_consulta')">  
45 -<script language="JavaScript" type="text/javascript" src="http://<? echo $_SERVER['HTTP_HOST'].'../../../include/cacic.js';?>"></script> 37 +<body bgcolor="#FFFFFF" background="/cacic2/imgs/linha_v.gif" onLoad="SetaCampo('tipo_consulta')">
  38 +<script language="JavaScript" type="text/javascript" src="http://<? echo $_SERVER['HTTP_HOST'].'/cacic2/include/cacic.js';?>"></script>
46 39
47 <form action="<? echo $PHP_SELF; ?>" method="post" name="form1"> 40 <form action="<? echo $PHP_SELF; ?>" method="post" name="form1">
48 <table width="90%" border="0" align="center"> 41 <table width="90%" border="0" align="center">
admin/gerencia_licencas/importacao/aquisicoes_item.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 require_once('../../../include/library.php'); 17 require_once('../../../include/library.php');
25 conecta_bd_cacic(); 18 conecta_bd_cacic();
26 19
@@ -36,14 +29,14 @@ if ($_POST[&#39;consultar&#39;]) { @@ -36,14 +29,14 @@ if ($_POST[&#39;consultar&#39;]) {
36 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 29 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
37 <html> 30 <html>
38 <head> 31 <head>
39 -<link rel="stylesheet" type="text/css" href="../../../include/cacic.css"> 32 +<link rel="stylesheet" type="text/css" href="/cacic2/include/cacic.css">
40 33
41 <title></title> 34 <title></title>
42 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 35 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
43 </head> 36 </head>
44 37
45 -<body bgcolor="#FFFFFF" background="../../../imgs/linha_v.gif" onLoad="SetaCampo('tipo_consulta')">  
46 -<script language="JavaScript" type="text/javascript" src="http://<? echo $_SERVER['HTTP_HOST'].'../../../include/cacic.js';?>"></script> 38 +<body bgcolor="#FFFFFF" background="/cacic2/imgs/linha_v.gif" onLoad="SetaCampo('tipo_consulta')">
  39 +<script language="JavaScript" type="text/javascript" src="http://<? echo $_SERVER['HTTP_HOST'].'/cacic2/include/cacic.js';?>"></script>
47 40
48 <form action="<? echo $PHP_SELF; ?>" method="post" name="form1"> 41 <form action="<? echo $PHP_SELF; ?>" method="post" name="form1">
49 <table width="90%" border="0" align="center"> 42 <table width="90%" border="0" align="center">
admin/gerencia_licencas/importacao/software.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 require_once('../../../include/library.php'); 17 require_once('../../../include/library.php');
25 conecta_bd_cacic(); 18 conecta_bd_cacic();
26 19
@@ -36,14 +29,14 @@ if ($_POST[&#39;consultar&#39;]) { @@ -36,14 +29,14 @@ if ($_POST[&#39;consultar&#39;]) {
36 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 29 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
37 <html> 30 <html>
38 <head> 31 <head>
39 -<link rel="stylesheet" type="text/css" href="../../../include/cacic.css"> 32 +<link rel="stylesheet" type="text/css" href="/cacic2/include/cacic.css">
40 33
41 <title></title> 34 <title></title>
42 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 35 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
43 </head> 36 </head>
44 37
45 -<body bgcolor="#FFFFFF" background="../../../imgs/linha_v.gif" onLoad="SetaCampo('tipo_consulta')">  
46 -<script language="JavaScript" type="text/javascript" src="http://<? echo $_SERVER['HTTP_HOST'].'../../../include/cacic.js';?>"></script> 38 +<body bgcolor="#FFFFFF" background="/cacic2/imgs/linha_v.gif" onLoad="SetaCampo('tipo_consulta')">
  39 +<script language="JavaScript" type="text/javascript" src="http://<? echo $_SERVER['HTTP_HOST'].'/cacic2/include/cacic.js';?>"></script>
47 40
48 <form action="<? echo $PHP_SELF; ?>" method="post" name="form1"> 41 <form action="<? echo $PHP_SELF; ?>" method="post" name="form1">
49 <table width="90%" border="0" align="center"> 42 <table width="90%" border="0" align="center">
admin/inconsistencias.php
1 <? 1 <?
2 session_start(); 2 session_start();
3 -/*  
4 - * verifica se houve login e também as permissões de usuário  
5 - */  
6 -if(!isset($_SESSION['id_usuario']))  
7 - die('Acesso negado!');  
8 -else { // Inserir regras para verificar permissões do usuário!  
9 -}  
10 -  
11 //Mostrar computadores baseados no tipo de pesquisa solicitada pelo usuário 3 //Mostrar computadores baseados no tipo de pesquisa solicitada pelo usuário
12 -require_once('../include/library.php'); 4 +require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php');
13 ?> 5 ?>
14 6
15 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 7 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
@@ -29,7 +21,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0 @@ -29,7 +21,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0
29 <body bgcolor="#FFFFFF" topmargin="5"> 21 <body bgcolor="#FFFFFF" topmargin="5">
30 <table border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#999999"> 22 <table border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#999999">
31 <tr bgcolor="#E1E1E1"> 23 <tr bgcolor="#E1E1E1">
32 - <td rowspan="5" bgcolor="#FFFFFF"><img src="../imgs/cacic_novo.gif" width="50" height="50"></td> 24 + <td rowspan="5" bgcolor="#FFFFFF"><img src="/cacic2/imgs/cacic_novo.gif" width="50" height="50"></td>
33 <td rowspan="5" bgcolor="#FFFFFF">&nbsp;</td> 25 <td rowspan="5" bgcolor="#FFFFFF">&nbsp;</td>
34 <td bgcolor="#FFFFFF">&nbsp;</td> 26 <td bgcolor="#FFFFFF">&nbsp;</td>
35 </tr> 27 </tr>
admin/inconsistenciasII.php
1 <? 1 <?
2 session_start(); 2 session_start();
3 -/*  
4 - * verifica se houve login e também as permissões de usuário  
5 - */  
6 -if(!isset($_SESSION['id_usuario']))  
7 - die('Acesso negado!');  
8 -else { // Inserir regras para verificar permissões do usuário!  
9 -}  
10 -  
11 //Mostrar computadores baseados no tipo de pesquisa solicitada pelo usuário 3 //Mostrar computadores baseados no tipo de pesquisa solicitada pelo usuário
12 -require_once('../include/library.php'); 4 +require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php');
13 ?> 5 ?>
14 6
15 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 7 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
@@ -29,7 +21,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0 @@ -29,7 +21,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0
29 <body bgcolor="#FFFFFF" topmargin="5"> 21 <body bgcolor="#FFFFFF" topmargin="5">
30 <table border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#999999"> 22 <table border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#999999">
31 <tr bgcolor="#E1E1E1"> 23 <tr bgcolor="#E1E1E1">
32 - <td rowspan="5" bgcolor="#FFFFFF"><img src="../imgs/cacic_novo.gif" width="50" height="50"></td> 24 + <td rowspan="5" bgcolor="#FFFFFF"><img src="/cacic2/imgs/cacic_novo.gif" width="50" height="50"></td>
33 <td rowspan="5" bgcolor="#FFFFFF">&nbsp;</td> 25 <td rowspan="5" bgcolor="#FFFFFF">&nbsp;</td>
34 <td bgcolor="#FFFFFF">&nbsp;</td> 26 <td bgcolor="#FFFFFF">&nbsp;</td>
35 </tr> 27 </tr>
admin/limpa_historico_software.php
1 <? 1 <?
2 session_start(); 2 session_start();
3 -/*  
4 - * verifica se houve login e também as permissões de usuário  
5 - */  
6 -if(!isset($_SESSION['id_usuario']))  
7 - die('Acesso negado!');  
8 -else { // Inserir regras para verificar permissões do usuário!  
9 -}  
10 -  
11 3
12 -require_once('../include/library.php'); 4 +require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php');
13 5
14 conecta_bd_cacic(); 6 conecta_bd_cacic();
15 $linha = '<tr bgcolor="#e7e7e7"> 7 $linha = '<tr bgcolor="#e7e7e7">
@@ -42,7 +34,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0 @@ -42,7 +34,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0
42 <body bgcolor="#FFFFFF" topmargin="5"> 34 <body bgcolor="#FFFFFF" topmargin="5">
43 <table border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#999999"> 35 <table border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#999999">
44 <tr bgcolor="#E1E1E1"> 36 <tr bgcolor="#E1E1E1">
45 - <td rowspan="5" bgcolor="#FFFFFF"><img src="../imgs/cacic_novo.gif" width="50" height="50"></td> 37 + <td rowspan="5" bgcolor="#FFFFFF"><img src="/cacic2/imgs/cacic_novo.gif" width="50" height="50"></td>
46 <td rowspan="5" bgcolor="#FFFFFF">&nbsp;</td> 38 <td rowspan="5" bgcolor="#FFFFFF">&nbsp;</td>
47 <td bgcolor="#FFFFFF">&nbsp;</td> 39 <td bgcolor="#FFFFFF">&nbsp;</td>
48 </tr> 40 </tr>
admin/locais/detalhes_local.php
@@ -14,14 +14,6 @@ @@ -14,14 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 -  
25 require_once('../../include/library.php'); 17 require_once('../../include/library.php');
26 // Comentado temporariamente - AntiSpy(); 18 // Comentado temporariamente - AntiSpy();
27 Conecta_bd_cacic(); 19 Conecta_bd_cacic();
admin/locais/incluir_local.php
@@ -13,14 +13,7 @@ @@ -13,14 +13,7 @@
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();  
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -} 16 + session_start();
24 include_once "../../include/library.php"; 17 include_once "../../include/library.php";
25 // Comentado temporariamente - AntiSpy(); 18 // Comentado temporariamente - AntiSpy();
26 if($submit) 19 if($submit)
admin/locais/index.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 if ($_POST['submit']) { 17 if ($_POST['submit']) {
25 header ("Location: incluir_local.php"); 18 header ("Location: incluir_local.php");
26 } 19 }
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 include_once "../include/library.php"; 17 include_once "../include/library.php";
25 // Comentado temporariamente - AntiSpy(); 18 // Comentado temporariamente - AntiSpy();
26 if (!$_POST['date_input1']) 19 if (!$_POST['date_input1'])
@@ -47,9 +40,6 @@ else @@ -47,9 +40,6 @@ else
47 <html> 40 <html>
48 <head> 41 <head>
49 <link rel="stylesheet" type="text/css" href="../include/cacic.css"> 42 <link rel="stylesheet" type="text/css" href="../include/cacic.css">
50 -<script src="../include/sniffer.js" type="text/javascript" language="javascript"></script>  
51 -<script src="../include/dyncalendar.js" type="text/javascript" language="javascript"></script>  
52 -<link href="../include/dyncalendar.css" media="screen" rel="stylesheet">  
53 <title>Log de Atividades</title> 43 <title>Log de Atividades</title>
54 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 44 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
55 </head> 45 </head>
admin/log_acessos.php
@@ -14,14 +14,6 @@ @@ -14,14 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 -  
25 include_once "../include/library.php"; 17 include_once "../include/library.php";
26 // Comentado temporariamente - AntiSpy(); 18 // Comentado temporariamente - AntiSpy();
27 if (!$_REQUEST['date_input1']) 19 if (!$_REQUEST['date_input1'])
@@ -59,14 +51,7 @@ else @@ -59,14 +51,7 @@ else
59 <html> 51 <html>
60 <head> 52 <head>
61 <link rel="stylesheet" type="text/css" href="../include/cacic.css"> 53 <link rel="stylesheet" type="text/css" href="../include/cacic.css">
62 -  
63 -<script src="../include/sniffer.js" type="text/javascript" language="javascript"></script>  
64 -<script src="../include/dyncalendar.js" type="text/javascript" language="javascript"></script>  
65 -<link href="../include/dyncalendar.css" media="screen" rel="stylesheet">  
66 -  
67 -<title>Log de Acessos</title>  
68 -  
69 - 54 +<title>Log de Atividades</title>
70 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 55 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
71 </head> 56 </head>
72 57
admin/log_atividades.php
@@ -14,14 +14,6 @@ @@ -14,14 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 -  
25 include_once "../include/library.php"; 17 include_once "../include/library.php";
26 // Comentado temporariamente - AntiSpy(); 18 // Comentado temporariamente - AntiSpy();
27 if (!$_REQUEST['date_input1']) 19 if (!$_REQUEST['date_input1'])
@@ -58,12 +50,6 @@ else @@ -58,12 +50,6 @@ else
58 <html> 50 <html>
59 <head> 51 <head>
60 <link rel="stylesheet" type="text/css" href="../include/cacic.css"> 52 <link rel="stylesheet" type="text/css" href="../include/cacic.css">
61 -<script src="../include/sniffer.js" type="text/javascript" language="javascript"></script>  
62 -<script src="../include/dyncalendar.js" type="text/javascript" language="javascript"></script>  
63 -<link href="../include/dyncalendar.css" media="screen" rel="stylesheet">  
64 -  
65 -  
66 -  
67 <title>Log de Atividades</title> 53 <title>Log de Atividades</title>
68 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 54 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
69 </head> 55 </head>
admin/modulos.php
@@ -14,14 +14,6 @@ @@ -14,14 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 -  
25 require_once('../include/library.php'); 17 require_once('../include/library.php');
26 // Comentado temporariamente - AntiSpy(); 18 // Comentado temporariamente - AntiSpy();
27 conecta_bd_cacic(); 19 conecta_bd_cacic();
@@ -45,7 +37,7 @@ $result = mysql_query($query) or die(&#39;Erro no select&#39;); @@ -45,7 +37,7 @@ $result = mysql_query($query) or die(&#39;Erro no select&#39;);
45 </head> 37 </head>
46 38
47 <body bgcolor="#FFFFFF" background="../imgs/linha_v.gif"> 39 <body bgcolor="#FFFFFF" background="../imgs/linha_v.gif">
48 -<script language="JavaScript" type="text/javascript" src="../include/cacic.js"></script> 40 +<script language="JavaScript" type="text/javascript" src="../../include/cacic.js"></script>
49 <table width="90%" border="0" align="center"> 41 <table width="90%" border="0" align="center">
50 <tr> 42 <tr>
51 <td class="cabecalho">M&oacute;dulos</td> 43 <td class="cabecalho">M&oacute;dulos</td>
admin/patrimonio/etiqueta1.php
1 <? 1 <?
2 /* 2 /*
3 -2000, 2001, 2002, 2003, 2004, 2005 Dataprev - Empresa de Tecnologia e Informações da Previdência Social, Brasil 3 + Copyright 2000, 2001, 2002, 2003, 2004, 2005 Dataprev - Empresa de Tecnologia e Informações da Previdência Social, Brasil
4 4
5 Este arquivo é parte do programa CACIC - Configurador Automático e Coletor de Informações Computacionais 5 Este arquivo é parte do programa CACIC - Configurador Automático e Coletor de Informações Computacionais
6 6
@@ -14,14 +14,6 @@ @@ -14,14 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 -  
25 require_once('../../include/library.php'); 17 require_once('../../include/library.php');
26 // Comentado temporariamente - AntiSpy(); 18 // Comentado temporariamente - AntiSpy();
27 conecta_bd_cacic(); ?> 19 conecta_bd_cacic(); ?>
admin/patrimonio/etiqueta2.php
@@ -14,14 +14,6 @@ @@ -14,14 +14,6 @@
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 session_start();
17 -  
18 -/*  
19 - * verifica se houve login e também as permissões de usuário  
20 - */  
21 -if(!isset($_SESSION['id_usuario']))  
22 - die('Acesso negado!');  
23 -else { // Inserir regras para verificar permissões do usuário!  
24 -}  
25 require_once('../../include/library.php'); 17 require_once('../../include/library.php');
26 // Comentado temporariamente - AntiSpy(); 18 // Comentado temporariamente - AntiSpy();
27 conecta_bd_cacic(); ?> 19 conecta_bd_cacic(); ?>
admin/patrimonio/etiqueta3.php
@@ -14,14 +14,6 @@ @@ -14,14 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 -  
25 require_once('../../include/library.php'); 17 require_once('../../include/library.php');
26 // Comentado temporariamente - AntiSpy(); 18 // Comentado temporariamente - AntiSpy();
27 conecta_bd_cacic(); ?> 19 conecta_bd_cacic(); ?>
admin/patrimonio/etiqueta_generica.php
@@ -14,14 +14,6 @@ @@ -14,14 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 -  
25 require_once('../../include/library.php'); 17 require_once('../../include/library.php');
26 // Comentado temporariamente - AntiSpy(); 18 // Comentado temporariamente - AntiSpy();
27 conecta_bd_cacic(); 19 conecta_bd_cacic();
@@ -34,7 +26,7 @@ conecta_bd_cacic(); @@ -34,7 +26,7 @@ conecta_bd_cacic();
34 in_destacar_duplicidade = '" . $_POST['in_destacar_duplicidade'] . "', 26 in_destacar_duplicidade = '" . $_POST['in_destacar_duplicidade'] . "',
35 te_plural_etiqueta = '" . $_POST['te_plural_etiqueta'] . "' 27 te_plural_etiqueta = '" . $_POST['te_plural_etiqueta'] . "'
36 WHERE id_etiqueta = '" . $_POST['id_etiqueta'] . "' 28 WHERE id_etiqueta = '" . $_POST['id_etiqueta'] . "'
37 - AND id_local = ".$_SESSION['id_local']; 29 + id_local = ".$_SESSION['id_local'];
38 mysql_query($query); 30 mysql_query($query);
39 GravaLog('UPD',$_SERVER['SCRIPT_NAME'],'patrimonio_config_interface'); 31 GravaLog('UPD',$_SERVER['SCRIPT_NAME'],'patrimonio_config_interface');
40 $query = 'UPDATE configuracoes_locais SET 32 $query = 'UPDATE configuracoes_locais SET
@@ -42,7 +34,7 @@ conecta_bd_cacic(); @@ -42,7 +34,7 @@ conecta_bd_cacic();
42 WHERE id_local = '.$_SESSION['id_local']; 34 WHERE id_local = '.$_SESSION['id_local'];
43 mysql_query($query); 35 mysql_query($query);
44 GravaLog('UPD',$_SERVER['SCRIPT_NAME'],'configuracoes_locais'); 36 GravaLog('UPD',$_SERVER['SCRIPT_NAME'],'configuracoes_locais');
45 - header ("Location: ../../include/operacao_ok.php?chamador=../admin/patrimonio/config_tela_patrimonio_bot.php&tempo=1"); 37 + header ("Location: ../../include/operacao_ok.php?chamador=../admin/patrimonio/config_tela_patrimonio.php&tempo=1");
46 } 38 }
47 else 39 else
48 { 40 {
admin/patrimonio/nivel1/detalhes_nivel1.php
@@ -15,13 +15,6 @@ @@ -15,13 +15,6 @@
15 */ 15 */
16 16
17 session_start(); 17 session_start();
18 -/*  
19 - * verifica se houve login e também as permissões de usuário  
20 - */  
21 -if(!isset($_SESSION['id_usuario']))  
22 - die('Acesso negado!');  
23 -else { // Inserir regras para verificar permissões do usuário!  
24 -}  
25 include_once "../../../include/library.php"; 18 include_once "../../../include/library.php";
26 // Comentado temporariamente - AntiSpy(); 19 // Comentado temporariamente - AntiSpy();
27 Conecta_bd_cacic(); 20 Conecta_bd_cacic();
admin/patrimonio/nivel1/incluir_nivel1.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 require_once('../../../include/library.php'); 17 require_once('../../../include/library.php');
25 // Comentado temporariamente - AntiSpy(); 18 // Comentado temporariamente - AntiSpy();
26 if($grava_alteracao_uon1) 19 if($grava_alteracao_uon1)
@@ -177,4 +170,4 @@ function SetaCampo() @@ -177,4 +170,4 @@ function SetaCampo()
177 ?> 170 ?>
178 </p> 171 </p>
179 </body> 172 </body>
180 -</html> 173 +</html>
181 \ No newline at end of file 174 \ No newline at end of file
admin/patrimonio/nivel1/index.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 17
25 include_once "../../../include/library.php"; 18 include_once "../../../include/library.php";
26 19
@@ -60,7 +53,7 @@ $result = mysql_query($query); @@ -60,7 +53,7 @@ $result = mysql_query($query);
60 <head> 53 <head>
61 <link rel="stylesheet" type="text/css" href="../../../include/cacic.css"> 54 <link rel="stylesheet" type="text/css" href="../../../include/cacic.css">
62 <body background="../../../imgs/linha_v.gif"> 55 <body background="../../../imgs/linha_v.gif">
63 -<script language="JavaScript" type="text/javascript" src="../../../include/cacic.js"></script> 56 +<script language="JavaScript" type="text/javascript" src="../../include/cacic.js"></script>
64 <title>Cadastro de U. O. N&iacute;vel 1</title> 57 <title>Cadastro de U. O. N&iacute;vel 1</title>
65 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 58 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
66 </head> 59 </head>
@@ -156,4 +149,4 @@ else { @@ -156,4 +149,4 @@ else {
156 </form> 149 </form>
157 <p>&nbsp;</p> 150 <p>&nbsp;</p>
158 </body> 151 </body>
159 -</html> 152 +</html>
160 \ No newline at end of file 153 \ No newline at end of file
admin/patrimonio/nivel2/detalhes_nivel2.php
@@ -15,25 +15,17 @@ @@ -15,25 +15,17 @@
15 */ 15 */
16 16
17 session_start(); 17 session_start();
18 -/*  
19 - * verifica se houve login e também as permissões de usuário  
20 - */  
21 -if(!isset($_SESSION['id_usuario']))  
22 - die('Acesso negado!');  
23 -else { // Inserir regras para verificar permissões do usuário!  
24 -}  
25 include_once "../../../include/library.php"; 18 include_once "../../../include/library.php";
26 // Comentado temporariamente - AntiSpy(); 19 // Comentado temporariamente - AntiSpy();
27 Conecta_bd_cacic(); 20 Conecta_bd_cacic();
28 21
29 if ($_POST['exclui_uon2']) 22 if ($_POST['exclui_uon2'])
30 { 23 {
31 - $where = ($_SESSION['cs_nivel_administracao']<>1?' AND uo2.id_local='.$_SESSION['id_local']:''); 24 + $where = ($_SESSION['cs_nivel_administracao']<>1?' AND id_local='.$_SESSION['id_local']:'');
32 $query = " DELETE 25 $query = " DELETE
33 - FROM unid_organizacional_nivel2 uo2  
34 - WHERE uo2.id_unid_organizacional_nivel2 = $frm_id_unid_organizacional_nivel2 and  
35 - uo2.id_unid_organizacional_nivel1 = $frm_id_unid_organizacional_nivel1 ".$where;  
36 - 26 + FROM unid_organizacional_nivel2
  27 + WHERE id_unid_organizacional_nivel2 = ".$_POST['frm_id_unid_organizacional_nivel2']." and
  28 + id_unid_organizacional_nivel1 = ".$_POST['frm_id_unid_organizacional_nivel1']. $where;
37 mysql_query($query) or die('Delete falhou'); 29 mysql_query($query) or die('Delete falhou');
38 GravaLog('DEL',$_SERVER['SCRIPT_NAME'],'unid_organizacional_nivel2'); 30 GravaLog('DEL',$_SERVER['SCRIPT_NAME'],'unid_organizacional_nivel2');
39 if (!atualiza_configuracoes_uonx('2')) 31 if (!atualiza_configuracoes_uonx('2'))
@@ -276,10 +268,10 @@ if(mysql_num_rows($result_sel1)) @@ -276,10 +268,10 @@ if(mysql_num_rows($result_sel1))
276 <p align="center"> 268 <p align="center">
277 <? 269 <?
278 $v_frase = "Confirma('Confirma Informações para ".$_SESSION['etiqueta2']."?')"; 270 $v_frase = "Confirma('Confirma Informações para ".$_SESSION['etiqueta2']."?')";
279 - echo '<input name="grava_alteracao_uon2" type="submit" id="grava_alteracao_uon2" value=" Gravar Altera&ccedil;&otilde;es" onClick="return '.$v_frase.'"; '.($_SESSION['cs_nivel_administracao']<>1?'disabled':'').'>'; 271 + echo '<input name="grava_alteracao_uon2" type="submit" id="grava_alteracao_uon2" value=" Gravar Altera&ccedil;&otilde;es" onClick="return '.$v_frase.'"; '.($_SESSION['cs_nivel_administracao']<>1 && $_SESSION['cs_nivel_administracao']<>3?'disabled':'').'>';
280 ?> 272 ?>
281 &nbsp;&nbsp; 273 &nbsp;&nbsp;
282 - <input name="exclui_uon2" type="submit" onClick="return ConfirmaExclusao()" id="exclui_uon2" value=" Excluir <? echo $_SESSION['etiqueta2'];?>" <? echo ($_SESSION['cs_nivel_administracao']<>1?'disabled':'')?>> 274 + <input name="exclui_uon2" type="submit" onClick="return ConfirmaExclusao()" id="exclui_uon2" value=" Excluir <? echo $_SESSION['etiqueta2'];?>" <? echo ($_SESSION['cs_nivel_administracao']<>1 && $_SESSION['cs_nivel_administracao']<>3?'disabled':'')?>>
283 </p> 275 </p>
284 </form> 276 </form>
285 </td> 277 </td>
admin/patrimonio/nivel2/incluir_nivel2.php
@@ -15,13 +15,6 @@ @@ -15,13 +15,6 @@
15 */ 15 */
16 16
17 session_start(); 17 session_start();
18 -/*  
19 - * verifica se houve login e também as permissões de usuário  
20 - */  
21 -if(!isset($_SESSION['id_usuario']))  
22 - die('Acesso negado!');  
23 -else { // Inserir regras para verificar permissões do usuário!  
24 -}  
25 include_once "../../../include/library.php"; 18 include_once "../../../include/library.php";
26 // Comentado temporariamente - AntiSpy(); 19 // Comentado temporariamente - AntiSpy();
27 if($_POST['gravainformacaoUON2']) { 20 if($_POST['gravainformacaoUON2']) {
@@ -43,18 +36,18 @@ if($_POST[&#39;gravainformacaoUON2&#39;]) { @@ -43,18 +36,18 @@ if($_POST[&#39;gravainformacaoUON2&#39;]) {
43 nu_tel2_responsavel_uon2, 36 nu_tel2_responsavel_uon2,
44 id_unid_organizacional_nivel1, 37 id_unid_organizacional_nivel1,
45 id_local) 38 id_local)
46 - VALUES  
47 - ('$frm_nm_unid_organizacional_nivel2',  
48 - '$frm_te_endereco_uon2',  
49 - '$frm_te_bairro_uon2',  
50 - '$frm_te_cidade_uon2',  
51 - '$frm_te_uf_uon2',  
52 - '$frm_nm_responsavel_uon2',  
53 - '$frm_te_email_responsavel_uon2',  
54 - '$frm_nu_tel1_responsavel_uon2',  
55 - '$frm_nu_tel2_responsavel_uon2',  
56 - '$selectUON1',  
57 - '$frm_id_local')"; 39 + VALUES ('".
  40 + $_POST['frm_nm_unid_organizacional_nivel2']."','".
  41 + $_POST['frm_te_endereco_uon2']."','".
  42 + $_POST['frm_te_bairro_uon2']."','".
  43 + $_POST['frm_te_cidade_uon2']."','".
  44 + $_POST['frm_te_uf_uon2']."','".
  45 + $_POST['frm_nm_responsavel_uon2']."','".
  46 + $_POST['frm_te_email_responsavel_uon2']."','".
  47 + $_POST['frm_nu_tel1_responsavel_uon2']."','".
  48 + $_POST['frm_nu_tel2_responsavel_uon2']."',".
  49 + $_POST['selectUON1'].",".
  50 + $_POST['frm_id_local'].")";
58 $result = mysql_query($query) or die ('Insert falhou'); 51 $result = mysql_query($query) or die ('Insert falhou');
59 GravaLog('INS',$_SERVER['SCRIPT_NAME'],'unid_organizacional_nivel2'); 52 GravaLog('INS',$_SERVER['SCRIPT_NAME'],'unid_organizacional_nivel2');
60 if (!atualiza_configuracoes_uonx('2')) 53 if (!atualiza_configuracoes_uonx('2'))
admin/patrimonio/nivel2/index.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 if ($_POST['incluirUON2']) 17 if ($_POST['incluirUON2'])
25 { 18 {
26 header ("Location: incluir_nivel2.php"); 19 header ("Location: incluir_nivel2.php");
@@ -30,7 +23,8 @@ include_once &quot;../../../include/library.php&quot;; @@ -30,7 +23,8 @@ include_once &quot;../../../include/library.php&quot;;
30 // Comentado temporariamente - AntiSpy(); 23 // Comentado temporariamente - AntiSpy();
31 Conecta_bd_cacic(); 24 Conecta_bd_cacic();
32 $where = ($_SESSION['cs_nivel_administracao']<>1&&$_SESSION['cs_nivel_administracao']<>2?' AND id_local = '.$_SESSION['id_local']:''); 25 $where = ($_SESSION['cs_nivel_administracao']<>1&&$_SESSION['cs_nivel_administracao']<>2?' AND id_local = '.$_SESSION['id_local']:'');
33 -$queryCONFIG = "SELECT id_etiqueta, 26 +$queryCONFIG = "SELECT DISTINCT
  27 + id_etiqueta,
34 te_etiqueta, 28 te_etiqueta,
35 te_plural_etiqueta 29 te_plural_etiqueta
36 FROM patrimonio_config_interface patcon 30 FROM patrimonio_config_interface patcon
@@ -44,9 +38,11 @@ session_register(&#39;etiqueta1&#39;); @@ -44,9 +38,11 @@ session_register(&#39;etiqueta1&#39;);
44 session_register('plural_etiqueta1'); 38 session_register('plural_etiqueta1');
45 session_register('etiqueta2'); 39 session_register('etiqueta2');
46 session_register('plural_etiqueta2'); 40 session_register('plural_etiqueta2');
  41 +
47 $row = mysql_fetch_array($resultCONFIG); 42 $row = mysql_fetch_array($resultCONFIG);
48 $_SESSION['etiqueta1'] = $row['te_etiqueta']; 43 $_SESSION['etiqueta1'] = $row['te_etiqueta'];
49 $_SESSION['plural_etiqueta1'] = $row['te_plural_etiqueta']; 44 $_SESSION['plural_etiqueta1'] = $row['te_plural_etiqueta'];
  45 +
50 $row = mysql_fetch_array($resultCONFIG); 46 $row = mysql_fetch_array($resultCONFIG);
51 $_SESSION['etiqueta2'] = $row['te_etiqueta']; 47 $_SESSION['etiqueta2'] = $row['te_etiqueta'];
52 $_SESSION['plural_etiqueta2'] = $row['te_plural_etiqueta']; 48 $_SESSION['plural_etiqueta2'] = $row['te_plural_etiqueta'];
admin/patrimonio/opcoes.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 require_once('../../include/library.php'); 17 require_once('../../include/library.php');
25 // Comentado temporariamente - AntiSpy(); 18 // Comentado temporariamente - AntiSpy();
26 conecta_bd_cacic(); 19 conecta_bd_cacic();
admin/perfis_aplicativos_monitorados/detalhes_perfil.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 require_once('../../include/library.php'); 17 require_once('../../include/library.php');
25 // Comentado temporariamente - AntiSpy(); 18 // Comentado temporariamente - AntiSpy();
26 Conecta_bd_cacic(); 19 Conecta_bd_cacic();
@@ -337,4 +330,4 @@ function valida_form() { @@ -337,4 +330,4 @@ function valida_form() {
337 </html> 330 </html>
338 <? 331 <?
339 } 332 }
340 -?> 333 +?>
341 \ No newline at end of file 334 \ No newline at end of file
admin/perfis_aplicativos_monitorados/incluir_perfil.php
@@ -70,7 +70,7 @@ if($submit) @@ -70,7 +70,7 @@ if($submit)
70 te_descritivo, 70 te_descritivo,
71 dt_atualizacao, 71 dt_atualizacao,
72 in_disponibiliza_info, 72 in_disponibiliza_info,
73 - in_disponibiliza_info_usuario_comum) 73 + in_disponibiliza_info_usuario_comum
74 VALUES ('$frm_nm_aplicativo', 74 VALUES ('$frm_nm_aplicativo',
75 '$frm_te_dir_padrao_w9x', 75 '$frm_te_dir_padrao_w9x',
76 '$frm_cs_car_inst_w9x', 76 '$frm_cs_car_inst_w9x',
admin/perfis_aplicativos_monitorados/index.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 if ($_POST['submit']) { 17 if ($_POST['submit']) {
25 header ("Location: incluir_perfil.php"); 18 header ("Location: incluir_perfil.php");
26 } 19 }
admin/redes/detalhes_rede.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 require_once('../../include/library.php'); 17 require_once('../../include/library.php');
25 // Comentado temporariamente - AntiSpy(); 18 // Comentado temporariamente - AntiSpy();
26 Conecta_bd_cacic(); 19 Conecta_bd_cacic();
@@ -218,12 +211,6 @@ function valida_form() @@ -218,12 +211,6 @@ function valida_form()
218 document.form.frm_nu_porta_serv_updates.focus(); 211 document.form.frm_nu_porta_serv_updates.focus();
219 return false; 212 return false;
220 } 213 }
221 - else if ( document.form.frm_nu_limite_ftp.value == "" )  
222 - {  
223 - alert("Digite o Limite FTP do Servidor de Updates");  
224 - document.form.frm_nu_limite_ftp.focus();  
225 - return false;  
226 - }  
227 else if ( document.form.frm_nm_usuario_login_serv_updates.value == "" ) 214 else if ( document.form.frm_nm_usuario_login_serv_updates.value == "" )
228 { 215 {
229 alert("Digite o Nome do Usuário para Login no Servidor de Updates pelo Módulo Agente"); 216 alert("Digite o Nome do Usuário para Login no Servidor de Updates pelo Módulo Agente");
@@ -429,7 +416,8 @@ $pos = substr_count($_SERVER[&#39;HTTP_REFERER&#39;],&#39;navegacao&#39;); @@ -429,7 +416,8 @@ $pos = substr_count($_SERVER[&#39;HTTP_REFERER&#39;],&#39;navegacao&#39;);
429 Servidor de Updates(FTP):</td> 416 Servidor de Updates(FTP):</td>
430 <td nowrap class="<? echo $v_classe; ?>"> <br> 417 <td nowrap class="<? echo $v_classe; ?>"> <br>
431 Porta:</td> 418 Porta:</td>
432 - <td valign="bottom" nowrap class="<? echo $v_classe; ?>">Limite FTP:</td> 419 + <td nowrap class="<? echo $v_classe; ?>"><br>
  420 + Limite FTP:</td>
433 </tr> 421 </tr>
434 <tr> 422 <tr>
435 <td colspan="4" height="1" bgcolor="#333333"></td> 423 <td colspan="4" height="1" bgcolor="#333333"></td>
admin/redes/incluir_rede.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 include_once "../../include/library.php"; 17 include_once "../../include/library.php";
25 // Comentado temporariamente - AntiSpy(); 18 // Comentado temporariamente - AntiSpy();
26 if($_REQUEST['submit']) 19 if($_REQUEST['submit'])
@@ -412,7 +405,8 @@ MM_reloadPage(true); @@ -412,7 +405,8 @@ MM_reloadPage(true);
412 Servidor de Updates (FTP):</div></td> 405 Servidor de Updates (FTP):</div></td>
413 <td class="label"><div align="left"><br> 406 <td class="label"><div align="left"><br>
414 Porta:</div></td> 407 Porta:</div></td>
415 - <td valign="bottom" class="label">Limite FTP:</td> 408 + <td valign="bottom" class="label"><br>
  409 + Limite FTP:</td>
416 </tr> 410 </tr>
417 <tr> 411 <tr>
418 <td colspan="4" height="1" bgcolor="#333333"></td> 412 <td colspan="4" height="1" bgcolor="#333333"></td>
admin/redes/index.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 if ($_POST['submit']) { 17 if ($_POST['submit']) {
25 header ("Location: incluir_rede.php"); 18 header ("Location: incluir_rede.php");
26 } 19 }
admin/repositorio.php
@@ -14,12 +14,12 @@ @@ -14,12 +14,12 @@
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 16
17 -require_once('../include/library.php'); 17 +require_once($_SERVER['DOCUMENT_ROOT'] . 'include/library.php');
18 // Comentado temporariamente - AntiSpy(); 18 // Comentado temporariamente - AntiSpy();
19 if ($_REQUEST['nm_arquivo']) 19 if ($_REQUEST['nm_arquivo'])
20 { 20 {
21 - @unlink('../repositorio/'.$_REQUEST['nm_arquivo']);  
22 - if (file_exists('../repositorio/'.$_REQUEST['nm_arquivo'])) 21 + @unlink($_SERVER['DOCUMENT_ROOT'] . 'repositorio/'.$_REQUEST['nm_arquivo']);
  22 + if (file_exists($_SERVER['DOCUMENT_ROOT'] . 'repositorio/'.$_REQUEST['nm_arquivo']))
23 { 23 {
24 echo '<script> alert("Não foi possível excluir o arquivo '.$_REQUEST['nm_arquivo'].'. Verifique as permissões de escrita no diretório repositorio!") </script>'; 24 echo '<script> alert("Não foi possível excluir o arquivo '.$_REQUEST['nm_arquivo'].'. Verifique as permissões de escrita no diretório repositorio!") </script>';
25 } 25 }
@@ -40,7 +40,7 @@ if ($_REQUEST[&#39;nm_arquivo&#39;]) @@ -40,7 +40,7 @@ if ($_REQUEST[&#39;nm_arquivo&#39;])
40 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 40 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
41 </head> 41 </head>
42 <body background="../imgs/linha_v.gif"> 42 <body background="../imgs/linha_v.gif">
43 - <script language="JavaScript" type="text/javascript" src="../include/cacic.js'?>"></script> 43 + <script language="JavaScript" type="text/javascript" src="../../include/cacic.js'?>"></script>
44 <table width="90%" border="0" align="center"> 44 <table width="90%" border="0" align="center">
45 <tr> 45 <tr>
46 46
@@ -81,7 +81,7 @@ if ($_REQUEST[&#39;nm_arquivo&#39;]) @@ -81,7 +81,7 @@ if ($_REQUEST[&#39;nm_arquivo&#39;])
81 / Hora</td> 81 / Hora</td>
82 </tr> 82 </tr>
83 <? 83 <?
84 - if ($handle = opendir('../repositorio')) 84 + if ($handle = opendir($_SERVER['DOCUMENT_ROOT'] . 'repositorio'))
85 { 85 {
86 $v_nomes_arquivos = array(); 86 $v_nomes_arquivos = array();
87 while (false !== ($v_arquivo = readdir($handle))) 87 while (false !== ($v_arquivo = readdir($handle)))
@@ -95,7 +95,7 @@ if ($_REQUEST[&#39;nm_arquivo&#39;]) @@ -95,7 +95,7 @@ if ($_REQUEST[&#39;nm_arquivo&#39;])
95 sort($v_nomes_arquivos); 95 sort($v_nomes_arquivos);
96 for ($cnt_arquivos = 0; $cnt_arquivos < count($v_nomes_arquivos); $cnt_arquivos++) 96 for ($cnt_arquivos = 0; $cnt_arquivos < count($v_nomes_arquivos); $cnt_arquivos++)
97 { 97 {
98 - $v_dados_arquivo = lstat('../repositorio/'.$v_nomes_arquivos[$cnt_arquivos]); 98 + $v_dados_arquivo = lstat($_SERVER['DOCUMENT_ROOT'] . 'repositorio/'.$v_nomes_arquivos[$cnt_arquivos]);
99 echo '<tr>'; 99 echo '<tr>';
100 ?> 100 ?>
101 <td><a href="repositorio.php?nm_arquivo=<? echo $v_nomes_arquivos[$cnt_arquivos];?>" onClick="return Confirma('Confirma Exclusão do objeto <? echo $v_nomes_arquivos[$cnt_arquivos];?>?)"><img src="../imgs/lixeira.ico" width="20" height="20" border="0"></a></td> 101 <td><a href="repositorio.php?nm_arquivo=<? echo $v_nomes_arquivos[$cnt_arquivos];?>" onClick="return Confirma('Confirma Exclusão do objeto <? echo $v_nomes_arquivos[$cnt_arquivos];?>?)"><img src="../imgs/lixeira.ico" width="20" height="20" border="0"></a></td>
@@ -126,4 +126,4 @@ if ($_REQUEST[&#39;nm_arquivo&#39;]) @@ -126,4 +126,4 @@ if ($_REQUEST[&#39;nm_arquivo&#39;])
126 </table> 126 </table>
127 </div> 127 </div>
128 </body> 128 </body>
129 - </html> 129 + </html>
130 \ No newline at end of file 130 \ No newline at end of file
admin/software/atualizar_grupos.php
1 <? 1 <?
2 -require '../../verificar.php'; 2 +require $_SERVER['DOCUMENT_ROOT'] . '/cacic2/verificar.php';
3 3
4 if ($_POST['submit']) { 4 if ($_POST['submit']) {
5 header ("Location: incluir_grupos.php"); 5 header ("Location: incluir_grupos.php");
admin/software/detalhes_grupos.php
@@ -13,8 +13,8 @@ @@ -13,8 +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 -require '../../verificar.php';  
17 -require_once('../../include/library.php'); 16 +require $_SERVER['DOCUMENT_ROOT'] . '/cacic2/verificar.php';
  17 +require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php');
18 Conecta_bd_cacic(); 18 Conecta_bd_cacic();
19 19
20 20
@@ -85,7 +85,7 @@ function valida_form() @@ -85,7 +85,7 @@ function valida_form()
85 $pos = substr_count($_SERVER['HTTP_REFERER'],'navegacao'); 85 $pos = substr_count($_SERVER['HTTP_REFERER'],'navegacao');
86 ?> 86 ?>
87 <body <? if (!$pos) echo 'background="../../imgs/linha_v.gif"';?> onLoad="SetaCampo('frm_nm_si_grupo')"> 87 <body <? if (!$pos) echo 'background="../../imgs/linha_v.gif"';?> onLoad="SetaCampo('frm_nm_si_grupo')">
88 -<script language="JavaScript" type="text/javascript" src="<? echo '../../include/cacic.js';?>"></script> 88 +<script language="JavaScript" type="text/javascript" src="http://<? echo $_SERVER['HTTP_HOST'].'/cacic2/include/cacic.js';?>"></script>
89 <form action="detalhes_grupos.php" method="post" ENCTYPE="multipart/form-data" name="form"> 89 <form action="detalhes_grupos.php" method="post" ENCTYPE="multipart/form-data" name="form">
90 <table width="90%" border="0" align="center"> 90 <table width="90%" border="0" align="center">
91 <tr> 91 <tr>
admin/software/incluir_grupos.php
@@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
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 -require '../../verificar.php'; 16 +require $_SERVER['DOCUMENT_ROOT'] . '/cacic2/verificar.php';
17 17
18 include_once "../../include/library.php"; 18 include_once "../../include/library.php";
19 if($_REQUEST['submit']) 19 if($_REQUEST['submit'])
@@ -116,7 +116,7 @@ MM_reloadPage(true); @@ -116,7 +116,7 @@ MM_reloadPage(true);
116 </head> 116 </head>
117 117
118 <body background="../../imgs/linha_v.gif" onLoad="SetaCampo('frm_id_ip_rede')"> 118 <body background="../../imgs/linha_v.gif" onLoad="SetaCampo('frm_id_ip_rede')">
119 -<script language="JavaScript" type="text/javascript" src="<? echo '../../include/cacic.js';?>"></script> 119 +<script language="JavaScript" type="text/javascript" src="http://<? echo $_SERVER['HTTP_HOST'].'/cacic2/include/cacic.js';?>"></script>
120 <table width="90%" border="0" align="center"> 120 <table width="90%" border="0" align="center">
121 <tr> 121 <tr>
122 <td class="cabecalho">Inclus&atilde;o de novo Grupo </td> 122 <td class="cabecalho">Inclus&atilde;o de novo Grupo </td>
admin/software/index.php
@@ -17,7 +17,7 @@ Caminho do css @@ -17,7 +17,7 @@ Caminho do css
17 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 17 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
18 Livre(FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 Livre(FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 */ 19 */
20 -require '../../verificar.php'; 20 +require $_SERVER['DOCUMENT_ROOT'] . '/cacic2/verificar.php';
21 21
22 if ($_POST['submit']) { 22 if ($_POST['submit']) {
23 header ("Location: incluir_grupos.php"); 23 header ("Location: incluir_grupos.php");
@@ -127,7 +127,7 @@ function cria_janela_cent(horizontal,vertical,valor,numero) { @@ -127,7 +127,7 @@ function cria_janela_cent(horizontal,vertical,valor,numero) {
127 </head> 127 </head>
128 128
129 <body background="../../imgs/linha_v.gif"> 129 <body background="../../imgs/linha_v.gif">
130 -<script language="JavaScript" type="text/javascript" src="http://<? echo '../../include/cacic.js';?>"></script> 130 +<script language="JavaScript" type="text/javascript" src="http://<? echo $_SERVER['HTTP_HOST'].'/cacic2/include/cacic.js';?>"></script>
131 131
132 <form name="form1" method="post" action=""> 132 <form name="form1" method="post" action="">
133 <table width="90%" border="0" align="center"> 133 <table width="90%" border="0" align="center">
admin/software/index_grupos.php
@@ -17,7 +17,7 @@ Caminho do css @@ -17,7 +17,7 @@ Caminho do css
17 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 17 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
18 Livre(FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 Livre(FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 */ 19 */
20 -require '../../verificar.php'; 20 +require $_SERVER['DOCUMENT_ROOT'] . '/cacic2/verificar.php';
21 21
22 if ($_POST['submit']) { 22 if ($_POST['submit']) {
23 header ("Location: incluir_grupos.php"); 23 header ("Location: incluir_grupos.php");
@@ -52,7 +52,7 @@ $result = mysql_query($query); @@ -52,7 +52,7 @@ $result = mysql_query($query);
52 </head> 52 </head>
53 53
54 <body background="../../imgs/linha_v.gif"> 54 <body background="../../imgs/linha_v.gif">
55 -<script language="JavaScript" type="text/javascript" src="http://<? echo '../../include/cacic.js';?>"></script> 55 +<script language="JavaScript" type="text/javascript" src="http://<? echo $_SERVER['HTTP_HOST'].'/cacic2/include/cacic.js';?>"></script>
56 <form name="form1" method="post" action=""> 56 <form name="form1" method="post" action="">
57 <table width="90%" border="0" align="center"> 57 <table width="90%" border="0" align="center">
58 <tr> 58 <tr>
admin/softwares.php
1 <? 1 <?
2 // Este arquivo eh chamado pelo classificao_software.php 2 // Este arquivo eh chamado pelo classificao_software.php
3 session_start(); 3 session_start();
4 -/*  
5 - * verifica se houve login e também as permissões de usuário  
6 - */  
7 -if(!isset($_SESSION['id_usuario']))  
8 - die('Acesso negado!');  
9 -else { // Inserir regras para verificar permissões do usuário!  
10 -}  
11 4
12 if($_POST['submit']) { 5 if($_POST['submit']) {
13 $_SESSION["list6"] = $_POST['list6']; //Softwares selecionados 6 $_SESSION["list6"] = $_POST['list6']; //Softwares selecionados
14 } 7 }
15 8
16 -require_once('../include/library.php'); 9 +require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php');
17 10
18 conecta_bd_cacic(); 11 conecta_bd_cacic();
19 $linha = '<tr bgcolor="#e7e7e7"> 12 $linha = '<tr bgcolor="#e7e7e7">
@@ -39,7 +32,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0 @@ -39,7 +32,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0
39 <body bgcolor="#FFFFFF" topmargin="5"> 32 <body bgcolor="#FFFFFF" topmargin="5">
40 <table border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#999999"> 33 <table border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#999999">
41 <tr bgcolor="#E1E1E1"> 34 <tr bgcolor="#E1E1E1">
42 - <td rowspan="5" bgcolor="#FFFFFF"><img src="../imgs/cacic_novo.gif" width="50" height="50"></td> 35 + <td rowspan="5" bgcolor="#FFFFFF"><img src="/cacic2/imgs/cacic_novo.gif" width="50" height="50"></td>
43 <td rowspan="5" bgcolor="#FFFFFF">&nbsp;</td> 36 <td rowspan="5" bgcolor="#FFFFFF">&nbsp;</td>
44 <td bgcolor="#FFFFFF">&nbsp;</td> 37 <td bgcolor="#FFFFFF">&nbsp;</td>
45 </tr> 38 </tr>
admin/softwares/classificacao_software.php
@@ -97,8 +97,7 @@ @@ -97,8 +97,7 @@
97 <td valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="1"> 97 <td valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="1">
98 <tr> 98 <tr>
99 <td> <div align="center"> 99 <td> <div align="center">
100 -<!-- <input name="submit" type="submit" value=" Classificar Softwares Selecionados " onClick="SelectAll(this.form.elements['list6[]']), SelectAll(this.form.elements['tiponovo'])">-->  
101 - <input name="submit" type="submit" value=" Classificar Softwares Selecionados " onClick="SelectAll(this.form.elements['list6[]']), SelectAll(this.form.elements['tiponovo'])" <? echo ($_SESSION['cs_nivel_administracao']<>1&&$_SESSION['cs_nivel_administracao']<>3?'disabled':'')?>> 100 + <input name="submit" type="submit" value=" Classificar Softwares Selecionados " onClick="SelectAll(this.form.elements['list6[]']), SelectAll(this.form.elements['tiponovo'])" <? echo ($_SESSION['cs_nivel_administracao']<>1&&$_SESSION['cs_nivel_administracao']<>3?'disabled':'')?>>
102 </div></td> 101 </div></td>
103 </tr> 102 </tr>
104 <tr> 103 <tr>
admin/softwares/confirma_remocao_softwares_nao_instalados.php
1 <? 1 <?
2 session_start(); 2 session_start();
3 -/*  
4 - * verifica se houve login e também as permissões de usuário  
5 - */  
6 -if(!isset($_SESSION['id_usuario']))  
7 - die('Acesso negado!');  
8 -else { // Inserir regras para verificar permissões do usuário!  
9 -} 3 +
10 if($_POST['submit']) { 4 if($_POST['submit']) {
11 $_SESSION["list6"] = $_POST['list6']; //Softwares selecionados 5 $_SESSION["list6"] = $_POST['list6']; //Softwares selecionados
12 } 6 }
13 7
14 -require_once('../../include/library.php'); 8 +require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php');
15 9
16 conecta_bd_cacic(); 10 conecta_bd_cacic();
17 $linha = '<tr bgcolor="#e7e7e7"> 11 $linha = '<tr bgcolor="#e7e7e7">
@@ -47,7 +41,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0 @@ -47,7 +41,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0
47 <body bgcolor="#FFFFFF" topmargin="5"> 41 <body bgcolor="#FFFFFF" topmargin="5">
48 <table border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#999999"> 42 <table border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#999999">
49 <tr bgcolor="#E1E1E1"> 43 <tr bgcolor="#E1E1E1">
50 - <td rowspan="5" bgcolor="#FFFFFF"><img src="../../imgs/cacic_novo.gif" width="50" height="50"></td> 44 + <td rowspan="5" bgcolor="#FFFFFF"><img src="/cacic2/imgs/cacic_novo.gif" width="50" height="50"></td>
51 <td rowspan="5" bgcolor="#FFFFFF">&nbsp;</td> 45 <td rowspan="5" bgcolor="#FFFFFF">&nbsp;</td>
52 <td bgcolor="#FFFFFF">&nbsp;</td> 46 <td bgcolor="#FFFFFF">&nbsp;</td>
53 </tr> 47 </tr>
admin/softwares/detalhes_software.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 require_once('../../include/library.php'); 17 require_once('../../include/library.php');
25 // Comentado temporariamente - AntiSpy(); 18 // Comentado temporariamente - AntiSpy();
26 Conecta_bd_cacic(); 19 Conecta_bd_cacic();
@@ -36,27 +29,25 @@ if ($_REQUEST[&#39;ExcluiSoftware&#39;]) @@ -36,27 +29,25 @@ if ($_REQUEST[&#39;ExcluiSoftware&#39;])
36 } 29 }
37 elseif ($_POST['GravaAlteracoes']) 30 elseif ($_POST['GravaAlteracoes'])
38 { 31 {
39 - $query = "UPDATE softwares  
40 - SET  
41 - nm_software = '".$_POST['frm_nm_software']."',  
42 - te_descricao_software = '".$_POST['frm_te_descricao_software']."',  
43 - qt_licenca = ".$_POST['frm_qt_licenca'].",  
44 - nr_midia = '".$_POST['frm_nr_midia']."',  
45 - te_local_midia = '".$_POST['frm_te_local_midia']."',  
46 - te_obs = '".$_POST['frm_te_obs']."' 32 + $query = "UPDATE softwares SET
  33 + nm_software = '".$_POST['frm_nm_software']."',
  34 + te_descricao_software = '".$_POST['frm_te_descricao_software']."',
  35 + qt_licenca = ".$_POST['frm_qt_licenca'].",
  36 + nr_midia = '".$_POST['frm_nr_midia']."',
  37 + te_local_midia = '".$_POST['frm_te_local_midia']."',
  38 + te_obs = '".$_POST['frm_te_obs']."'
47 WHERE id_software = ".$_REQUEST['frm_id_software']; 39 WHERE id_software = ".$_REQUEST['frm_id_software'];
48 -  
49 mysql_query($query) or die('Falha na atualização da tabela Softwares...'); 40 mysql_query($query) or die('Falha na atualização da tabela Softwares...');
50 GravaLog('UPD',$_SERVER['SCRIPT_NAME'],'softwares'); 41 GravaLog('UPD',$_SERVER['SCRIPT_NAME'],'softwares');
51 42
52 header ("Location: ../../include/operacao_ok.php?chamador=../admin/softwares/index.php&tempo=1"); 43 header ("Location: ../../include/operacao_ok.php?chamador=../admin/softwares/index.php&tempo=1");
53 } 44 }
54 else { 45 else {
55 - $query = "SELECT *  
56 - FROM softwares  
57 - WHERE id_software = '".$_GET['id_software']."'";  
58 - $result = mysql_query($query) or die ('Falha na consulta a tabela Softwares.');  
59 - 46 + $query = " SELECT *
  47 + FROM redes
  48 + LEFT JOIN locais ON (redes.id_local = locais.id_local AND redes.id_local = ".$_GET['id_local'].")
  49 + WHERE redes.id_ip_rede = '".$_GET['id_ip_rede']."'";
  50 + $result = mysql_query($query) or die ('Falha na consulta às tabelas Redes, Locais...');
60 ?> 51 ?>
61 52
62 53
@@ -66,49 +57,121 @@ else { @@ -66,49 +57,121 @@ else {
66 <link rel="stylesheet" type="text/css" href="../../include/cacic.css"> 57 <link rel="stylesheet" type="text/css" href="../../include/cacic.css">
67 <title></title> 58 <title></title>
68 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 59 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
69 -  
70 <SCRIPT LANGUAGE="JavaScript"> 60 <SCRIPT LANGUAGE="JavaScript">
71 -  
72 -function valida_form()  
73 - {  
74 - if ( document.form.frm_nm_software.value == "" )  
75 - {  
76 - alert("O nome do Software é obrigatório.");  
77 - document.form.frm_nm_software.focus();  
78 - return false;  
79 - }  
80 - else if ( document.form.frm_te_descricao_software.value == "" )  
81 - {  
82 - alert("A descrição do Software é obrigatória.");  
83 - document.form.frm_te_descricao_software.focus();  
84 - return false;  
85 - }  
86 - return true;  
87 - }  
88 -</script>  
89 -<script language="JavaScript" type="text/JavaScript">  
90 -<!--  
91 -function MM_reloadPage(init) { //reloads the window if Nav4 resized  
92 - if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {  
93 - document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}  
94 - else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();  
95 -}  
96 -MM_reloadPage(true);  
97 -//--> 61 +function SetaServidorBancoDados()
  62 + {
  63 + document.form.frm_te_serv_cacic.value = document.form.sel_te_serv_cacic.value;
  64 + document.form.sel_te_serv_cacic.options.selectedIndex=0;
  65 + }
  66 +function SetaServidorUpdates()
  67 + {
  68 + var v_string = document.form.sel_te_serv_updates.value;
  69 + var v_array_string = v_string.split("#");
  70 + document.form.frm_te_serv_updates.value = v_array_string[0];
  71 + document.form.frm_nu_porta_serv_updates.value = v_array_string[1];
  72 + document.form.frm_nm_usuario_login_serv_updates.value = v_array_string[2];
  73 + document.form.frm_nm_usuario_login_serv_updates_gerente.value = v_array_string[2];
  74 + document.form.frm_te_path_serv_updates.value = v_array_string[3];
  75 + document.form.frm_nu_limite_ftp.value = v_array_string[4];
  76 + document.form.sel_te_serv_updates.options.selectedIndex=0;
  77 + document.form.frm_te_senha_login_serv_updates.value = "";
  78 + document.form.frm_te_senha_login_serv_updates_gerente.value = "";
  79 + document.form.frm_te_senha_login_serv_updates.select();
  80 + }
  81 +
  82 +function valida_form()
  83 + {
  84 + if (document.form.frm_id_local.selectedIndex==0 && document.form.frm_id_local.value==-1)
  85 + {
  86 + alert("O local da rede é obrigatório");
  87 + document.form.frm_id_local.focus();
  88 + return false;
  89 + }
  90 +
  91 + var ip = document.form.frm_id_ip_rede.value;
  92 + var ipSplit = ip.split(/\./);
  93 +
  94 + if ( ip == "" )
  95 + {
  96 + alert("Digite o IP da rede");
  97 + document.form.frm_id_ip_rede.focus();
  98 + return false;
  99 + }
  100 + else if ( document.form.frm_te_mascara_rede.value == "" )
  101 + {
  102 + alert("A máscara de rede é obrigatória.\nPor favor, informe-a, usando o formato X.X.X.0\nExemplo: 255.255.255.0");
  103 + document.form.frm_te_mascara_rede.focus();
  104 + return false;
  105 + }
  106 +
  107 + else if ( document.form.frm_nm_rede.value == "" )
  108 + {
  109 + alert("Digite o nome da rede");
  110 + document.form.frm_nm_rede.focus();
  111 + return false;
  112 + }
  113 + else if ( document.form.frm_te_serv_cacic.value == "" )
  114 + {
  115 + alert("Digite o Identificador do Servidor de Banco de Dados");
  116 + document.form.frm_te_serv_cacic.focus();
  117 + return false;
  118 + }
  119 + else if ( document.form.frm_te_serv_updates.value == "" )
  120 + {
  121 + alert("Digite o Identificador do Servidor de Updates");
  122 + document.form.frm_te_serv_updates.focus();
  123 + return false;
  124 + }
  125 + else if ( document.form.frm_nu_porta_serv_updates.value == "" )
  126 + {
  127 + alert("Digite a Porta FTP do Servidor de Updates");
  128 + document.form.frm_nu_porta_serv_updates.focus();
  129 + return false;
  130 + }
  131 + else if ( document.form.frm_nm_usuario_login_serv_updates.value == "" )
  132 + {
  133 + alert("Digite o Nome do Usuário para Login no Servidor de Updates pelo Módulo Agente");
  134 + document.form.frm_nm_usuario_login_serv_updates.focus();
  135 + return false;
  136 + }
  137 + else if ( document.form.frm_nm_usuario_login_serv_updates_gerente.value == "" )
  138 + {
  139 + alert("Digite o Nome do Usuário para Login no Servidor de Updates pelo Módulo Gerente");
  140 + document.form.frm_nm_usuario_login_serv_updates_gerente.focus();
  141 + return false;
  142 + }
  143 + else if ( document.form.frm_te_path_serv_updates.value == "" )
  144 + {
  145 + alert("Digite o Path no Servidor de Updates");
  146 + document.form.frm_te_path_serv_updates.focus();
  147 + return false;
  148 + }
  149 + else
  150 + {
  151 + if((ip.search(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/) != -1) && (ipSplit[3] == 0))
  152 + {
  153 + return true;
  154 + }
  155 + else
  156 + {
  157 + alert("O endereço TCP/IP da rede foi informado incorretamente.\nPor favor, informe-o, usando o formato X.X.X.0\nExemplo: 10.70.4.0");
  158 + document.form.frm_id_ip_rede.focus();
  159 + return false;
  160 + }
  161 + }
  162 + return true;
  163 + }
98 </script> 164 </script>
99 -  
100 -  
101 </head> 165 </head>
102 <? 166 <?
103 $pos = substr_count($_SERVER['HTTP_REFERER'],'navegacao'); 167 $pos = substr_count($_SERVER['HTTP_REFERER'],'navegacao');
104 ?> 168 ?>
105 -<body <? if (!$pos) echo 'background="../../imgs/linha_v.gif"';?> onLoad="SetaCampo('frm_id_software')"> 169 +<body <? if (!$pos) echo 'background="../../imgs/linha_v.gif"';?> onLoad="SetaCampo('<? echo ($_SESSION['cs_nivel_administracao']<>1?'frm_te_mascara_rede':'frm_id_local')?>')">
106 <script language="JavaScript" type="text/javascript" src="../../include/cacic.js"></script> 170 <script language="JavaScript" type="text/javascript" src="../../include/cacic.js"></script>
107 -  
108 -<form action="detalhes_software.php" method="post" ENCTYPE="multipart/form-data" name="form" onSubmit="return valida_form()"> 171 +<form action="detalhes_rede.php" method="post" ENCTYPE="multipart/form-data" name="form" onSubmit="return valida_form()">
109 <table width="90%" border="0" align="center"> 172 <table width="90%" border="0" align="center">
110 <tr> 173 <tr>
111 - <td class="cabecalho">Detalhes do Software </td> 174 + <td class="cabecalho">Detalhes do Software<? echo mysql_result($result, 0, 'id_ip_rede'); ?></td>
112 </tr> 175 </tr>
113 <tr> 176 <tr>
114 <td class="descricao">As informa&ccedil;&otilde;es abaixo referem-se a um 177 <td class="descricao">As informa&ccedil;&otilde;es abaixo referem-se a um
@@ -117,30 +180,6 @@ $pos = substr_count($_SERVER[&#39;HTTP_REFERER&#39;],&#39;navegacao&#39;); @@ -117,30 +180,6 @@ $pos = substr_count($_SERVER[&#39;HTTP_REFERER&#39;],&#39;navegacao&#39;);
117 </table> 180 </table>
118 181
119 <table width="90%" border="0" align="center" cellpadding="0" cellspacing="1"> 182 <table width="90%" border="0" align="center" cellpadding="0" cellspacing="1">
120 -  
121 -  
122 - <tr>  
123 - <td class="label">  
124 - <!-- <br> Nome:-->  
125 - </td>  
126 - </tr>  
127 - <tr>  
128 - <td ></td>  
129 - </tr>  
130 - <tr>  
131 - <td>  
132 - <input name="frm_id_software"  
133 - type="hidden"  
134 - size="3"  
135 - maxlength="4"  
136 - class="normal"  
137 - onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);"  
138 - value="<? echo mysql_result($result, 0,'id_software'); ?>"  
139 - >  
140 - </td>  
141 - </tr>  
142 -  
143 -  
144 <tr> 183 <tr>
145 <td class="label"><br> 184 <td class="label"><br>
146 Nome:</td> 185 Nome:</td>
@@ -149,7 +188,7 @@ $pos = substr_count($_SERVER[&#39;HTTP_REFERER&#39;],&#39;navegacao&#39;); @@ -149,7 +188,7 @@ $pos = substr_count($_SERVER[&#39;HTTP_REFERER&#39;],&#39;navegacao&#39;);
149 <td height="1" bgcolor="#333333"></td> 188 <td height="1" bgcolor="#333333"></td>
150 </tr> 189 </tr>
151 <tr> 190 <tr>
152 - <td><input name="frm_nm_software" type="text" size="50" maxlength="150" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);" value="<? echo mysql_result($result, 0, 'nm_software'); ?>" > 191 + <td><input name="frm_nm_software" type="text" size="50" maxlength="150" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);" >
153 </td> 192 </td>
154 </tr> 193 </tr>
155 <tr> 194 <tr>
@@ -159,7 +198,7 @@ $pos = substr_count($_SERVER[&#39;HTTP_REFERER&#39;],&#39;navegacao&#39;); @@ -159,7 +198,7 @@ $pos = substr_count($_SERVER[&#39;HTTP_REFERER&#39;],&#39;navegacao&#39;);
159 <td height="1" bgcolor="#333333"></td> 198 <td height="1" bgcolor="#333333"></td>
160 </tr> 199 </tr>
161 <tr> 200 <tr>
162 - <td nowrap><input name="frm_te_descricao_software" type="text" id="frm_te_descricao_software" size="50" maxlength="255" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);" value="<? echo mysql_result($result, 0, 'te_descricao_software'); ?>" ></td> 201 + <td nowrap><input name="frm_te_descricao_software" type="text" id="frm_te_descricao_software" size="50" maxlength="255" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);" ></td>
163 </tr> 202 </tr>
164 <tr> 203 <tr>
165 <td nowrap class="label"><br> 204 <td nowrap class="label"><br>
@@ -169,7 +208,7 @@ $pos = substr_count($_SERVER[&#39;HTTP_REFERER&#39;],&#39;navegacao&#39;); @@ -169,7 +208,7 @@ $pos = substr_count($_SERVER[&#39;HTTP_REFERER&#39;],&#39;navegacao&#39;);
169 <td height="1" bgcolor="#333333"></td> 208 <td height="1" bgcolor="#333333"></td>
170 </tr> 209 </tr>
171 <tr> 210 <tr>
172 - <td nowrap> <input name="frm_qt_licenca" type="text" id="frm_qt_licenca" size="11" maxlength="11" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);" value="<? echo mysql_result($result, 0, 'qt_licenca'); ?>"> 211 + <td nowrap> <input name="frm_qt_licenca" type="text" id="frm_qt_licenca" size="11" maxlength="11" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);">
173 </tr> 212 </tr>
174 <tr> 213 <tr>
175 <td nowrap class="label"><div align="left"><br> 214 <td nowrap class="label"><div align="left"><br>
@@ -179,7 +218,7 @@ $pos = substr_count($_SERVER[&#39;HTTP_REFERER&#39;],&#39;navegacao&#39;); @@ -179,7 +218,7 @@ $pos = substr_count($_SERVER[&#39;HTTP_REFERER&#39;],&#39;navegacao&#39;);
179 <td height="1" bgcolor="#333333"></td> 218 <td height="1" bgcolor="#333333"></td>
180 </tr> 219 </tr>
181 <tr> 220 <tr>
182 - <td nowrap><input name="frm_nr_midia" type="text" id="frm_nr_midia" size="11" maxlength="10" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);" value="<? echo mysql_result($result, 0, 'nr_midia'); ?>"> 221 + <td nowrap><input name="frm_nr_midia" type="text" id="frm_nr_midia" size="11" maxlength="10" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);" >
183 </tr> 222 </tr>
184 <tr> 223 <tr>
185 <td nowrap class="label"><br> 224 <td nowrap class="label"><br>
@@ -189,7 +228,7 @@ $pos = substr_count($_SERVER[&#39;HTTP_REFERER&#39;],&#39;navegacao&#39;); @@ -189,7 +228,7 @@ $pos = substr_count($_SERVER[&#39;HTTP_REFERER&#39;],&#39;navegacao&#39;);
189 <td height="1" bgcolor="#333333"></td> 228 <td height="1" bgcolor="#333333"></td>
190 </tr> 229 </tr>
191 <tr> 230 <tr>
192 - <td nowrap> <input name="frm_te_local_midia" type="text" id="frm_te_local_midia" size="50" maxlength="30" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);" value="<? echo mysql_result($result, 0, 'te_local_midia'); ?>" > 231 + <td nowrap> <input name="frm_te_local_midia" type="text" id="frm_te_local_midia" size="50" maxlength="30" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);" >
193 </td> 232 </td>
194 </tr> 233 </tr>
195 <tr> 234 <tr>
@@ -200,32 +239,9 @@ $pos = substr_count($_SERVER[&#39;HTTP_REFERER&#39;],&#39;navegacao&#39;); @@ -200,32 +239,9 @@ $pos = substr_count($_SERVER[&#39;HTTP_REFERER&#39;],&#39;navegacao&#39;);
200 <td height="1" bgcolor="#333333"></td> 239 <td height="1" bgcolor="#333333"></td>
201 </tr> 240 </tr>
202 <tr> 241 <tr>
203 - <td><input name="frm_te_obs" size="50" maxlength="200" id="frm_te_obs" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);" value="<? echo mysql_result($result, 0, 'te_obs'); ?>"></td> 242 + <td><input name="frm_te_obs" size="50" maxlength="200" id="frm_te_obs" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);" ></td>
204 </tr> 243 </tr>
205 </table> 244 </table>
206 -  
207 -<p align="center">  
208 - <input name="GravaAlteracoes"  
209 - type="submit"  
210 - id="GravaAlteracoes"  
211 - value=" Gravar Altera&ccedil;&otilde;es "  
212 - onClick="return Confirma('Confirma Informações da Alteração?');"  
213 - <? echo ($_SESSION['cs_nivel_administracao']<>1 && $_SESSION['cs_nivel_administracao']<>3?'disabled':'')?>  
214 - >  
215 - &nbsp;&nbsp;  
216 - <input name="ExcluiSoftware"  
217 - type="submit"  
218 - id="ExcluiSoftware"  
219 - value=" Excluir Software"  
220 - onClick="return Confirma('Confirma Exclusão ?');"  
221 - <? echo ($_SESSION['cs_nivel_administracao']<>1 && $_SESSION['cs_nivel_administracao']<>3?'disabled':'')?>  
222 - >  
223 - <input name="Retorna"  
224 - type="button"  
225 - value=" Retorna para <? echo str_replace("_"," ",$_REQUEST['nm_chamador']);?> "  
226 - onClick="history.back()">  
227 -</p>  
228 -  
229 </form> 245 </form>
230 </body> 246 </body>
231 </html> 247 </html>
admin/softwares/incluir_software.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 include_once "../../include/library.php"; 17 include_once "../../include/library.php";
25 // Comentado temporariamente - AntiSpy(); 18 // Comentado temporariamente - AntiSpy();
26 if($_REQUEST['submit']) 19 if($_REQUEST['submit'])
@@ -191,4 +184,4 @@ MM_reloadPage(true); @@ -191,4 +184,4 @@ MM_reloadPage(true);
191 ?> 184 ?>
192 </p> 185 </p>
193 </body> 186 </body>
194 -</html> 187 +</html>
195 \ No newline at end of file 188 \ No newline at end of file
admin/softwares/index.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 if ($_POST['submit']) { 17 if ($_POST['submit']) {
25 header ("Location: incluir_software.php"); 18 header ("Location: incluir_software.php");
26 } 19 }
admin/tipos_softwares/detalhes_tipo_software.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 require_once('../../include/library.php'); 17 require_once('../../include/library.php');
25 // Comentado temporariamente - AntiSpy(); 18 // Comentado temporariamente - AntiSpy();
26 Conecta_bd_cacic(); 19 Conecta_bd_cacic();
admin/tipos_softwares/incluir_tipo_software.php
@@ -14,14 +14,6 @@ @@ -14,14 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 -  
25 include_once "../../include/library.php"; 17 include_once "../../include/library.php";
26 // Comentado temporariamente - AntiSpy(); 18 // Comentado temporariamente - AntiSpy();
27 if($submit) 19 if($submit)
admin/tipos_softwares/index.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 if ($_POST['submit']) { 17 if ($_POST['submit']) {
25 header ("Location: incluir_tipo_software.php"); 18 header ("Location: incluir_tipo_software.php");
26 } 19 }
admin/updates_subredes.php
1 <? 1 <?
2 session_start(); 2 session_start();
3 -/*  
4 - * verifica se houve login e também as permissões de usuário  
5 - */  
6 -if(!isset($_SESSION['id_usuario']))  
7 - die('Acesso negado!');  
8 -else { // Inserir regras para verificar permissões do usuário!  
9 -}  
10 -  
11 - 3 +//if ($_SERVER['REMOTE_ADDR'] <> '10.71.0.58')
  4 +// {
  5 +// require_once('../include/opcao_indisponivel.php');
  6 +// return;
  7 +// }
12 8
13 require_once('../include/library.php'); 9 require_once('../include/library.php');
14 10
@@ -310,4 +306,4 @@ if ($handle = opendir(&#39;../repositorio&#39;)) @@ -310,4 +306,4 @@ if ($handle = opendir(&#39;../repositorio&#39;))
310 306
311 </table> 307 </table>
312 </body> 308 </body>
313 - </html> 309 + </html>
314 \ No newline at end of file 310 \ No newline at end of file
admin/updates_subredes/index.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 require_once('../../include/library.php'); 17 require_once('../../include/library.php');
25 // Comentado temporariamente - AntiSpy(); 18 // Comentado temporariamente - AntiSpy();
26 if ($_REQUEST['ExecutaUpdates']=='Executar Updates') 19 if ($_REQUEST['ExecutaUpdates']=='Executar Updates')
@@ -86,7 +79,7 @@ else @@ -86,7 +79,7 @@ else
86 79
87 <body background="../../imgs/linha_v.gif"> 80 <body background="../../imgs/linha_v.gif">
88 81
89 - <script language="JavaScript" type="text/javascript" src="../../include/cacic.js"></script> 82 + <script language="JavaScript" type="text/javascript" src="../../include/cacic.js'?>"></script>
90 <table width="90%" border="0" align="center"> 83 <table width="90%" border="0" align="center">
91 <tr> 84 <tr>
92 <td class="cabecalho">Updates de SubRedes</td> 85 <td class="cabecalho">Updates de SubRedes</td>
@@ -261,4 +254,4 @@ else @@ -261,4 +254,4 @@ else
261 </html> 254 </html>
262 <? 255 <?
263 } 256 }
264 - ?> 257 + ?>
265 \ No newline at end of file 258 \ No newline at end of file
admin/updates_subredes/updates_subredes.php
@@ -15,13 +15,7 @@ @@ -15,13 +15,7 @@
15 */ 15 */
16 16
17 session_start(); 17 session_start();
18 -/*  
19 - * verifica se houve login e também as permissões de usuário  
20 - */  
21 -if(!isset($_SESSION['id_usuario']))  
22 - die('Acesso negado!');  
23 -else { // Inserir regras para verificar permissões do usuário!  
24 -} 18 +
25 require_once('../../include/library.php'); 19 require_once('../../include/library.php');
26 // Comentado temporariamente - AntiSpy(); 20 // Comentado temporariamente - AntiSpy();
27 // Função para replicação do conteúdo do REPOSITÓRIO nos servidores de UPDATES das redes cadastradas. 21 // Função para replicação do conteúdo do REPOSITÓRIO nos servidores de UPDATES das redes cadastradas.
@@ -291,4 +285,4 @@ require_once(&#39;../../include/library.php&#39;); @@ -291,4 +285,4 @@ require_once(&#39;../../include/library.php&#39;);
291 </html> 285 </html>
292 <? 286 <?
293 } 287 }
294 - ?> 288 + ?>
295 \ No newline at end of file 289 \ No newline at end of file
admin/usuarios/detalhes_usuario.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 require_once('../../include/library.php'); 17 require_once('../../include/library.php');
25 // Comentado temporariamente - AntiSpy(); 18 // Comentado temporariamente - AntiSpy();
26 Conecta_bd_cacic(); 19 Conecta_bd_cacic();
admin/usuarios/incluir_usuario.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 include_once "../../include/library.php"; 17 include_once "../../include/library.php";
25 // Comentado temporariamente - AntiSpy(); 18 // Comentado temporariamente - AntiSpy();
26 Conecta_bd_cacic(); 19 Conecta_bd_cacic();
admin/usuarios/index.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 if ($_POST['submit']) { 17 if ($_POST['submit']) {
25 header ("Location: incluir_usuario.php"); 18 header ("Location: incluir_usuario.php");
26 } 19 }
admin/usuarios/textpng.php
@@ -40,7 +40,7 @@ function draw( $p_msg=&quot;undefined&quot;, @@ -40,7 +40,7 @@ function draw( $p_msg=&quot;undefined&quot;,
40 40
41 // determine font height. 41 // determine font height.
42 header("Content-type: image/png"); 42 header("Content-type: image/png");
43 - $path = 'TIMES.TTF'; 43 + $path = $_SERVER['DOCUMENT_ROOT'] . '/cacic2/admin/usuarios/TIMES.TTF';
44 $bounds = imagettfbbox($p_size, $p_rot, $path, "W"); 44 $bounds = imagettfbbox($p_size, $p_rot, $path, "W");
45 GravaTESTES('2 - Caminho = '.$path); 45 GravaTESTES('2 - Caminho = '.$path);
46 GravaTESTES('2 - ImageTTFBBox 1...'); 46 GravaTESTES('2 - ImageTTFBBox 1...');
@@ -128,4 +128,4 @@ draw($_GET[&#39;msg&#39;], @@ -128,4 +128,4 @@ draw($_GET[&#39;msg&#39;],
128 $_GET['bg_red'], 128 $_GET['bg_red'],
129 $_GET['bg_grn'], 129 $_GET['bg_grn'],
130 $_GET['bg_blu']); 130 $_GET['bg_blu']);
131 -?> 131 +?>
132 \ No newline at end of file 132 \ No newline at end of file
admin/usuarios/troca_senha.php
@@ -15,13 +15,6 @@ @@ -15,13 +15,6 @@
15 */ 15 */
16 16
17 session_start(); 17 session_start();
18 -/*  
19 - * verifica se houve login e também as permissões de usuário  
20 - */  
21 -if(!isset($_SESSION['id_usuario']))  
22 - die('Acesso negado!');  
23 -else { // Inserir regras para verificar permissões do usuário!  
24 -}  
25 require_once('../../include/library.php'); 18 require_once('../../include/library.php');
26 // Comentado temporariamente - AntiSpy(); 19 // Comentado temporariamente - AntiSpy();
27 Conecta_bd_cacic(); 20 Conecta_bd_cacic();
@@ -2,6 +2,12 @@ @@ -2,6 +2,12 @@
2 2
3 Data Versão Gerente WEB Script Alterações/Implementações 3 Data Versão Gerente WEB Script Alterações/Implementações
4 ========== ================== ================================ =================================================================================================================================================================================================== 4 ========== ================== ================================ ===================================================================================================================================================================================================
  5 +30/01/2007 2.2.2 .../relatorios/patrimonio/index.php 1) Implementada a informação dos critérios "Entidade/Órgão" IGUAL A/DIFERENTE DE para pesquisa e geração de relatório
  6 + IMPACTO: Mais precisão nas informações gerenciais extraídas a partir desse relatório.
  7 +
  8 +30/01/2007 2.2.2 .../relatorios/patrimonio/rel_patrimonio.php 1) Implementado o tratamento dos novos valores "Entidade/Órgão" para critérios de pesquisa e geração de relatório
  9 + IMPACTO: Mais precisão nas informações gerenciais extraídas a partir desse relatório.
  10 +
5 27/12/2006 2.2.1 .../redes/detalhes_rede.php 1) Substituida a chamada à função "TentaPing" por "CheckFtpLogin" 11 27/12/2006 2.2.1 .../redes/detalhes_rede.php 1) Substituida a chamada à função "TentaPing" por "CheckFtpLogin"
6 IMPACTO: Maior eficiência no teste de conexão usando fsockopen 12 IMPACTO: Maior eficiência no teste de conexão usando fsockopen
7 13
estatisticas/aplicativos/aplicativos.php
@@ -15,13 +15,7 @@ @@ -15,13 +15,7 @@
15 */ 15 */
16 16
17 session_start(); 17 session_start();
18 -/*  
19 - * verifica se houve login e também as permissões de usuário  
20 - */  
21 -if(!isset($_SESSION['id_usuario']))  
22 - die('Acesso negado!');  
23 -else { // Inserir regras para verificar permissões do usuário!  
24 -} 18 +
25 if($_POST['submit']) { 19 if($_POST['submit']) {
26 $_SESSION["list2"] = $_POST['list2']; //Redes selecionadas 20 $_SESSION["list2"] = $_POST['list2']; //Redes selecionadas
27 $_SESSION["list4"] = $_POST['list4']; //SO selecionados 21 $_SESSION["list4"] = $_POST['list4']; //SO selecionados
@@ -330,4 +324,4 @@ while($reg_selecao = @mysql_fetch_row($result_query_selecao)) @@ -330,4 +324,4 @@ while($reg_selecao = @mysql_fetch_row($result_query_selecao))
330 pela Dataprev - Escrit&oacute;rio do Esp&iacute;rito Santo</p> 324 pela Dataprev - Escrit&oacute;rio do Esp&iacute;rito Santo</p>
331 </td></tr></table> 325 </td></tr></table>
332 </body> 326 </body>
333 -</html> 327 +</html>
334 \ No newline at end of file 328 \ No newline at end of file
estatisticas/aplicativos/est_maquinas_aplicativos.php
@@ -15,13 +15,6 @@ @@ -15,13 +15,6 @@
15 */ 15 */
16 16
17 session_start(); 17 session_start();
18 -/*  
19 - * verifica se houve login e também as permissões de usuário  
20 - */  
21 -if(!isset($_SESSION['id_usuario']))  
22 - die('Acesso negado!');  
23 -else { // Inserir regras para verificar permissões do usuário!  
24 -}  
25 //Mostrar computadores baseados no tipo de pesquisa solicitada pelo usuário 18 //Mostrar computadores baseados no tipo de pesquisa solicitada pelo usuário
26 require_once('../../include/library.php'); 19 require_once('../../include/library.php');
27 // Comentado temporariamente - AntiSpy(); 20 // Comentado temporariamente - AntiSpy();
estatisticas/aplicativos/index.php
@@ -15,13 +15,6 @@ @@ -15,13 +15,6 @@
15 */ 15 */
16 16
17 session_start(); 17 session_start();
18 -/*  
19 - * verifica se houve login e também as permissões de usuário  
20 - */  
21 -if(!isset($_SESSION['id_usuario']))  
22 - die('Acesso negado!');  
23 -else { // Inserir regras para verificar permissões do usuário!  
24 -}  
25 require_once('../../include/library.php'); 18 require_once('../../include/library.php');
26 // Comentado temporariamente - AntiSpy(); 19 // Comentado temporariamente - AntiSpy();
27 20
estatisticas/officescan.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 require_once('../include/library.php'); 17 require_once('../include/library.php');
25 // Comentado temporariamente - AntiSpy(); 18 // Comentado temporariamente - AntiSpy();
26 19
include/arvore/treemenu_arvore.php
@@ -14,14 +14,6 @@ @@ -14,14 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 -  
25 17
26 /*********************************************/ 18 /*********************************************/
27 /* PHP TreeMenu 1.1 */ 19 /* PHP TreeMenu 1.1 */
@@ -257,4 +249,4 @@ else { // Inserir regras para verificar permissões do usuário! @@ -257,4 +249,4 @@ else { // Inserir regras para verificar permissões do usuário!
257 $cnt++; 249 $cnt++;
258 } 250 }
259 ?> 251 ?>
260 -</table> 252 +</table>
261 \ No newline at end of file 253 \ No newline at end of file
include/arvore/treemenu_arvore_seg.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 /*********************************************/ 17 /*********************************************/
25 /* PHP TreeMenu 1.1 */ 18 /* PHP TreeMenu 1.1 */
26 /* Author: Bjorge Dijkstra */ 19 /* Author: Bjorge Dijkstra */
include/cacic.css
@@ -7,10 +7,9 @@ input.destaque{background-color: #ffFF66; font-weight: bold; font-size: 10px; co @@ -7,10 +7,9 @@ input.destaque{background-color: #ffFF66; font-weight: bold; font-size: 10px; co
7 input.dado_peq_sem_fundo {background-color: #CCCCCC; font-weight: bold; font-size: 9px; color: black; } 7 input.dado_peq_sem_fundo {background-color: #CCCCCC; font-weight: bold; font-size: 9px; color: black; }
8 textarea.normal {background-color: #FFFFFF; font-weight: normal; font-size: 11px; color: black;} 8 textarea.normal {background-color: #FFFFFF; font-weight: normal; font-size: 11px; color: black;}
9 textarea.digitacao {background-color: #CCCCCC; font-weight: bold; font-size: 11px; color: black; border:1px solid #000099;} 9 textarea.digitacao {background-color: #CCCCCC; font-weight: bold; font-size: 11px; color: black; border:1px solid #000099;}
  10 +select.multipequeno {background-color: #FFFFFF; font-weight: normal; font-size: 9px; color: black; size: 1;}
10 select.normal {background-color: #FFFFFF; font-weight: normal; font-size: 9px; color: black;} 11 select.normal {background-color: #FFFFFF; font-weight: normal; font-size: 9px; color: black;}
11 select.digitacao {background-color: #CCCCCC; font-weight: bold; font-size: 9px; color: black; border:1px solid #000099;} 12 select.digitacao {background-color: #CCCCCC; font-weight: bold; font-size: 9px; color: black; border:1px solid #000099;}
12 -select.multipequeno {background-color: #FFFFFF; font-weight: normal; font-size: 9px; color: black; s  
13 -ize: 1;}  
14 option.normal {background-color: #FFFFFF; font-weight: normal; font-size: 9px; color: black;} 13 option.normal {background-color: #FFFFFF; font-weight: normal; font-size: 9px; color: black;}
15 option.digitacao {background-color: #CCCCCC; font-weight: normal; font-size: 9px; color: black; border:1px solid #000099;} 14 option.digitacao {background-color: #CCCCCC; font-weight: normal; font-size: 9px; color: black; border:1px solid #000099;}
16 checkbox.normal {background-color: #FFFFFF; font-weight: normal; font-size: 9px; color: black; vertical-align: baseline;} 15 checkbox.normal {background-color: #FFFFFF; font-weight: normal; font-size: 9px; color: black; vertical-align: baseline;}
@@ -109,4 +108,4 @@ scrollbar-track-color: #003366 @@ -109,4 +108,4 @@ scrollbar-track-color: #003366
109 visibility:visible!important; 108 visibility:visible!important;
110 } 109 }
111 110
112 -</style> 111 +</style>
113 \ No newline at end of file 112 \ No newline at end of file
include/cacic.js
@@ -7,7 +7,6 @@ function SetaClassNormal(obj) @@ -7,7 +7,6 @@ function SetaClassNormal(obj)
7 { 7 {
8 obj.style.backgroundColor='#FFFFFF'; 8 obj.style.backgroundColor='#FFFFFF';
9 } 9 }
10 -  
11 function preparaEnvio() 10 function preparaEnvio()
12 {// Percorrerei os forms e encontrarei os campos NOME e SENHA para criptografia... (Anderson Peterle - 04/09/2006) 11 {// Percorrerei os forms e encontrarei os campos NOME e SENHA para criptografia... (Anderson Peterle - 04/09/2006)
13 for (i=0;i<window.document.forms.length;i++) 12 for (i=0;i<window.document.forms.length;i++)
include/dyncalendar.css
@@ -42,12 +42,4 @@ td.dynCalendar_today { @@ -42,12 +42,4 @@ td.dynCalendar_today {
42 border: 1px solid #c0c0c0; 42 border: 1px solid #c0c0c0;
43 font-family: Arial, Verdana, Helvetica, Sans-Serif; 43 font-family: Arial, Verdana, Helvetica, Sans-Serif;
44 font-size: 8pt; 44 font-size: 8pt;
45 -}  
46 -.dynCalendarImg {  
47 - background: url(../imgs/dyncalendar.gif) no-repeat scroll 100% 0pt;  
48 - width: 16;  
49 - height: 16;  
50 - padding: 5px 26px 10px 0px;  
51 - cursor: pointer;  
52 -}  
53 - 45 +}
54 \ No newline at end of file 46 \ No newline at end of file
include/dyncalendar.js
@@ -36,7 +36,7 @@ @@ -36,7 +36,7 @@
36 36
37 this.objName = objName; 37 this.objName = objName;
38 this.callbackFunc = callbackFunc; 38 this.callbackFunc = callbackFunc;
39 - this.imagesPath = arguments[2] ? arguments[2] : '../../imgs/'; 39 + this.imagesPath = arguments[2] ? arguments[2] : '../imgs/';
40 this.layerID = arguments[3] ? arguments[3] : 'dynCalendar_layer_' + dynCalendar_layers.length; 40 this.layerID = arguments[3] ? arguments[3] : 'dynCalendar_layer_' + dynCalendar_layers.length;
41 41
42 this.offsetX = 5; 42 this.offsetX = 5;
@@ -221,7 +221,7 @@ @@ -221,7 +221,7 @@
221 function dynCalendar_writeHTML() 221 function dynCalendar_writeHTML()
222 { 222 {
223 if (is_ie5up || is_nav6up || is_gecko) { 223 if (is_ie5up || is_nav6up || is_gecko) {
224 - document.write(sprintf('<a href="javascript: %s.show()"><span class="dynCalendarImg">&nbsp;</span></a>', this.objName, this.imagesPath)); 224 + document.write(sprintf('<a href="javascript: %s.show()"><img src="%sdynCalendar.gif" border="0" width="16" height="16" /></a>', this.objName, this.imagesPath));
225 document.write(sprintf('<div class="dynCalendar" id="%s" onmouseover="%s._mouseover(true)" onmouseout="%s._mouseover(false)"></div>', this.layerID, this.objName, this.objName)); 225 document.write(sprintf('<div class="dynCalendar" id="%s" onmouseover="%s._mouseover(true)" onmouseout="%s._mouseover(false)"></div>', this.layerID, this.objName, this.objName));
226 } 226 }
227 } 227 }
@@ -491,4 +491,4 @@ @@ -491,4 +491,4 @@
491 } 491 }
492 492
493 return strOutput; 493 return strOutput;
494 - } 494 + }
495 \ No newline at end of file 495 \ No newline at end of file
include/inicio_gerencia_licencas_inc.php
@@ -14,14 +14,6 @@ @@ -14,14 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 -  
25 require_once('library.php'); 17 require_once('library.php');
26 conecta_bd_cacic(); 18 conecta_bd_cacic();
27 ?> 19 ?>
@@ -53,4 +45,4 @@ else @@ -53,4 +45,4 @@ else
53 45
54 $cs_situacao = (mysql_num_rows($result) > 0?mysql_result($result, 0, 'cs_situacao'):$cs_situacao); 46 $cs_situacao = (mysql_num_rows($result) > 0?mysql_result($result, 0, 'cs_situacao'):$cs_situacao);
55 } 47 }
56 -?> 48 +?>
57 \ No newline at end of file 49 \ No newline at end of file
include/inicio_relatorios_inc.php
@@ -14,14 +14,6 @@ @@ -14,14 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 -  
25 require_once('library.php'); 17 require_once('library.php');
26 conecta_bd_cacic(); 18 conecta_bd_cacic();
27 ?> 19 ?>
@@ -53,4 +45,4 @@ else @@ -53,4 +45,4 @@ else
53 45
54 $cs_situacao = (mysql_num_rows($result) > 0?mysql_result($result, 0, 'cs_situacao'):$cs_situacao); 46 $cs_situacao = (mysql_num_rows($result) > 0?mysql_result($result, 0, 'cs_situacao'):$cs_situacao);
55 } 47 }
56 -?> 48 +?>
57 \ No newline at end of file 49 \ No newline at end of file
include/selecao_listbox.js
1 <SCRIPT LANGUAGE="JavaScript"> 1 <SCRIPT LANGUAGE="JavaScript">
2 function valida_form() 2 function valida_form()
3 { 3 {
4 - /*  
5 - Desabilitado temporariamente para reparo posterior, em função da urgência de utilização do amigo Paulo Rocha. 10/01/2006  
6 - */  
7 for (i=0;i<document.forma.elements.length;i++) 4 for (i=0;i<document.forma.elements.length;i++)
8 { 5 {
9 if (document.forma.elements[i].name == "list2" && document.forma.elements[i].length <= 0 && document.forma.elements[i].cs_situacao[1].checked) 6 if (document.forma.elements[i].name == "list2" && document.forma.elements[i].length <= 0 && document.forma.elements[i].cs_situacao[1].checked)
include/selecao_redes_inc.php
1 <? 1 <?
2 /* 2 /*
3 - Copyright 2000, 2001, 2002, 2003, 2004, 2005 Dataprev - Empresa de Tecnologia e Informa�es da Previd�cia Social, Brasil 3 + Copyright 2000, 2001, 2002, 2003, 2004, 2005 Dataprev - Empresa de Tecnologia e Informações da Previdência Social, Brasil
4 4
5 - Este arquivo �parte do programa CACIC - Configurador Autom�ico e Coletor de Informa�es Computacionais 5 + Este arquivo é parte do programa CACIC - Configurador Automático e Coletor de Informações Computacionais
6 6
7 - O CACIC �um software livre; voc�pode redistribui-lo e/ou modifica-lo dentro dos termos da Licen� Pblica Geral GNU como  
8 - publicada pela Funda�o do Software Livre (FSF); na vers� 2 da Licen�, ou (na sua opni�) qualquer vers�. 7 + O CACIC é um software livre; você pode redistribui-lo e/ou modifica-lo dentro dos termos da Licença Pública Geral GNU como
  8 + publicada pela Fundação do Software Livre (FSF); na versão 2 da Licença, ou (na sua opnião) qualquer versão.
9 9
10 - Este programa �distribuido na esperan� que possa ser util, mas SEM NENHUMA GARANTIA; sem uma garantia implicita de ADEQUA�O a qualquer  
11 - MERCADO ou APLICA�O EM PARTICULAR. Veja a Licen� Pblica Geral GNU para maiores detalhes. 10 + Este programa é distribuido na esperança que possa ser util, mas SEM NENHUMA GARANTIA; sem uma garantia implicita de ADEQUAÇÂO a qualquer
  11 + MERCADO ou APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU para maiores detalhes.
12 12
13 - Voc�deve ter recebido uma c�ia da Licen� Pblica Geral GNU, sob o t�ulo "LICENCA.txt", junto com este programa, se n�, 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 - /* Lembre-se de setar as vari�eis 16 + /* Lembre-se de setar as variáveis
17 $cs_situacao e $id_acao 17 $cs_situacao e $id_acao
18 antes de dar um include nesse arquivo. */ 18 antes de dar um include nesse arquivo. */
19 ?> 19 ?>
@@ -33,18 +33,19 @@ @@ -33,18 +33,19 @@
33 else 33 else
34 { 34 {
35 $where = ($where<>''?' AND '.$where:$where); 35 $where = ($where<>''?' AND '.$where:$where);
36 - // Usei o trecho abaixo para o caso da coleta avulsa de informa�es patrimoniais...  
37 - $where = ($id_acao == 'cs_coleta_patrimonio'?' OR id_acao = "cs_coleta_patrimonio") '.$where:') '.$where); 36 + // Usei o trecho abaixo para o caso da coleta avulsa de informações patrimoniais...
  37 + $where = ($id_acao == 'cs_coleta_patrimonio'?' OR id_acao = "cs_coleta_patrimonio") '.$where:$where.') ');
38 $query = "SELECT distinct redes.id_ip_rede, 38 $query = "SELECT distinct redes.id_ip_rede,
39 nm_rede 39 nm_rede
40 FROM redes, 40 FROM redes,
41 acoes_redes 41 acoes_redes
42 - WHERE redes.id_ip_rede = acoes_redes.id_ip_rede AND  
43 - ( acoes_redes.id_acao = '$id_acao' ". 42 + WHERE (redes.id_ip_rede = acoes_redes.id_ip_rede AND
  43 + acoes_redes.id_acao = '$id_acao' ".
44 $where; 44 $where;
45 - $msg = '(OBS: Est� sendo exibidas somente as redes selecionadas pelo administrador.)'; 45 + $msg = '(OBS: Estão sendo exibidas somente as redes selecionadas pelo administrador.)';
46 } 46 }
47 - $result = mysql_query($query) or die('Ocorreu um erro durante a consulta da tabela redes.'); 47 +
  48 + $result = mysql_query($query) or die('Ocorreu um erro durante a consulta à tabela redes.');
48 /* Agora monto os itens do combo de redes . */ 49 /* Agora monto os itens do combo de redes . */
49 while($campos=mysql_fetch_array($result)) 50 while($campos=mysql_fetch_array($result))
50 { 51 {
@@ -23,9 +23,7 @@ @@ -23,9 +23,7 @@
23 <frame src="top.php" name="topFrame" scrolling="NO" noresize > 23 <frame src="top.php" name="topFrame" scrolling="NO" noresize >
24 <frameset rows="*" cols="181,*" framespacing="0" frameborder="NO" border="0"> 24 <frameset rows="*" cols="181,*" framespacing="0" frameborder="NO" border="0">
25 <frame src="menu_esq.php" name="leftFrame" noresize> 25 <frame src="menu_esq.php" name="leftFrame" noresize>
26 - <frame src="principal.php" name="mainFrame">  
27 -<!-- <frame src="UntitledFrame-2">-->  
28 -</frameset> 26 + <frame src="principal.php" name="mainFrame"><frame src="UntitledFrame-2"></frameset>
29 </frameset> 27 </frameset>
30 <noframes><body> 28 <noframes><body>
31 29
1 - LICENÇA PÚBLICA GERAL GNU  
2 - Versão 2, junho de 1991  
3 -  
4 - This is an unofficial translation of the GNU General Public License  
5 - into Brazilian Portuguese. It was not published by the Free Software  
6 - Foundation, and does not legally state the distribution terms for  
7 - software that uses the GNU GPL -- only the original English text of  
8 - the GNU GPL does that. However, we hope that this translation will  
9 - help Brazilian Portuguese speakers understand the GNU GPL better.  
10 -  
11 - Esta é uma tradução não-oficial da Licença Pública Geral GNU ("GPL  
12 - GNU") para o português do Brasil. Ela não foi publicada pela Free  
13 -Software Foundation, e legalmente não afirma os termos de distribuição  
14 - de software que utiliza a GPL GNU -- apenas o texto original da GPL  
15 - GNU, em inglês, faz isso. Contudo, esperamos que esta tradução ajude  
16 - aos que utilizam o português do Brasil a entender melhor a GPL GNU.  
17 -  
18 - Copyright (C) 1989, 1991 Free Software Foundation, Inc. 675 Mass Ave,  
19 - Cambridge, MA 02139, USA  
20 -  
21 -A qualquer pessoa é permitido copiar e distribuir cópias desse  
22 -documento de licença, desde que sem qualquer alteração.  
23 -  
24 - Introdução  
25 -  
26 - As licenças de muitos software são desenvolvidas para restringir sua  
27 -liberdade de compartilhá-lo e mudá-lo. Contrária a isso, a Licença  
28 -Pública Geral GNU pretende garantir sua liberdade de compartilhar e  
29 -alterar software livres -- garantindo que o software será livre e  
30 -gratuito para os seus usuários. Esta Licença Pública Geral aplica-se à  
31 -maioria dos software da Free Software Foundation e a qualquer outro  
32 -programa cujo autor decida aplicá-la. (Alguns outros software da FSF  
33 -são cobertos pela Licença Pública Geral de Bibliotecas, no entanto.)  
34 -Você pode aplicá-la também aos seus programas.  
35 -  
36 - Quando nos referimos a software livre, estamos nos referindo a  
37 -liberdade e não a preço. Nossa Licença Pública Geral foi desenvolvida  
38 -para garantir que você tenha a liberdade de distribuir cópias de  
39 -software livre (e cobrar por isso, se quiser); que você receba o  
40 -código-fonte ou tenha acesso a ele, se quiser; que você possa mudar o  
41 -software ou utilizar partes dele em novos programas livres e  
42 -gratuitos; e que você saiba que pode fazer tudo isso.  
43 -  
44 - Para proteger seus direitos, precisamos fazer restrições que impeçam  
45 -a qualquer um negar estes direitos ou solicitar que você deles  
46 -abdique. Estas restrições traduzem-se em certas responsabilidades para  
47 -você, se você for distribuir cópias do software ou modificá-lo.  
48 -  
49 - Por exemplo, se você distribuir cópias de um programa, gratuitamente  
50 -ou por alguma quantia, você tem que fornecer aos recebedores todos os  
51 -direitos que você possui. Você tem que garantir que eles também  
52 -recebam ou possam obter o código-fonte. E você tem que mostrar-lhes  
53 -estes termos para que eles possam conhecer seus direitos.  
54 -  
55 - Nós protegemos seus direitos em dois passos: (1) com copyright do  
56 -software e (2) com a oferta desta licença, que lhe dá permissão legal  
57 -para copiar, distribuir e/ou modificar o software.  
58 -  
59 - Além disso, tanto para a proteção do autor quanto a nossa,  
60 -gostaríamos de certificar-nos que todos entendam que não há qualquer  
61 -garantia nestes software livres. Se o software é modificado por alguém  
62 -mais e passado adiante, queremos que seus recebedores saibam que o que  
63 -eles obtiveram não é original, de forma que qualquer problema  
64 -introduzido por terceiros não interfira na reputação do autor  
65 -original.  
66 -  
67 - Finalmente, qualquer programa é ameaçado constantemente por patentes  
68 -de software. Queremos evitar o perigo de que distribuidores de  
69 -software livre obtenham patentes individuais, o que tem o efeito de  
70 -tornar o programa proprietário. Para prevenir isso, deixamos claro que  
71 -qualquer patente tem que ser licenciada para uso livre e gratuito por  
72 -qualquer pessoa, ou então que nem necessite ser licenciada.  
73 -  
74 - Os termos e condições precisas para cópia, distribuição e  
75 -modificação se encontram abaixo:  
76 -  
77 - LICENÇA PÚBLICA GERAL GNU  
78 - TERMOS E CONDIÇÕES PARA CÓPIA, DISTRIBUIÇÃO E MODIFICAÇÃO  
79 -  
80 - 0. Esta licença se aplica a qualquer programa ou outro trabalho que  
81 -contenha um aviso colocado pelo detentor dos direitos autorais  
82 -informando que aquele pode ser distribuído sob as condições desta  
83 -Licença Pública Geral. O "Programa" abaixo refere-se a qualquer  
84 -programa ou trabalho, e "trabalho baseado no Programa" significa tanto  
85 -o Programa em si como quaisquer trabalhos derivados, de acordo com a  
86 -lei de direitos autorais: isto quer dizer um trabalho que contenha o  
87 -Programa ou parte dele, tanto originalmente ou com modificações, e/ou  
88 -tradução para outros idiomas. (Doravante o processo de tradução está  
89 -incluído sem limites no termo "modificação".) Cada licenciado é  
90 -mencionado como "você".  
91 -  
92 -Atividades outras que a cópia, a distribuição e modificação não estão  
93 -cobertas por esta Licença; elas estão fora de seu escopo. O ato de  
94 -executar o Programa não é restringido e o resultado do Programa é  
95 -coberto apenas se seu conteúdo contenha trabalhos baseados no Programa  
96 -(independentemente de terem sido gerados pela execução do  
97 -Programa). Se isso é verdadeiro depende do que o programa faz.  
98 -  
99 - 1. Você pode copiar e distribuir cópias fiéis do código-fonte do  
100 -Programa da mesma forma que você o recebeu, usando qualquer meio,  
101 -deste que você conspícua e apropriadamente publique em cada cópia um  
102 -aviso de direitos autorais e uma declaração de inexistência de  
103 -garantias; mantenha intactas todos os avisos que se referem a esta  
104 -Licença e à ausência total de garantias; e forneça a outros  
105 -recebedores do Programa uma cópia desta Licença, junto com o Programa.  
106 -  
107 -Você pode cobrar pelo ato físico de transferir uma cópia e pode,  
108 -opcionalmente, oferecer garantia em troca de pagamento.  
109 -  
110 - 2. Você pode modificar sua cópia ou cópias do Programa, ou qualquer  
111 -parte dele, assim gerando um trabalho baseado no Programa, e copiar e  
112 -distribuir essas modificações ou trabalhos sob os termos da seção 1  
113 -acima, desde que você também se enquadre em todas estas condições:  
114 -  
115 - a) Você tem que fazer com que os arquivos modificados levem avisos  
116 - proeminentes afirmando que você alterou os arquivos, incluindo a  
117 - data de qualquer alteração.  
118 -  
119 - b) Você tem que fazer com que quaisquer trabalhos que você  
120 - distribua ou publique, e que integralmente ou em partes contenham  
121 - ou sejam derivados do Programa ou de suas partes, sejam  
122 - licenciados, integralmente e sem custo algum para quaisquer  
123 - terceiros, sob os termos desta Licença.  
124 -  
125 - c) Se qualquer programa modificado normalmente lê comandos  
126 - interativamente quando executados, você tem que fazer com que,  
127 - quando iniciado tal uso interativo da forma mais simples, seja  
128 - impresso ou mostrado um anúncio de que não há qualquer garantia  
129 - (ou então que você fornece a garantia) e que os usuários podem  
130 - redistribuir o programa sob estas condições, ainda informando os  
131 - usuários como consultar uma cópia desta Licença. (Exceção: se o  
132 - Programa em si é interativo mas normalmente não imprime estes  
133 - tipos de anúncios, seu trabalho baseado no Programa não precisa  
134 - imprimir um anúncio.)  
135 -  
136 -Estas exigências aplicam-se ao trabalho modificado como um todo. Se  
137 -seções identificáveis de tal trabalho não são derivadas do Programa, e  
138 -podem ser razoavelmente consideradas trabalhos independentes e  
139 -separados por si só, então esta Licença, e seus termos, não se aplicam  
140 -a estas seções quando você distribui-las como trabalhos em  
141 -separado. Mas quando você distribuir as mesmas seções como parte de um  
142 -todo que é trabalho baseado no Programa, a distribuição como um todo  
143 -tem que se enquadrar nos termos desta Licença, cujas permissões para  
144 -outros licenciados se estendem ao todo, portanto também para cada e  
145 -toda parte independente de quem a escreveu.  
146 -  
147 -Desta forma, esta seção não tem a intenção de reclamar direitos os  
148 -contestar seus direitos sobre o trabalho escrito completamente por  
149 -você; ao invés disso, a intenção é a de exercitar o direito de  
150 -controlar a distribuição de trabalhos, derivados ou coletivos,  
151 -baseados no Programa.  
152 -  
153 -Adicionalmente, a mera adição ao Programa de outro trabalho não  
154 -baseado no Programa (ou de trabalho baseado no Programa) em um volume  
155 -de armazenamento ou meio de distribuição não faz o outro trabalho  
156 -parte do escopo desta Licença.  
157 -  
158 - 3. Você pode copiar e distribuir o Programa (ou trabalho baseado  
159 -nele, conforme descrito na Seção 2) em código-objeto ou em forma  
160 -executável sob os termos das Seções 1 e 2 acima, desde que você  
161 -faça um dos seguintes:  
162 -  
163 - a) O acompanhe com o código-fonte completo e em forma acessível  
164 - por máquinas, que tem que ser distribuído sob os termos das Seções  
165 - 1 e 2 acima e em meio normalmente utilizado para o intercâmbio de  
166 - software; ou,  
167 -  
168 - b) O acompanhe com uma oferta escrita, válida por pelo menos três  
169 - anos, de fornecer a qualquer um, com um custo não superior ao  
170 - custo de distribuição física do material, uma cópia do  
171 - código-fonte completo e em forma acessível por máquinas, que tem  
172 - que ser distribuído sob os termos das Seções 1 e 2 acima e em meio  
173 - normalmente utilizado para o intercâmbio de software; ou,  
174 -  
175 - c) O acompanhe com a informação que você recebeu em relação à  
176 - oferta de distribuição do código-fonte correspondente. (Esta  
177 - alternativa é permitida somente em distribuição não comerciais, e  
178 - apenas se você recebeu o programa em forma de código-objeto ou  
179 - executável, com oferta de acordo com a Subseção b acima.)  
180 -  
181 -O código-fonte de um trabalho corresponde à forma de trabalho  
182 -preferida para se fazer modificações. Para um trabalho em forma  
183 -executável, o código-fonte completo significa todo o código-fonte de  
184 -todos os módulos que ele contém, mais quaisquer arquivos de definição  
185 -de "interface", mais os "scripts" utilizados para se controlar a  
186 -compilação e a instalação do executável. Contudo, como exceção  
187 -especial, o código-fonte distribuído não precisa incluir qualquer  
188 -componente normalmente distribuído (tanto em forma original quanto  
189 -binária) com os maiores componentes (o compilador, o "kernel" etc.) do  
190 -sistema operacional sob o qual o executável funciona, a menos que o  
191 -componente em si acompanhe o executável.  
192 -  
193 -Se a distribuição do executável ou código-objeto é feita através da  
194 -oferta de acesso a cópias de algum lugar, então ofertar o acesso  
195 -equivalente a cópia, do mesmo lugar, do código-fonte equivale à  
196 -distribuição do código-fonte, mesmo que terceiros não sejam compelidos  
197 -a copiar o código-fonte com o código-objeto.  
198 -  
199 - 4. Você não pode copiar, modificar, sub-licenciar ou distribuir o  
200 -Programa, exceto de acordo com as condições expressas nesta  
201 -Licença. Qualquer outra tentativa de cópia, modificação,  
202 -sub-licenciamento ou distribuição do Programa não é valida, e  
203 -cancelará automaticamente os direitos que lhe foram fornecidos por  
204 -esta Licença. No entanto, terceiros que de você receberam cópias ou  
205 -direitos, fornecidos sob os termos desta Licença, não terão suas  
206 -licenças terminadas, desde que permaneçam em total concordância com  
207 -ela.  
208 -  
209 - 5. Você não é obrigado a aceitar esta Licença já que não a  
210 -assinou. No entanto, nada mais o dará permissão para modificar ou  
211 -distribuir o Programa ou trabalhos derivados deste. Estas ações são  
212 -proibidas por lei, caso você não aceite esta Licença. Desta forma, ao  
213 -modificar ou distribuir o Programa (ou qualquer trabalho derivado do  
214 -Programa), você estará indicando sua total aceitação desta Licença  
215 -para fazê-los, e todos os seus termos e condições para copiar,  
216 -distribuir ou modificar o Programa, ou trabalhos baseados nele.  
217 -  
218 - 6. Cada vez que você redistribuir o Programa (ou qualquer trabalho  
219 -baseado nele), os recebedores adquirirão automaticamente do  
220 -licenciador original uma licença para copiar, distribuir ou modificar  
221 -o Programa, sujeitos a estes termos e condições. Você não poderá impor  
222 -aos recebedores qualquer outra restrição ao exercício dos direitos  
223 -então adquiridos. Você não é responsável em garantir a concordância de  
224 -terceiros a esta Licença.  
225 -  
226 - 7. Se, em conseqüência de decisões judiciais ou alegações de  
227 -infringimento de patentes ou quaisquer outras razões (não limitadas a  
228 -assuntos relacionados a patentes), condições forem impostas a você  
229 -(por ordem judicial, acordos ou outras formas) e que contradigam as  
230 -condições desta Licença, elas não o livram das condições desta  
231 -Licença. Se você não puder distribuir de forma a satisfazer  
232 -simultaneamente suas obrigações para com esta Licença e para com as  
233 -outras obrigações pertinentes, então como conseqüência você não poderá  
234 -distribuir o Programa. Por exemplo, se uma licença de patente não  
235 -permitirá a redistribuição, livre de "royalties", do Programa, por  
236 -todos aqueles que receberem cópias direta ou indiretamente de você,  
237 -então a única forma de você satisfazer a ela e a esta Licença seria a  
238 -de desistir completamente de distribuir o Programa.  
239 -  
240 -Se qualquer parte desta seção for considerada inválida ou não  
241 -aplicável em qualquer circunstância particular, o restante da seção se  
242 -aplica, e a seção como um todo se aplica em outras circunstâncias.  
243 -  
244 -O propósito desta seção não é o de induzi-lo a infringir quaisquer  
245 -patentes ou reivindicação de direitos de propriedade outros, ou a  
246 -contestar a validade de quaisquer dessas reivindicações; esta seção  
247 -tem como único propósito proteger a integridade dos sistemas de  
248 -distribuição de software livres, o que é implementado pela prática de  
249 -licenças públicas. Várias pessoas têm contribuído generosamente e em  
250 -grande escala para os software distribuídos usando este sistema, na  
251 -certeza de que sua aplicação é feita de forma consistente; fica a  
252 -critério do autor/doador decidir se ele ou ela está disposto a  
253 -distribuir software utilizando outro sistema, e um licenciado não pode  
254 -impor qualquer escolha.  
255 -  
256 -Esta seção destina-se a tornar bastante claro o que se acredita ser  
257 -conseqüência do restante desta Licença.  
258 -  
259 - 8. Se a distribuição e/ou uso do Programa são restringidos em certos  
260 -países por patentes ou direitos autorais, o detentor dos direitos  
261 -autorais original, e que colocou o Programa sob esta Licença, pode  
262 -incluir uma limitação geográfica de distribuição, excluindo aqueles  
263 -países de forma a tornar a distribuição permitida apenas naqueles ou  
264 -entre aqueles países então não excluídos. Nestes casos, esta Licença  
265 -incorpora a limitação como se a mesma constasse escrita nesta Licença.  
266 -  
267 - 9. A Free Software Foundation pode publicar versões revisadas e/ou  
268 -novas da Licença Pública Geral de tempos em tempos. Estas novas  
269 -versões serão similares em espírito à versão atual, mas podem diferir  
270 -em detalhes que resolvem novos problemas ou situações.  
271 -  
272 -A cada versão é dada um número distinto. Se o Programa especifica um  
273 -número de versão específico desta Licença que se aplica a ele e a  
274 -"qualquer nova versão", você tem a opção de aceitar os termos e  
275 -condições daquela versão ou de qualquer outra versão publicada pela  
276 -Free Software Foundation. Se o programa não especifica um número de  
277 -versão desta Licença, você pode escolher qualquer versão já publicada  
278 -pela Free Software Foundation.  
279 -  
280 - 10. Se você pretende incorporar partes do Programa em outros  
281 -programas livres cujas condições de distribuição são diferentes,  
282 -escreva ao autor e solicite permissão. Para o software que a Free  
283 -Software Foundation detém direitos autorais, escreva à Free Software  
284 -Foundation; às vezes nós permitimos exceções a este caso. Nossa  
285 -decisão será guiada pelos dois objetivos de preservar a condição de  
286 -liberdade de todas as derivações do nosso software livre, e de  
287 -promover o compartilhamento e reutilização de software em aspectos  
288 -gerais.  
289 -  
290 - AUSÊNCIA DE GARANTIAS  
291 -  
292 - 11. UMA VEZ QUE O PROGRAMA É LICENCIADO SEM ÔNUS, NÃO HÁ QUALQUER  
293 -GARANTIA PARA O PROGRAMA, NA EXTENSÃO PERMITIDA PELAS LEIS  
294 -APLICÁVEIS. EXCETO QUANDO EXPRESSADO DE FORMA ESCRITA, OS DETENTORES  
295 -DOS DIREITOS AUTORAIS E/OU TERCEIROS DISPONIBILIZAM O PROGRAMA "NO  
296 -ESTADO", SEM QUALQUER TIPO DE GARANTIAS, EXPRESSAS OU IMPLÍCITAS,  
297 -INCLUINDO, MAS NÃO LIMITADO A, AS GARANTIAS IMPLÍCITAS DE  
298 -COMERCIALIZAÇÃO E AS DE ADEQUAÇÃO A QUALQUER PROPÓSITO. O RISCO TOTAL  
299 -COM A QUALIDADE E DESEMPENHO DO PROGRAMA É SEU. SE O PROGRAMA SE  
300 -MOSTRAR DEFEITUOSO, VOCÊ ASSUME OS CUSTOS DE TODAS AS MANUTENÇÕES,  
301 -REPAROS E CORREÇÕES.  
302 -  
303 - 12. EM NENHUMA OCASIÃO, A MENOS QUE EXIGIDO PELAS LEIS APLICÁVEIS OU  
304 -ACORDO ESCRITO, OS DETENTORES DOS DIREITOS AUTORAIS, OU QUALQUER OUTRA  
305 -PARTE QUE POSSA MODIFICAR E/OU REDISTRIBUIR O PROGRAMA CONFORME  
306 -PERMITIDO ACIMA, SERÃO RESPONSABILIZADOS POR VOCÊ POR DANOS, INCLUINDO  
307 -QUALQUER DANO EM GERAL, ESPECIAL, ACIDENTAL OU CONSEQÜENTE,  
308 -RESULTANTES DO USO OU INCAPACIDADE DE USO DO PROGRAMA (INCLUINDO, MAS  
309 -NÃO LIMITADO A, A PERDA DE DADOS OU DADOS TORNADOS INCORRETOS, OU  
310 -PERDAS SOFRIDAS POR VOCÊ OU POR OUTRAS PARTES, OU FALHAS DO PROGRAMA  
311 -AO OPERAR COM QUALQUER OUTRO PROGRAMA), MESMO QUE TAL DETENTOR OU  
312 -PARTE TENHAM SIDO AVISADOS DA POSSIBILIDADE DE TAIS DANOS.  
313 -  
314 - FIM DOS TERMOS E CONDIÇÕES  
315 -  
316 - Como Aplicar Estes Termos aos Seus Novos Programas  
317 -  
318 - Se você desenvolver um novo programa, e quer que ele seja utilizado  
319 -amplamente pelo público, a melhor forma de alcançar este objetivo é  
320 -torná-lo software livre que qualquer um pode redistribuir e alterar,  
321 -sob estes termos.  
322 -  
323 - Para isso, anexe os seguintes avisos ao programa. É mais seguro  
324 -anexá-los logo no início de cada arquivo-fonte para reforçarem mais  
325 -efetivamente a inexistência de garantias; e cada arquivo deve possuir  
326 -pelo menos a linha de "copyright" e uma indicação de onde o texto  
327 -completo se encontra.  
328 -  
329 - <uma linha que forneça o nome do programa e uma idéia do que ele faz.>  
330 - Copyright (C) <ano> <nome do autor>  
331 -  
332 - Este programa é software livre; você pode redistribuí-lo e/ou  
333 - modificá-lo sob os termos da Licença Pública Geral GNU, conforme  
334 - publicada pela Free Software Foundation; tanto a versão 2 da  
335 - Licença como (a seu critério) qualquer versão mais nova.  
336 -  
337 - Este programa é distribuído na expectativa de ser útil, mas SEM  
338 - QUALQUER GARANTIA; sem mesmo a garantia implícita de  
339 - COMERCIALIZAÇÃO ou de ADEQUAÇÃO A QUALQUER PROPÓSITO EM  
340 - PARTICULAR. Consulte a Licença Pública Geral GNU para obter mais  
341 - detalhes.  
342 -  
343 - Você deve ter recebido uma cópia da Licença Pública Geral GNU  
344 - junto com este programa; se não, escreva para a Free Software  
345 - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  
346 - 02111-1307, USA.  
347 -  
348 -Inclua também informações sobre como contactá-lo eletronicamente e por  
349 -carta.  
350 -  
351 -Se o programa é interativo, faça-o mostrar um aviso breve como este,  
352 -ao iniciar um modo interativo:  
353 -  
354 - Gnomovision versão 69, Copyright (C) ano nome do autor  
355 - O Gnomovision não possui QUALQUER GARANTIA; para obter mais  
356 - detalhes digite `show w'. Ele é software livre e você está  
357 - convidado a redistribui-lo sob certas condições; digite `show c'  
358 - para obter detalhes.  
359 -  
360 -Os comandos hipotéticos `show w' e `show c' devem mostrar as partes  
361 -apropriadas da Licença Pública Geral. Claro, os comandos que você usar  
362 -podem ser ativados de outra forma que `show w' e `show c'; eles podem  
363 -até ser cliques do mouse ou itens de um menu -- o que melhor se  
364 -adequar ao programa.  
365 -  
366 -Você também deve obter do seu empregador (se você trabalha como  
367 -programador) ou escola, se houver, uma "declaração de ausência de  
368 -direitos autorais" sobre o programa, se necessário. Aqui está um  
369 -exemplo; altere os nomes:  
370 -  
371 - Yoyodyne, Inc., aqui declara a ausência de quaisquer direitos  
372 - autorais sobre o programa `Gnomovision' (que executa interpretações  
373 - em compiladores) escrito por James Hacker.  
374 -  
375 - <assinatura de Ty Coon>, 1o. de abril de 1989  
376 - Ty Con, Vice-presidente  
377 -  
378 -Esta Licença Pública Geral não permite incorporar seu programa em  
379 -programas proprietários. Se seu programa é uma biblioteca de  
380 -sub-rotinas, você deve considerar mais útil permitir ligar aplicações  
381 -proprietárias com a biblioteca. Se isto é o que você deseja, use a  
382 -Licença Pública Geral de Bibliotecas GNU, ao invés desta Licença. 1 + GNU GENERAL PUBLIC LICENSE
  2 + Version 2, June 1991
  3 +
  4 + Copyright (C) 1989, 1991 Free Software Foundation, Inc.
  5 + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  6 + Everyone is permitted to copy and distribute verbatim copies
  7 + of this license document, but changing it is not allowed.
  8 +
  9 + Preamble
  10 +
  11 + The licenses for most software are designed to take away your
  12 +freedom to share and change it. By contrast, the GNU General Public
  13 +License is intended to guarantee your freedom to share and change free
  14 +software--to make sure the software is free for all its users. This
  15 +General Public License applies to most of the Free Software
  16 +Foundation's software and to any other program whose authors commit to
  17 +using it. (Some other Free Software Foundation software is covered by
  18 +the GNU Library General Public License instead.) You can apply it to
  19 +your programs, too.
  20 +
  21 + When we speak of free software, we are referring to freedom, not
  22 +price. Our General Public Licenses are designed to make sure that you
  23 +have the freedom to distribute copies of free software (and charge for
  24 +this service if you wish), that you receive source code or can get it
  25 +if you want it, that you can change the software or use pieces of it
  26 +in new free programs; and that you know you can do these things.
  27 +
  28 + To protect your rights, we need to make restrictions that forbid
  29 +anyone to deny you these rights or to ask you to surrender the rights.
  30 +These restrictions translate to certain responsibilities for you if you
  31 +distribute copies of the software, or if you modify it.
  32 +
  33 + For example, if you distribute copies of such a program, whether
  34 +gratis or for a fee, you must give the recipients all the rights that
  35 +you have. You must make sure that they, too, receive or can get the
  36 +source code. And you must show them these terms so they know their
  37 +rights.
  38 +
  39 + We protect your rights with two steps: (1) copyright the software, and
  40 +(2) offer you this license which gives you legal permission to copy,
  41 +distribute and/or modify the software.
  42 +
  43 + Also, for each author's protection and ours, we want to make certain
  44 +that everyone understands that there is no warranty for this free
  45 +software. If the software is modified by someone else and passed on, we
  46 +want its recipients to know that what they have is not the original, so
  47 +that any problems introduced by others will not reflect on the original
  48 +authors' reputations.
  49 +
  50 + Finally, any free program is threatened constantly by software
  51 +patents. We wish to avoid the danger that redistributors of a free
  52 +program will individually obtain patent licenses, in effect making the
  53 +program proprietary. To prevent this, we have made it clear that any
  54 +patent must be licensed for everyone's free use or not licensed at all.
  55 +
  56 + The precise terms and conditions for copying, distribution and
  57 +modification follow.
  58 +
  59 + GNU GENERAL PUBLIC LICENSE
  60 + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
  61 +
  62 + 0. This License applies to any program or other work which contains
  63 +a notice placed by the copyright holder saying it may be distributed
  64 +under the terms of this General Public License. The "Program", below,
  65 +refers to any such program or work, and a "work based on the Program"
  66 +means either the Program or any derivative work under copyright law:
  67 +that is to say, a work containing the Program or a portion of it,
  68 +either verbatim or with modifications and/or translated into another
  69 +language. (Hereinafter, translation is included without limitation in
  70 +the term "modification".) Each licensee is addressed as "you".
  71 +
  72 +Activities other than copying, distribution and modification are not
  73 +covered by this License; they are outside its scope. The act of
  74 +running the Program is not restricted, and the output from the Program
  75 +is covered only if its contents constitute a work based on the
  76 +Program (independent of having been made by running the Program).
  77 +Whether that is true depends on what the Program does.
  78 +
  79 + 1. You may copy and distribute verbatim copies of the Program's
  80 +source code as you receive it, in any medium, provided that you
  81 +conspicuously and appropriately publish on each copy an appropriate
  82 +copyright notice and disclaimer of warranty; keep intact all the
  83 +notices that refer to this License and to the absence of any warranty;
  84 +and give any other recipients of the Program a copy of this License
  85 +along with the Program.
  86 +
  87 +You may charge a fee for the physical act of transferring a copy, and
  88 +you may at your option offer warranty protection in exchange for a fee.
  89 +
  90 + 2. You may modify your copy or copies of the Program or any portion
  91 +of it, thus forming a work based on the Program, and copy and
  92 +distribute such modifications or work under the terms of Section 1
  93 +above, provided that you also meet all of these conditions:
  94 +
  95 + a) You must cause the modified files to carry prominent notices
  96 + stating that you changed the files and the date of any change.
  97 +
  98 + b) You must cause any work that you distribute or publish, that in
  99 + whole or in part contains or is derived from the Program or any
  100 + part thereof, to be licensed as a whole at no charge to all third
  101 + parties under the terms of this License.
  102 +
  103 + c) If the modified program normally reads commands interactively
  104 + when run, you must cause it, when started running for such
  105 + interactive use in the most ordinary way, to print or display an
  106 + announcement including an appropriate copyright notice and a
  107 + notice that there is no warranty (or else, saying that you provide
  108 + a warranty) and that users may redistribute the program under
  109 + these conditions, and telling the user how to view a copy of this
  110 + License. (Exception: if the Program itself is interactive but
  111 + does not normally print such an announcement, your work based on
  112 + the Program is not required to print an announcement.)
  113 +
  114 +These requirements apply to the modified work as a whole. If
  115 +identifiable sections of that work are not derived from the Program,
  116 +and can be reasonably considered independent and separate works in
  117 +themselves, then this License, and its terms, do not apply to those
  118 +sections when you distribute them as separate works. But when you
  119 +distribute the same sections as part of a whole which is a work based
  120 +on the Program, the distribution of the whole must be on the terms of
  121 +this License, whose permissions for other licensees extend to the
  122 +entire whole, and thus to each and every part regardless of who wrote it.
  123 +
  124 +Thus, it is not the intent of this section to claim rights or contest
  125 +your rights to work written entirely by you; rather, the intent is to
  126 +exercise the right to control the distribution of derivative or
  127 +collective works based on the Program.
  128 +
  129 +In addition, mere aggregation of another work not based on the Program
  130 +with the Program (or with a work based on the Program) on a volume of
  131 +a storage or distribution medium does not bring the other work under
  132 +the scope of this License.
  133 +
  134 + 3. You may copy and distribute the Program (or a work based on it,
  135 +under Section 2) in object code or executable form under the terms of
  136 +Sections 1 and 2 above provided that you also do one of the following:
  137 +
  138 + a) Accompany it with the complete corresponding machine-readable
  139 + source code, which must be distributed under the terms of Sections
  140 + 1 and 2 above on a medium customarily used for software interchange; or,
  141 +
  142 + b) Accompany it with a written offer, valid for at least three
  143 + years, to give any third party, for a charge no more than your
  144 + cost of physically performing source distribution, a complete
  145 + machine-readable copy of the corresponding source code, to be
  146 + distributed under the terms of Sections 1 and 2 above on a medium
  147 + customarily used for software interchange; or,
  148 +
  149 + c) Accompany it with the information you received as to the offer
  150 + to distribute corresponding source code. (This alternative is
  151 + allowed only for noncommercial distribution and only if you
  152 + received the program in object code or executable form with such
  153 + an offer, in accord with Subsection b above.)
  154 +
  155 +The source code for a work means the preferred form of the work for
  156 +making modifications to it. For an executable work, complete source
  157 +code means all the source code for all modules it contains, plus any
  158 +associated interface definition files, plus the scripts used to
  159 +control compilation and installation of the executable. However, as a
  160 +special exception, the source code distributed need not include
  161 +anything that is normally distributed (in either source or binary
  162 +form) with the major components (compiler, kernel, and so on) of the
  163 +operating system on which the executable runs, unless that component
  164 +itself accompanies the executable.
  165 +
  166 +If distribution of executable or object code is made by offering
  167 +access to copy from a designated place, then offering equivalent
  168 +access to copy the source code from the same place counts as
  169 +distribution of the source code, even though third parties are not
  170 +compelled to copy the source along with the object code.
  171 +
  172 + 4. You may not copy, modify, sublicense, or distribute the Program
  173 +except as expressly provided under this License. Any attempt
  174 +otherwise to copy, modify, sublicense or distribute the Program is
  175 +void, and will automatically terminate your rights under this License.
  176 +However, parties who have received copies, or rights, from you under
  177 +this License will not have their licenses terminated so long as such
  178 +parties remain in full compliance.
  179 +
  180 + 5. You are not required to accept this License, since you have not
  181 +signed it. However, nothing else grants you permission to modify or
  182 +distribute the Program or its derivative works. These actions are
  183 +prohibited by law if you do not accept this License. Therefore, by
  184 +modifying or distributing the Program (or any work based on the
  185 +Program), you indicate your acceptance of this License to do so, and
  186 +all its terms and conditions for copying, distributing or modifying
  187 +the Program or works based on it.
  188 +
  189 + 6. Each time you redistribute the Program (or any work based on the
  190 +Program), the recipient automatically receives a license from the
  191 +original licensor to copy, distribute or modify the Program subject to
  192 +these terms and conditions. You may not impose any further
  193 +restrictions on the recipients' exercise of the rights granted herein.
  194 +You are not responsible for enforcing compliance by third parties to
  195 +this License.
  196 +
  197 + 7. If, as a consequence of a court judgment or allegation of patent
  198 +infringement or for any other reason (not limited to patent issues),
  199 +conditions are imposed on you (whether by court order, agreement or
  200 +otherwise) that contradict the conditions of this License, they do not
  201 +excuse you from the conditions of this License. If you cannot
  202 +distribute so as to satisfy simultaneously your obligations under this
  203 +License and any other pertinent obligations, then as a consequence you
  204 +may not distribute the Program at all. For example, if a patent
  205 +license would not permit royalty-free redistribution of the Program by
  206 +all those who receive copies directly or indirectly through you, then
  207 +the only way you could satisfy both it and this License would be to
  208 +refrain entirely from distribution of the Program.
  209 +
  210 +If any portion of this section is held invalid or unenforceable under
  211 +any particular circumstance, the balance of the section is intended to
  212 +apply and the section as a whole is intended to apply in other
  213 +circumstances.
  214 +
  215 +It is not the purpose of this section to induce you to infringe any
  216 +patents or other property right claims or to contest validity of any
  217 +such claims; this section has the sole purpose of protecting the
  218 +integrity of the free software distribution system, which is
  219 +implemented by public license practices. Many people have made
  220 +generous contributions to the wide range of software distributed
  221 +through that system in reliance on consistent application of that
  222 +system; it is up to the author/donor to decide if he or she is willing
  223 +to distribute software through any other system and a licensee cannot
  224 +impose that choice.
  225 +
  226 +This section is intended to make thoroughly clear what is believed to
  227 +be a consequence of the rest of this License.
  228 +
  229 + 8. If the distribution and/or use of the Program is restricted in
  230 +certain countries either by patents or by copyrighted interfaces, the
  231 +original copyright holder who places the Program under this License
  232 +may add an explicit geographical distribution limitation excluding
  233 +those countries, so that distribution is permitted only in or among
  234 +countries not thus excluded. In such case, this License incorporates
  235 +the limitation as if written in the body of this License.
  236 +
  237 + 9. The Free Software Foundation may publish revised and/or new versions
  238 +of the General Public License from time to time. Such new versions will
  239 +be similar in spirit to the present version, but may differ in detail to
  240 +address new problems or concerns.
  241 +
  242 +Each version is given a distinguishing version number. If the Program
  243 +specifies a version number of this License which applies to it and "any
  244 +later version", you have the option of following the terms and conditions
  245 +either of that version or of any later version published by the Free
  246 +Software Foundation. If the Program does not specify a version number of
  247 +this License, you may choose any version ever published by the Free Software
  248 +Foundation.
  249 +
  250 + 10. If you wish to incorporate parts of the Program into other free
  251 +programs whose distribution conditions are different, write to the author
  252 +to ask for permission. For software which is copyrighted by the Free
  253 +Software Foundation, write to the Free Software Foundation; we sometimes
  254 +make exceptions for this. Our decision will be guided by the two goals
  255 +of preserving the free status of all derivatives of our free software and
  256 +of promoting the sharing and reuse of software generally.
  257 +
  258 + NO WARRANTY
  259 +
  260 + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
  261 +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
  262 +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
  263 +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
  264 +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  265 +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
  266 +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
  267 +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
  268 +REPAIR OR CORRECTION.
  269 +
  270 + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
  271 +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
  272 +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
  273 +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
  274 +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
  275 +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
  276 +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
  277 +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
  278 +POSSIBILITY OF SUCH DAMAGES.
  279 +
  280 + END OF TERMS AND CONDITIONS
  281 +
  282 + How to Apply These Terms to Your New Programs
  283 +
  284 + If you develop a new program, and you want it to be of the greatest
  285 +possible use to the public, the best way to achieve this is to make it
  286 +free software which everyone can redistribute and change under these terms.
  287 +
  288 + To do so, attach the following notices to the program. It is safest
  289 +to attach them to the start of each source file to most effectively
  290 +convey the exclusion of warranty; and each file should have at least
  291 +the "copyright" line and a pointer to where the full notice is found.
  292 +
  293 + <one line to give the program's name and a brief idea of what it does.>
  294 + Copyright (C) <year> <name of author>
  295 +
  296 + This program is free software; you can redistribute it and/or modify
  297 + it under the terms of the GNU General Public License as published by
  298 + the Free Software Foundation; either version 2 of the License, or
  299 + (at your option) any later version.
  300 +
  301 + This program is distributed in the hope that it will be useful,
  302 + but WITHOUT ANY WARRANTY; without even the implied warranty of
  303 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  304 + GNU General Public License for more details.
  305 +
  306 + You should have received a copy of the GNU General Public License
  307 + along with this program; if not, write to the Free Software
  308 + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  309 +
  310 +
  311 +Also add information on how to contact you by electronic and paper mail.
  312 +
  313 +If the program is interactive, make it output a short notice like this
  314 +when it starts in an interactive mode:
  315 +
  316 + Gnomovision version 69, Copyright (C) year name of author
  317 + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
  318 + This is free software, and you are welcome to redistribute it
  319 + under certain conditions; type `show c' for details.
  320 +
  321 +The hypothetical commands `show w' and `show c' should show the appropriate
  322 +parts of the General Public License. Of course, the commands you use may
  323 +be called something other than `show w' and `show c'; they could even be
  324 +mouse-clicks or menu items--whatever suits your program.
  325 +
  326 +You should also get your employer (if you work as a programmer) or your
  327 +school, if any, to sign a "copyright disclaimer" for the program, if
  328 +necessary. Here is a sample; alter the names:
  329 +
  330 + Yoyodyne, Inc., hereby disclaims all copyright interest in the program
  331 + `Gnomovision' (which makes passes at compilers) written by James Hacker.
  332 +
  333 + <signature of Ty Coon>, 1 April 1989
  334 + Ty Coon, President of Vice
  335 +
  336 +This General Public License does not permit incorporating your program into
  337 +proprietary programs. If your program is a subroutine library, you may
  338 +consider it more useful to permit linking proprietary applications with the
  339 +library. If this is what you want to do, use the GNU Library General
  340 +Public License instead of this License.
@@ -254,32 +254,37 @@ else @@ -254,32 +254,37 @@ else
254 } 254 }
255 </SCRIPT> 255 </SCRIPT>
256 256
257 - <!-- Inicio Marisol 24-07-06 -->  
258 - <form name="form0" method="post" action="relatorios/computadores.php?campo=te_nome_computador" target=mainFrame>  
259 -  
260 - <table border="0" align="center">  
261 - <tr>  
262 - <td height="49" class="dado_peq_sem_fundo"> Pesquisa R&aacute;pida:<br> 257 + <?
  258 + if ($_SESSION['id_grupo_usuarios']<>3) // Caso não seja usuário "Convidado" (atribuído automaticamente quando rede e local são identificados)
  259 + {
  260 + ?>
  261 + <!-- Inicio Marisol 24-07-06 -->
  262 + <form name="form0" method="post" action="relatorios/computadores.php?campo=te_nome_computador" target=mainFrame>
  263 + <table border="0" align="center">
  264 + <tr>
  265 + <td height="49" class="dado_peq_sem_fundo"> Pesquisa R&aacute;pida:<br>
263 <input type="hidden" name="consultar" id=consultar2 value="Consultar"> 266 <input type="hidden" name="consultar" id=consultar2 value="Consultar">
264 <input type="hidden" name="tipo_consulta" value="consulta_rapida"> 267 <input type="hidden" name="tipo_consulta" value="consulta_rapida">
265 <input size=16 name="string_consulta" type="text" id="string_consulta" value="" class="normal" onFocus="SetaClassDigitacao(this);LigaHelp();" onBlur="SetaClassNormal(this);DesligaHelp();" onKeyUp="VerDesligaHelp();"><a href="javascript:document.forms[0].submit()"><img src=imgs/arvore/totals.gif width="25" height="25" border="0" align="top"></a> 268 <input size=16 name="string_consulta" type="text" id="string_consulta" value="" class="normal" onFocus="SetaClassDigitacao(this);LigaHelp();" onBlur="SetaClassNormal(this);DesligaHelp();" onKeyUp="VerDesligaHelp();"><a href="javascript:document.forms[0].submit()"><img src=imgs/arvore/totals.gif width="25" height="25" border="0" align="top"></a>
266 <br> 269 <br>
267 <input type="text" name="mensagem_pesquisa" id="mensagem_pesquisa" value="" size="25" class="texto_pesquisa" readonly="yes"><br> 270 <input type="text" name="mensagem_pesquisa" id="mensagem_pesquisa" value="" size="25" class="texto_pesquisa" readonly="yes"><br>
268 - </td>  
269 - <td class="dado_peq_sem_fundo"></td>  
270 - </tr>  
271 - </table>  
272 - </form>  
273 - <!-- Final Marisol 24-07-06 -->  
274 -  
275 - <form name="form1" method="post" action="menu_esq.php">  
276 -  
277 - <table border="0" align="center">  
278 - <tr nowrap>  
279 - <?  
280 - if ($_SESSION['id_grupo_usuarios']<>3) // Caso não seja usuário "Convidado" (atribuído automaticamente quando rede e local são identificados)  
281 - { 271 + </td>
  272 + <td class="dado_peq_sem_fundo"></td>
  273 + </tr>
  274 + </table>
  275 + </form>
  276 + <!-- Final Marisol 24-07-06 -->
  277 + <?
  278 + }
282 ?> 279 ?>
  280 + <form name="form1" method="post" action="menu_esq.php">
  281 +
  282 + <table border="0" align="center">
  283 + <tr nowrap>
  284 + <?
  285 + if ($_SESSION['id_grupo_usuarios']<>3) // Caso não seja usuário "Convidado" (atribuído automaticamente quando rede e local são identificados)
  286 + {
  287 + ?>
283 <td nowrap class="label_peq_sem_fundo" valign="bottom">Usu&aacute;rio:</td> 288 <td nowrap class="label_peq_sem_fundo" valign="bottom">Usu&aacute;rio:</td>
284 <td nowrap class="dado_peq_sem_fundo"><div align="left"></div></td> 289 <td nowrap class="dado_peq_sem_fundo"><div align="left"></div></td>
285 </tr> 290 </tr>
menus/menu_adm.txt
@@ -7,13 +7,19 @@ @@ -7,13 +7,19 @@
7 ..Classificar Softwares|admin/softwares/classificacao_software.php|mainFrame|| 7 ..Classificar Softwares|admin/softwares/classificacao_software.php|mainFrame||
8 ..Softwares Não Usados|admin/softwares/remover_softwares_nao_instalados.php|mainFrame|| 8 ..Softwares Não Usados|admin/softwares/remover_softwares_nao_instalados.php|mainFrame||
9 ..Módulos|admin/modulos.php|mainFrame||Configurações dos vários módulos disponíveis do CACIC 9 ..Módulos|admin/modulos.php|mainFrame||Configurações dos vários módulos disponíveis do CACIC
  10 +..<b>Importar Dados</b>||mainFrame|imgs/config_gerais.gif
  11 +...Aquisições|admin/gerencia_licencas/importacao/aquisicoes.php|mainFrame||
  12 +...Aquisições-Item|admin/gerencia_licencas/importacao/aquisicoes_item.php|mainFrame||
  13 +...Softwares|admin/gerencia_licencas/importacao/software.php|mainFrame||
10 ..<b>Cadastros</b>||mainFrame|imgs/config_gerais.gif 14 ..<b>Cadastros</b>||mainFrame|imgs/config_gerais.gif
  15 +...Aquisições|admin/gerencia_licencas/arquivo/aquisicoes.php|mainFrame||
11 ...Locais|admin/locais/index.php|mainFrame||Cadastro de Locais para Controle Centralizado 16 ...Locais|admin/locais/index.php|mainFrame||Cadastro de Locais para Controle Centralizado
12 ...SubRedes|admin/redes/index.php|mainFrame||Cadastro de SubRedes 17 ...SubRedes|admin/redes/index.php|mainFrame||Cadastro de SubRedes
13 ...Perfís Sistemas|admin/perfis_aplicativos_monitorados/index.php|mainFrame||Cadastro de Perfis de Aplicativos Monitorados 18 ...Perfís Sistemas|admin/perfis_aplicativos_monitorados/index.php|mainFrame||Cadastro de Perfis de Aplicativos Monitorados
14 ...Usuários|admin/usuarios/index.php|mainFrame||Cadastro de Perfis de Aplicativos Monitorados 19 ...Usuários|admin/usuarios/index.php|mainFrame||Cadastro de Perfis de Aplicativos Monitorados
15 ...Tipos Softwares|admin/tipos_softwares/index.php|mainFrame|| 20 ...Tipos Softwares|admin/tipos_softwares/index.php|mainFrame||
16 ...Softwares|admin/softwares/index.php|mainFrame|| 21 ...Softwares|admin/softwares/index.php|mainFrame||
  22 +...Softwares por Esta&ccedil;&atilde;o|admin/gerencia_licencas/arquivo/cadastros/frmSoftwaresEstacao.php|mainFrame||
17 ..<b>Patrimônio</b>||mainFrame|imgs/config_gerais.gif 23 ..<b>Patrimônio</b>||mainFrame|imgs/config_gerais.gif
18 ...Interface|admin/patrimonio/config_tela_patrimonio.php|mainFrame||Configuração da Tela de Coleta de Informações de Patrimônio 24 ...Interface|admin/patrimonio/config_tela_patrimonio.php|mainFrame||Configuração da Tela de Coleta de Informações de Patrimônio
19 ...U. O. Nível 1|admin/patrimonio/nivel1/index.php|mainFrame||Cadastro de Unidades Organizacionais de Nível 1 25 ...U. O. Nível 1|admin/patrimonio/nivel1/index.php|mainFrame||Cadastro de Unidades Organizacionais de Nível 1
@@ -32,6 +38,7 @@ @@ -32,6 +38,7 @@
32 ...Inventariados|relatorios/inventario_softwares/index.php|mainFrame|| 38 ...Inventariados|relatorios/inventario_softwares/index.php|mainFrame||
33 ...Licenciados|relatorios/software/licenciados.php|mainFrame|| 39 ...Licenciados|relatorios/software/licenciados.php|mainFrame||
34 ...Permitidos por Órgão|relatorios/software/softwares_orgao.php|mainFrame|| 40 ...Permitidos por Órgão|relatorios/software/softwares_orgao.php|mainFrame||
  41 +...Aquisições|admin/gerencia_licencas/consulta/lista_aquisicoes.php|mainFrame||
35 ...Adquiridos|admin/gerencia_licencas/consulta/lista_softwares.php|mainFrame|| 42 ...Adquiridos|admin/gerencia_licencas/consulta/lista_softwares.php|mainFrame||
36 ...Processos de Compra|admin/gerencia_licencas/consulta/lista_processos.php|mainFrame|| 43 ...Processos de Compra|admin/gerencia_licencas/consulta/lista_processos.php|mainFrame||
37 ...Tipos|relatorios/software/tipos_software.php|mainFrame|| 44 ...Tipos|relatorios/software/tipos_software.php|mainFrame||
@@ -63,4 +70,4 @@ @@ -63,4 +70,4 @@
63 ..Sistemas Monitorados|estatisticas/aplicativos/index.php|mainFrame|| 70 ..Sistemas Monitorados|estatisticas/aplicativos/index.php|mainFrame||
64 .<b>Acesso</b>||mainFrame|imgs/config_gerais.gif 71 .<b>Acesso</b>||mainFrame|imgs/config_gerais.gif
65 ..Troca de Senha|admin/usuarios/troca_senha.php|mainFrame|| 72 ..Troca de Senha|admin/usuarios/troca_senha.php|mainFrame||
66 -.<b>Comunidade CACIC<b>|http://www.softwarepublico.gov.br/|new||Link de Acesso à Home Page da Comunidade CACIC 73 +.<b>HP do Projeto CACIC<b>|http://www.governoeletronico.gov.br/cacic/|new||Link de Acesso à Home Page do Projeto CACIC
67 \ No newline at end of file 74 \ No newline at end of file
menus/menu_com.txt
@@ -5,11 +5,8 @@ @@ -5,11 +5,8 @@
5 .<b>Relatórios</b>||mainFrame|imgs/config_gerais.gif 5 .<b>Relatórios</b>||mainFrame|imgs/config_gerais.gif
6 ..Antivírus OfficeScan|relatorios/antivirus/index.php|mainFrame|| 6 ..Antivírus OfficeScan|relatorios/antivirus/index.php|mainFrame||
7 ..Hardware|relatorios/hardware/index.php|mainFrame|| 7 ..Hardware|relatorios/hardware/index.php|mainFrame||
8 -..Alterações Hardware|relatorios/alteracoes_hardware/index.php|mainFrame||  
9 ..Patrimônio|relatorios/patrimonio/index.php|mainFrame|| 8 ..Patrimônio|relatorios/patrimonio/index.php|mainFrame||
10 ..Softwares Básicos|relatorios/software/index.php|mainFrame|| 9 ..Softwares Básicos|relatorios/software/index.php|mainFrame||
11 -..TCP/IP|relatorios/tcpip/index.php|mainFrame||  
12 -..Variáveis de Ambiente|relatorios/variaveis_ambiente/index.php|mainFrame||  
13 .<b>Acesso</b>||mainFrame|imgs/config_gerais.gif 10 .<b>Acesso</b>||mainFrame|imgs/config_gerais.gif
14 ..Troca de Senha|admin/usuarios/troca_senha.php|mainFrame|| 11 ..Troca de Senha|admin/usuarios/troca_senha.php|mainFrame||
15 -.<b>Comunidade CACIC<b>|http://www.softwarepublico.gov.br/|new||Link de Acesso à Home Page da Comunidade CACIC 12 +.<b>HP do Projeto CACIC<b>|http://www.governoeletronico.gov.br/cacic/|new||Link de Acesso à Home Page do Projeto CACIC
menus/menu_con.txt
1 -.<b>Página Principal<b>|principal.php|mainFrame  
2 -.<b>Computadores</b>||mainFrame|imgs/config_gerais.gif  
3 -..Consulta|relatorios/computadores.php|mainFrame||Consulta de informações de computadores  
4 -..Navegação|relatorios/navegacao.php|mainFrame||Navegação pelos computadores da rede  
5 -.<b>Relatórios</b>||mainFrame|imgs/config_gerais.gif  
6 -..Antivírus OfficeScan|relatorios/antivirus/index.php|mainFrame||  
7 -..Hardware|relatorios/hardware/index.php|mainFrame||  
8 -..Alterações Hardware|relatorios/alteracoes_hardware/index.php|mainFrame||  
9 -..Patrimônio|relatorios/patrimonio/index.php|mainFrame||  
10 -..Softwares Básicos|relatorios/software/index.php|mainFrame||  
11 -..TCP/IP|relatorios/tcpip/index.php|mainFrame||  
12 -..Variáveis de Ambiente|relatorios/variaveis_ambiente/index.php|mainFrame||  
13 -.<b>Estatísticas</b>||mainFrame|imgs/config_gerais.gif  
14 -..Antivírus OfficeScan|estatisticas/officescan.php|mainFrame||  
15 -..Sistemas Monitorados|estatisticas/aplicativos/index.php|mainFrame||  
16 -.<b>Comunidade CACIC<b>|http://www.softwarepublico.gov.br/|new||Link de Acesso à Home Page da Comunidade CACIC 1 +.<b>HP do Projeto CACIC<b>|http://www.governoeletronico.gov.br/cacic/|new||Link de Acesso à Home Page do Projeto CACIC
menus/menu_ini.txt
1 .<b>Página Principal<b>|principal.php|mainFrame 1 .<b>Página Principal<b>|principal.php|mainFrame
2 -.<b>Comunidade CACIC<b>|http://www.softwarepublico.gov.br/|new||Link de Acesso à Home Page da Comunidade CACIC 2 +.<b>HP do Projeto CACIC<b>|http://www.governoeletronico.gov.br/cacic/|new||Link de Acesso à Home Page do Projeto CACIC
menus/menu_rel.txt
@@ -10,4 +10,5 @@ @@ -10,4 +10,5 @@
10 ..Variáveis de Ambiente|relatorios/variaveis_ambiente/index.php|mainFrame|| 10 ..Variáveis de Ambiente|relatorios/variaveis_ambiente/index.php|mainFrame||
11 .<b>Acesso</b>||mainFrame|imgs/config_gerais.gif 11 .<b>Acesso</b>||mainFrame|imgs/config_gerais.gif
12 ..Troca de Senha|admin/usuarios/troca_senha.php|mainFrame|| 12 ..Troca de Senha|admin/usuarios/troca_senha.php|mainFrame||
13 -.<b>Comunidade CACIC<b>|http://www.softwarepublico.gov.br/|new||Link de Acesso à Home Page da Comunidade CACIC 13 +.<b>HP do Projeto CACIC<b>|http://www.governoeletronico.gov.br/cacic/|new||Link de Acesso à Home Page do Projeto CACIC
  14 +
menus/menu_sup.txt
@@ -4,14 +4,18 @@ @@ -4,14 +4,18 @@
4 ..Configurar Agentes|admin/config_agentes.php|mainFrame||Configurações do Módulo Agente 4 ..Configurar Agentes|admin/config_agentes.php|mainFrame||Configurações do Módulo Agente
5 ..Log de Acessos|admin/log_acessos.php|mainFrame||Visualização do Log de Acessos ocorridos no Sistema 5 ..Log de Acessos|admin/log_acessos.php|mainFrame||Visualização do Log de Acessos ocorridos no Sistema
6 ..Log de Atividades|admin/log_atividades.php|mainFrame||Visualização do Log de Atividades(INS/UPD/DEL) do Sistema 6 ..Log de Atividades|admin/log_atividades.php|mainFrame||Visualização do Log de Atividades(INS/UPD/DEL) do Sistema
7 -..Classificar Softwares|admin/softwares/classificacao_software.php|mainFrame||  
8 -..Softwares Não Usados|admin/softwares/remover_softwares_nao_instalados.php|mainFrame||  
9 ..Módulos|admin/modulos.php|mainFrame||Configurações dos vários módulos disponíveis do CACIC 7 ..Módulos|admin/modulos.php|mainFrame||Configurações dos vários módulos disponíveis do CACIC
  8 +..<b>Importar Dados</b>||mainFrame|imgs/config_gerais.gif
  9 +...Aquisições|admin/gerencia_licencas/importacao/aquisicoes.php|mainFrame||
  10 +...Aquisições-Item|admin/gerencia_licencas/importacao/aquisicoes_item.php|mainFrame||
  11 +...Softwares|admin/gerencia_licencas/importacao/software.php|mainFrame||
10 ..<b>Cadastros</b>||mainFrame|imgs/config_gerais.gif 12 ..<b>Cadastros</b>||mainFrame|imgs/config_gerais.gif
  13 +...Aquisições|admin/gerencia_licencas/arquivo/aquisicoes.php|mainFrame||
11 ...Locais|admin/locais/index.php|mainFrame||Cadastro de Locais para Controle Centralizado 14 ...Locais|admin/locais/index.php|mainFrame||Cadastro de Locais para Controle Centralizado
12 ...SubRedes|admin/redes/index.php|mainFrame||Cadastro de SubRedes 15 ...SubRedes|admin/redes/index.php|mainFrame||Cadastro de SubRedes
13 ...Usuários|admin/usuarios/index.php|mainFrame||Cadastro de Perfis de Aplicativos Monitorados 16 ...Usuários|admin/usuarios/index.php|mainFrame||Cadastro de Perfis de Aplicativos Monitorados
14 ...Softwares|admin/softwares/index.php|mainFrame|| 17 ...Softwares|admin/softwares/index.php|mainFrame||
  18 +...Softwares por Esta&ccedil;&atilde;o|admin/gerencia_licencas/arquivo/cadastros/frmSoftwaresEstacao.php|mainFrame||
15 ..<b>Patrimônio</b>||mainFrame|imgs/config_gerais.gif 19 ..<b>Patrimônio</b>||mainFrame|imgs/config_gerais.gif
16 ...Interface|admin/patrimonio/config_tela_patrimonio.php|mainFrame||Configuração da Tela de Coleta de Informações de Patrimônio 20 ...Interface|admin/patrimonio/config_tela_patrimonio.php|mainFrame||Configuração da Tela de Coleta de Informações de Patrimônio
17 ...U. O. Nível 2|admin/patrimonio/nivel2/index.php|mainFrame||Cadastro de Unidades Organizacionais de Nível 2 21 ...U. O. Nível 2|admin/patrimonio/nivel2/index.php|mainFrame||Cadastro de Unidades Organizacionais de Nível 2
@@ -29,6 +33,7 @@ @@ -29,6 +33,7 @@
29 ...Inventariados|relatorios/inventario_softwares/index.php|mainFrame|| 33 ...Inventariados|relatorios/inventario_softwares/index.php|mainFrame||
30 ...Licenciados|relatorios/software/licenciados.php|mainFrame|| 34 ...Licenciados|relatorios/software/licenciados.php|mainFrame||
31 ...Permitidos por Órgão|relatorios/software/softwares_orgao.php|mainFrame|| 35 ...Permitidos por Órgão|relatorios/software/softwares_orgao.php|mainFrame||
  36 +...Aquisições|admin/gerencia_licencas/consulta/lista_aquisicoes.php|mainFrame||
32 ...Adquiridos|admin/gerencia_licencas/consulta/lista_softwares.php|mainFrame|| 37 ...Adquiridos|admin/gerencia_licencas/consulta/lista_softwares.php|mainFrame||
33 ...Processos de Compra|admin/gerencia_licencas/consulta/lista_processos.php|mainFrame|| 38 ...Processos de Compra|admin/gerencia_licencas/consulta/lista_processos.php|mainFrame||
34 ...Tipos|relatorios/software/tipos_software.php|mainFrame|| 39 ...Tipos|relatorios/software/tipos_software.php|mainFrame||
@@ -60,4 +65,4 @@ @@ -60,4 +65,4 @@
60 ..Sistemas Monitorados|estatisticas/aplicativos/index.php|mainFrame|| 65 ..Sistemas Monitorados|estatisticas/aplicativos/index.php|mainFrame||
61 .<b>Acesso</b>||mainFrame|imgs/config_gerais.gif 66 .<b>Acesso</b>||mainFrame|imgs/config_gerais.gif
62 ..Troca de Senha|admin/usuarios/troca_senha.php|mainFrame|| 67 ..Troca de Senha|admin/usuarios/troca_senha.php|mainFrame||
63 -.<b>Comunidade CACIC<b>|http://www.softwarepublico.gov.br/|new||Link de Acesso à Home Page da Comunidade CACIC 68 +.<b>HP do Projeto CACIC<b>|http://www.governoeletronico.gov.br/cacic/|new||Link de Acesso à Home Page do Projeto CACIC
64 \ No newline at end of file 69 \ No newline at end of file
menus/menu_tec.txt
@@ -14,4 +14,4 @@ @@ -14,4 +14,4 @@
14 ..Sistemas Monitorados|estatisticas/aplicativos/index.php|mainFrame|| 14 ..Sistemas Monitorados|estatisticas/aplicativos/index.php|mainFrame||
15 .<b>Acesso</b>||mainFrame|imgs/config_gerais.gif 15 .<b>Acesso</b>||mainFrame|imgs/config_gerais.gif
16 ..Troca de Senha|admin/usuarios/troca_senha.php|mainFrame|| 16 ..Troca de Senha|admin/usuarios/troca_senha.php|mainFrame||
17 -.<b>Comunidade CACIC<b>|http://www.softwarepublico.gov.br/|new||Link de Acesso à Home Page da Comunidade CACIC 17 +.<b>HP do Projeto CACIC<b>|http://www.governoeletronico.gov.br/cacic/|new||Link de Acesso à Home Page do Projeto CACIC
@@ -100,6 +100,31 @@ else @@ -100,6 +100,31 @@ else
100 <tr> 100 <tr>
101 <td height="1" bgcolor="#e7e7e7"></td> 101 <td height="1" bgcolor="#e7e7e7"></td>
102 </tr> 102 </tr>
  103 + <tr>
  104 + <td>&nbsp;</td>
  105 + </tr>
  106 + <tr>
  107 + <td>
  108 + <?
  109 + if ($_SESSION["cs_nivel_administracao"] <> 0)
  110 + {
  111 + echo '<a href="relatorios/software/rel_software.php?orderby=6&principal=1">';
  112 + }
  113 + echo '<img src="graficos/pie_acessos_locais.php?cs_nivel_administracao='.$_SESSION["cs_nivel_administracao"].'&id_local='.$_SESSION['id_local'].'" border="no">';
  114 + if ($_SESSION["cs_nivel_administracao"] <> 0)
  115 + {
  116 + echo '</a>';
  117 + }
  118 + ?>
  119 + </td>
  120 + </tr>
  121 + <tr>
  122 + <td class="descricao"><div align="center">Distribui&ccedil;&atilde;o por acesso dos agentes por local nesta data</div></td>
  123 + </tr>
  124 + <tr>
  125 + <td height="1" bgcolor="#e7e7e7"></td>
  126 + </tr>
  127 +
103 <tr> 128 <tr>
104 <td>&nbsp;</td> 129 <td>&nbsp;</td>
105 </tr> 130 </tr>
relatorios/alteracoes_hard.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 require_once('../include/library.php'); 17 require_once('../include/library.php');
25 // Comentado temporariamente - AntiSpy(); 18 // Comentado temporariamente - AntiSpy();
26 conecta_bd_cacic(); 19 conecta_bd_cacic();
relatorios/alteracoes_hardware/index.php
@@ -16,18 +16,10 @@ @@ -16,18 +16,10 @@
16 16
17 // Essa variável é usada pelo arquivo de include selecao_redes_inc.php e inicio_relatorios_inc.php. 17 // Essa variável é usada pelo arquivo de include selecao_redes_inc.php e inicio_relatorios_inc.php.
18 session_start(); 18 session_start();
19 -/*  
20 - * verifica se houve login e também as permissões de usuário  
21 - */  
22 -if(!isset($_SESSION['id_usuario']))  
23 - die('Acesso negado!');  
24 -else { // Inserir regras para verificar permissões do usuário!  
25 -}  
26 -  
27 $id_acao = 'cs_coleta_hardware'; 19 $id_acao = 'cs_coleta_hardware';
28 require_once('../../include/inicio_relatorios_inc.php'); 20 require_once('../../include/inicio_relatorios_inc.php');
29 ?> 21 ?>
30 - <script src="../../include/sniffer.js" type="text/javascript" language="javascript"></script> 22 + <script src="../../sniffer.js" type="text/javascript" language="javascript"></script>
31 <script src="../../include/dyncalendar.js" type="text/javascript" language="javascript"></script> 23 <script src="../../include/dyncalendar.js" type="text/javascript" language="javascript"></script>
32 <link href="../../include/dyncalendar.css" media="screen" rel="stylesheet"> 24 <link href="../../include/dyncalendar.css" media="screen" rel="stylesheet">
33 25
relatorios/alteracoes_hardware/rel_alteracoes_hardware.php
@@ -14,14 +14,6 @@ @@ -14,14 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 -  
25 17
26 if($_POST['submit']) 18 if($_POST['submit'])
27 { 19 {
relatorios/alteracoes_software/index.php
@@ -17,7 +17,7 @@ Caminho do css @@ -17,7 +17,7 @@ Caminho do css
17 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 17 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
18 Livre(FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 Livre(FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 */ 19 */
20 -#require $_SERVER['DOCUMENT_ROOT'] . '/cacic2/verificar.php'; 20 +require $_SERVER['DOCUMENT_ROOT'] . '/cacic2/verificar.php';
21 21
22 if ($_POST['submit']) { 22 if ($_POST['submit']) {
23 header ("Location: incluir_grupos.php"); 23 header ("Location: incluir_grupos.php");
@@ -126,7 +126,7 @@ $resultR = mysql_query($queryR); @@ -126,7 +126,7 @@ $resultR = mysql_query($queryR);
126 <html> 126 <html>
127 <head> 127 <head>
128 <link rel="stylesheet" type="text/css" href="../../include/cacic.css"> 128 <link rel="stylesheet" type="text/css" href="../../include/cacic.css">
129 -<title>Relatório de alterações de sofware</title> 129 +<title>Cadastro de Grupos</title>
130 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 130 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
131 <script> 131 <script>
132 function mudapagina(valor4,valor,valor1,valor3,valor2,valor5) 132 function mudapagina(valor4,valor,valor1,valor3,valor2,valor5)
@@ -174,10 +174,9 @@ function limpa(){ @@ -174,10 +174,9 @@ function limpa(){
174 document.forma.palavra.value=''; 174 document.forma.palavra.value='';
175 } 175 }
176 </script> 176 </script>
177 -  
178 -<script src="../../include/sniffer.js" type="text/javascript" language="javascript"></script>  
179 -<script src="../../include/dyncalendar.js" type="text/javascript" language="javascript"></script>  
180 -<link href="../../include/dyncalendar.css" media="screen" rel="stylesheet"> 177 + <script src="/cacic2/include/sniffer.js" type="text/javascript" language="javascript"></script>
  178 + <script src="/cacic2/include/dyncalendar.js" type="text/javascript" language="javascript"></script>
  179 + <link href="/cacic2/include/dyncalendar.css" media="screen" rel="stylesheet">
181 </head> 180 </head>
182 181
183 <body background="../../imgs/linha_v.gif"> 182 <body background="../../imgs/linha_v.gif">
relatorios/alteracoes_software/rel_alteracoes_software.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 17
25 if($_POST['submit']) { 18 if($_POST['submit']) {
26 $_SESSION["list2"] = $_POST['list2']; 19 $_SESSION["list2"] = $_POST['list2'];
relatorios/antivirus/index.php
1 <? 1 <?
2 /* 2 /*
3 - Copyright 2000, 2001, 2002, 2003, 2004, 2005 Dataprev - Empresa de Tecnologia e Informa�es da Previd�cia Social, Brasil 3 + Copyright 2000, 2001, 2002, 2003, 2004, 2005 Dataprev - Empresa de Tecnologia e Informações da Previdência Social, Brasil
4 4
5 - Este arquivo �parte do programa CACIC - Configurador Autom�ico e Coletor de Informa�es Computacionais 5 + Este arquivo é parte do programa CACIC - Configurador Automático e Coletor de Informações Computacionais
6 6
7 - O CACIC �um software livre; voc�pode redistribui-lo e/ou modifica-lo dentro dos termos da Licen� Pblica Geral GNU como  
8 - publicada pela Funda�o do Software Livre (FSF); na vers� 2 da Licen�, ou (na sua opni�) qualquer vers�. 7 + O CACIC é um software livre; você pode redistribui-lo e/ou modifica-lo dentro dos termos da Licença Pública Geral GNU como
  8 + publicada pela Fundação do Software Livre (FSF); na versão 2 da Licença, ou (na sua opnião) qualquer versão.
9 9
10 - Este programa �distribuido na esperan� que possa ser util, mas SEM NENHUMA GARANTIA; sem uma garantia implicita de ADEQUA�O a qualquer  
11 - MERCADO ou APLICA�O EM PARTICULAR. Veja a Licen� Pblica Geral GNU para maiores detalhes. 10 + Este programa é distribuido na esperança que possa ser util, mas SEM NENHUMA GARANTIA; sem uma garantia implicita de ADEQUAÇÂO a qualquer
  11 + MERCADO ou APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU para maiores detalhes.
12 12
13 - Voc�deve ter recebido uma c�ia da Licen� Pblica Geral GNU, sob o t�ulo "LICENCA.txt", junto com este programa, se n�, 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 - // Essa vari�el �usada pelo arquivo de include selecao_redes_inc.php e inicio_relatorios_inc.php. 16 + // Essa variável é usada pelo arquivo de include selecao_redes_inc.php e inicio_relatorios_inc.php.
17 $id_acao = 'cs_coleta_officescan'; 17 $id_acao = 'cs_coleta_officescan';
18 require_once('../../include/inicio_relatorios_inc.php'); 18 require_once('../../include/inicio_relatorios_inc.php');
19 ?> 19 ?>
@@ -76,7 +76,7 @@ @@ -76,7 +76,7 @@
76 sg_local 76 sg_local
77 FROM locais 77 FROM locais
78 ORDER BY sg_local"; 78 ORDER BY sg_local";
79 - $result = mysql_query($query) or die('Erro na consulta �tabela "locais".'); 79 + $result = mysql_query($query) or die('Erro na consulta à tabela "locais".');
80 while ($row = mysql_fetch_array($result)) 80 while ($row = mysql_fetch_array($result))
81 { 81 {
82 echo '<option value=' . $row['id_local'] . '>' . $row["sg_local"] . '</option>'; 82 echo '<option value=' . $row['id_local'] . '>' . $row["sg_local"] . '</option>';
@@ -141,9 +141,9 @@ @@ -141,9 +141,9 @@
141 do Engine</option> 141 do Engine</option>
142 <option value=", nu_versao_pattern as &quot;Vers&atilde;o Pattern&quot;">Vers&atilde;o 142 <option value=", nu_versao_pattern as &quot;Vers&atilde;o Pattern&quot;">Vers&atilde;o
143 do Pattern</option> 143 do Pattern</option>
144 - <option value=", DATE_FORMAT(dt_hr_instalacao,'%d/%m/%Y � %H:%ih') as &quot;Data/Hora Instala&ccedil;&atilde;o&quot;">Data/Hora 144 + <option value=", DATE_FORMAT(dt_hr_instalacao,'%d/%m/%Y às %H:%ih') as &quot;Data/Hora Instala&ccedil;&atilde;o&quot;">Data/Hora
145 Instala&ccedil;&atilde;o</option> 145 Instala&ccedil;&atilde;o</option>
146 - <option value=", DATE_FORMAT(dt_hr_coleta,'%d/%m/%Y � %H:%ih') as &quot;Data/Hora &Uacute;ltima Coleta&quot;">Data/Hora 146 + <option value=", DATE_FORMAT(dt_hr_coleta,'%d/%m/%Y às %H:%ih') as &quot;Data/Hora &Uacute;ltima Coleta&quot;">Data/Hora
147 &Uacute;ltima Coleta</option> 147 &Uacute;ltima Coleta</option>
148 <option value=", te_servidor as &quot;Servidor&quot;">Endere&ccedil;o 148 <option value=", te_servidor as &quot;Servidor&quot;">Endere&ccedil;o
149 Servidor</option> 149 Servidor</option>
@@ -238,7 +238,7 @@ @@ -238,7 +238,7 @@
238 ?> 238 ?>
239 239
240 <tr> 240 <tr>
241 - <td valign="top"> 241 + <td valign="top">
242 <? $v_require = '../../include/' .($_SESSION['cs_nivel_administracao']<>1 && $_SESSION['cs_nivel_administracao']<>2?'selecao_redes_inc.php':'selecao_locais_inc.php'); 242 <? $v_require = '../../include/' .($_SESSION['cs_nivel_administracao']<>1 && $_SESSION['cs_nivel_administracao']<>2?'selecao_redes_inc.php':'selecao_locais_inc.php');
243 require_once($v_require); 243 require_once($v_require);
244 ?> 244 ?>
relatorios/antivirus/rel_antivirus.php
1 <? session_start(); 1 <? session_start();
2 -/*  
3 - * verifica se houve login e tamb� as permiss�s de usu�io  
4 - */  
5 -if(!isset($_SESSION['id_usuario']))  
6 - die('Acesso negado!');  
7 -else { // Inserir regras para verificar permiss�s do usu�io!  
8 -}  
9 -  
10 if($_POST['submit']) { 2 if($_POST['submit']) {
11 $_SESSION["list2"] = $_POST['list2']; 3 $_SESSION["list2"] = $_POST['list2'];
12 $_SESSION["list4"] = $_POST['list4']; 4 $_SESSION["list4"] = $_POST['list4'];
@@ -47,7 +39,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0 @@ -47,7 +39,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0
47 </tr> 39 </tr>
48 <tr> 40 <tr>
49 <td><p align="left"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Gerado 41 <td><p align="left"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Gerado
50 - em <? echo date("d/m/Y �s H:i\h"); ?></font></p></td> 42 + em <? echo date("d/m/Y à\s H:i\h"); ?></font></p></td>
51 </tr> 43 </tr>
52 </table> 44 </table>
53 <br> 45 <br>
@@ -64,25 +56,18 @@ if ($_SESSION[&#39;cs_nivel_administracao&#39;]&lt;&gt;1 &amp;&amp; $_SESSION[&#39;cs_nivel_administracao&#39; @@ -64,25 +56,18 @@ if ($_SESSION[&#39;cs_nivel_administracao&#39;]&lt;&gt;1 &amp;&amp; $_SESSION[&#39;cs_nivel_administracao&#39;
64 { 56 {
65 if($_SESSION["cs_situacao"] == 'S') 57 if($_SESSION["cs_situacao"] == 'S')
66 { 58 {
67 - // Aqui pego todas as redes selecionadas e fa� uma query p/ condi�o de redes 59 + // Aqui pego todas as redes selecionadas e faço uma query p/ condição de redes
68 $redes_selecionadas = "'" . $_SESSION["list2"][0] . "'"; 60 $redes_selecionadas = "'" . $_SESSION["list2"][0] . "'";
69 for( $i = 1; $i < count($_SESSION["list2"] ); $i++ ) 61 for( $i = 1; $i < count($_SESSION["list2"] ); $i++ )
70 { 62 {
71 $redes_selecionadas = $redes_selecionadas . ",'" . $_SESSION["list2"][$i] . "'"; 63 $redes_selecionadas = $redes_selecionadas . ",'" . $_SESSION["list2"][$i] . "'";
72 } 64 }
73 - $query_redes = 'AND id_ip_rede IN ('. $redes_selecionadas .')';  
74 } 65 }
75 - else  
76 - {  
77 - $query_redes = 'AND computadores.id_ip_rede = redes.id_ip_rede AND  
78 - redes.id_local = '.$_SESSION['id_local'];  
79 - $from = ' ,redes ';  
80 -  
81 - }  
82 -} 66 + $query_redes = 'AND id_ip_rede IN ('. $redes_selecionadas .')';
  67 + }
83 else 68 else
84 { 69 {
85 - // Aqui pego todos os locais selecionados e fa� uma query p/ condi�o de redes/locais 70 + // Aqui pego todos os locais selecionados e faço uma query p/ condição de redes/locais
86 $locais_selecionados = "'" . $_SESSION["list12"][0] . "'"; 71 $locais_selecionados = "'" . $_SESSION["list12"][0] . "'";
87 for( $i = 1; $i < count($_SESSION["list12"] ); $i++ ) 72 for( $i = 1; $i < count($_SESSION["list12"] ); $i++ )
88 { 73 {
@@ -101,11 +86,11 @@ for( $i = 1; $i &lt; count($_SESSION[&quot;list4&quot;] ); $i++ ) { @@ -101,11 +86,11 @@ for( $i = 1; $i &lt; count($_SESSION[&quot;list4&quot;] ); $i++ ) {
101 $so_selecionados = $so_selecionados . ",'" . $_SESSION["list4"][$i] . "'"; 86 $so_selecionados = $so_selecionados . ",'" . $_SESSION["list4"][$i] . "'";
102 } 87 }
103 88
104 -// Aqui pego todas as configura�es de hardware que deseja exibir 89 +// Aqui pego todas as configurações de hardware que deseja exibir
105 for( $i = 0; $i < count($_SESSION["list6"] ); $i++ ) { 90 for( $i = 0; $i < count($_SESSION["list6"] ); $i++ ) {
106 $campos_software = $campos_software . $_SESSION["list6"][$i]; 91 $campos_software = $campos_software . $_SESSION["list6"][$i];
107 } 92 }
108 -// Aqui substitui todas as strings \ por vazio que a vari�el $campos_hardware retorna 93 +// Aqui substitui todas as strings \ por vazio que a variável $campos_hardware retorna
109 $campos_software = str_replace('\\', '', $campos_software); 94 $campos_software = str_replace('\\', '', $campos_software);
110 95
111 if ($_GET['orderby']) { $orderby = $_GET['orderby']; } 96 if ($_GET['orderby']) { $orderby = $_GET['orderby']; }
@@ -119,17 +104,14 @@ $query = &#39;SELECT distinct computadores.te_node_address, @@ -119,17 +104,14 @@ $query = &#39;SELECT distinct computadores.te_node_address,
119 te_ip as "IP"' . 104 te_ip as "IP"' .
120 $campos_software . 105 $campos_software .
121 $select . ' 106 $select . '
122 - FROM so,  
123 - officescan  
124 - LEFT JOIN computadores ON (computadores.te_node_address = officescan.te_node_address and computadores.id_so = officescan.id_so) '. 107 + FROM computadores,
  108 + so LEFT JOIN officescan ON (computadores.te_node_address = officescan.te_node_address and computadores.id_so = officescan.id_so) '.
125 $from. ' 109 $from. '
126 WHERE TRIM(computadores.te_nome_computador) <> "" AND 110 WHERE TRIM(computadores.te_nome_computador) <> "" AND
127 computadores.id_so = so.id_so AND 111 computadores.id_so = so.id_so AND
128 computadores.id_so IN ('. $so_selecionados .')'. 112 computadores.id_so IN ('. $so_selecionados .')'.
129 $query_redes .' 113 $query_redes .'
130 ORDER BY ' . $orderby; 114 ORDER BY ' . $orderby;
131 -  
132 -//echo $query;  
133 $result = mysql_query($query) or die('Erro no select'); 115 $result = mysql_query($query) or die('Erro no select');
134 116
135 $cor = 0; 117 $cor = 0;
@@ -166,7 +148,7 @@ while ($row = mysql_fetch_row($result)) { //Table body @@ -166,7 +148,7 @@ while ($row = mysql_fetch_row($result)) { //Table body
166 echo '</table><br><br>'; 148 echo '</table><br><br>';
167 if (count($_SESSION["list8"])>0) 149 if (count($_SESSION["list8"])>0)
168 { 150 {
169 - $v_opcao = 'antivirus'; // Nome do pie que ser�chamado por tabela_estatisticas 151 + $v_opcao = 'antivirus'; // Nome do pie que será chamado por tabela_estatisticas
170 require_once('../../include/tabela_estatisticas.php'); 152 require_once('../../include/tabela_estatisticas.php');
171 } 153 }
172 ?></p> 154 ?></p>
relatorios/compartilhamentos/rel_compartilhamentos.php
@@ -6,13 +6,6 @@ As modificações foram feitas por Emerson Pellis (epellis@unerj.br). @@ -6,13 +6,6 @@ As modificações foram feitas por Emerson Pellis (epellis@unerj.br).
6 */ 6 */
7 ?> 7 ?>
8 <? session_start(); 8 <? session_start();
9 -/*  
10 - * verifica se houve login e também as permissões de usuário  
11 - */  
12 -if(!isset($_SESSION['id_usuario']))  
13 - die('Acesso negado!');  
14 -else { // Inserir regras para verificar permissões do usuário!  
15 -}  
16 9
17 if($_POST['submit']) { 10 if($_POST['submit']) {
18 $_SESSION["list2"] = $_POST['list2']; 11 $_SESSION["list2"] = $_POST['list2'];
@@ -35,7 +28,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0 @@ -35,7 +28,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0
35 } 28 }
36 //--> 29 //-->
37 </script> 30 </script>
38 -<link rel="stylesheet" type="text/css" href="../../include/cacic.css"> 31 +<link rel="stylesheet" type="text/css" href="/cacic2/include/cacic.css">
39 <style type="text/css"> 32 <style type="text/css">
40 TR {font-size:10pt ; font-family: Verdana, Arial} 33 TR {font-size:10pt ; font-family: Verdana, Arial}
41 </style> 34 </style>
@@ -66,7 +59,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0 @@ -66,7 +59,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0
66 <br> 59 <br>
67 <br> 60 <br>
68 <? 61 <?
69 -require_once('../../include/library.php'); 62 +require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php');
70 conecta_bd_cacic(); 63 conecta_bd_cacic();
71 64
72 $redes_selecionadas = ''; 65 $redes_selecionadas = '';
@@ -139,7 +132,7 @@ $query = &quot;SELECT DISTINCT compartilhamentos.id_so, @@ -139,7 +132,7 @@ $query = &quot;SELECT DISTINCT compartilhamentos.id_so,
139 nm_dir_compart <> '' 132 nm_dir_compart <> ''
140 $query_redes 133 $query_redes
141 ORDER BY computadores.te_nome_computador ASC "; 134 ORDER BY computadores.te_nome_computador ASC ";
142 -//echo $query . '<br>'; 135 +echo $query . '<br>';
143 $resultado = mysql_query($query) or die('Erro no select '. mysql_error()); 136 $resultado = mysql_query($query) or die('Erro no select '. mysql_error());
144 137
145 while ($linha = mysql_fetch_array($resultado)) 138 while ($linha = mysql_fetch_array($resultado))
@@ -208,22 +201,22 @@ while ($linha = mysql_fetch_array($resultado)) @@ -208,22 +201,22 @@ while ($linha = mysql_fetch_array($resultado))
208 while($row = mysql_fetch_assoc($result_compartilhamento)) { 201 while($row = mysql_fetch_assoc($result_compartilhamento)) {
209 $img_alerta == '&nbsp;'; 202 $img_alerta == '&nbsp;';
210 if ($row['cs_tipo_compart'] == 'D') 203 if ($row['cs_tipo_compart'] == 'D')
211 - $tipo_compart = '<img src="../../imgs/compart_dir.gif" title="Compartilhamento de Diretório">'; 204 + $tipo_compart = '<img src="/cacic2/imgs/compart_dir.gif" title="Compartilhamento de Diretório">';
212 else 205 else
213 - $tipo_compart = '<img src="../../imgs/compart_print.gif" title="Compartilhamento de Impressora">'; 206 + $tipo_compart = '<img src="/cacic2/imgs/compart_print.gif" title="Compartilhamento de Impressora">';
214 207
215 if( $row['in_senha_leitura'] == 1 ) 208 if( $row['in_senha_leitura'] == 1 )
216 - $senha_leitura = '<img src="../../imgs/checked.gif">'; 209 + $senha_leitura = '<img src="/cacic2/imgs/checked.gif">';
217 else { 210 else {
218 - $senha_leitura = '<img src="../../imgs/unchecked.gif">';  
219 - $img_alerta = '<img src="../../imgs/alerta_amarelo.gif" title="Risco Médio: Privacidade" width="8" height="8">'; 211 + $senha_leitura = '<img src="/cacic2/imgs/unchecked.gif">';
  212 + $img_alerta = '<img src="/cacic2/imgs/alerta_amarelo.gif" title="Risco Médio: Privacidade" width="8" height="8">';
220 } 213 }
221 214
222 if( $row['in_senha_escrita'] == 1 ) 215 if( $row['in_senha_escrita'] == 1 )
223 - $senha_escrita = '<img src="../../imgs/checked.gif">'; 216 + $senha_escrita = '<img src="/cacic2/imgs/checked.gif">';
224 else { 217 else {
225 - $senha_escrita = '<img src="../../imgs/unchecked.gif">';  
226 - $img_alerta = '<img src="../../imgs/alerta_vermelho.gif" title="Risco Alto: Integridade e Privacidade" width="8" height="8">'; 218 + $senha_escrita = '<img src="/cacic2/imgs/unchecked.gif">';
  219 + $img_alerta = '<img src="/cacic2/imgs/alerta_vermelho.gif" title="Risco Alto: Integridade e Privacidade" width="8" height="8">';
227 } 220 }
228 221
229 if( $row['cs_tipo_permissao'] == 'L' ) 222 if( $row['cs_tipo_permissao'] == 'L' )
@@ -249,9 +242,9 @@ while ($linha = mysql_fetch_array($resultado)) @@ -249,9 +242,9 @@ while ($linha = mysql_fetch_array($resultado))
249 $result_compartilhamento = mysql_query($query); 242 $result_compartilhamento = mysql_query($query);
250 while($row = mysql_fetch_assoc($result_compartilhamento)) { 243 while($row = mysql_fetch_assoc($result_compartilhamento)) {
251 if ($row['cs_tipo_compart'] == 'D') 244 if ($row['cs_tipo_compart'] == 'D')
252 - $tipo_compart = '<img src="../../imgs/compart_dir.gif" title="Compartilhamento de Diretório">'; 245 + $tipo_compart = '<img src="/cacic2/imgs/compart_dir.gif" title="Compartilhamento de Diretório">';
253 else 246 else
254 - $tipo_compart = '<img src="../../imgs/compart_print.gif" title="Compartilhamento de Impressora">'; 247 + $tipo_compart = '<img src="/cacic2/imgs/compart_print.gif" title="Compartilhamento de Impressora">';
255 248
256 echo '<tr> 249 echo '<tr>
257 <td nowrap class="dado">&nbsp;'. $row['nm_compartilhamento'] .'</td> 250 <td nowrap class="dado">&nbsp;'. $row['nm_compartilhamento'] .'</td>
relatorios/computador/com_modem.php
1 <? 1 <?
2 session_start(); 2 session_start();
3 -/*  
4 - * verifica se houve login e também as permissões de usuário  
5 - */  
6 -if(!isset($_SESSION['id_usuario']))  
7 - die('Acesso negado!');  
8 -else { // Inserir regras para verificar permissões do usuário!  
9 -}  
10 -  
11 //Mostrar computadores com nomes repetidos na base 3 //Mostrar computadores com nomes repetidos na base
12 require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php'); 4 require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php');
13 ?> 5 ?>
relatorios/computador/computador.php
@@ -14,14 +14,6 @@ @@ -14,14 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 -  
25 ?> 17 ?>
26 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 18 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
27 <html> 19 <html>
relatorios/computador/computador_antes_alteracao.php
1 <? 1 <?
2 session_start(); 2 session_start();
3 -/*  
4 - * verifica se houve login e também as permissões de usuário  
5 - */  
6 -if(!isset($_SESSION['id_usuario']))  
7 - die('Acesso negado!');  
8 -else { // Inserir regras para verificar permissões do usuário!  
9 -}  
10 -  
11 -require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php'); 3 +require_once($_SERVER['DOCUMENT_ROOT'] . 'include/library.php');
12 conecta_bd_cacic(); 4 conecta_bd_cacic();
13 $query = "SELECT * FROM computadores, so 5 $query = "SELECT * FROM computadores, so
14 WHERE te_node_address = '". $_GET['te_node_address'] ."' AND 6 WHERE te_node_address = '". $_GET['te_node_address'] ."' AND
relatorios/computador/computadores_ibm.php
1 <? 1 <?
2 session_start(); 2 session_start();
3 -/*  
4 - * verifica se houve login e também as permissões de usuário  
5 - */  
6 -if(!isset($_SESSION['id_usuario']))  
7 - die('Acesso negado!');  
8 -else { // Inserir regras para verificar permissões do usuário!  
9 -}  
10 -  
11 //Mostrar computadores com nomes repetidos na base 3 //Mostrar computadores com nomes repetidos na base
12 require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php'); 4 require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php');
13 ?> 5 ?>
relatorios/computador/historico.php
@@ -19,7 +19,6 @@ require_once(&#39;../../include/library.php&#39;); @@ -19,7 +19,6 @@ require_once(&#39;../../include/library.php&#39;);
19 // Comentado temporariamente - AntiSpy(); 19 // Comentado temporariamente - AntiSpy();
20 conecta_bd_cacic(); 20 conecta_bd_cacic();
21 21
22 -  
23 if ($historico_hardware) { 22 if ($historico_hardware) {
24 $query = "SELECT DATE_FORMAT(dt_hr_alteracao,'%d/%m/%Y às %H:%ih') as 'Data de Alteração',dt_hr_alteracao, te_placa_rede_desc as 'Placa de Rede', 23 $query = "SELECT DATE_FORMAT(dt_hr_alteracao,'%d/%m/%Y às %H:%ih') as 'Data de Alteração',dt_hr_alteracao, te_placa_rede_desc as 'Placa de Rede',
25 te_cpu_desc as 'CPU', te_cpu_freq as 'Frequência CPU', te_cpu_fabricante as 'Fab. CPU', 24 te_cpu_desc as 'CPU', te_cpu_freq as 'Frequência CPU', te_cpu_fabricante as 'Fab. CPU',
@@ -38,30 +37,29 @@ if ($historico_hardware) { @@ -38,30 +37,29 @@ if ($historico_hardware) {
38 $tipo_historico = 'de Hardware'; 37 $tipo_historico = 'de Hardware';
39 } 38 }
40 else if ($historico_patrimonio) { 39 else if ($historico_patrimonio) {
41 - $query = "SELECT te_etiqueta, nm_campo_tab_patrimonio  
42 - FROM patrimonio_config_interface  
43 - WHERE in_exibir_etiqueta = 'S' AND id_local = '". $_POST['id_local'] ."'";  
44 -  
45 - $result = mysql_query($query) or die('Erro na consulta à tabela "patrimonio_config_interface".'); 40 + $query = "SELECT te_etiqueta, nm_campo_tab_patrimonio
  41 + FROM patrimonio_config_interface
  42 + WHERE in_exibir_etiqueta = 'S'";
  43 + $result = mysql_query($query) or die('Erro na consulta à tabela "patrimonio_config_interface".');
46 44
47 - while ($row = mysql_fetch_array($result)) {  
48 - if (strtolower($row['nm_campo_tab_patrimonio']) == 'id_unid_organizacional_nivel1' ) {  
49 - $row['nm_campo_tab_patrimonio'] = 'b.nm_unid_organizacional_nivel1';  
50 - }  
51 - else if (strtolower($row['nm_campo_tab_patrimonio']) == 'id_unid_organizacional_nivel2' ) {  
52 - $row['nm_campo_tab_patrimonio'] = 'c.nm_unid_organizacional_nivel2';  
53 - }  
54 - $campos = $campos . ", " . $row['nm_campo_tab_patrimonio'] . " AS '" . $row["te_etiqueta"] . "'";  
55 - } 45 + while ($row = mysql_fetch_array($result)) {
  46 + if (strtolower($row['nm_campo_tab_patrimonio']) == 'id_unid_organizacional_nivel1' ) {
  47 + $row['nm_campo_tab_patrimonio'] = 'b.nm_unid_organizacional_nivel1';
  48 + }
  49 + else if (strtolower($row['nm_campo_tab_patrimonio']) == 'id_unid_organizacional_nivel2' ) {
  50 + $row['nm_campo_tab_patrimonio'] = 'c.nm_unid_organizacional_nivel2';
  51 + }
  52 + $campos = $campos . ", " . $row['nm_campo_tab_patrimonio'] . " AS '" . $row["te_etiqueta"] . "'";
  53 + }
56 54
57 - $query = "SELECT DATE_FORMAT(dt_hr_alteracao,'%d/%m/%Y às %H:%ih') as 'Data de Alteração',dt_hr_alteracao " . $campos . "  
58 - FROM patrimonio a, unid_organizacional_nivel1 b, unid_organizacional_nivel2 c  
59 - WHERE a.te_node_address = '" . $_POST['te_node_address'] . "' AND  
60 - a.id_so = '" . $_POST['id_so'] . "' AND  
61 - a.id_unid_organizacional_nivel1 = b.id_unid_organizacional_nivel1 AND  
62 - a.id_unid_organizacional_nivel1 = c.id_unid_organizacional_nivel1 AND  
63 - a.id_unid_organizacional_nivel2 = c.id_unid_organizacional_nivel2  
64 - ORDER BY dt_hr_alteracao"; 55 + $query = "SELECT DATE_FORMAT(dt_hr_alteracao,'%d/%m/%Y às %H:%ih') as 'Data de Alteração',dt_hr_alteracao " . $campos . "
  56 + FROM patrimonio a, unid_organizacional_nivel1 b, unid_organizacional_nivel2 c
  57 + WHERE a.te_node_address = '" . $_POST['te_node_address'] . "' AND
  58 + a.id_so = '" . $_POST['id_so'] . "' AND
  59 + a.id_unid_organizacional_nivel1 = b.id_unid_organizacional_nivel1 AND
  60 + a.id_unid_organizacional_nivel1 = c.id_unid_organizacional_nivel1 AND
  61 + a.id_unid_organizacional_nivel2 = c.id_unid_organizacional_nivel2
  62 + ORDER BY dt_hr_alteracao";
65 63
66 $result = mysql_query($query) or die ('Erro na consulta à tabela "patrimonio".'); 64 $result = mysql_query($query) or die ('Erro na consulta à tabela "patrimonio".');
67 $tipo_historico = 'de Patrimônio'; 65 $tipo_historico = 'de Patrimônio';
relatorios/computador/historico_desatualizado.php
1 <? 1 <?
2 session_start(); 2 session_start();
3 -/*  
4 - * verifica se houve login e também as permissões de usuário  
5 - */  
6 -if(!isset($_SESSION['id_usuario']))  
7 - die('Acesso negado!');  
8 -else { // Inserir regras para verificar permissões do usuário!  
9 -}  
10 -  
11 //Mostrar computadores com nomes repetidos na base 3 //Mostrar computadores com nomes repetidos na base
12 require_once('../../include/library.php'); 4 require_once('../../include/library.php');
13 ?> 5 ?>
relatorios/computador/inc_patrimonio.php
@@ -45,40 +45,41 @@ else @@ -45,40 +45,41 @@ else
45 </tr> 45 </tr>
46 <? // EXIBIR INFORMAÇÕES DE PATRIMÔNIO DO COMPUTADOR 46 <? // EXIBIR INFORMAÇÕES DE PATRIMÔNIO DO COMPUTADOR
47 if ($_SESSION['patrimonio'] == true) 47 if ($_SESSION['patrimonio'] == true)
48 - {  
49 - $query = "SELECT id_local, cs_situacao  
50 - FROM acoes_redes  
51 - WHERE id_acao = 'cs_coleta_patrimonio' AND  
52 - id_ip_rede = '".mysql_result($result,0,'id_ip_rede')."'"; 48 + {
  49 + $query = "SELECT cs_situacao
  50 + FROM acoes_redes
  51 + WHERE id_acao = 'cs_coleta_patrimonio' AND
  52 + id_ip_rede = '".mysql_result($result,0,'id_ip_rede')."'";
53 53
54 - $result_acoes = mysql_query($query);  
55 - if (@mysql_result($result_acoes, 0, "cs_situacao") <> 'N')  
56 - {  
57 - $query = "SELECT a.*,  
58 - b.nm_unid_organizacional_nivel1,  
59 - c.nm_unid_organizacional_nivel2  
60 - FROM patrimonio a,  
61 - unid_organizacional_nivel1 b,  
62 - unid_organizacional_nivel2 c  
63 - WHERE a.te_node_address = '". $_GET['te_node_address'] ."' AND  
64 - a.id_so = '". $_GET['id_so'] ."' and  
65 - a.id_unid_organizacional_nivel1 = b.id_unid_organizacional_nivel1 and  
66 - a.id_unid_organizacional_nivel1 = c.id_unid_organizacional_nivel1 and  
67 - a.id_unid_organizacional_nivel2 = c.id_unid_organizacional_nivel2  
68 - ORDER BY dt_hr_alteracao desc limit 1"; 54 + $result_acoes = mysql_query($query);
  55 + if (@mysql_result($result_acoes, 0, "cs_situacao") <> 'N')
  56 + {
  57 + $query = "SELECT a.*,
  58 + b.nm_unid_organizacional_nivel1,
  59 + c.nm_unid_organizacional_nivel2
  60 + FROM patrimonio a,
  61 + unid_organizacional_nivel1 b,
  62 + unid_organizacional_nivel2 c
  63 + WHERE a.te_node_address = '". $_GET['te_node_address'] ."' AND
  64 + a.id_so = '". $_GET['id_so'] ."' and
  65 + a.id_unid_organizacional_nivel1 = b.id_unid_organizacional_nivel1 and
  66 + a.id_unid_organizacional_nivel1 = c.id_unid_organizacional_nivel1 and
  67 + a.id_unid_organizacional_nivel2 = c.id_unid_organizacional_nivel2
  68 + ORDER BY dt_hr_alteracao desc limit 1";
69 $result_patrimonio = mysql_query($query); 69 $result_patrimonio = mysql_query($query);
70 - if( mysql_num_rows($result_patrimonio) > 0)  
71 - {  
72 - function texto_campo($campo_pesquisado)  
73 - {  
74 - $query_patrimonio_config_interface = "SELECT te_etiqueta  
75 - FROM patrimonio_config_interface  
76 - WHERE id_etiqueta = '$campo_pesquisado' AND  
77 - in_exibir_etiqueta <> 'N' AND  
78 - id_local = ".$_SESSION['id_local'];  
79 - $result_patrimonio_config_interface = mysql_query($query_patrimonio_config_interface);  
80 - if (mysql_num_rows($result_patrimonio_config_interface) == 1) { return mysql_result($result_patrimonio_config_interface, 0, 'te_etiqueta'); }  
81 - else { return ''; } 70 + if(mysql_num_rows($result_patrimonio) > 0)
  71 + {
  72 +
  73 + function texto_campo($campo_pesquisado)
  74 + {
  75 + $query_patrimonio_config_interface = "SELECT te_etiqueta
  76 + FROM patrimonio_config_interface
  77 + WHERE id_etiqueta = '$campo_pesquisado' AND
  78 + in_exibir_etiqueta <> 'N' AND
  79 + id_local = ".$_SESSION['id_local'];
  80 + $result_patrimonio_config_interface = mysql_query($query_patrimonio_config_interface);
  81 + if (mysql_num_rows($result_patrimonio_config_interface) == 1) { return mysql_result($result_patrimonio_config_interface, 0, 'te_etiqueta'); }
  82 + else { return ''; }
82 } 83 }
83 ?> 84 ?>
84 <tr> 85 <tr>
@@ -168,14 +169,13 @@ else @@ -168,14 +169,13 @@ else
168 </tr> 169 </tr>
169 <? echo $linha?> 170 <? echo $linha?>
170 <tr> 171 <tr>
171 -<!-- <td><? echo mysql_result($result_acoes, 0, "id_local");?></td> --> 172 + <td>&nbsp;</td>
172 <td colspan="4"> <form action="historico.php" method="post" name="form1" target="_blank"> 173 <td colspan="4"> <form action="historico.php" method="post" name="form1" target="_blank">
173 <div align="center"> <br> 174 <div align="center"> <br>
174 <input name=historico_patrimonio type=submit value="Hist&oacute;rico de Altera&ccedil;&otilde;es das Informa&ccedil;&otilde;es de Patrim&ocirc;nio" > 175 <input name=historico_patrimonio type=submit value="Hist&oacute;rico de Altera&ccedil;&otilde;es das Informa&ccedil;&otilde;es de Patrim&ocirc;nio" >
175 &nbsp; 176 &nbsp;
176 <input name="te_node_address" type="hidden" id="te_node_address" value="<? echo mysql_result($result, 0, "te_node_address");?>"> 177 <input name="te_node_address" type="hidden" id="te_node_address" value="<? echo mysql_result($result, 0, "te_node_address");?>">
177 <input name="id_so" type="hidden" id="id_so" value="<? echo mysql_result($result, 0, "id_so");?>"> 178 <input name="id_so" type="hidden" id="id_so" value="<? echo mysql_result($result, 0, "id_so");?>">
178 - <input name="id_local" type="hidden" id="id_local" value="<? echo mysql_result($result_acoes, 0, "id_local");?>">  
179 <br> 179 <br>
180 &nbsp; </div> 180 &nbsp; </div>
181 </form></td> 181 </form></td>
relatorios/computador/inventario_desatualizado.php
1 <? 1 <?
2 session_start(); 2 session_start();
3 -/*  
4 - * verifica se houve login e também as permissões de usuário  
5 - */  
6 -if(!isset($_SESSION['id_usuario']))  
7 - die('Acesso negado!');  
8 -else { // Inserir regras para verificar permissões do usuário!  
9 -}  
10 -  
11 //Mostrar computadores com nomes repetidos na base 3 //Mostrar computadores com nomes repetidos na base
12 require_once('../../include/library.php'); 4 require_once('../../include/library.php');
13 ?> 5 ?>
@@ -98,7 +90,7 @@ $linha = &#39;&lt;tr bgcolor=&quot;#e7e7e7&quot;&gt; @@ -98,7 +90,7 @@ $linha = &#39;&lt;tr bgcolor=&quot;#e7e7e7&quot;&gt;
98 <td nowrap>&nbsp;&nbsp;</td> 90 <td nowrap>&nbsp;&nbsp;</td>
99 <td nowrap><div align="left"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><? echo $NumRegistro; ?></font></div></td> 91 <td nowrap><div align="left"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><? echo $NumRegistro; ?></font></div></td>
100 <td nowrap>&nbsp;&nbsp;</td> 92 <td nowrap>&nbsp;&nbsp;</td>
101 - <td nowrap><div align="left"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="../../relatorios/computador/computador.php?te_node_address=<? echo $row['te_node_address'];?>&id_so=<? echo $row['id_so'];?>" target="_blank"><? echo $row['nm_maquina']; ?></div></td> 93 + <td nowrap><div align="left"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="../../../relatorios/computador/computador.php?te_node_address=<? echo $row['te_node_address'];?>&id_so=<? echo $row['id_so'];?>" target="_blank"><? echo $row['nm_maquina']; ?></div></td>
102 <td nowrap>&nbsp;&nbsp;</td> 94 <td nowrap>&nbsp;&nbsp;</td>
103 <td align="center" nowrap><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><? echo $row['te_ip']; ?></font></td> 95 <td align="center" nowrap><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><? echo $row['te_ip']; ?></font></td>
104 <td nowrap>&nbsp;&nbsp;</td> 96 <td nowrap>&nbsp;&nbsp;</td>
relatorios/computador/inventario_em_branco.php
1 <? 1 <?
2 session_start(); 2 session_start();
3 -/*  
4 - * verifica se houve login e também as permissões de usuário  
5 - */  
6 -if(!isset($_SESSION['id_usuario']))  
7 - die('Acesso negado!');  
8 -else { // Inserir regras para verificar permissões do usuário!  
9 -}  
10 -  
11 //Mostrar computadores com nomes repetidos na base 3 //Mostrar computadores com nomes repetidos na base
12 require_once('../../include/library.php'); 4 require_once('../../include/library.php');
13 ?> 5 ?>
@@ -100,7 +92,7 @@ $linha = &#39;&lt;tr bgcolor=&quot;#e7e7e7&quot;&gt; @@ -100,7 +92,7 @@ $linha = &#39;&lt;tr bgcolor=&quot;#e7e7e7&quot;&gt;
100 <td nowrap>&nbsp;&nbsp;</td> 92 <td nowrap>&nbsp;&nbsp;</td>
101 <td nowrap><div align="left"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><? echo $NumRegistro; ?></font></div></td> 93 <td nowrap><div align="left"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><? echo $NumRegistro; ?></font></div></td>
102 <td nowrap>&nbsp;&nbsp;</td> 94 <td nowrap>&nbsp;&nbsp;</td>
103 - <td nowrap><div align="left"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="../../relatorios/computador/computador.php?te_node_address=<? echo $row['te_node_address'];?>&id_so=<? echo $row['id_so'];?>" target="_blank"><? echo $row['nm_maquina']; ?></div></td> 95 + <td nowrap><div align="left"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="../../../relatorios/computador/computador.php?te_node_address=<? echo $row['te_node_address'];?>&id_so=<? echo $row['id_so'];?>" target="_blank"><? echo $row['nm_maquina']; ?></div></td>
104 <td nowrap>&nbsp;&nbsp;</td> 96 <td nowrap>&nbsp;&nbsp;</td>
105 <td align="center" nowrap><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><? echo $row['te_ip']; ?></font></td> 97 <td align="center" nowrap><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><? echo $row['te_ip']; ?></font></td>
106 <td nowrap>&nbsp;&nbsp;</td> 98 <td nowrap>&nbsp;&nbsp;</td>
relatorios/computador/investiplan.php
1 <? 1 <?
2 session_start(); 2 session_start();
3 -/*  
4 - * verifica se houve login e também as permissões de usuário  
5 - */  
6 -if(!isset($_SESSION['id_usuario']))  
7 - die('Acesso negado!');  
8 -else { // Inserir regras para verificar permissões do usuário!  
9 -}  
10 -  
11 //Mostrar computadores com nomes repetidos na base 3 //Mostrar computadores com nomes repetidos na base
12 require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php'); 4 require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php');
13 ?> 5 ?>
relatorios/computador/ips_repetidos.php
1 <? 1 <?
2 session_start(); 2 session_start();
3 -/*  
4 - * verifica se houve login e também as permissões de usuário  
5 - */  
6 -if(!isset($_SESSION['id_usuario']))  
7 - die('Acesso negado!');  
8 -else { // Inserir regras para verificar permissões do usuário!  
9 -}  
10 -  
11 //Mostrar computadores com nomes repetidos na base 3 //Mostrar computadores com nomes repetidos na base
12 require_once('../../include/library.php'); 4 require_once('../../include/library.php');
13 ?> 5 ?>
relatorios/computador/matrix.php
1 <? 1 <?
2 session_start(); 2 session_start();
3 -/*  
4 - * verifica se houve login e também as permissões de usuário  
5 - */  
6 -if(!isset($_SESSION['id_usuario']))  
7 - die('Acesso negado!');  
8 -else { // Inserir regras para verificar permissões do usuário!  
9 -}  
10 -  
11 //Mostrar computadores com nomes repetidos na base 3 //Mostrar computadores com nomes repetidos na base
12 require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php'); 4 require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php');
13 ?> 5 ?>
relatorios/computador/nomes_repetidos.php
1 <? 1 <?
2 session_start(); 2 session_start();
3 -/*  
4 - * verifica se houve login e também as permissões de usuário  
5 - */  
6 -if(!isset($_SESSION['id_usuario']))  
7 - die('Acesso negado!');  
8 -else { // Inserir regras para verificar permissões do usuário!  
9 -}  
10 -  
11 -  
12 //Mostrar computadores com nomes repetidos na base 3 //Mostrar computadores com nomes repetidos na base
13 require_once('../../include/library.php'); 4 require_once('../../include/library.php');
14 ?> 5 ?>
relatorios/computador/professional_sem_access.php
1 <? 1 <?
2 session_start(); 2 session_start();
3 -/*  
4 - * verifica se houve login e também as permissões de usuário  
5 - */  
6 -if(!isset($_SESSION['id_usuario']))  
7 - die('Acesso negado!');  
8 -else { // Inserir regras para verificar permissões do usuário!  
9 -}  
10 -  
11 //Mostrar computadores com nomes repetidos na base 3 //Mostrar computadores com nomes repetidos na base
12 require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php'); 4 require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php');
13 ?> 5 ?>
relatorios/computador/rel_ips_repetidos.php
1 <? 1 <?
2 session_start(); 2 session_start();
3 -/*  
4 - * verifica se houve login e também as permissões de usuário  
5 - */  
6 -if(!isset($_SESSION['id_usuario']))  
7 - die('Acesso negado!');  
8 -else { // Inserir regras para verificar permissões do usuário!  
9 -}  
10 -  
11 //Mostrar computadores baseados no tipo de pesquisa solicitada pelo usuário 3 //Mostrar computadores baseados no tipo de pesquisa solicitada pelo usuário
12 require_once('../../include/library.php'); 4 require_once('../../include/library.php');
13 ?> 5 ?>
@@ -96,7 +88,7 @@ $linha = &#39;&lt;tr bgcolor=&quot;#e7e7e7&quot;&gt; @@ -96,7 +88,7 @@ $linha = &#39;&lt;tr bgcolor=&quot;#e7e7e7&quot;&gt;
96 <td nowrap>&nbsp;</td> 88 <td nowrap>&nbsp;</td>
97 <td nowrap><div align="left"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><? echo $NumRegistro; ?></font></div></td> 89 <td nowrap><div align="left"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><? echo $NumRegistro; ?></font></div></td>
98 <td nowrap>&nbsp;</td> 90 <td nowrap>&nbsp;</td>
99 - <td nowrap><div align="left"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="../../relatorios/computador/computador.php?te_node_address=<? echo $row['te_node_address'];?>&id_so=<? echo $row['id_so'];?>" target="_blank"><? echo $row['te_nome_computador']; ?></div></td> 91 + <td nowrap><div align="left"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="../../../relatorios/computador/computador.php?te_node_address=<? echo $row['te_node_address'];?>&id_so=<? echo $row['id_so'];?>" target="_blank"><? echo $row['te_nome_computador']; ?></div></td>
100 <td nowrap>&nbsp;</td> 92 <td nowrap>&nbsp;</td>
101 <td nowrap><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><? echo $row['te_ip']; ?></font></td> 93 <td nowrap><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><? echo $row['te_ip']; ?></font></td>
102 <td nowrap>&nbsp;</td> 94 <td nowrap>&nbsp;</td>
relatorios/computador/rel_nomes_repetidos.php
1 <? 1 <?
2 session_start(); 2 session_start();
3 -/*  
4 - * verifica se houve login e também as permissões de usuário  
5 - */  
6 -if(!isset($_SESSION['id_usuario']))  
7 - die('Acesso negado!');  
8 -else { // Inserir regras para verificar permissões do usuário!  
9 -}  
10 -  
11 //Mostrar computadores baseados no tipo de pesquisa solicitada pelo usuário 3 //Mostrar computadores baseados no tipo de pesquisa solicitada pelo usuário
12 require_once('../../include/library.php'); 4 require_once('../../include/library.php');
13 ?> 5 ?>
@@ -96,7 +88,7 @@ $linha = &#39;&lt;tr bgcolor=&quot;#e7e7e7&quot;&gt; @@ -96,7 +88,7 @@ $linha = &#39;&lt;tr bgcolor=&quot;#e7e7e7&quot;&gt;
96 <td nowrap>&nbsp;</td> 88 <td nowrap>&nbsp;</td>
97 <td nowrap><div align="left"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><? echo $NumRegistro; ?></font></div></td> 89 <td nowrap><div align="left"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><? echo $NumRegistro; ?></font></div></td>
98 <td nowrap>&nbsp;</td> 90 <td nowrap>&nbsp;</td>
99 - <td nowrap><div align="left"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="../../relatorios/computador/computador.php?te_node_address=<? echo $row['te_node_address'];?>&id_so=<? echo $row['id_so'];?>" target="_blank"><? echo $row['te_nome_computador']; ?></div></td> 91 + <td nowrap><div align="left"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="../../../relatorios/computador/computador.php?te_node_address=<? echo $row['te_node_address'];?>&id_so=<? echo $row['id_so'];?>" target="_blank"><? echo $row['te_nome_computador']; ?></div></td>
100 <td nowrap>&nbsp;</td> 92 <td nowrap>&nbsp;</td>
101 <td nowrap><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><? echo $row['te_ip']; ?></font></td> 93 <td nowrap><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><? echo $row['te_ip']; ?></font></td>
102 <td nowrap>&nbsp;</td> 94 <td nowrap>&nbsp;</td>
relatorios/computador/servers.php
1 <? 1 <?
2 session_start(); 2 session_start();
3 -/*  
4 - * verifica se houve login e também as permissões de usuário  
5 - */  
6 -if(!isset($_SESSION['id_usuario']))  
7 - die('Acesso negado!');  
8 -else { // Inserir regras para verificar permissões do usuário!  
9 -}  
10 -  
11 //Mostrar computadores com nomes repetidos na base 3 //Mostrar computadores com nomes repetidos na base
12 require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php'); 4 require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php');
13 ?> 5 ?>
relatorios/computador/ultimos_alterados.php
1 <? 1 <?
2 session_start(); 2 session_start();
3 -/*  
4 - * verifica se houve login e também as permissões de usuário  
5 - */  
6 -if(!isset($_SESSION['id_usuario']))  
7 - die('Acesso negado!');  
8 -else { // Inserir regras para verificar permissões do usuário!  
9 -}  
10 -  
11 //Mostrar computadores com nomes repetidos na base 3 //Mostrar computadores com nomes repetidos na base
12 require_once('../../include/library.php'); 4 require_once('../../include/library.php');
13 ?> 5 ?>
relatorios/computadores.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 require_once('../include/library.php'); 17 require_once('../include/library.php');
25 // Comentado temporariamente - AntiSpy(); 18 // Comentado temporariamente - AntiSpy();
26 conecta_bd_cacic(); 19 conecta_bd_cacic();
relatorios/custom/pesquisa_avancada.php
@@ -16,14 +16,6 @@ @@ -16,14 +16,6 @@
16 Livre(FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 16 Livre(FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 */ 17 */
18 session_start(); 18 session_start();
19 -/*  
20 - * verifica se houve login e também as permissões de usuário  
21 - */  
22 -if(!isset($_SESSION['id_usuario']))  
23 - die('Acesso negado!');  
24 -else { // Inserir regras para verificar permissões do usuário!  
25 -}  
26 -  
27 19
28 if($_POST['submit']) { 20 if($_POST['submit']) {
29 $so = $_POST['te_desc_so']; 21 $so = $_POST['te_desc_so'];
relatorios/hardware/index.php
@@ -262,16 +262,10 @@ @@ -262,16 +262,10 @@
262 <? 262 <?
263 //<input name="submit" type="submit" value=" Gerar Relat&oacute;rio " onClick="SelectAll(this.form.elements['list2[]']), SelectAll(this.form.elements['list4[]']), SelectAll(this.form.elements['list6[]']), SelectAll(this.form.elements['list8[]'])"> 263 //<input name="submit" type="submit" value=" Gerar Relat&oacute;rio " onClick="SelectAll(this.form.elements['list2[]']), SelectAll(this.form.elements['list4[]']), SelectAll(this.form.elements['list6[]']), SelectAll(this.form.elements['list8[]'])">
264 ?> 264 ?>
265 - <input name="submit"  
266 - type="submit"  
267 - value="Gerar Relat&oacute;rio "  
268 - onClick="  
269 - <? echo ($_SESSION['cs_nivel_administracao']<>1 &&  
270 - $_SESSION['cs_nivel_administracao']<>2?"  
271 - SelectAll(this.form.elements['list2[]'])":"  
272 - SelectAll(this.form.elements['list12[]'])")?>;  
273 - SelectAll(this.form.elements['list4[]']);  
274 - SelectAll(this.form.elements['list6[]'])"> 265 + <input name="submit" type="submit" value=" Gerar Relat&oacute;rio " onClick="<? echo ($_SESSION['cs_nivel_administracao']<>1 &&
  266 + $_SESSION['cs_nivel_administracao']<>2?"SelectAll(this.form.elements['list2[]'])":"SelectAll(this.form.elements['list12[]'])")?>,
  267 + SelectAll(this.form.elements['list4[]']),
  268 + SelectAll(this.form.elements['list6[]'])">
275 </div></td> 269 </div></td>
276 </tr> 270 </tr>
277 <tr> 271 <tr>
relatorios/hardware/rel_hardware.php
1 <? 1 <?
2 /* 2 /*
3 - Copyright 2000, 2001, 2002, 2003, 2004, 2005 Dataprev - Empresa de Tecnologia e Informa�es da Previd�cia Social, Brasil 3 + Copyright 2000, 2001, 2002, 2003, 2004, 2005 Dataprev - Empresa de Tecnologia e Informações da Previdência Social, Brasil
4 4
5 - Este arquivo �parte do programa CACIC - Configurador Autom�ico e Coletor de Informa�es Computacionais 5 + Este arquivo é parte do programa CACIC - Configurador Automático e Coletor de Informações Computacionais
6 6
7 - O CACIC �um software livre; voc�pode redistribui-lo e/ou modifica-lo dentro dos termos da Licen� Pblica Geral GNU como  
8 - publicada pela Funda�o do Software Livre (FSF); na vers� 2 da Licen�, ou (na sua opni�) qualquer vers�. 7 + O CACIC é um software livre; você pode redistribui-lo e/ou modifica-lo dentro dos termos da Licença Pública Geral GNU como
  8 + publicada pela Fundação do Software Livre (FSF); na versão 2 da Licença, ou (na sua opnião) qualquer versão.
9 9
10 - Este programa �distribuido na esperan� que possa ser util, mas SEM NENHUMA GARANTIA; sem uma garantia implicita de ADEQUA�O a qualquer  
11 - MERCADO ou APLICA�O EM PARTICULAR. Veja a Licen� Pblica Geral GNU para maiores detalhes. 10 + Este programa é distribuido na esperança que possa ser util, mas SEM NENHUMA GARANTIA; sem uma garantia implicita de ADEQUAÇÂO a qualquer
  11 + MERCADO ou APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU para maiores detalhes.
12 12
13 - Voc�deve ter recebido uma c�ia da Licen� Pblica Geral GNU, sob o t�ulo "LICENCA.txt", junto com este programa, se n�, 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 session_start();
17 -/*  
18 - * verifica se houve login e tamb� as permiss�s de usu�io  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permiss�s do usu�io!  
23 -}  
24 17
25 if($_POST['submit']) { 18 if($_POST['submit']) {
26 $_SESSION["list2"] = $_POST['list2']; 19 $_SESSION["list2"] = $_POST['list2'];
@@ -61,7 +54,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0 @@ -61,7 +54,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0
61 </tr> 54 </tr>
62 <tr> 55 <tr>
63 <td><p align="left"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Gerado 56 <td><p align="left"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Gerado
64 - em <? echo date("d/m/Y �s H:i"); ?></font></p></td> 57 + em <? echo date("d/m/Y à\s H:i"); ?></font></p></td>
65 </tr> 58 </tr>
66 </table> 59 </table>
67 <br> 60 <br>
@@ -76,26 +69,28 @@ conecta_bd_cacic(); @@ -76,26 +69,28 @@ conecta_bd_cacic();
76 $redes_selecionadas = ''; 69 $redes_selecionadas = '';
77 if ($_SESSION['cs_nivel_administracao']<>1 && $_SESSION['cs_nivel_administracao']<>2) 70 if ($_SESSION['cs_nivel_administracao']<>1 && $_SESSION['cs_nivel_administracao']<>2)
78 { 71 {
79 - if($_SESSION["cs_situacao"] == 'S') 72 + if($_SESSION["cs_situacao"] == 'S') // Apenas Redes Selecionadas
80 { 73 {
81 - // Aqui pego todas as redes selecionadas e fa� uma query p/ condi�o de redes 74 + // Aqui pego todas as redes selecionadas e faço uma query p/ condição de redes
82 $redes_selecionadas = "'" . $_SESSION["list2"][0] . "'"; 75 $redes_selecionadas = "'" . $_SESSION["list2"][0] . "'";
83 for( $i = 1; $i < count($_SESSION["list2"] ); $i++ ) 76 for( $i = 1; $i < count($_SESSION["list2"] ); $i++ )
84 { 77 {
85 $redes_selecionadas = $redes_selecionadas . ",'" . $_SESSION["list2"][$i] . "'"; 78 $redes_selecionadas = $redes_selecionadas . ",'" . $_SESSION["list2"][$i] . "'";
86 } 79 }
87 - $query_redes = 'AND id_ip_rede IN ('. $redes_selecionadas .')'; 80 + $query_redes = 'AND id_ip_rede IN ('. $redes_selecionadas .')';
  81 + }
  82 + else // Todas as Redes
  83 + {
  84 + $query_redes = 'AND computadores.id_ip_rede = redes.id_ip_rede AND
  85 + redes.id_local = '. $_SESSION['id_local'].' AND
  86 + redes.id_local = locais.id_local ';
  87 + $select = ' ,sg_local as Local ';
  88 + $from = ' ,redes,locais ';
88 } 89 }
89 - else  
90 - {  
91 - $query_redes = 'AND a.id_ip_rede = redes.id_ip_rede AND  
92 - redes.id_local ='.$_SESSION['id_local'];  
93 - $from = ' ,redes ';  
94 - }  
95 } 90 }
96 else 91 else
97 { 92 {
98 - // Aqui pego todos os locais selecionados e fa� uma query p/ condi�o de redes/locais 93 + // Aqui pego todos os locais selecionados e faço uma query p/ condição de redes/locais
99 $locais_selecionados = "'" . $_SESSION["list12"][0] . "'"; 94 $locais_selecionados = "'" . $_SESSION["list12"][0] . "'";
100 for( $i = 1; $i < count($_SESSION["list12"] ); $i++ ) 95 for( $i = 1; $i < count($_SESSION["list12"] ); $i++ )
101 { 96 {
@@ -114,11 +109,11 @@ for( $i = 1; $i &lt; count($_SESSION[&quot;list4&quot;] ); $i++ ) { @@ -114,11 +109,11 @@ for( $i = 1; $i &lt; count($_SESSION[&quot;list4&quot;] ); $i++ ) {
114 $so_selecionados = $so_selecionados . ",'" . $_SESSION["list4"][$i] . "'"; 109 $so_selecionados = $so_selecionados . ",'" . $_SESSION["list4"][$i] . "'";
115 } 110 }
116 111
117 -// Aqui pego todas as configura�es de hardware que deseja exibir 112 +// Aqui pego todas as configurações de hardware que deseja exibir
118 for( $i = 0; $i < count($_SESSION["list6"] ); $i++ ) { 113 for( $i = 0; $i < count($_SESSION["list6"] ); $i++ ) {
119 $campos_hardware = $campos_hardware . $_SESSION["list6"][$i]; 114 $campos_hardware = $campos_hardware . $_SESSION["list6"][$i];
120 } 115 }
121 -// Aqui substitui todas as strings \ por vazio que a vari�el $campos_hardware retorna 116 +// Aqui substitui todas as strings \ por vazio que a variável $campos_hardware retorna
122 $campos_hardware = str_replace('\\', '', $campos_hardware); 117 $campos_hardware = str_replace('\\', '', $campos_hardware);
123 118
124 if ($_GET['orderby']) { $orderby = $_GET['orderby']; } 119 if ($_GET['orderby']) { $orderby = $_GET['orderby']; }
@@ -169,7 +164,7 @@ echo &#39;&lt;/table&gt;&#39;; @@ -169,7 +164,7 @@ echo &#39;&lt;/table&gt;&#39;;
169 echo '<br><br>'; 164 echo '<br><br>';
170 if (count($_SESSION["list8"])>0) 165 if (count($_SESSION["list8"])>0)
171 { 166 {
172 - $v_opcao = 'hardware'; // Nome do pie que ser�chamado por tabela_estatisticas 167 + $v_opcao = 'hardware'; // Nome do pie que será chamado por tabela_estatisticas
173 require_once('../../include/tabela_estatisticas.php'); 168 require_once('../../include/tabela_estatisticas.php');
174 } 169 }
175 ?></p> 170 ?></p>
relatorios/inventario_softwares/index.php
@@ -15,14 +15,6 @@ @@ -15,14 +15,6 @@
15 */ 15 */
16 // Essa variável é usada pelo arquivo de include selecao_redes_inc.php e inicio_relatorios_inc.php. 16 // Essa variável é usada pelo arquivo de include selecao_redes_inc.php e inicio_relatorios_inc.php.
17 session_start(); 17 session_start();
18 -/*  
19 - * verifica se houve login e também as permissões de usuário  
20 - */  
21 -if(!isset($_SESSION['id_usuario']))  
22 - die('Acesso negado!');  
23 -else { // Inserir regras para verificar permissões do usuário!  
24 -}  
25 -  
26 $id_acao = 'cs_coleta_hardware'; 18 $id_acao = 'cs_coleta_hardware';
27 require_once('../../include/inicio_relatorios_inc.php'); 19 require_once('../../include/inicio_relatorios_inc.php');
28 ?> 20 ?>
relatorios/inventario_softwares/rel_maquinas_softwares.php
@@ -14,14 +14,6 @@ @@ -14,14 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 -  
25 //Mostrar computadores baseados no tipo de pesquisa solicitada pelo usuário 17 //Mostrar computadores baseados no tipo de pesquisa solicitada pelo usuário
26 require_once('../../include/library.php'); 18 require_once('../../include/library.php');
27 // Comentado temporariamente - AntiSpy(); 19 // Comentado temporariamente - AntiSpy();
relatorios/inventario_softwares/softwares.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 17
25 if($_POST['submit']) { 18 if($_POST['submit']) {
26 $_SESSION["list2"] = $_POST['list2']; //Redes selecionadas 19 $_SESSION["list2"] = $_POST['list2']; //Redes selecionadas
relatorios/micros_ativos/rel_ping.php
1 <? session_start(); 1 <? session_start();
2 -/*  
3 - * verifica se houve login e também as permissões de usuário  
4 - */  
5 -if(!isset($_SESSION['id_usuario']))  
6 - die('Acesso negado!');  
7 -else { // Inserir regras para verificar permissões do usuário!  
8 -}  
9 2
10 // Verifica qual a versão do PHP 3 // Verifica qual a versão do PHP
11 $PHPVERSAO = "Versao pela funcao" . phpversion(); 4 $PHPVERSAO = "Versao pela funcao" . phpversion();
relatorios/navegacao.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 require_once('../include/library.php'); 17 require_once('../include/library.php');
25 // Comentado temporariamente - AntiSpy(); 18 // Comentado temporariamente - AntiSpy();
26 $_SESSION['tipo_consulta1']=$_REQUEST['tipo_consulta']; 19 $_SESSION['tipo_consulta1']=$_REQUEST['tipo_consulta'];
@@ -743,9 +736,9 @@ if ($_REQUEST[&#39;p&#39;]==&#39;&#39; &amp;&amp; $_REQUEST[&#39;consultar&#39;] == &#39;&#39;) @@ -743,9 +736,9 @@ if ($_REQUEST[&#39;p&#39;]==&#39;&#39; &amp;&amp; $_REQUEST[&#39;consultar&#39;] == &#39;&#39;)
743 MyWindow.document.close()"><img src="<? echo $img_totals;?>" border=no width=16 height=16 Title="Totais de Estações por Sistema Operacional"></a> 736 MyWindow.document.close()"><img src="<? echo $img_totals;?>" border=no width=16 height=16 Title="Totais de Estações por Sistema Operacional"></a>
744 <? 737 <?
745 } 738 }
746 - // Atenção: foi necessário usar a condição "id_grupo_usuarios " abaixo devido ao "cs_nivel_administracao" == 0  
747 - if ($tree[$cnt][0]==2 && ($_SESSION["cs_nivel_administracao"] <> 0 || $_SESSION["id_grupo_usuarios"] == 7))  
748 -// if ($tree[$cnt][0]==2 && $_SESSION["cs_nivel_administracao"] <> 0) 739 +
  740 + // Atenção: foi necessário usar a condição "id_grupo_usuarios" abaixo devido ao "cs_nivel_administracao" == 0
  741 + if ($tree[$cnt][0]==2 && ($_SESSION["cs_nivel_administracao"] <> 0 || $_SESSION["id_grupo_usuarios"] == 7))
749 { 742 {
750 echo "<a href=../admin/redes/detalhes_rede.php?id_ip_rede=".$tree[$cnt][6]."&id_local=".$tree[$cnt][17]." target='_blank'><img src=\"".$img_details."\" border=no width=16 height=16 Title='Detalhes da SubRede'></a>"; 743 echo "<a href=../admin/redes/detalhes_rede.php?id_ip_rede=".$tree[$cnt][6]."&id_local=".$tree[$cnt][17]." target='_blank'><img src=\"".$img_details."\" border=no width=16 height=16 Title='Detalhes da SubRede'></a>";
751 } 744 }
@@ -770,4 +763,4 @@ if ($_REQUEST[&#39;p&#39;]==&#39;&#39; &amp;&amp; $_REQUEST[&#39;consultar&#39;] == &#39;&#39;) @@ -770,4 +763,4 @@ if ($_REQUEST[&#39;p&#39;]==&#39;&#39; &amp;&amp; $_REQUEST[&#39;consultar&#39;] == &#39;&#39;)
770 </tr> 763 </tr>
771 </table> 764 </table>
772 </body> 765 </body>
773 -</html> 766 +</html>
774 \ No newline at end of file 767 \ No newline at end of file
relatorios/patrimonio/index.php
@@ -20,72 +20,69 @@ require_once(&#39;../../include/inicio_relatorios_inc.php&#39;); @@ -20,72 +20,69 @@ require_once(&#39;../../include/inicio_relatorios_inc.php&#39;);
20 ?> 20 ?>
21 <script> 21 <script>
22 function montaComboMulti(strComboName, fromImage) 22 function montaComboMulti(strComboName, fromImage)
23 - {  
24 - var countSelecteds = 0;  
25 - var UO_IDS = "";  
26 - var imgName = 'img_'+strComboName; 23 + {
  24 + var countSelecteds = 0;
  25 + var UO_IDS = "";
  26 + var imgName = 'img_'+strComboName;
27 27
28 - imgMenos = new Image();  
29 - imgMenos.src = '../../imgs/menos.gif';  
30 - imgMais = new Image();  
31 - imgMais.src = '../../imgs/mais.gif';  
32 -  
33 - for (i=0;i<window.document.forms.length;i++)  
34 - for (j=0;j<window.document.forms[i].elements.length;j++)  
35 - if (window.document.forms[i].elements[j].name == strComboName)  
36 - {  
37 - for (k=0;k<window.document.forms[i].elements[j].options.length;k++)  
38 - if (window.document.forms[i].elements[j].options[k].value != '0' &&  
39 - window.document.forms[i].elements[j].options[k].selected == true)  
40 - {  
41 - countSelecteds ++;  
42 - if (UO_IDS != "")  
43 - UO_IDS += ",";  
44 - UO_IDS += window.document.forms[i].elements[j].options[k].value;  
45 - } 28 + imgMenos = new Image();
  29 + imgMenos.src = '../../imgs/menos.gif';
  30 + imgMais = new Image();
  31 + imgMais.src = '../../imgs/mais.gif';
  32 +
  33 + for (i=0;i<window.document.forms.length;i++)
  34 + for (j=0;j<window.document.forms[i].elements.length;j++)
  35 + if (window.document.forms[i].elements[j].name == strComboName)
  36 + {
  37 + for (k=0;k<window.document.forms[i].elements[j].options.length;k++)
  38 + if (window.document.forms[i].elements[j].options[k].value != '0' &&
  39 + window.document.forms[i].elements[j].options[k].selected == true)
  40 + {
  41 + countSelecteds ++;
  42 + if (UO_IDS != "")
  43 + UO_IDS += ",";
  44 + UO_IDS += window.document.forms[i].elements[j].options[k].value;
  45 + }
  46 +
  47 + if (fromImage) // Se há algo selecionado ou a chamada partiu da imagem (OnClick)
  48 + {
  49 + if (window.document.forms[i].elements[j].size == 5) // Se já tiver sido aberto
  50 + {
  51 + window.document.images[imgName].src = imgMais.src;
  52 + window.document.images[imgName].title = "Clique para selecionar múltiplos valores";
  53 + window.document.forms[i].elements[j].multiple = false;
  54 + window.document.forms[i].elements[j].size = 1;
  55 + }
  56 + else
  57 + {
  58 + window.document.images[imgName].src = imgMenos.src;
  59 + window.document.images[imgName].title = "Clique para selecionar apenas um valor";
  60 + window.document.forms[i].elements[j].multiple = true;
  61 + window.document.forms[i].elements[j].size = 5;
  62 + }
  63 + }
  64 + if (countSelecteds > 0)
  65 + {
  66 + var fieldName = window.document.forms[i].elements[j].name;
  67 + fieldName = 'IDS_'+fieldName;
  68 + window.document.forms[i].elements[fieldName].value = UO_IDS;
  69 + }
  70 + }
  71 + }
46 72
47 - if (fromImage) // Se há algo selecionado ou a chamada partiu da imagem (OnClick)  
48 - {  
49 - if (window.document.forms[i].elements[j].size == 5) // Se já tiver sido aberto  
50 - {  
51 - window.document.images[imgName].src = imgMais.src;  
52 - window.document.images[imgName].title = "Clique para selecionar múltiplos valores";  
53 - window.document.forms[i].elements[j].multiple = false;  
54 - window.document.forms[i].elements[j].size = 1;  
55 - }  
56 - else  
57 - {  
58 - window.document.images[imgName].src = imgMenos.src;  
59 - window.document.images[imgName].title = "Clique para selecionar apenas um valor";  
60 - window.document.forms[i].elements[j].multiple = true;  
61 - window.document.forms[i].elements[j].size = 5;  
62 - }  
63 - }  
64 - if (countSelecteds > 0)  
65 - {  
66 - var fieldName = window.document.forms[i].elements[j].name;  
67 - fieldName = 'IDS_'+fieldName;  
68 - window.document.forms[i].elements[fieldName].value = UO_IDS;  
69 - }  
70 - }  
71 - } 73 +
72 </script> 74 </script>
73 -  
74 -  
75 -  
76 -  
77 <table width="90%" border="0" align="center"> 75 <table width="90%" border="0" align="center">
78 <tr> 76 <tr>
79 <td class="cabecalho">Relat&oacute;rio de Informa&ccedil;&otilde;es Patrimoniais 77 <td class="cabecalho">Relat&oacute;rio de Informa&ccedil;&otilde;es Patrimoniais
80 e Localiza&ccedil;&atilde;o F&iacute;sica</td> 78 e Localiza&ccedil;&atilde;o F&iacute;sica</td>
81 </tr> 79 </tr>
82 <tr> 80 <tr>
83 -  
84 - <td class="descricao">Este relat&oacute;rio exibe informa&ccedil;&otilde;es  
85 - de Patrim&ocirc;nio e Localiza&ccedil;&atilde;o F&iacute;sica dos computadores  
86 - das redes selecionadas. &Eacute; poss&iacute;vel selecionar os sistemas  
87 - operacionais desejados e tamb&eacute;m determinar quais informa&ccedil;&otilde;es  
88 - de Patrim&ocirc;nio e Localiza&ccedil;&atilde;o F&iacute;sica ser&atilde;o 81 + <td class="descricao">Este relat&oacute;rio exibe informa&ccedil;&otilde;es
  82 + de Patrim&ocirc;nio e Localiza&ccedil;&atilde;o F&iacute;sica dos computadores
  83 + das redes selecionadas. &Eacute; poss&iacute;vel selecionar os sistemas
  84 + operacionais desejados e tamb&eacute;m determinar quais informa&ccedil;&otilde;es
  85 + de Patrim&ocirc;nio e Localiza&ccedil;&atilde;o F&iacute;sica ser&atilde;o
89 exibidas no relat&oacute;rio.</td> 86 exibidas no relat&oacute;rio.</td>
90 </tr> 87 </tr>
91 <tr> 88 <tr>
@@ -200,17 +197,28 @@ require_once(&#39;../../include/library.php&#39;); @@ -200,17 +197,28 @@ require_once(&#39;../../include/library.php&#39;);
200 <td> <div align="left"> 197 <td> <div align="left">
201 <select multiple name="list5[]" size="10" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);" > 198 <select multiple name="list5[]" size="10" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);" >
202 <? 199 <?
203 - $where = ($_SESSION['cs_nivel_administracao']<>1 && $_SESSION['cs_nivel_administracao']<>2?' AND pat.id_local = '.$_SESSION['id_local']:''); 200 +// $where = ($_SESSION['cs_nivel_administracao']<>1 && $_SESSION['cs_nivel_administracao']<>2?' AND pat.id_local = '.$_SESSION['id_local']:'');
  201 + $where = ' AND pat.id_local = '.$_SESSION['id_local'];
  202 +
  203 + // Listo primeiro os campos Entidade e Órgão
204 $query = "SELECT 204 $query = "SELECT
205 DISTINCT te_etiqueta, 205 DISTINCT te_etiqueta,
206 nm_campo_tab_patrimonio, 206 nm_campo_tab_patrimonio,
207 in_destacar_duplicidade 207 in_destacar_duplicidade
208 FROM patrimonio_config_interface pat, 208 FROM patrimonio_config_interface pat,
209 redes 209 redes
210 - WHERE (nm_campo_tab_patrimonio in ('id_unid_organizacional_nivel1', 'id_unid_organizacional_nivel2', 'te_localizacao_complementar') 210 + WHERE id_etiqueta in ('etiqueta1','etiqueta2') AND (nm_campo_tab_patrimonio in ('id_unid_organizacional_nivel1', 'id_unid_organizacional_nivel2', 'te_localizacao_complementar')
211 OR in_exibir_etiqueta = 'S') AND 211 OR in_exibir_etiqueta = 'S') AND
212 redes.id_local = pat.id_local ". 212 redes.id_local = pat.id_local ".
213 - $where; 213 + $where. '
  214 + ORDER BY te_etiqueta';
  215 +if ($_SERVER['REMOTE_ADDR']=='10.71.0.58')
  216 + {
  217 + echo '<br>Debug para estação 10.71.0.58<br>';
  218 + echo 'Query Combo Informações, campos Entidade e Órgão:<br>';
  219 + echo $query . '<br>';
  220 + }
  221 +
214 $result = mysql_query($query) or die('Erro na consulta à tabela "patrimonio_config_interface".'); 222 $result = mysql_query($query) or die('Erro na consulta à tabela "patrimonio_config_interface".');
215 while ($row = mysql_fetch_array($result)) 223 while ($row = mysql_fetch_array($result))
216 { 224 {
@@ -218,6 +226,34 @@ require_once(&#39;../../include/library.php&#39;); @@ -218,6 +226,34 @@ require_once(&#39;../../include/library.php&#39;);
218 if (trim($row['in_destacar_duplicidade'])<>'' && trim($row['in_destacar_duplicidade'])<>'N') echo '#in_destacar_duplicidade.'.$row['in_destacar_duplicidade']; 226 if (trim($row['in_destacar_duplicidade'])<>'' && trim($row['in_destacar_duplicidade'])<>'N') echo '#in_destacar_duplicidade.'.$row['in_destacar_duplicidade'];
219 echo '">' . $row["te_etiqueta"] . '</option>'; 227 echo '">' . $row["te_etiqueta"] . '</option>';
220 } 228 }
  229 +
  230 + // Listo o restante dos campos de patrimônio
  231 + $query = "SELECT
  232 + DISTINCT te_etiqueta,
  233 + nm_campo_tab_patrimonio,
  234 + in_destacar_duplicidade
  235 + FROM patrimonio_config_interface pat,
  236 + redes
  237 + WHERE id_etiqueta not in ('etiqueta1','etiqueta2') AND (nm_campo_tab_patrimonio in ('id_unid_organizacional_nivel1', 'id_unid_organizacional_nivel2', 'te_localizacao_complementar')
  238 + OR in_exibir_etiqueta = 'S') AND
  239 + redes.id_local = pat.id_local ".
  240 + $where. '
  241 + ORDER BY te_etiqueta';
  242 +if ($_SERVER['REMOTE_ADDR']=='10.71.0.58')
  243 + {
  244 + echo '<br>Debug para estação 10.71.0.58<br>';
  245 + echo 'Query Combo Informações, campos Restantes:<br>';
  246 + echo $query . '<br>';
  247 + }
  248 +
  249 + $result = mysql_query($query) or die('Erro na consulta à tabela "patrimonio_config_interface".');
  250 + while ($row = mysql_fetch_array($result))
  251 + {
  252 + echo '<option value=", patrimonio.' . $row['nm_campo_tab_patrimonio'] . ' as &quot;' . $row['te_etiqueta'] . '&quot;';
  253 + if (trim($row['in_destacar_duplicidade'])<>'' && trim($row['in_destacar_duplicidade'])<>'N') echo '#in_destacar_duplicidade.'.$row['in_destacar_duplicidade'];
  254 + echo '">' . $row["te_etiqueta"] . '</option>';
  255 + }
  256 +
221 ?> 257 ?>
222 </select> 258 </select>
223 </div></td> 259 </div></td>
@@ -254,19 +290,85 @@ require_once(&#39;../../include/library.php&#39;); @@ -254,19 +290,85 @@ require_once(&#39;../../include/library.php&#39;);
254 290
255 <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> 291 <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
256 <tr> 292 <tr>
257 - <td class="label" colspan="3">Informe os critérios para pesquisa de informações patrimoniais:</td> 293 + <td class="label" colspan="3"><p>Informe os critérios para pesquisa de informações patrimoniais:</p></td>
258 </tr> 294 </tr>
259 <tr> 295 <tr>
260 <td height="1" bgcolor="#333333" colspan="3"></td> 296 <td height="1" bgcolor="#333333" colspan="3"></td>
261 - </tr>  
262 -  
263 - <tr>  
264 - <td valign="top">  
265 - 297 + </tr>
  298 +
266 <? 299 <?
267 - $cor = 0;  
268 - $where = ($_SESSION['cs_nivel_administracao']<>1 && $_SESSION['cs_nivel_administracao']<>2?' AND pat.id_local = '.$_SESSION['id_local']:''); 300 + $cor = 1;
  301 + //$where = ($_SESSION['cs_nivel_administracao']<>1 && $_SESSION['cs_nivel_administracao']<>2?' AND pat.id_local = '.$_SESSION['id_local']:'');
  302 + $where = ' AND pat.id_local = '.$_SESSION['id_local'];
269 303
  304 + // Como acima, listo primeiro os campos Entidade e Órgão (etiqueta1 e etiqueta2 ou UON1 e UON2)
  305 + $query = "SELECT
  306 + DISTINCT nm_campo_tab_patrimonio,
  307 + te_etiqueta,
  308 + id_etiqueta
  309 + FROM patrimonio_config_interface pat,
  310 + redes
  311 + WHERE id_etiqueta in ('etiqueta1','etiqueta2') AND
  312 + redes.id_local = pat.id_local ".
  313 + $where . "
  314 + ORDER BY te_etiqueta";
  315 +
  316 +if ($_SERVER['REMOTE_ADDR']=='10.71.0.58')
  317 + {
  318 + echo '<br>Debug para estação 10.71.0.58<br>';
  319 + echo 'Query Combo Critérios - Parte 1:<br>';
  320 + echo $query . '<br>';
  321 + }
  322 + $res_fields = mysql_query($query);
  323 + $nuContaCampo = 0;
  324 + while ($row_fields = mysql_fetch_array($res_fields))
  325 + {
  326 + $nuContaCampo ++;
  327 + ?>
  328 + <tr <? if ($cor) echo 'bgcolor="#E1E1E1"';?> class="normal">
  329 + <td nowrap align="left"><? echo $row_fields['te_etiqueta'];?></td>
  330 + <td nowrap align="left">
  331 + <select name="frm_condicao1_<? echo $row_fields['nm_campo_tab_patrimonio']; ?>" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);">
  332 + <option value=""></option>
  333 + <option value="<? echo 'unid_organizacional_nivel'.$nuContaCampo.'__'.$row_fields['nm_campo_tab_patrimonio']." IN ('frm_te_valor_condicao1')" ;?>" onClick="Verifica_Condicoes_Seta_Campo('<? echo "frm_te_valor_condicao1_". $row_fields['nm_campo_tab_patrimonio']; ?>');">IGUAL A</option>
  334 + <option value="<? echo 'unid_organizacional_nivel'.$nuContaCampo.'__'.$row_fields['nm_campo_tab_patrimonio']." NOT IN ('frm_te_valor_condicao1')" ;?>" onClick="Verifica_Condicoes_Seta_Campo('<? echo "frm_te_valor_condicao1_". $row_fields['nm_campo_tab_patrimonio']; ?>');">DIFERENTE DE</option>
  335 + </select>
  336 +
  337 + <?
  338 + $select1 = ($row_fields['id_etiqueta']=='etiqueta1'?'id_unid_organizacional_nivel1 as id,nm_unid_organizacional_nivel1 as nm':'id_unid_organizacional_nivel2 as id,nm_unid_organizacional_nivel2 as nm');
  339 + $from1 = ($row_fields['id_etiqueta']=='etiqueta1'?'unid_organizacional_nivel1 UO':'unid_organizacional_nivel2 UO');
  340 + //$where1 = ($_SESSION['cs_nivel_administracao']<>1 && $_SESSION['cs_nivel_administracao']<>2 && $row_fields['id_etiqueta']=='etiqueta2'?' WHERE UO.id_local = '.$_SESSION['id_local']:'');
  341 + $where1 = ' WHERE UO.id_local = '.$_SESSION['id_local'];
  342 + $orderby1 = ($row_fields['id_etiqueta']=='etiqueta1'?'nm_unid_organizacional_nivel1':'nm_unid_organizacional_nivel2');
  343 +
  344 + $query1 = "SELECT $select1
  345 + FROM $from1
  346 + $where1
  347 + ORDER BY $orderby1";
  348 +
  349 + ?>
  350 + <td align="left">
  351 + <select name="frm_UO<? echo $nuContaCampo .'_' . $row_fields['id_etiqueta']; ?>" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);montaComboMulti('frm_UO<? echo $nuContaCampo .'_' . $row_fields['id_etiqueta'];?>',false);">
  352 + <option value=""></option>
  353 + <?
  354 + $res_fields1 = mysql_query($query1);
  355 + while ($row_fields1 = mysql_fetch_array($res_fields1))
  356 + {
  357 + ?>
  358 + <option value="<? echo $row_fields1['id'];?>" onClick="Verifica_Condicoes_Seta_Campo('<? echo "frm_te_valor_condicao1_". $row_fields1['id']; ?>');"><? echo $row_fields1['nm'];?></option>
  359 + <?
  360 + }
  361 + ?>
  362 + </select>
  363 + <img name="img_frm_UO<? echo $nuContaCampo .'_' . $row_fields['id_etiqueta'];?>" src="../../imgs/mais.gif" onClick="montaComboMulti('frm_UO<? echo $nuContaCampo .'_' . $row_fields['id_etiqueta']; ?>',true)" id="img_frm_UO<? echo $nuContaCampo .'_' . $row_fields['id_etiqueta'];?>" title="Clique para selecionar múltiplos valores">
  364 + <input name="IDS_frm_UO<? echo $nuContaCampo .'_' . $row_fields['id_etiqueta']; ?>" type="hidden" value="123456">
  365 + </td>
  366 + <?
  367 +/* //mudaCombo('<? echo 'frm_UO_'. $row_fields['id_etiqueta']; ?>'); */
  368 + $cor=!$cor;
  369 + }
  370 +
  371 + // Agora listo o restante dos campos de patrimônio.
270 $query = "SELECT 372 $query = "SELECT
271 DISTINCT nm_campo_tab_patrimonio, 373 DISTINCT nm_campo_tab_patrimonio,
272 te_etiqueta 374 te_etiqueta
@@ -276,6 +378,12 @@ require_once(&#39;../../include/library.php&#39;); @@ -276,6 +378,12 @@ require_once(&#39;../../include/library.php&#39;);
276 redes.id_local = pat.id_local ". 378 redes.id_local = pat.id_local ".
277 $where . " 379 $where . "
278 ORDER BY te_etiqueta"; 380 ORDER BY te_etiqueta";
  381 +if ($_SERVER['REMOTE_ADDR']=='10.71.0.58')
  382 + {
  383 + echo '<br>Debug para estação 10.71.0.58<br>';
  384 + echo 'Query Combo Critérios - Parte 2:<br>';
  385 + echo $query . '<br>';
  386 + }
279 387
280 $res_fields = mysql_query($query); 388 $res_fields = mysql_query($query);
281 389
@@ -284,16 +392,16 @@ require_once(&#39;../../include/library.php&#39;); @@ -284,16 +392,16 @@ require_once(&#39;../../include/library.php&#39;);
284 ?> 392 ?>
285 <tr <? if ($cor) echo 'bgcolor="#E1E1E1"';?>> 393 <tr <? if ($cor) echo 'bgcolor="#E1E1E1"';?>>
286 <td nowrap><? echo $row_fields['te_etiqueta'];?></td> 394 <td nowrap><? echo $row_fields['te_etiqueta'];?></td>
287 - <td><select name="frm_condicao_<? echo $row_fields['nm_campo_tab_patrimonio']; ?>" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);" > 395 + <td><select name="frm_condicao2_<? echo $row_fields['nm_campo_tab_patrimonio']; ?>" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);" >
288 <option value=""></option> 396 <option value=""></option>
289 - <option value="<? echo 'patrimonio.' .$row_fields['nm_campo_tab_patrimonio']." = 'frm_te_valor_condicao'" ;?>" onClick="Verifica_Condicoes_Seta_Campo('<? echo "frm_te_valor_condicao_". $row_fields['nm_campo_tab_patrimonio']; ?>');">IGUAL A</option>  
290 - <option value="<? echo 'patrimonio.' .$row_fields['nm_campo_tab_patrimonio']." <> 'frm_te_valor_condicao'" ;?>" onClick="Verifica_Condicoes_Seta_Campo('<? echo "frm_te_valor_condicao_". $row_fields['nm_campo_tab_patrimonio']; ?>');">DIFERENTE DE</option>  
291 - <option value="<? echo 'patrimonio.' .$row_fields['nm_campo_tab_patrimonio']." like '%frm_te_valor_condicao%'";?>" onClick="Verifica_Condicoes_Seta_Campo('<? echo "frm_te_valor_condicao_". $row_fields['nm_campo_tab_patrimonio']; ?>');">CONTENHA</option>  
292 - <option value="<? echo 'patrimonio.' .$row_fields['nm_campo_tab_patrimonio']." like 'frm_te_valor_condicao%'" ;?>" onClick="Verifica_Condicoes_Seta_Campo('<? echo "frm_te_valor_condicao_". $row_fields['nm_campo_tab_patrimonio']; ?>');">INICIE COM</option>  
293 - <option value="<? echo 'patrimonio.' .$row_fields['nm_campo_tab_patrimonio']." like '%frm_te_valor_condicao'" ;?>" onClick="Verifica_Condicoes_Seta_Campo('<? echo "frm_te_valor_condicao_". $row_fields['nm_campo_tab_patrimonio']; ?>');">TERMINE COM</option>  
294 - <option value="<? echo 'TRIM(patrimonio.'.$row_fields['nm_campo_tab_patrimonio'].") = '' and " ;?>" onClick="Preenche_Condicao_VAZIO('<? echo "frm_te_valor_condicao_". $row_fields['nm_campo_tab_patrimonio']; ?>');" >VAZIO</option> 397 + <option value="<? echo ' AND patrimonio.' .$row_fields['nm_campo_tab_patrimonio']." = 'frm_te_valor_condicao2'" ;?>" onClick="Verifica_Condicoes_Seta_Campo('<? echo "frm_te_valor_condicao2_". $row_fields['nm_campo_tab_patrimonio']; ?>');">IGUAL A</option>
  398 + <option value="<? echo ' AND patrimonio.' .$row_fields['nm_campo_tab_patrimonio']." <> 'frm_te_valor_condicao2'" ;?>" onClick="Verifica_Condicoes_Seta_Campo('<? echo "frm_te_valor_condicao2_". $row_fields['nm_campo_tab_patrimonio']; ?>');">DIFERENTE DE</option>
  399 + <option value="<? echo ' AND patrimonio.' .$row_fields['nm_campo_tab_patrimonio']." like '%frm_te_valor_condicao2%'";?>" onClick="Verifica_Condicoes_Seta_Campo('<? echo "frm_te_valor_condicao2_". $row_fields['nm_campo_tab_patrimonio']; ?>');">CONTENHA</option>
  400 + <option value="<? echo ' AND patrimonio.' .$row_fields['nm_campo_tab_patrimonio']." like 'frm_te_valor_condicao2%'" ;?>" onClick="Verifica_Condicoes_Seta_Campo('<? echo "frm_te_valor_condicao2_". $row_fields['nm_campo_tab_patrimonio']; ?>');">INICIE COM</option>
  401 + <option value="<? echo ' AND patrimonio.' .$row_fields['nm_campo_tab_patrimonio']." like '%frm_te_valor_condicao2'" ;?>" onClick="Verifica_Condicoes_Seta_Campo('<? echo "frm_te_valor_condicao2_". $row_fields['nm_campo_tab_patrimonio']; ?>');">TERMINE COM</option>
  402 + <option value="<? echo ' AND TRIM(patrimonio.'.$row_fields['nm_campo_tab_patrimonio'].") = '' and " ;?>" onClick="Preenche_Condicao_VAZIO(' <? echo "frm_te_valor_condicao2_". $row_fields['nm_campo_tab_patrimonio']; ?>');">VAZIO</option>
295 </select> </td> 403 </select> </td>
296 - <td><input name="frm_te_valor_condicao_<? echo $row_fields['nm_campo_tab_patrimonio']; ?>" type="text" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);Verifica_Selecao(this,'<? echo "frm_condicao_". $row_fields['nm_campo_tab_patrimonio']; ?>');" size="50" maxlength="100"></td> 404 + <td><input name="frm_te_valor_condicao2_<? echo $row_fields['nm_campo_tab_patrimonio']; ?>" type="text" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);Verifica_Selecao(this,'<? echo "frm_condicao2_". $row_fields['nm_campo_tab_patrimonio']; ?>');" size="50" maxlength="100"></td>
297 </tr> 405 </tr>
298 <? 406 <?
299 $cor=!$cor; 407 $cor=!$cor;
relatorios/patrimonio/rel_patrimonio.php
1 -<? 1 + <?
2 /* 2 /*
3 - Copyright 2000, 2001, 2002, 2003, 2004, 2005 Dataprev - Empresa de Tecnologia e Informa�es da Previd�cia Social, Brasil 3 + Copyright 2000, 2001, 2002, 2003, 2004, 2005 Dataprev - Empresa de Tecnologia e Informações da Previdência Social, Brasil
4 4
5 - Este arquivo �parte do programa CACIC - Configurador Autom�ico e Coletor de Informa�es Computacionais 5 + Este arquivo é parte do programa CACIC - Configurador Automático e Coletor de Informações Computacionais
6 6
7 - O CACIC �um software livre; voc�pode redistribui-lo e/ou modifica-lo dentro dos termos da Licen� Pblica Geral GNU como  
8 - publicada pela Funda�o do Software Livre (FSF); na vers� 2 da Licen�, ou (na sua opni�) qualquer vers�. 7 + O CACIC é um software livre; você pode redistribui-lo e/ou modifica-lo dentro dos termos da Licença Pública Geral GNU como
  8 + publicada pela Fundação do Software Livre (FSF); na versão 2 da Licença, ou (na sua opnião) qualquer versão.
9 9
10 - Este programa �distribuido na esperan� que possa ser util, mas SEM NENHUMA GARANTIA; sem uma garantia implicita de ADEQUA�O a qualquer  
11 - MERCADO ou APLICA�O EM PARTICULAR. Veja a Licen� Pblica Geral GNU para maiores detalhes. 10 + Este programa é distribuido na esperança que possa ser util, mas SEM NENHUMA GARANTIA; sem uma garantia implicita de ADEQUAÇÂO a qualquer
  11 + MERCADO ou APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU para maiores detalhes.
12 12
13 - Voc�deve ter recebido uma c�ia da Licen� Pblica Geral GNU, sob o t�ulo "LICENCA.txt", junto com este programa, se n�, 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 session_start();
17 -/*  
18 - * verifica se houve login e tamb� as permiss�s de usu�io  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permiss�s do usu�io!  
23 -}  
24 17
25 if($_POST['submit']) 18 if($_POST['submit'])
26 { 19 {
27 $_SESSION["list2"] = $_POST['list2']; 20 $_SESSION["list2"] = $_POST['list2'];
28 $_SESSION["list4"] = $_POST['list4']; 21 $_SESSION["list4"] = $_POST['list4'];
29 $_SESSION["list6"] = $_POST['list6']; 22 $_SESSION["list6"] = $_POST['list6'];
30 - $_SESSION["list8"] = $_POST['list8'];  
31 - $_SESSION["list12"] = $_POST['list12']; 23 + $_SESSION["list8"] = $_POST['list8'];
  24 + $_SESSION["list12"] = $_POST['list12'];
32 $_SESSION["cs_situacao"] = $_POST["cs_situacao"]; 25 $_SESSION["cs_situacao"] = $_POST["cs_situacao"];
33 - $_SESSION['where_uon1'] = '';  
34 - $_SESSION['where_uon2'] = '';  
35 } 26 }
36 27
37 ?> 28 ?>
@@ -50,14 +41,14 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0 @@ -50,14 +41,14 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0
50 41
51 <body bgcolor="#FFFFFF" topmargin="5"> 42 <body bgcolor="#FFFFFF" topmargin="5">
52 <table border="0" align="default" cellpadding="0" cellspacing="0" bordercolor="#999999"> 43 <table border="0" align="default" cellpadding="0" cellspacing="0" bordercolor="#999999">
53 - <tr bgcolor="#E1E1E1"> 44 + <tr bgcolor="#E1E1E1">
54 <td rowspan="5" bgcolor="#FFFFFF">&nbsp;</td> 45 <td rowspan="5" bgcolor="#FFFFFF">&nbsp;</td>
55 <td rowspan="5" bgcolor="#FFFFFF"><img src="../../imgs/cacic_logo.png" width="50" height="50"></td> 46 <td rowspan="5" bgcolor="#FFFFFF"><img src="../../imgs/cacic_logo.png" width="50" height="50"></td>
56 <td bgcolor="#FFFFFF">&nbsp;</td> 47 <td bgcolor="#FFFFFF">&nbsp;</td>
57 </tr> 48 </tr>
58 - <tr bgcolor="#E1E1E1">  
59 - <td nowrap bgcolor="#FFFFFF"><font color="#333333" size="4" face="Verdana, Arial, Helvetica, sans-serif"><strong>CACIC  
60 - - Relat&oacute;rio de informa&ccedil;&otilde;es de Patrim&ocirc;nio e Localiza&ccedil;&atilde;o 49 + <tr bgcolor="#E1E1E1">
  50 + <td nowrap bgcolor="#FFFFFF"><font color="#333333" size="4" face="Verdana, Arial, Helvetica, sans-serif"><strong>CACIC
  51 + - Relat&oacute;rio de informa&ccedil;&otilde;es de Patrim&ocirc;nio e Localiza&ccedil;&atilde;o
61 F&iacute;sica </strong></font></td> 52 F&iacute;sica </strong></font></td>
62 </tr> 53 </tr>
63 <tr> 54 <tr>
@@ -65,7 +56,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0 @@ -65,7 +56,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0
65 </tr> 56 </tr>
66 <tr> 57 <tr>
67 <td><p><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Gerado 58 <td><p><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Gerado
68 - em <? echo date("d/m/Y �s H:i"); ?></font></p></td> 59 + em <? echo date("d/m/Y à\s H:i"); ?></font></p></td>
69 </tr> 60 </tr>
70 </table> 61 </table>
71 <br> 62 <br>
@@ -79,29 +70,31 @@ if ($_SESSION[&#39;cs_nivel_administracao&#39;]&lt;&gt;1 &amp;&amp; $_SESSION[&#39;cs_nivel_administracao&#39; @@ -79,29 +70,31 @@ if ($_SESSION[&#39;cs_nivel_administracao&#39;]&lt;&gt;1 &amp;&amp; $_SESSION[&#39;cs_nivel_administracao&#39;
79 70
80 if($_SESSION["cs_situacao"] == 'S') 71 if($_SESSION["cs_situacao"] == 'S')
81 { 72 {
82 - // Aqui pego todas as redes selecionadas e fa� uma query p/ condi�o de redes 73 + // Aqui pego todas as redes selecionadas e faço uma query p/ condição de redes
83 $redes_selecionadas = "'" . $_SESSION["list2"][0] . "'"; 74 $redes_selecionadas = "'" . $_SESSION["list2"][0] . "'";
84 for( $i = 1; $i < count($_SESSION["list2"] ); $i++ ) 75 for( $i = 1; $i < count($_SESSION["list2"] ); $i++ )
85 { 76 {
86 $redes_selecionadas = $redes_selecionadas . ",'" . $_SESSION["list2"][$i] . "'"; 77 $redes_selecionadas = $redes_selecionadas . ",'" . $_SESSION["list2"][$i] . "'";
87 } 78 }
88 - $query_redes = "AND comp.id_ip_rede IN (". $redes_selecionadas .")"; 79 + $query_redes = "AND computadores.id_ip_rede IN (". $redes_selecionadas .")";
89 } 80 }
90 -  
91 } 81 }
92 else 82 else
93 { 83 {
94 - // Aqui pego todos os locais selecionados e fa� uma query p/ condi�o de redes/locais 84 + // Aqui pego todos os locais selecionados e faço uma query p/ condição de redes/locais
95 $locais_selecionados = "'" . $_SESSION["list12"][0] . "'"; 85 $locais_selecionados = "'" . $_SESSION["list12"][0] . "'";
96 for( $i = 1; $i < count($_SESSION["list12"] ); $i++ ) 86 for( $i = 1; $i < count($_SESSION["list12"] ); $i++ )
97 { 87 {
98 $locais_selecionados .= ",'" . $_SESSION["list12"][$i] . "'"; 88 $locais_selecionados .= ",'" . $_SESSION["list12"][$i] . "'";
99 } 89 }
100 - $query_redes = 'AND comp.id_ip_rede = redes.id_ip_rede AND  
101 - redes.id_local IN ('. $locais_selecionados .') AND  
102 - redes.id_local = locais.id_local '; 90 + $query_redes = ' AND computadores.id_ip_rede = redes.id_ip_rede ';
  91 +
  92 + if (trim($locais_selecionados) <> "''")
  93 + $query_redes .= ' AND redes.id_local IN ('. $locais_selecionados .') ';
  94 +
  95 + $query_redes .= ' AND redes.id_local = locais.id_local ';
103 $select = ' ,sg_local as Local '; 96 $select = ' ,sg_local as Local ';
104 - $from = ' ,redes,locais '; 97 + $from = ' ,redes,locais ';
105 } 98 }
106 99
107 // Aqui pego todos os SO selecionados 100 // Aqui pego todos os SO selecionados
@@ -111,23 +104,21 @@ for( $i = 1; $i &lt; count($_SESSION[&quot;list4&quot;] ); $i++ ) @@ -111,23 +104,21 @@ for( $i = 1; $i &lt; count($_SESSION[&quot;list4&quot;] ); $i++ )
111 $so_selecionados = $so_selecionados . ",'" . $_SESSION["list4"][$i] . "'"; 104 $so_selecionados = $so_selecionados . ",'" . $_SESSION["list4"][$i] . "'";
112 } 105 }
113 106
114 -// Inicializo vari�el para registro de destaques de duplicidades 107 +// Inicializo variável para registro de destaques de duplicidades
115 $in_destacar_duplicidade_total = ''; 108 $in_destacar_duplicidade_total = '';
116 109
117 -// Aqui pego todas as configura�es de hardware que deseja exibir 110 +// Aqui pego todas as configurações de hardware que deseja exibir
118 for( $i = 0; $i < count($_SESSION["list6"] ); $i++ ) 111 for( $i = 0; $i < count($_SESSION["list6"] ); $i++ )
119 { 112 {
120 if (strpos(strtolower($_SESSION["list6"][$i]), "patrimonio.id_unid_organizacional_nivel1")) 113 if (strpos(strtolower($_SESSION["list6"][$i]), "patrimonio.id_unid_organizacional_nivel1"))
121 { 114 {
122 $_SESSION["list6"][$i] = str_replace("patrimonio.id_unid_organizacional_nivel1", "unid_organizacional_nivel1.nm_unid_organizacional_nivel1", $_SESSION["list6"][$i]); 115 $_SESSION["list6"][$i] = str_replace("patrimonio.id_unid_organizacional_nivel1", "unid_organizacional_nivel1.nm_unid_organizacional_nivel1", $_SESSION["list6"][$i]);
123 - $where_uon1 = " patrimonio.id_unid_organizacional_nivel1 = unid_organizacional_nivel1.id_unid_organizacional_nivel1 AND ";  
124 - $v_from = ", unid_organizacional_nivel1"; 116 + //$from .= " ,unid_organizacional_nivel1";
125 } 117 }
126 else if (strpos(strtolower($_SESSION["list6"][$i]), "patrimonio.id_unid_organizacional_nivel2")) 118 else if (strpos(strtolower($_SESSION["list6"][$i]), "patrimonio.id_unid_organizacional_nivel2"))
127 { 119 {
128 $_SESSION["list6"][$i] = str_replace("patrimonio.id_unid_organizacional_nivel2", "unid_organizacional_nivel2.nm_unid_organizacional_nivel2", $_SESSION["list6"][$i]); 120 $_SESSION["list6"][$i] = str_replace("patrimonio.id_unid_organizacional_nivel2", "unid_organizacional_nivel2.nm_unid_organizacional_nivel2", $_SESSION["list6"][$i]);
129 - $where_uon2 = " patrimonio.id_unid_organizacional_nivel2 = unid_organizacional_nivel2.id_unid_organizacional_nivel2 AND ";  
130 - $v_from = ", unid_organizacional_nivel2"; 121 + //$from .= " ,unid_organizacional_nivel2";
131 } 122 }
132 123
133 if (strpos($_SESSION["list6"][$i],'#in_destacar_duplicidade.S')>-1) 124 if (strpos($_SESSION["list6"][$i],'#in_destacar_duplicidade.S')>-1)
@@ -138,41 +129,27 @@ for( $i = 0; $i &lt; count($_SESSION[&quot;list6&quot;] ); $i++ ) @@ -138,41 +129,27 @@ for( $i = 0; $i &lt; count($_SESSION[&quot;list6&quot;] ); $i++ )
138 $in_destacar_duplicidade_total .= $arr_in_destacar_duplicidade_tmp[1]; 129 $in_destacar_duplicidade_total .= $arr_in_destacar_duplicidade_tmp[1];
139 } 130 }
140 131
141 - $campos_patrimonio = $campos_patrimonio . $_SESSION["list6"][$i]; 132 + $campos_patrimonio .= $_SESSION["list6"][$i];
142 } 133 }
143 134
144 -  
145 135
146 -// Aqui substitui todas as strings \ por vazio que a vari�el $campos_hardware retorna 136 +// Aqui substitui todas as strings \ por vazio que a variável $campos_hardware retorna
147 $campos_patrimonio = str_replace('\\', '', $campos_patrimonio); 137 $campos_patrimonio = str_replace('\\', '', $campos_patrimonio);
148 $campos_patrimonio = str_replace('"', "'", $campos_patrimonio); 138 $campos_patrimonio = str_replace('"', "'", $campos_patrimonio);
149 139
150 140
151 -  
152 if ($_GET['orderby']) { $orderby = $_GET['orderby']; } 141 if ($_GET['orderby']) { $orderby = $_GET['orderby']; }
153 else { $orderby = '3'; } //por Nome de Computador 142 else { $orderby = '3'; } //por Nome de Computador
154 143
155 -/*$query = 'SELECT concat(comp.te_node_address, DATE_FORMAT( max(patrimonio.dt_hr_alteracao),"%d%m%Y%H%i")) as tripa_node_data '.  
156 - $campos_patrimonio.' '.$select.' 144 +// Caso a versão do MySQL utilizado não disponha de subquery...
  145 +$query = 'SELECT concat(computadores.te_node_address, DATE_FORMAT( max(patrimonio.dt_hr_alteracao),"%d%m%Y%H%i")) as tripa_node_data '.
  146 + $select.'
157 FROM patrimonio, 147 FROM patrimonio,
158 - computadores comp,  
159 - unid_organizacional_nivel1,  
160 - unid_organizacional_nivel2  
161 - '.$from.'  
162 - WHERE patrimonio.te_node_address = comp.te_node_address  
163 - AND patrimonio.id_unid_organizacional_nivel1 = unid_organizacional_nivel1.id_unid_organizacional_nivel1  
164 - AND patrimonio.id_unid_organizacional_nivel2 = unid_organizacional_nivel2.id_unid_organizacional_nivel2 '.  
165 - $query_redes . '  
166 - GROUP BY comp.te_node_address';*/  
167 -  
168 -$query = 'SELECT concat(comp.te_node_address, DATE_FORMAT( max(pat.dt_hr_alteracao),"%d%m%Y%H%i")) as tripa_node_data '.$select.'  
169 - FROM patrimonio pat,  
170 - computadores comp  
171 - '.$from.'  
172 - WHERE pat.te_node_address = comp.te_node_address '. 148 + computadores '.
  149 + $from . '
  150 + WHERE patrimonio.te_node_address = computadores.te_node_address '.
173 $query_redes . ' 151 $query_redes . '
174 - GROUP BY comp.te_node_address';  
175 - 152 + GROUP BY computadores.te_node_address';
176 $result = mysql_query($query) or die('Erro no select (1)'); 153 $result = mysql_query($query) or die('Erro no select (1)');
177 154
178 $where = ''; 155 $where = '';
@@ -180,94 +157,107 @@ while ($row = mysql_fetch_array($result)) @@ -180,94 +157,107 @@ while ($row = mysql_fetch_array($result))
180 { 157 {
181 $where .= ",'" . $row['tripa_node_data'] . "'"; 158 $where .= ",'" . $row['tripa_node_data'] . "'";
182 } 159 }
  160 +$where = " AND concat(computadores.te_node_address, DATE_FORMAT(patrimonio.dt_hr_alteracao,'%d%m%Y%H%i')) in (" . substr($where,1).")" ;
183 161
184 -//$where = "and concat(comp.te_node_address, DATE_FORMAT(patrimonio.dt_hr_alteracao,'%d%m%Y%H%i')) in (" . substr($where,1)."))" ; 162 + $criterios = '';
  163 + $value_anterior = '';
  164 + $join_UO1 = '';
  165 + $join_UO2 = '';
  166 +
  167 + // Monto as strings de critérios de Unidade Organizacional de Nível 1 e Nível 2, escolhidos para a consulta patrimonial
  168 + while(list($key, $value) = each($HTTP_POST_VARS))
  169 + {
185 170
186 -//$where = "and concat(comp.te_node_address))" ;  
187 -$where = ")" ; 171 + if (trim($value)<>'' && trim($value)<>'123456' && (trim(strpos($key,'frm_condicao1'))<>'' || trim(strpos($key,'IDS_frm'))<>''))
  172 + {
  173 + if (trim(strpos($key,'nivel1'))<>'') // Identificador(es) de UO1
  174 + $join_UO1 = $value;
  175 + elseif (trim(strpos($key,'IDS_frm_UO1'))<>'') // Desvio do campo Option do select UO1...
  176 + {
  177 + $join_UO1 = str_replace('frm_te_valor_condicao1',$value,$join_UO1);
  178 + $join_UO1 = str_replace('__','.',$join_UO1);
  179 + $join_UO1 = str_replace("\'",'',$join_UO1);
  180 + }
  181 + elseif (trim(strpos($key,'nivel2'))<>'') // Identificador(es) de UO2
  182 + $join_UO2 = $value;
  183 + elseif (trim(strpos($key,'IDS_frm_UO2'))<>'') // Desvio do campo Option do select UO2...
  184 + {
  185 + $join_UO2 = str_replace('frm_te_valor_condicao1',$value,$join_UO2);
  186 + $join_UO2 = str_replace('__','.',$join_UO2);
  187 + $join_UO2 = str_replace("\'",'',$join_UO2);
  188 + }
  189 + }
  190 + }
188 191
189 -//if ($_SERVER['REMOTE_ADDR']=='10.71.0.58')  
190 -// {  
191 - $criterios = '';  
192 - $value_anterior = ''; 192 + // Reinicializo o array para nova listagem, agora para os critérios posteriores
  193 + reset($HTTP_POST_VARS);
193 while(list($key, $value) = each($HTTP_POST_VARS)) 194 while(list($key, $value) = each($HTTP_POST_VARS))
194 { 195 {
195 - if (trim($value)<>'' && trim(strpos($key,'frm_'))<>'') 196 + if (trim($value)<>'' && trim(strpos($key,'frm_'))<>'' && trim(strpos($key,'frm_UO'))=='')
196 { 197 {
197 - if (trim(strpos($key,'frm_condicao_'))<>'') 198 + if (trim(strpos($key,'frm_condicao2_'))<>'')
198 { 199 {
199 - $criterios .= str_replace('frm_condicao_','',$value); 200 + $criterios .= str_replace('frm_condicao2_','',$value);
200 } 201 }
201 - else 202 + elseif (trim(strpos($key,'frm_te_valor_condicao2_'))<>'')
202 { 203 {
203 - if ($value_anterior) $criterios .= ' and ';  
204 - $criterios = str_replace('frm_te_valor_condicao',$value,$criterios); 204 + $criterios = str_replace('frm_te_valor_condicao2',$value,$criterios);
205 } 205 }
206 206
207 $value_anterior = $value; 207 $value_anterior = $value;
208 } 208 }
209 } 209 }
210 210
  211 + if ($criterios)
  212 + {
  213 + $criterios = (substr($criterios,-5)==' AND '?substr($criterios,0,strlen($criterios)-5):$criterios);
  214 + $criterios = str_replace('-MENOR-',' < ',$criterios);
  215 + $criterios = str_replace('-MAIOR-',' > ',$criterios);
  216 + $criterios = str_replace("\'","'",$criterios);
  217 + }
  218 +
  219 +if ($join_UO1 || $join_UO2)
  220 + {
  221 + $where_uon = " AND computadores.te_node_address = patrimonio.te_node_address ";
  222 + if ($join_UO1)
  223 + {
  224 + $where_uon1 = $where_uon . " AND patrimonio.id_unid_organizacional_nivel1 = unid_organizacional_nivel1.id_unid_organizacional_nivel1 AND ".$join_UO1." " ;
  225 + $where_uon = '';
  226 + $from .= " ,unid_organizacional_nivel1";
  227 + }
211 228
212 - $criterios = ' and '.$criterios;  
213 - $criterios = (substr($criterios,-5)==' and '?substr($criterios,0,strlen($criterios)-5):$criterios);  
214 - $criterios = str_replace('-MENOR-',' < ',$criterios);  
215 - $criterios = str_replace('-MAIOR-',' > ',$criterios);  
216 - $criterios = str_replace("\'","'",$criterios);  
217 -// }  
218 -  
219 -  
220 -if ($where_uon1)  
221 - {  
222 - $where_uon1 = " LEFT JOIN unid_organizacional_nivel1 ON ( patrimonio.id_unid_organizacional_nivel1 = unid_organizacional_nivel1.id_unid_organizacional_nivel1) " ; 229 + if ($join_UO2)
  230 + {
  231 + $where_uon2 = $where_uon . " AND patrimonio.id_unid_organizacional_nivel2 = unid_organizacional_nivel2.id_unid_organizacional_nivel2 AND ".$join_UO2." " ;
  232 + $from .= " ,unid_organizacional_nivel2";
  233 + }
223 } 234 }
224 -  
225 -if ($where_uon2) 235 +// O valor para join_opcional é relativo à seleção de critérios para a pesquisa.
  236 +// O LEFT JOIN só deverá ser utilizado para os casos em que não forem apontados critérios...
  237 +$join_opcional = '';
  238 +if (!$join_UO1 && !$join_UO2)
226 { 239 {
227 - $where_uon2 = " LEFT JOIN unid_organizacional_nivel2 ON ( patrimonio.id_unid_organizacional_nivel2 = unid_organizacional_nivel2.id_unid_organizacional_nivel2) " ; 240 + $join_opcional = ',computadores left join patrimonio on (computadores.te_node_address = patrimonio.te_node_address AND computadores.id_so = patrimonio.id_so) ';
228 } 241 }
229 -  
230 -/*$query = " SELECT comp.te_node_address, 242 +else
  243 + {
  244 + $from .= ' ,patrimonio, computadores ';
  245 + }
  246 +$query = " SELECT computadores.te_node_address,
231 so.id_so, 247 so.id_so,
232 - comp.te_nome_computador as 'Nome Comp.', 248 + computadores.te_nome_computador as 'Nome Comp.',
233 sg_so as 'S.O.', 249 sg_so as 'S.O.',
234 - comp.te_ip as 'IP'" . 250 + computadores.te_ip as 'IP'" .
235 $campos_patrimonio . 251 $campos_patrimonio .
236 $select . " 252 $select . "
237 - FROM so,  
238 - computadores comp left join patrimonio on (comp.te_node_address = patrimonio.te_node_address and comp.id_so = patrimonio.id_so " .  
239 - $where .  
240 - $where_uon1 .  
241 - $where_uon2 .  
242 - $from . "  
243 - WHERE TRIM(comp.te_nome_computador) <> '' and  
244 - comp.id_so = so.id_so AND " .  
245 - " comp.id_so IN (". $so_selecionados .") ". $criterios . $query_redes ."  
246 - GROUP BY comp.te_node_address  
247 - ORDER BY " . $orderby;  
248 -*/  
249 -  
250 -$query = " SELECT *  
251 - from (SELECT comp.te_node_address,  
252 - so.id_so,  
253 - comp.te_nome_computador as 'Nome Comp.',  
254 - sg_so as 'S.O.',  
255 - comp.te_ip as 'IP'" .  
256 - $campos_patrimonio .  
257 - $select .  
258 - " FROM so,  
259 - computadores comp left join patrimonio on (comp.te_node_address = patrimonio.te_node_address and comp.id_so = patrimonio.id_so " .  
260 - $where .  
261 - $where_uon1 .  
262 - $where_uon2 . 253 + FROM so ".
  254 + $join_opcional .
263 $from . " 255 $from . "
264 - WHERE TRIM(comp.te_nome_computador) <> '' and  
265 - comp.id_so = so.id_so AND " .  
266 - " comp.id_so IN (". $so_selecionados .") ". $criterios . $query_redes ."  
267 - ORDER BY dt_hr_alteracao desc) teste  
268 - GROUP BY te_node_address  
269 - ORDER BY " . $orderby;  
270 - 256 + WHERE TRIM(computadores.te_nome_computador) <> '' AND
  257 + computadores.id_so = so.id_so " .
  258 + $where .
  259 + " AND computadores.id_so IN (". $so_selecionados .") ". $criterios . $query_redes . $where_uon1 . $where_uon2 . "
  260 + ORDER BY " . $orderby;
271 $result = mysql_query($query) or die('Erro no select (2)'); 261 $result = mysql_query($query) or die('Erro no select (2)');
272 262
273 $fields=mysql_num_fields($result); 263 $fields=mysql_num_fields($result);
@@ -300,7 +290,7 @@ if ($in_destacar_duplicidade_tmp) @@ -300,7 +290,7 @@ if ($in_destacar_duplicidade_tmp)
300 { 290 {
301 if (trim($row[$i])<>'' && in_array($i,$arr_in_destacar_duplicidade)) 291 if (trim($row[$i])<>'' && in_array($i,$arr_in_destacar_duplicidade))
302 { 292 {
303 - array_push($v_arr_campos_valores,$i . ',' . trim($row[$i])); 293 + array_push($v_arr_campos_valores,$i . ',' . trim($row[$i]));
304 } 294 }
305 } 295 }
306 $num_registro ++; 296 $num_registro ++;
@@ -311,18 +301,18 @@ if ($in_destacar_duplicidade_tmp) @@ -311,18 +301,18 @@ if ($in_destacar_duplicidade_tmp)
311 $num_registro = 1; 301 $num_registro = 1;
312 $v_registro_atual = ''; 302 $v_registro_atual = '';
313 @mysql_data_seek($result,0); 303 @mysql_data_seek($result,0);
314 - while ($row = mysql_fetch_row($result)) 304 + while ($row = mysql_fetch_row($result))
315 { 305 {
316 - for ($i=3; $i < $fields; $i++) 306 + for ($i=3; $i < $fields; $i++)
317 { 307 {
318 - if (trim($row[$i])<>'' && in_array($i,$arr_in_destacar_duplicidade)) 308 + if (trim($row[$i])<>'' && in_array($i,$arr_in_destacar_duplicidade))
319 { 309 {
320 $v_chave = $i . ',' . trim($row[$i]); 310 $v_chave = $i . ',' . trim($row[$i]);
321 if ($v_arr_total_campos_valores[$v_chave]>1) 311 if ($v_arr_total_campos_valores[$v_chave]>1)
322 { 312 {
323 if ($v_registro_atual <> $num_registro) $v_campos_valores_duplicados .= 'r='.$num_registro.'#'; 313 if ($v_registro_atual <> $num_registro) $v_campos_valores_duplicados .= 'r='.$num_registro.'#';
324 $v_registro_atual = $num_registro; 314 $v_registro_atual = $num_registro;
325 - $v_campos_valores_duplicados .= '#c='.$i.'#'; 315 + $v_campos_valores_duplicados .= '#c='.$i.'#';
326 } 316 }
327 } 317 }
328 } 318 }
@@ -333,12 +323,12 @@ if ($in_destacar_duplicidade_tmp) @@ -333,12 +323,12 @@ if ($in_destacar_duplicidade_tmp)
333 $cor = 0; 323 $cor = 0;
334 $num_registro = 1; 324 $num_registro = 1;
335 @mysql_data_seek($result,0); 325 @mysql_data_seek($result,0);
336 -while ($row = mysql_fetch_row($result)) 326 +while ($row = mysql_fetch_row($result))
337 { //Table body 327 { //Table body
338 $v_key_campos_valores_duplicados = strpos($v_campos_valores_duplicados,'r='.$num_registro.'#',0); 328 $v_key_campos_valores_duplicados = strpos($v_campos_valores_duplicados,'r='.$num_registro.'#',0);
339 echo '<tr '; 329 echo '<tr ';
340 330
341 - if ($v_key_campos_valores_duplicados>-1) 331 + if ($v_key_campos_valores_duplicados>-1)
342 echo 'bgcolor="#FFFF99"'; 332 echo 'bgcolor="#FFFF99"';
343 elseif ($cor) 333 elseif ($cor)
344 echo 'bgcolor="#E1E1E1"'; 334 echo 'bgcolor="#E1E1E1"';
@@ -346,7 +336,7 @@ while ($row = mysql_fetch_row($result)) @@ -346,7 +336,7 @@ while ($row = mysql_fetch_row($result))
346 echo '>'; 336 echo '>';
347 337
348 echo '<td nowrap align="right"><font size="1" face="Verdana, Arial">' . $num_registro . '</font></td>'; 338 echo '<td nowrap align="right"><font size="1" face="Verdana, Arial">' . $num_registro . '</font></td>';
349 - echo "<td nowrap align='left'><font size='1' face='Verdana, Arial'><a href='../computador/computador.php?te_node_address=". $row[0] ."&id_so=". $row[1] ."' target='_blank'>" . $row[2] ."</a>&nbsp;</td>"; 339 + echo "<td nowrap align='left'><font size='1' face='Verdana, Arial'><a href='../computador/computador.php?te_node_address=". $row[0] ."&id_so=". $row[1] ."' target='_blank'>" . $row[2] ."</a>&nbsp;</td>";
350 340
351 for ($i=3; $i < $fields; $i++) 341 for ($i=3; $i < $fields; $i++)
352 { 342 {
@@ -354,24 +344,24 @@ while ($row = mysql_fetch_row($result)) @@ -354,24 +344,24 @@ while ($row = mysql_fetch_row($result))
354 344
355 echo '<td nowrap align="left"><font size="1" face="Verdana, Arial"'; 345 echo '<td nowrap align="left"><font size="1" face="Verdana, Arial"';
356 346
357 - $j=$v_key_campos_valores_duplicados; 347 + $j=$v_key_campos_valores_duplicados;
358 if ($j>-1) 348 if ($j>-1)
359 { 349 {
360 $v_pesquisa_campo = 'c='.trim($i).'#'; 350 $v_pesquisa_campo = 'c='.trim($i).'#';
361 while ($j < strlen($v_campos_valores_duplicados)) 351 while ($j < strlen($v_campos_valores_duplicados))
362 { 352 {
363 if (substr($v_campos_valores_duplicados,$j,strlen($v_pesquisa_campo))==$v_pesquisa_campo) 353 if (substr($v_campos_valores_duplicados,$j,strlen($v_pesquisa_campo))==$v_pesquisa_campo)
364 - { 354 + {
365 echo 'color="#FF0000"'; 355 echo 'color="#FF0000"';
366 $v_bold = 'OK'; 356 $v_bold = 'OK';
367 - $j = strlen($v_campos_valores_duplicados); 357 + $j = strlen($v_campos_valores_duplicados);
368 } 358 }
369 $j++; 359 $j++;
370 360
371 if (substr($v_campos_valores_duplicados,$j,2)=='r=') 361 if (substr($v_campos_valores_duplicados,$j,2)=='r=')
372 { 362 {
373 $j = strlen($v_campos_valores_duplicados); 363 $j = strlen($v_campos_valores_duplicados);
374 - } 364 + }
375 } 365 }
376 366
377 } 367 }
@@ -380,7 +370,7 @@ while ($row = mysql_fetch_row($result)) @@ -380,7 +370,7 @@ while ($row = mysql_fetch_row($result))
380 if ($v_bold) echo '<strong>'; 370 if ($v_bold) echo '<strong>';
381 echo $row[$i]; 371 echo $row[$i];
382 if ($v_bold) echo '</strong>'; 372 if ($v_bold) echo '</strong>';
383 - echo '&nbsp;</td>'; 373 + echo '&nbsp;</td>';
384 } 374 }
385 $cor=!$cor; 375 $cor=!$cor;
386 $num_registro++; 376 $num_registro++;
@@ -391,7 +381,7 @@ echo &#39;&lt;br&gt;&lt;br&gt;&#39;; @@ -391,7 +381,7 @@ echo &#39;&lt;br&gt;&lt;br&gt;&#39;;
391 /* 381 /*
392 if (count($_SESSION["list8"])>0) 382 if (count($_SESSION["list8"])>0)
393 { 383 {
394 - $v_opcao = 'patrimonio'; // Nome do pie que ser�chamado por tabela_estatisticas 384 + $v_opcao = 'patrimonio'; // Nome do pie que será chamado por tabela_estatisticas
395 require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/tabela_estatisticas.php'); 385 require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/tabela_estatisticas.php');
396 } 386 }
397 */ 387 */
@@ -402,4 +392,4 @@ if (count($_SESSION[&quot;list8&quot;])&gt;0) @@ -402,4 +392,4 @@ if (count($_SESSION[&quot;list8&quot;])&gt;0)
402 <font size="1" face="Verdana, Arial, Helvetica, sans-serif">Software desenvolvido 392 <font size="1" face="Verdana, Arial, Helvetica, sans-serif">Software desenvolvido
403 pela Dataprev - Escrit&oacute;rio do Esp&iacute;rito Santo</font></p> 393 pela Dataprev - Escrit&oacute;rio do Esp&iacute;rito Santo</font></p>
404 </body> 394 </body>
405 -</html> 395 +</html>
406 \ No newline at end of file 396 \ No newline at end of file
relatorios/rel_situacao_agentes.php
@@ -14,13 +14,7 @@ @@ -14,13 +14,7 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -} 17 +
24 if($_POST['submit']) { 18 if($_POST['submit']) {
25 $_SESSION["list2"] = $_POST['list2']; 19 $_SESSION["list2"] = $_POST['list2'];
26 $_SESSION["list4"] = $_POST['list4']; 20 $_SESSION["list4"] = $_POST['list4'];
relatorios/situacao_agentes.php
1 -<?  
2 -session_start();  
3 -/*  
4 - * verifica se houve login e também as permissões de usuário  
5 - */  
6 -if(!isset($_SESSION['id_usuario']))  
7 - die('Acesso negado!');  
8 -else { // Inserir regras para verificar permissões do usuário!  
9 -}  
10 -  
11 -?>  
12 -  
13 <html> 1 <html>
14 <head> 2 <head>
15 <title>A&ccedil;&otilde;es/Configura&ccedil;&otilde;es</title> 3 <title>A&ccedil;&otilde;es/Configura&ccedil;&otilde;es</title>
@@ -62,7 +50,7 @@ function open_window(theURL) { @@ -62,7 +50,7 @@ function open_window(theURL) {
62 Livre(FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 50 Livre(FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
63 */ 51 */
64 52
65 - require_once('../include/library.php'); 53 + require_once($_SERVER['DOCUMENT_ROOT'] . 'include/library.php');
66 // Comentado temporariamente - AntiSpy(); 54 // Comentado temporariamente - AntiSpy();
67 conecta_bd_cacic(); 55 conecta_bd_cacic();
68 $query = ' SELECT id_ip_rede, nm_rede 56 $query = ' SELECT id_ip_rede, nm_rede
@@ -245,4 +233,4 @@ foreach ($result as $arr) { ?&gt; @@ -245,4 +233,4 @@ foreach ($result as $arr) { ?&gt;
245 agente do CACIC instalado<br> 233 agente do CACIC instalado<br>
246 e ativo e <strong><? echo $cont_desativado; ?> </strong> n&atilde;o t&ecirc;m 234 e ativo e <strong><? echo $cont_desativado; ?> </strong> n&atilde;o t&ecirc;m
247 o CACIC instalado ou ativo.</font></p> 235 o CACIC instalado ou ativo.</font></p>
248 -<? } ?> 236 +<? } ?>
249 \ No newline at end of file 237 \ No newline at end of file
relatorios/software/index.php
@@ -14,13 +14,7 @@ @@ -14,13 +14,7 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -} 17 +
24 // Essa variável é usada pelo arquivo de include selecao_redes_inc.php e inicio_relatorios_inc.php. 18 // Essa variável é usada pelo arquivo de include selecao_redes_inc.php e inicio_relatorios_inc.php.
25 $id_acao = 'cs_coleta_software'; 19 $id_acao = 'cs_coleta_software';
26 require_once('../../include/inicio_relatorios_inc.php'); 20 require_once('../../include/inicio_relatorios_inc.php');
relatorios/software/rel_completo_orgao.php
1 <? 1 <?
2 session_start(); 2 session_start();
3 -/*  
4 - * verifica se houve login e também as permissões de usuário  
5 - */  
6 -if(!isset($_SESSION['id_usuario']))  
7 - die('Acesso negado!');  
8 -else { // Inserir regras para verificar permissões do usuário!  
9 -}  
10 //Mostrar computadores baseados no tipo de pesquisa solicitada pelo usuário 3 //Mostrar computadores baseados no tipo de pesquisa solicitada pelo usuário
11 require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php'); 4 require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php');
12 ?> 5 ?>
relatorios/software/rel_exato.php
1 <? 1 <?
2 session_start(); 2 session_start();
3 -/*  
4 - * verifica se houve login e também as permissões de usuário  
5 - */  
6 -if(!isset($_SESSION['id_usuario']))  
7 - die('Acesso negado!');  
8 -else { // Inserir regras para verificar permissões do usuário!  
9 -}  
10 -  
11 require_once($_SERVER['DOCUMENT_ROOT'] . 'include/library.php'); 3 require_once($_SERVER['DOCUMENT_ROOT'] . 'include/library.php');
12 conecta_bd_cacic(); 4 conecta_bd_cacic();
13 5
relatorios/software/rel_maquinas_softwares.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 //Mostrar computadores baseados no tipo de pesquisa solicitada pelo usuário 17 //Mostrar computadores baseados no tipo de pesquisa solicitada pelo usuário
25 require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php'); 18 require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php');
26 ?> 19 ?>
@@ -117,7 +110,7 @@ $linha = &#39;&lt;tr bgcolor=&quot;#e7e7e7&quot;&gt; @@ -117,7 +110,7 @@ $linha = &#39;&lt;tr bgcolor=&quot;#e7e7e7&quot;&gt;
117 <td nowrap>&nbsp;</td> 110 <td nowrap>&nbsp;</td>
118 <td nowrap><div align="left"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><? echo $NumRegistro; ?></font></div></td> 111 <td nowrap><div align="left"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><? echo $NumRegistro; ?></font></div></td>
119 <td nowrap>&nbsp;</td> 112 <td nowrap>&nbsp;</td>
120 - <td nowrap><div align="left"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="../../relatorios/computador/computador.php?te_node_address=<? echo $row['te_node_address'];?>&id_so=<? echo $row['id_so'];?>" target="_blank"><? echo $row['te_nome_computador']; ?></div></td> 113 + <td nowrap><div align="left"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="../../../relatorios/computador/computador.php?te_node_address=<? echo $row['te_node_address'];?>&id_so=<? echo $row['id_so'];?>" target="_blank"><? echo $row['te_nome_computador']; ?></div></td>
121 <td nowrap>&nbsp;</td> 114 <td nowrap>&nbsp;</td>
122 <td nowrap><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><? echo $row['te_ip']; ?></font></td> 115 <td nowrap><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><? echo $row['te_ip']; ?></font></td>
123 <td nowrap>&nbsp;</td> 116 <td nowrap>&nbsp;</td>
relatorios/software/rel_software.php
@@ -131,7 +131,7 @@ if ($_SESSION[&#39;cs_nivel_administracao&#39;]&lt;&gt;1 &amp;&amp; $_SESSION[&#39;cs_nivel_administracao&#39; @@ -131,7 +131,7 @@ if ($_SESSION[&#39;cs_nivel_administracao&#39;]&lt;&gt;1 &amp;&amp; $_SESSION[&#39;cs_nivel_administracao&#39;
131 for( $i = 1; $i < count($_SESSION["list2"] ); $i++ ) 131 for( $i = 1; $i < count($_SESSION["list2"] ); $i++ )
132 $redes_selecionadas = $redes_selecionadas . ",'" . $_SESSION["list2"][$i] . "'"; 132 $redes_selecionadas = $redes_selecionadas . ",'" . $_SESSION["list2"][$i] . "'";
133 133
134 - if (!$_GET['principal']) $query_redes = 'AND computadores.id_ip_rede IN ('. $redes_selecionadas .')'; 134 + if (!$_GET['principal']) $query_redes = 'AND id_ip_rede IN ('. $redes_selecionadas .')';
135 } 135 }
136 $local = ' AND computadores.id_ip_rede = redes.id_ip_rede AND redes.id_local = '.$_SESSION['id_local']; 136 $local = ' AND computadores.id_ip_rede = redes.id_ip_rede AND redes.id_local = '.$_SESSION['id_local'];
137 } 137 }
relatorios/software/softwares.php
@@ -14,13 +14,7 @@ @@ -14,13 +14,7 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -} 17 +
24 if($_POST['submit']) { 18 if($_POST['submit']) {
25 $_SESSION["list2"] = $_POST['list2']; //Redes selecionadas 19 $_SESSION["list2"] = $_POST['list2']; //Redes selecionadas
26 $_SESSION["list4"] = $_POST['list4']; //SO selecionados 20 $_SESSION["list4"] = $_POST['list4']; //SO selecionados
relatorios/software/softwares_cenin.php
1 <? 1 <?
2 session_start(); 2 session_start();
3 -/*  
4 - * verifica se houve login e também as permissões de usuário  
5 - */  
6 -if(!isset($_SESSION['id_usuario']))  
7 - die('Acesso negado!');  
8 -else { // Inserir regras para verificar permissões do usuário!  
9 -}  
10 require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php'); 3 require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php');
11 conecta_bd_cacic(); 4 conecta_bd_cacic();
12 5
relatorios/software/softwares_coens.php
1 <? 1 <?
2 session_start(); 2 session_start();
3 -/*  
4 - * verifica se houve login e também as permissões de usuário  
5 - */  
6 -if(!isset($_SESSION['id_usuario']))  
7 - die('Acesso negado!');  
8 -else { // Inserir regras para verificar permissões do usuário!  
9 -}  
10 require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php'); 3 require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php');
11 conecta_bd_cacic(); 4 conecta_bd_cacic();
12 5
relatorios/software/softwares_coserv.php
1 <? 1 <?
2 session_start(); 2 session_start();
3 -/*  
4 - * verifica se houve login e também as permissões de usuário  
5 - */  
6 -if(!isset($_SESSION['id_usuario']))  
7 - die('Acesso negado!');  
8 -else { // Inserir regras para verificar permissões do usuário!  
9 -}  
10 require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php'); 3 require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php');
11 conecta_bd_cacic(); 4 conecta_bd_cacic();
12 5
relatorios/software/softwares_estacao.php
1 <? 1 <?
2 session_start(); 2 session_start();
3 -/*  
4 - * verifica se houve login e também as permissões de usuário  
5 - */  
6 -if(!isset($_SESSION['id_usuario']))  
7 - die('Acesso negado!');  
8 -else { // Inserir regras para verificar permissões do usuário!  
9 -}  
10 require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php'); 3 require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php');
11 conecta_bd_cacic(); 4 conecta_bd_cacic();
12 5
relatorios/software/softwares_orgao.php
1 <? 1 <?
2 session_start(); 2 session_start();
3 -/*  
4 - * verifica se houve login e também as permissões de usuário  
5 - */  
6 -if(!isset($_SESSION['id_usuario']))  
7 - die('Acesso negado!');  
8 -else { // Inserir regras para verificar permissões do usuário!  
9 -}  
10 require_once('../../include/library.php'); 3 require_once('../../include/library.php');
11 conecta_bd_cacic(); 4 conecta_bd_cacic();
12 5
relatorios/software/ultimos_identificados.php
1 <? 1 <?
2 session_start(); 2 session_start();
3 -/*  
4 - * verifica se houve login e também as permissões de usuário  
5 - */  
6 -if(!isset($_SESSION['id_usuario']))  
7 - die('Acesso negado!');  
8 -else { // Inserir regras para verificar permissões do usuário!  
9 -}  
10 //Mostrar computadores com nomes repetidos na base 3 //Mostrar computadores com nomes repetidos na base
11 require_once('../../include/library.php'); 4 require_once('../../include/library.php');
12 ?> 5 ?>
relatorios/software/ultimos_outros_softwares.php
1 <? 1 <?
2 session_start(); 2 session_start();
3 -/*  
4 - * verifica se houve login e também as permissões de usuário  
5 - */  
6 -if(!isset($_SESSION['id_usuario']))  
7 - die('Acesso negado!');  
8 -else { // Inserir regras para verificar permissões do usuário!  
9 -}  
10 //Mostrar computadores com nomes repetidos na base 3 //Mostrar computadores com nomes repetidos na base
11 require_once('../../include/library.php'); 4 require_once('../../include/library.php');
12 ?> 5 ?>
relatorios/tcpip/rel_tcpip.php
@@ -14,13 +14,7 @@ @@ -14,13 +14,7 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -} 17 +
24 if($_POST['submit']) { 18 if($_POST['submit']) {
25 $_SESSION["list2"] = $_POST['list2']; 19 $_SESSION["list2"] = $_POST['list2'];
26 $_SESSION["list4"] = $_POST['list4']; 20 $_SESSION["list4"] = $_POST['list4'];
@@ -72,7 +66,7 @@ conecta_bd_cacic(); @@ -72,7 +66,7 @@ conecta_bd_cacic();
72 $redes_selecionadas = ''; 66 $redes_selecionadas = '';
73 if ($_SESSION['cs_nivel_administracao']<>1 && $_SESSION['cs_nivel_administracao']<>2) 67 if ($_SESSION['cs_nivel_administracao']<>1 && $_SESSION['cs_nivel_administracao']<>2)
74 { 68 {
75 - if($_SESSION["cs_situacao"] == 'S') 69 + if($_SESSION["cs_situacao"] == 'S') // Apenas Redes Selecionadas
76 { 70 {
77 // Aqui pego todas as redes selecionadas e faço uma query p/ condição de redes 71 // Aqui pego todas as redes selecionadas e faço uma query p/ condição de redes
78 $redes_selecionadas = "'" . $_SESSION["list2"][0] . "'"; 72 $redes_selecionadas = "'" . $_SESSION["list2"][0] . "'";
@@ -81,6 +75,14 @@ if ($_SESSION[&#39;cs_nivel_administracao&#39;]&lt;&gt;1 &amp;&amp; $_SESSION[&#39;cs_nivel_administracao&#39; @@ -81,6 +75,14 @@ if ($_SESSION[&#39;cs_nivel_administracao&#39;]&lt;&gt;1 &amp;&amp; $_SESSION[&#39;cs_nivel_administracao&#39;
81 75
82 $query_redes = 'AND computadores.id_ip_rede IN ('. $redes_selecionadas .')'; 76 $query_redes = 'AND computadores.id_ip_rede IN ('. $redes_selecionadas .')';
83 } 77 }
  78 + else // Todas as Redes
  79 + {
  80 + $query_redes = 'AND computadores.id_ip_rede = redes.id_ip_rede AND
  81 + redes.id_local = '. $_SESSION['id_local'].' AND
  82 + redes.id_local = locais.id_local ';
  83 + $select = ' ,sg_local as Local ';
  84 + $from = ' ,redes,locais ';
  85 + }
84 } 86 }
85 else 87 else
86 { 88 {
relatorios/totais_estacoes_rede.php
@@ -20,15 +20,6 @@ foreach($HTTP_GET_VARS as $i =&gt; $v) @@ -20,15 +20,6 @@ foreach($HTTP_GET_VARS as $i =&gt; $v)
20 echo 'v='.$v.'<br>'; 20 echo 'v='.$v.'<br>';
21 } 21 }
22 */ 22 */
23 -session_start();  
24 -/*  
25 - * verifica se houve login e também as permissões de usuário  
26 - */  
27 -if(!isset($_SESSION['id_usuario']))  
28 - die('Acesso negado!');  
29 -else { // Inserir regras para verificar permissões do usuário!  
30 -}  
31 -  
32 ?> 23 ?>
33 24
34 25
@@ -109,4 +100,4 @@ else { // Inserir regras para verificar permissões do usuário! @@ -109,4 +100,4 @@ else { // Inserir regras para verificar permissões do usuário!
109 </table> 100 </table>
110 </form> 101 </form>
111 </body> 102 </body>
112 -</html> 103 +</html>
113 \ No newline at end of file 104 \ No newline at end of file
relatorios/variaveis_ambiente/index.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 // Essa variável é usada pelo arquivo de include selecao_redes_inc.php e inicio_relatorios_inc.php. 17 // Essa variável é usada pelo arquivo de include selecao_redes_inc.php e inicio_relatorios_inc.php.
25 $id_acao = 'cs_coleta_hardware'; 18 $id_acao = 'cs_coleta_hardware';
26 require_once('../../include/inicio_relatorios_inc.php'); 19 require_once('../../include/inicio_relatorios_inc.php');
relatorios/variaveis_ambiente/rel_maquinas_variaveis.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 //Mostrar computadores baseados no tipo de pesquisa solicitada pelo usuário 17 //Mostrar computadores baseados no tipo de pesquisa solicitada pelo usuário
25 require_once('../../include/library.php'); 18 require_once('../../include/library.php');
26 // Comentado temporariamente - AntiSpy(); 19 // Comentado temporariamente - AntiSpy();
relatorios/variaveis_ambiente/rel_variaveis_valores.php
@@ -14,13 +14,6 @@ @@ -14,13 +14,6 @@
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 session_start();
17 -/*  
18 - * verifica se houve login e também as permissões de usuário  
19 - */  
20 -if(!isset($_SESSION['id_usuario']))  
21 - die('Acesso negado!');  
22 -else { // Inserir regras para verificar permissões do usuário!  
23 -}  
24 //Mostrar computadores baseados no tipo de pesquisa solicitada pelo usuário 17 //Mostrar computadores baseados no tipo de pesquisa solicitada pelo usuário
25 require_once('../../include/library.php'); 18 require_once('../../include/library.php');
26 // Comentado temporariamente - AntiSpy(); 19 // Comentado temporariamente - AntiSpy();
@@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
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 session_start();
17 -$v_versao = '2.2.2'; 17 +$v_versao = '2.2.3';
18 /* 18 /*
19 2.2.2 - Algumas correções lógicas: 19 2.2.2 - Algumas correções lógicas:
20 * Corrigida a atribuição indevida do nome de usuário constande de resultado de Log de Atividades ao nome do usuário logado na aplicação; 20 * Corrigida a atribuição indevida do nome de usuário constande de resultado de Log de Atividades ao nome do usuário logado na aplicação;
ws/get_config.php
@@ -421,7 +421,20 @@ else @@ -421,7 +421,20 @@ else
421 421
422 422
423 // --------------- Retorno de Classificador de CRIPTOGRAFIA --------------- // 423 // --------------- Retorno de Classificador de CRIPTOGRAFIA --------------- //
424 -if ($v_cs_cipher <> '1') $v_cs_cipher --; 424 +// Comente/Descomente a linha abaixo para habilitar/desabilitar a criptografia de informações trafegadas
  425 +//$v_cs_cipher = '0';
  426 +
  427 +// Testes do Anderson Peterle
  428 +if ($_SERVER['REMOTE_ADDR']<>'10.71.0.58')
  429 + {
  430 + // Comente/Descomente a linha abaixo para habilitar/desabilitar a criptografia de informações trafegadas
  431 + $v_cs_cipher = '0';
  432 + }
  433 +else
  434 + {
  435 + if ($v_cs_cipher <> '1') $v_cs_cipher --;
  436 + }
  437 +
425 $retorno_xml_header .= '<cs_cipher>'.$v_cs_cipher.'</cs_cipher>'; 438 $retorno_xml_header .= '<cs_cipher>'.$v_cs_cipher.'</cs_cipher>';
426 // ----------------------------------------------------------------------- // 439 // ----------------------------------------------------------------------- //
427 440
ws/get_patrimonio.php
@@ -163,7 +163,8 @@ if (count($result)&gt;0) @@ -163,7 +163,8 @@ if (count($result)&gt;0)
163 // --------------- Retorno de Classificador de CRIPTOGRAFIA --------------- // 163 // --------------- Retorno de Classificador de CRIPTOGRAFIA --------------- //
164 //if ($v_cs_cipher <> '1') $v_cs_cipher --; 164 //if ($v_cs_cipher <> '1') $v_cs_cipher --;
165 165
166 -if ($_SERVER['REMOTE_ADDR']<>'10.71.0.58') //$v_cs_cipher = '0'; 166 +// Testes do Anderson Peterle
  167 +if ($_SERVER['REMOTE_ADDR']<>'10.71.0.58')
167 { 168 {
168 // Comente/Descomente a linha abaixo para habilitar/desabilitar a criptografia de informações trafegadas 169 // Comente/Descomente a linha abaixo para habilitar/desabilitar a criptografia de informações trafegadas
169 $v_cs_cipher = '0'; 170 $v_cs_cipher = '0';
ws/mapa_get_patrimonio.php
@@ -122,7 +122,8 @@ $query = &#39; SELECT uo1.id_unid_organizacional_nivel1 as uo1_id, @@ -122,7 +122,8 @@ $query = &#39; SELECT uo1.id_unid_organizacional_nivel1 as uo1_id,
122 uo2.id_local = '.$v_dados_rede['id_local'].' 122 uo2.id_local = '.$v_dados_rede['id_local'].'
123 ORDER BY uo1_nm,uo2_nm'; 123 ORDER BY uo1_nm,uo2_nm';
124 124
125 -conecta_bd_cacic(); 125 +conecta_bd_cacic();
  126 +GravaTESTES($query);
126 $result = mysql_query($query); 127 $result = mysql_query($query);
127 while ($campos = mysql_fetch_array($result)) 128 while ($campos = mysql_fetch_array($result))
128 { 129 {
ws/set_software.php
@@ -159,7 +159,7 @@ if ($v_tripa_variaveis_coletadas&lt;&gt;&#39;&#39;) @@ -159,7 +159,7 @@ if ($v_tripa_variaveis_coletadas&lt;&gt;&#39;&#39;)
159 VALUES ('".$te_node_address."', 159 VALUES ('".$te_node_address."',
160 '".$id_so."', 160 '".$id_so."',
161 '".$v_achei."', 161 '".$v_achei."',
162 - '".mysql_real_escape_string($v_array_variavel_ambiente_tmp[1])."')"; 162 + '".trim($v_array_variavel_ambiente_tmp[1])."')";
163 $result = mysql_query($query); 163 $result = mysql_query($query);
164 } 164 }
165 } 165 }
@@ -167,4 +167,4 @@ if ($v_tripa_variaveis_coletadas&lt;&gt;&#39;&#39;) @@ -167,4 +167,4 @@ if ($v_tripa_variaveis_coletadas&lt;&gt;&#39;&#39;)
167 167
168 168
169 echo '<?xml version="1.0" encoding="iso-8859-1" ?><STATUS>OK</STATUS>'; 169 echo '<?xml version="1.0" encoding="iso-8859-1" ?><STATUS>OK</STATUS>';
170 -?> 170 +?>
171 \ No newline at end of file 171 \ No newline at end of file