Commit f98270fc4b5afbee10fdbf0d3c33b399d7c2b915
1 parent
b108b78b
Exists in
master
and in
1 other branch
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
Too many changes.
To preserve performance only 100 of 175 files displayed.
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çõ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çõ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çõ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çõ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çõ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ção de Base de Dados</title> | 4 | <title>Atualizaçã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('../include/opcoes_avancadas_combos.js'); | @@ -230,9 +223,7 @@ require_once('../include/opcoes_avancadas_combos.js'); | ||
| 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ções " onClick="return SelectAll_Forca_Coleta();return Confirma('Confirma Configuração de Agentes?');">--> | ||
| 234 | - <input name="submit" type="submit" value=" Gravar Informaçõ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çõ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ções " onClick="SelectAll(this.form.elements['list2[]'])">--> | ||
| 258 | - <input name="submit" type="submit" value=" Gravar Informaçõ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çõ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['submit_cond']) | @@ -113,7 +105,7 @@ if ($_POST['submit_cond']) | ||
| 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ção</td> | 49 | <td class="cabecalho">Cadastro de Softwares por Estaçã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> </p> | 132 | <p> </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"> </td> | 32 | <td rowspan="5" bgcolor="#FFFFFF"> </td> |
| 39 | <td bgcolor="#FFFFFF"> </td> | 33 | <td bgcolor="#FFFFFF"> </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"> </td> | 28 | <td rowspan="5" bgcolor="#FFFFFF"> </td> |
| 36 | <td bgcolor="#FFFFFF"> </td> | 29 | <td bgcolor="#FFFFFF"> </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['consultar']) { | @@ -21,14 +14,14 @@ if ($_POST['consultar']) { | ||
| 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ório de Softwares Inventariados por Máquinas</title> | 11 | <title>Relatório de Softwares Inventariados por Má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"> </td> | 26 | <td rowspan="5" bgcolor="#FFFFFF"> </td> |
| 34 | <td bgcolor="#FFFFFF"> </td> | 27 | <td bgcolor="#FFFFFF"> </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"> </td> | 37 | <td rowspan="5" bgcolor="#FFFFFF"> </td> |
| 45 | <td bgcolor="#FFFFFF"> </td> | 38 | <td bgcolor="#FFFFFF"> </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"> </td> | 37 | <td rowspan="5" bgcolor="#FFFFFF"> </td> |
| 45 | <td bgcolor="#FFFFFF"> </td> | 38 | <td bgcolor="#FFFFFF"> </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"> </td> | 37 | <td rowspan="5" bgcolor="#FFFFFF"> </td> |
| 45 | <td bgcolor="#FFFFFF"> </td> | 38 | <td bgcolor="#FFFFFF"> </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"> </td> | 37 | <td rowspan="5" bgcolor="#FFFFFF"> </td> |
| 45 | <td bgcolor="#FFFFFF"> </td> | 38 | <td bgcolor="#FFFFFF"> </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"> </td> | 25 | <td rowspan="5" bgcolor="#FFFFFF"> </td> |
| 34 | <td bgcolor="#FFFFFF"> </td> | 26 | <td bgcolor="#FFFFFF"> </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['consultar']) { | @@ -26,7 +18,7 @@ if ($_POST['consultar']) { | ||
| 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['consultar']) { | @@ -20,14 +12,14 @@ if ($_POST['consultar']) { | ||
| 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"> </td> | 41 | <td rowspan="5" bgcolor="#FFFFFF"> </td> |
| 48 | <td bgcolor="#FFFFFF"> </td> | 42 | <td bgcolor="#FFFFFF"> </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"> </td> | 37 | <td rowspan="5" bgcolor="#FFFFFF"> </td> |
| 45 | <td bgcolor="#FFFFFF"> </td> | 38 | <td bgcolor="#FFFFFF"> </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] .' </td>'; | 97 | echo '<td nowrap align="center"><font size="1" face="Verdana, Arial">' . $row[2] .' </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"> </td> | 39 | <td rowspan="5" bgcolor="#FFFFFF"> </td> |
| 46 | <td bgcolor="#FFFFFF"> </td> | 40 | <td bgcolor="#FFFFFF"> </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['consultar']) { | @@ -35,14 +28,14 @@ if ($_POST['consultar']) { | ||
| 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['consultar']) { | @@ -36,14 +29,14 @@ if ($_POST['consultar']) { | ||
| 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['consultar']) { | @@ -36,14 +29,14 @@ if ($_POST['consultar']) { | ||
| 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"> </td> | 25 | <td rowspan="5" bgcolor="#FFFFFF"> </td> |
| 34 | <td bgcolor="#FFFFFF"> </td> | 26 | <td bgcolor="#FFFFFF"> </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"> </td> | 25 | <td rowspan="5" bgcolor="#FFFFFF"> </td> |
| 34 | <td bgcolor="#FFFFFF"> </td> | 26 | <td bgcolor="#FFFFFF"> </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"> </td> | 38 | <td rowspan="5" bgcolor="#FFFFFF"> </td> |
| 47 | <td bgcolor="#FFFFFF"> </td> | 39 | <td bgcolor="#FFFFFF"> </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 | } |
admin/log.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 (!$_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('Erro no select'); | @@ -45,7 +37,7 @@ $result = mysql_query($query) or die('Erro no select'); | ||
| 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ódulos</td> | 43 | <td class="cabecalho">Mó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ível 1</title> | 57 | <title>Cadastro de U. O. Ní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> </p> | 150 | <p> </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çõ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ções" onClick="return '.$v_frase.'"; '.($_SESSION['cs_nivel_administracao']<>1 && $_SESSION['cs_nivel_administracao']<>3?'disabled':'').'>'; |
| 280 | ?> | 272 | ?> |
| 281 | | 273 | |
| 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['gravainformacaoUON2']) { | @@ -43,18 +36,18 @@ if($_POST['gravainformacaoUON2']) { | ||
| 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 "../../../include/library.php"; | @@ -30,7 +23,8 @@ include_once "../../../include/library.php"; | ||
| 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('etiqueta1'); | @@ -44,9 +38,11 @@ session_register('etiqueta1'); | ||
| 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['HTTP_REFERER'],'navegacao'); | @@ -429,7 +416,8 @@ $pos = substr_count($_SERVER['HTTP_REFERER'],'navegacao'); | ||
| 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['nm_arquivo']) | @@ -40,7 +40,7 @@ if ($_REQUEST['nm_arquivo']) | ||
| 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['nm_arquivo']) | @@ -81,7 +81,7 @@ if ($_REQUEST['nm_arquivo']) | ||
| 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['nm_arquivo']) | @@ -95,7 +95,7 @@ if ($_REQUEST['nm_arquivo']) | ||
| 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['nm_arquivo']) | @@ -126,4 +126,4 @@ if ($_REQUEST['nm_arquivo']) | ||
| 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
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ão de novo Grupo </td> | 122 | <td class="cabecalho">Inclusã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"> </td> | 36 | <td rowspan="5" bgcolor="#FFFFFF"> </td> |
| 44 | <td bgcolor="#FFFFFF"> </td> | 37 | <td bgcolor="#FFFFFF"> </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"> </td> | 45 | <td rowspan="5" bgcolor="#FFFFFF"> </td> |
| 52 | <td bgcolor="#FFFFFF"> </td> | 46 | <td bgcolor="#FFFFFF"> </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['ExcluiSoftware']) | @@ -36,27 +29,25 @@ if ($_REQUEST['ExcluiSoftware']) | ||
| 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ções abaixo referem-se a um | 177 | <td class="descricao">As informações abaixo referem-se a um |
| @@ -117,30 +180,6 @@ $pos = substr_count($_SERVER['HTTP_REFERER'],'navegacao'); | @@ -117,30 +180,6 @@ $pos = substr_count($_SERVER['HTTP_REFERER'],'navegacao'); | ||
| 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['HTTP_REFERER'],'navegacao'); | @@ -149,7 +188,7 @@ $pos = substr_count($_SERVER['HTTP_REFERER'],'navegacao'); | ||
| 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['HTTP_REFERER'],'navegacao'); | @@ -159,7 +198,7 @@ $pos = substr_count($_SERVER['HTTP_REFERER'],'navegacao'); | ||
| 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['HTTP_REFERER'],'navegacao'); | @@ -169,7 +208,7 @@ $pos = substr_count($_SERVER['HTTP_REFERER'],'navegacao'); | ||
| 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['HTTP_REFERER'],'navegacao'); | @@ -179,7 +218,7 @@ $pos = substr_count($_SERVER['HTTP_REFERER'],'navegacao'); | ||
| 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['HTTP_REFERER'],'navegacao'); | @@ -189,7 +228,7 @@ $pos = substr_count($_SERVER['HTTP_REFERER'],'navegacao'); | ||
| 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['HTTP_REFERER'],'navegacao'); | @@ -200,32 +239,9 @@ $pos = substr_count($_SERVER['HTTP_REFERER'],'navegacao'); | ||
| 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çõ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 | - | ||
| 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('../repositorio')) | @@ -310,4 +306,4 @@ if ($handle = opendir('../repositorio')) | ||
| 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('../../include/library.php'); | @@ -291,4 +285,4 @@ require_once('../../include/library.php'); | ||
| 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="undefined", | @@ -40,7 +40,7 @@ function draw( $p_msg="undefined", | ||
| 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['msg'], | @@ -128,4 +128,4 @@ draw($_GET['msg'], | ||
| 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(); |
changelog.txt
| @@ -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ório do Espírito Santo</p> | 324 | pela Dataprev - Escritório do Espí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"> </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 |