Commit fe84138451d96744ae1a1508afe8f2fa4d5e28c0

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

gerente - atualização

- correção de subdiretório "cacic2" explicito no código em alguns arquivos
- correção de direção da "seta" para "next"

git-svn-id: http://svn.softwarepublico.gov.br/svn/cacic/cacic/trunk/gerente@215 fecfc0c7-e812-0410-ae72-849f08638ee7
admin/softwares.php
... ... @@ -13,7 +13,7 @@ if($_POST['submit']) {
13 13 $_SESSION["list6"] = $_POST['list6']; //Softwares selecionados
14 14 }
15 15  
16   -require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php');
  16 +require_once('../include/library.php');
17 17  
18 18 conecta_bd_cacic();
19 19 $linha = '<tr bgcolor="#e7e7e7">
... ... @@ -39,7 +39,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0
39 39 <body bgcolor="#FFFFFF" topmargin="5">
40 40 <table border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#999999">
41 41 <tr bgcolor="#E1E1E1">
42   - <td rowspan="5" bgcolor="#FFFFFF"><img src="/cacic2/imgs/cacic_novo.gif" width="50" height="50"></td>
  42 + <td rowspan="5" bgcolor="#FFFFFF"><img src="../imgs/cacic_novo.gif" width="50" height="50"></td>
43 43 <td rowspan="5" bgcolor="#FFFFFF">&nbsp;</td>
44 44 <td bgcolor="#FFFFFF">&nbsp;</td>
45 45 </tr>
... ...
admin/usuarios/textpng.php
... ... @@ -40,7 +40,7 @@ function draw( $p_msg=&quot;undefined&quot;,
40 40  
41 41 // determine font height.
42 42 header("Content-type: image/png");
43   - $path = $_SERVER['DOCUMENT_ROOT'] . '/cacic2/admin/usuarios/TIMES.TTF';
  43 + $path = '../../admin/usuarios/TIMES.TTF';
44 44 $bounds = imagettfbbox($p_size, $p_rot, $path, "W");
45 45 GravaTESTES('2 - Caminho = '.$path);
46 46 GravaTESTES('2 - ImageTTFBBox 1...');
... ...
include/dyncalendar.js
... ... @@ -162,7 +162,7 @@
162 162  
163 163 prevImgHTML = sprintf('<img src="%s/prev.gif" alt="<<" border="0" />', this.imagesPath);
164 164 prevLinkHTML = sprintf('<a href="javascript: %s.show(%s, %s)">%s</a>', this.objName, previousMonth, previousYear, prevImgHTML);
165   - nextImgHTML = sprintf('<img src="%s/next.gif" alt="<<" border="0" />', this.imagesPath);
  165 + nextImgHTML = sprintf('<img src="%s/next.gif" alt=">>" border="0" />', this.imagesPath);
166 166 nextLinkHTML = sprintf('<a href="javascript: %s.show(%s, %s)">%s</a>', this.objName, nextMonth, nextYear, nextImgHTML);
167 167  
168 168 /**
... ...
include/exibe_consultas_texto.php
1   -<link href="/cacic2/include/cacic.css" rel="stylesheet" type="text/css">
  1 +<link href="../include/cacic.css" rel="stylesheet" type="text/css">
2 2 <table bordercolor="#000000" border="1" align="center" cellpadding="0" cellspacing="0">
3 3 <?
4 4 $strCor = '#CCCCCC';
... ...
relatorios/alteracoes_software/combo_software_inv.php
... ... @@ -9,10 +9,6 @@ if(!isset($_SESSION[&#39;id_usuario&#39;]))
9 9 else { // Inserir regras para outras verificações (ex: permissões do usuário)!
10 10 }
11 11  
12   -/*require $_SERVER['DOCUMENT_ROOT'] . '/cacic2/verificar.php';
13   -if ($_POST['submit']) {
14   - header ("Location: incluir_grupos.php");
15   -}*/
16 12 include_once "../../include/library.php";
17 13 Conecta_bd_cacic();
18 14 $texto = "";
... ...
relatorios/alteracoes_software/index.php
1 1 <?
2 2 /*
3   -
4   -Caminho do css
5   - /cacic2/include/cacic.css
6   -
7 3 Copyright 2000, 2001, 2002, 2003, 2004, 2005 Dataprev - Empresa de Tecnologia e Informações da Previdência Social, Brasil
8 4  
9 5 Este arquivo é parte do programa CACIC - Configurador Automático e Coletor de Informações Computacionais
... ... @@ -17,7 +13,14 @@ Caminho do css
17 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
18 14 Livre(FSF) Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 15 */
20   -require $_SERVER['DOCUMENT_ROOT'] . '/cacic2/verificar.php';
  16 +session_start();
  17 +/*
  18 + * verifica se houve login e também regras para outras verificações (ex: permissões do usuário)!
  19 + */
  20 +if(!isset($_SESSION['id_usuario']))
  21 + die('Acesso negado!');
  22 +else { // Inserir regras para outras verificações (ex: permissões do usuário)!
  23 +}
21 24  
22 25 if ($_POST['submit']) {
23 26 header ("Location: incluir_grupos.php");
... ... @@ -175,13 +178,13 @@ function limpa(){
175 178 document.forma.palavra.value='';
176 179 }
177 180 </script>
178   - <script src="/cacic2/include/sniffer.js" type="text/javascript" language="javascript"></script>
179   - <script src="/cacic2/include/dyncalendar.js" type="text/javascript" language="javascript"></script>
180   - <link href="/cacic2/include/dyncalendar.css" media="screen" rel="stylesheet">
  181 + <script src="../../include/sniffer.js" type="text/javascript" language="javascript"></script>
  182 + <script src="../../include/dyncalendar.js" type="text/javascript" language="javascript"></script>
  183 + <link href="../../include/dyncalendar.css" media="screen" rel="stylesheet">
181 184 </head>
182 185  
183 186 <body background="../../imgs/linha_v.gif">
184   -<script language="JavaScript" type="text/javascript" src="http://<? echo $_SERVER['HTTP_HOST'].'/cacic2/include/cacic.js';?>"></script>
  187 +<script language="JavaScript" type="text/javascript" src="../include/cacic.js"></script>
185 188 <form action="" method="post" name="forma" id="forma">
186 189 <table width="90%" border="0" align="center">
187 190 <tr>
... ...
relatorios/alteracoes_software/rel_alteracoes_software.php
... ... @@ -56,7 +56,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0
56 56 <body bgcolor="#FFFFFF" topmargin="5">
57 57 <table border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#999999">
58 58 <tr bgcolor="#E1E1E1">
59   - <td rowspan="5" bgcolor="#FFFFFF"><img src="/cacic2/imgs/cacic_novo.gif" width="50" height="50"></td>
  59 + <td rowspan="5" bgcolor="#FFFFFF"><img src="../../imgs/cacic_novo.gif" width="50" height="50"></td>
60 60 <td rowspan="5" bgcolor="#FFFFFF">&nbsp;</td>
61 61 <td bgcolor="#FFFFFF">&nbsp;</td>
62 62 </tr>
... ...
relatorios/software/rel_softwares_generico.php
... ... @@ -28,7 +28,7 @@ if($_POST[&#39;submit&#39;]) {
28 28 $_SESSION["filtro_tr"] = $_POST['filtro_tr']; //Softwares selecionados
29 29 }
30 30  
31   -require_once($_SERVER['DOCUMENT_ROOT'] . '/cacic2/include/library.php');
  31 +require_once('../../include/library.php');
32 32  
33 33 conecta_bd_cacic();
34 34 $linha = '<tr bgcolor="#e7e7e7">
... ... @@ -54,7 +54,7 @@ function MM_openBrWindow(theURL,winName,features) { //v2.0
54 54 <body bgcolor="#FFFFFF" topmargin="5">
55 55 <table border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#999999">
56 56 <tr bgcolor="#E1E1E1">
57   - <td rowspan="5" bgcolor="#FFFFFF"><img src="/cacic2/imgs/cacic_novo.gif" width="50" height="50"></td>
  57 + <td rowspan="5" bgcolor="#FFFFFF"><img src="../../imgs/cacic_novo.gif" width="50" height="50"></td>
58 58 <td rowspan="5" bgcolor="#FFFFFF">&nbsp;</td>
59 59 <td bgcolor="#FFFFFF">&nbsp;</td>
60 60 </tr>
... ...