Commit f3769f62761fd79e6bf7448cc93a15c3deddfdd3

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

Conclusao de scripts utilizados no tratamento de Servidores de Autenticacao.

git-svn-id: http://svn.softwarepublico.gov.br/svn/cacic/cacic/trunk/gerente@783 fecfc0c7-e812-0410-ae72-849f08638ee7
admin/servidores_autenticacao/detalhes_servidor_autenticacao.php 0 → 100755
... ... @@ -0,0 +1,430 @@
  1 +<?
  2 + /*
  3 + Copyright 2000, 2001, 2002, 2003, 2004, 2005 Dataprev - Empresa de Tecnologia e Informações da Previdência Social, Brasil
  4 +
  5 + Este arquivo é parte do programa CACIC - Configurador Automático e Coletor de Informações Computacionais
  6 +
  7 + O CACIC é um software livre; você pode redistribui-lo e/ou modifica-lo dentro dos termos da Licença Pública Geral GNU como
  8 + publicada pela Fundação do Software Livre (FSF); na versão 2 da Licença, ou (na sua opnião) qualquer versão.
  9 +
  10 + Este programa é distribuido na esperança que possa ser util, mas SEM NENHUMA GARANTIA; sem uma garantia implicita de ADEQUAÇÂO a qualquer
  11 + MERCADO ou APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU para maiores detalhes.
  12 +
  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
  15 + */
  16 +session_start();
  17 +require_once('../../include/library.php');
  18 +
  19 +AntiSpy('1,2'); // Permitido somente a estes cs_nivel_administracao...
  20 +
  21 +// 1 - Administração
  22 +// 2 - Gestão Central
  23 +
  24 +
  25 +conecta_bd_cacic();
  26 +
  27 +
  28 +if ($_POST['ExcluiServidorAutencicacao'] <> '' && $_SESSION['cs_nivel_administracao']==1)
  29 + {
  30 + $query = "UPDATE servidores_autenticacao
  31 + SET in_ativo = 'N'
  32 + WHERE id_servidor_autenticacao = ".$_POST['frm_id_servidor_autenticacao'];
  33 +
  34 + mysql_query($query) or die('Update falhou ou sua sessão expirou!');
  35 + GravaLog('UPD',$_SERVER['SCRIPT_NAME'],'servidores_autenticacao');
  36 + header ("Location: ../../include/operacao_ok.php?chamador=../admin/servidores_autenticacao/index.php&tempo=1");
  37 + }
  38 +else if ($_POST['GravaAlteracoes'] <> '' && $_SESSION['cs_nivel_administracao']==1)
  39 + {
  40 + $in_ativo = ($_POST['frm_in_ativo']=='S'?$_POST['frm_in_ativo']:'N');
  41 +
  42 + $query = "UPDATE servidores_autenticacao
  43 + SET nm_servidor_autenticacao = '".$_POST['frm_nm_servidor_autenticacao'] ."',
  44 + te_ip_servidor_autenticacao = '".$_POST['frm_te_ip_servidor_autenticacao'] ."',
  45 + id_tipo_protocolo = '".$_POST['frm_id_tipo_protocolo'] ."',
  46 + nu_versao_protocolo = '".$_POST['frm_nu_versao_protocolo'] ."',
  47 + te_base_consulta_raiz = '".$_POST['frm_te_base_consulta_raiz'] ."',
  48 + te_base_consulta_folha = '".$_POST['frm_te_base_consulta_folha'] ."',
  49 + te_atributo_identificador = '".$_POST['frm_te_atributo_identificador'] ."',
  50 + te_atributo_retorna_nome = '".$_POST['frm_te_atributo_retorna_nome'] ."',
  51 + te_atributo_retorna_email = '".$_POST['frm_te_atributo_retorna_email'] ."',
  52 + te_observacao = '".$_POST['frm_te_observacao'] ."',
  53 + in_ativo = '".$in_ativo ."'
  54 + WHERE id_servidor_autenticacao = ".$_POST['frm_id_servidor_autenticacao'];
  55 +
  56 + mysql_query($query) or die('Update falhou ou sua sessão expirou!');
  57 + GravaLog('UPD',$_SERVER['SCRIPT_NAME'],'servidores_autenticacao');
  58 + header ("Location: ../../include/operacao_ok.php?chamador=../admin/servidores_autenticacao/index.php&tempo=1");
  59 + }
  60 +else
  61 + {
  62 + $query = "SELECT *
  63 + FROM servidores_autenticacao
  64 + WHERE id_servidor_autenticacao = ".$_GET['id_servidor_autenticacao'];
  65 + $result = mysql_query($query) or die ('Erro no acesso à tabela servidores_autenticacao ou sua sessão expirou!');
  66 +
  67 + $row = mysql_fetch_array($result);
  68 + ?>
  69 + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  70 + <html>
  71 + <head>
  72 + <link rel="stylesheet" type="text/css" href="../../include/cacic.css">
  73 + <title>Detalhes de Servidor de Autentica&ccedil;&atilde;o</title>
  74 + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  75 + <SCRIPT LANGUAGE="JavaScript">
  76 +
  77 + function valida_form()
  78 + {
  79 +
  80 + if ( document.form.frm_nm_servidor_autenticacao.value == "" )
  81 + {
  82 + alert("O nome é obrigatório.");
  83 + document.form.frm_nm_servidor_autenticacao.focus();
  84 + return false;
  85 + }
  86 + else if ( document.form.frm_te_ip_servidor_autenticacao.value == "" )
  87 + {
  88 + alert("O IP é obrigatório.");
  89 + document.form.frm_te_ip_servidor_autenticacao.focus();
  90 + return false;
  91 + }
  92 + else if ( document.form.frm_id_tipo_protocolo.value == "" )
  93 + {
  94 + alert("Selecione o Tipo de Protocolo.");
  95 + document.form.frm_id_tipo_protocolo.focus();
  96 + return false;
  97 + }
  98 + else if ( document.form.frm_te_base_consulta_raiz.value == "" )
  99 + {
  100 + alert("A base para consulta em raiz é obrigatória.");
  101 + document.form.frm_te_base_consulta_raiz.focus();
  102 + return false;
  103 + }
  104 + else if ( document.form.frm_te_base_consulta_folha.value == "" )
  105 + {
  106 + alert("A base para consulta em folha é obrigatória.");
  107 + document.form.frm_te_base_consulta_folha.focus();
  108 + return false;
  109 + }
  110 + else if ( document.form.frm_te_atributo_retorna_nome.value == "" )
  111 + {
  112 + alert("O atributo para retorno de nome completo é obrigatório.");
  113 + document.form.frm_te_atributo_retorna_nome.focus();
  114 + return false;
  115 + }
  116 + else if ( document.form.frm_te_atributo_retorna_email.value == "" )
  117 + {
  118 + alert("O atributo para retorno de email é obrigatório.");
  119 + document.form.frm_te_atributo_retorna_email.focus();
  120 + return false;
  121 + }
  122 + else if ( document.form.frm_te_atributo_identificador.value == "" )
  123 + {
  124 + alert("O atributo identificador é obrigatório.");
  125 + document.form.frm_te_atributo_identificador.focus();
  126 + return false;
  127 + }
  128 + return true;
  129 + }
  130 + </script>
  131 + <style type="text/css">
  132 +<!--
  133 +.style2 { font-size: 9px;
  134 + color: #000099;
  135 +}
  136 +-->
  137 + </style>
  138 + </head>
  139 +
  140 + <body background="../../imgs/linha_v.gif" onLoad="SetaCampo('frm_nm_servidor_autenticacao');">
  141 + <script language="JavaScript" type="text/javascript" src="../../include/cacic.js"></script>
  142 + <table width="90%" border="0" align="center">
  143 + <tr>
  144 + <td class="cabecalho">Detalhes do Servidor de Autentica&ccedil;&atilde;o "<? echo $row['nm_servidor_autenticacao'];?>"</td>
  145 + </tr>
  146 + <tr>
  147 + <td class="descricao">As informa&ccedil;&otilde;es referem-se a um servidor usado na autentica&ccedil;&atilde;o de usu&aacute;rios do suporte remoto seguro.</td>
  148 + </tr>
  149 + </table>
  150 + <form action="detalhes_servidor_autenticacao.php" method="post" ENCTYPE="multipart/form-data" name="form">
  151 + <table width="90%" border="0" align="center" cellpadding="0" cellspacing="1">
  152 + <tr>
  153 + <td class="label"><br>Nome do Servidor de Autenticação:</td>
  154 + <td nowrap class="label"><br>Endere&ccedil;o IP do Servidor de Autenticação:</td>
  155 + </tr>
  156 + <tr><td height="1" bgcolor="#333333" colspan="3"></td></tr>
  157 + <tr>
  158 + <td class="label_peq_sem_fundo"> <input name="frm_nm_servidor_autenticacao" type="text" size="60" maxlength="60" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);" value="<? echo $row['nm_servidor_autenticacao'];?>">
  159 + <input name="frm_id_servidor_autenticacao" type="hidden" value="<? echo $_GET['id_servidor_autenticacao'];?>"></td>
  160 + <td class="label_peq_sem_fundo"><input name="frm_te_ip_servidor_autenticacao" type="text" size="30" maxlength="15" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);" id="frm_te_ip_servidor_autenticacao" value="<? echo $row['te_ip_servidor_autenticacao'];?>"></td>
  161 + </tr>
  162 + <tr>
  163 + <td class="label"><div align="left"><br>Protocolo:</div></td>
  164 + <td class="label"><div align="left"><br>Vers&atilde;o:</div></td>
  165 + </tr>
  166 + <tr>
  167 + <td height="1" bgcolor="#333333" colspan="3"></td>
  168 + </tr>
  169 + <tr>
  170 + <td nowrap><label>
  171 + <select name="frm_id_tipo_protocolo" class="opcao_tabela" id="frm_id_tipo_protocolo">
  172 + <option value="LDAP" <? if ($row['id_tipo_protocolo']=='LDAP') echo 'selected';?>>LDAP</option>
  173 + <option value="Open LDAP"<? if ($row['id_tipo_protocolo']=='Open LDAP') echo 'selected';?>>Open LDAP</option>
  174 + </select>
  175 + </label></td>
  176 + <td class="label"><div align="left"><span class="label_peq_sem_fundo" id="frm_nu_versao_protocolo">
  177 + <input name="frm_nu_versao_protocolo" type="text" size="60" maxlength="10" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);" id="frm_nu_versao_protocolo" value="<? echo $row['nu_versao_protocolo'];?>" >
  178 + </span></div></td>
  179 + </tr>
  180 + <tr>
  181 + <td class="label"><p><br>
  182 + Base para Consulta em Ra&iacute;z: <span class="normal style2">(Ex.: &quot;dc=br, dc=com, dc=dominio&quot;</span><span class="normal style2">)</span></p></td>
  183 + <td class="label"><p><br>
  184 + Base para Consulta em Folha: <span class="normal style2">(Ex.: &quot;ou=pessoas, ou=usuarios&quot;</span><span class="normal style2">)</span></p></td>
  185 + </tr>
  186 + <tr>
  187 + <td height="1" bgcolor="#333333" colspan="3"></td>
  188 + </tr>
  189 + <tr>
  190 + <td><span class="label_peq_sem_fundo">
  191 + <input name="frm_te_base_consulta_raiz" type="text" size="60" maxlength="100" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);" id="frm_te_base_consulta_raiz" value="<? echo $row['te_base_consulta_raiz'];?>" >
  192 + </span></td>
  193 + <td><span class="label_peq_sem_fundo">
  194 + <input name="frm_te_base_consulta_folha" type="text" size="60" maxlength="100" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);" id="frm_te_base_consulta_folha" value="<? echo $row['te_base_consulta_folha'];?>" >
  195 + </span></td>
  196 + </tr>
  197 + <tr>
  198 + <td>&nbsp;</td>
  199 + <td>&nbsp;</td>
  200 + </tr>
  201 + <tr>
  202 + <td class="label"><p><br>
  203 + Atributo para Identifica&ccedil;&atilde;o: <span class="normal style2">(Ex.: &quot;uniqueID&quot;</span><span class="normal style2">)</span></p></td>
  204 + <td>&nbsp;</td>
  205 + </tr>
  206 + <tr>
  207 + <td><span class="label_peq_sem_fundo">
  208 + <input name="frm_te_atributo_identificador" type="text" size="60" maxlength="100" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);" id="frm_te_atributo_identificador" value="<? echo $row['te_atributo_identificador'];?>" >
  209 + </span></td>
  210 + <td>&nbsp;</td>
  211 + </tr>
  212 +
  213 + <tr>
  214 + <td class="label"><p><br>
  215 + Atributo para Retorno de Nome Completo: <span class="normal style2">(Ex.: &quot;fullName&quot;</span><span class="normal style2">)</span></p></td>
  216 + <td class="label"><p><br>
  217 + Atributo para Retorno de Email: <span class="normal style2">(Ex: &quot;email&quot;</span><span class="normal style2">)</span></p></td>
  218 + <td>&nbsp;</td>
  219 + </tr>
  220 + <tr>
  221 + <td><span class="label_peq_sem_fundo">
  222 + <input name="frm_te_atributo_retorna_nome" type="text" size="60" maxlength="100" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);" id="frm_te_atributo_retorna_nome" value="<? echo $row['te_atributo_retorna_nome'];?>" >
  223 + </span></td>
  224 + <td><span class="label_peq_sem_fundo">
  225 + <input name="frm_te_atributo_retorna_email" type="text" size="60" maxlength="100" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);" id="frm_te_atributo_retorna_email" value="<? echo $row['te_atributo_retorna_email'];?>" >
  226 + </span></td>
  227 + <td>&nbsp;</td>
  228 + </tr>
  229 + <tr>
  230 + <td colspan="3">&nbsp;</td>
  231 + </tr>
  232 + <tr>
  233 + <td colspan="2" class="label"><div align="left"><br>
  234 + Observa&ccedil;&otilde;es:</div></td>
  235 + <td>&nbsp;</td>
  236 + </tr>
  237 + <tr>
  238 + <td colspan="2"><span class="label_peq_sem_fundo">
  239 + <input name="frm_te_observacao" type="text" size="100" maxlength="100" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);" id="frm_te_observacao" value="<? echo $row['te_observacao'];?>" >
  240 + </span></td>
  241 + <td>&nbsp;</td>
  242 + </tr>
  243 + <tr>
  244 + <td colspan="2">&nbsp;</td>
  245 + <td>&nbsp;</td>
  246 + </tr>
  247 + <tr>
  248 + <td colspan="2" class="label"><div align="left"><br>
  249 + <label>
  250 + <input type="checkbox" name="frm_in_ativo" id="frm_in_ativo" value="S" <? echo ($row['in_ativo']=='S'?'checked':'');?>>
  251 + Servidor Ativo</label>
  252 + </div></td>
  253 + <td>&nbsp;</td>
  254 + </tr>
  255 + </table>
  256 +
  257 + <br>
  258 + <table width="90%" border="0" align="center" cellpadding="0" cellspacing="1">
  259 + <tr>
  260 + <td colspan="7" class="label">Redes Associadas ao Servidor de Autenticação:</td>
  261 + </tr>
  262 + <tr>
  263 + <td height="1" bgcolor="#333333" colspan="7"></td>
  264 + </tr>
  265 + <?
  266 + $query = "SELECT count(id_servidor_autenticacao) as Total
  267 + FROM redes
  268 + WHERE id_servidor_autenticacao = ".$_GET['id_servidor_autenticacao'];
  269 + $result = mysql_query($query) or die ('Erro no acesso à tabela redes ou sua sessão expirou!');
  270 + $rowRedesServidorAutenticacao = mysql_fetch_array($result);
  271 + if ($rowRedesServidorAutenticacao['Total'] > 0)
  272 + {
  273 + ?>
  274 + <tr>
  275 + <td class="cabecalho_tabela">&nbsp;</td>
  276 + <td class="cabecalho_tabela">&nbsp;</td>
  277 + <td align="left" nowrap class="cabecalho_tabela">Local</td>
  278 + <td class="cabecalho_tabela">&nbsp;</td>
  279 + <td align="left" nowrap class="cabecalho_tabela">IP</td>
  280 + <td align="left" class="cabecalho_tabela">&nbsp;</td>
  281 + <td align="left" class="cabecalho_tabela">Rede</td>
  282 + </tr>
  283 + <tr>
  284 + <td height="1" bgcolor="#333333" colspan="7"></td>
  285 + </tr>
  286 +
  287 + <?
  288 +
  289 + $query = "SELECT r.id_ip_rede,
  290 + r.nm_rede,
  291 + l.id_local,
  292 + l.sg_local,
  293 + l.nm_local
  294 + FROM redes r,
  295 + locais l
  296 + WHERE r.id_servidor_autenticacao = ".$_GET['id_servidor_autenticacao'] ." AND
  297 + l.id_local = r.id_local
  298 + ORDER BY l.sg_local,l.nm_local,r.nm_rede";
  299 + $result = mysql_query($query) or die ('Erro no acesso à tabela redes ou sua sessão expirou!');
  300 +
  301 + $seq = 1;
  302 + $Cor = 1;
  303 + while ($row = mysql_fetch_array($result))
  304 + {
  305 + ?>
  306 + <tr <? if ($Cor) echo 'bgcolor="#E1E1E1"'; ?>>
  307 + <td width="3%" align="center" nowrap class="opcao_tabela"><a href="../redes/detalhes_rede.php?id_ip_rede=<? echo $row['id_ip_rede'];?>&nm_chamador=servidores_autenticacao"><? echo $seq; ?></a></td>
  308 + <td width="1%" align="left" nowrap class="opcao_tabela">&nbsp;&nbsp;</td>
  309 + <td width="1%" align="left" nowrap class="opcao_tabela"><a href="../locais/detalhes_local.php?id_local=<? echo $row['id_local'];?>&nm_chamador=servidores_autenticacao"><? echo $row['sg_local'].'/'.$row['nm_local']; ?></a></td>
  310 + <td width="1%" align="left" nowrap class="opcao_tabela">&nbsp;</td>
  311 + <td width="3%" align="left" nowrap class="opcao_tabela"><a href="../redes/detalhes_rede.php?id_ip_rede=<? echo $row['id_ip_rede'];?>&nm_chamador=servidores_autenticacao"><? echo $row['id_ip_rede']; ?></a></td>
  312 + <td width="1%" align="left" class="opcao_tabela">&nbsp;&nbsp;</td>
  313 + <td width="92%" align="left" class="opcao_tabela"><a href="../redes/detalhes_rede.php?id_ip_rede=<? echo $row['id_ip_rede'];?>&nm_chamador=servidores_autenticacao"><? echo $row['nm_rede']; ?></a></td>
  314 + </tr>
  315 + <?
  316 + $seq++;
  317 + $Cor=!$Cor;
  318 + }
  319 +
  320 + }
  321 + else
  322 + echo '<tr><td colspan="5" class="label_vermelho">Ainda não existem redes associadas ao servidor de autenticação!</td></tr>';
  323 + ?>
  324 + <tr>
  325 + <td height="1" bgcolor="#333333" colspan="7"></td>
  326 + </tr>
  327 + </table>
  328 + <?
  329 + /*
  330 + <br>
  331 + <table width="90%" border="0" align="center" cellpadding="0" cellspacing="1">
  332 + <tr>
  333 + <td colspan="10" class="label">Usu&aacute;rios Associados ao Servidor de Autenticação:</td>
  334 + </tr>
  335 + <tr>
  336 + <td height="1" bgcolor="#333333" colspan="10"></td>
  337 + </tr>
  338 + <?
  339 + $query = "SELECT count(id_servidor_autenticacao) as Total
  340 + FROM usuarios
  341 + WHERE id_servidor_autenticacao = ".$_GET['id_servidor_autenticacao'];
  342 + $result = mysql_query($query) or die ('Erro no acesso à tabela usuários ou sua sessão expirou!');
  343 + $rowUsuariosServidorAutenticacao = mysql_fetch_array($result);
  344 + if ($rowUsuariosServidorAutenticacao['Total'] > 0)
  345 + {
  346 + ?>
  347 + <tr>
  348 + <td class="cabecalho_tabela">&nbsp;</td>
  349 + <td class="cabecalho_tabela">&nbsp;</td>
  350 + <td align="left" class="cabecalho_tabela">Local</td>
  351 + <td class="cabecalho_tabela">&nbsp;</td>
  352 + <td align="left" nowrap class="cabecalho_tabela">Nome de Acesso</td>
  353 + <td align="left" class="cabecalho_tabela">&nbsp;</td>
  354 + <td align="left" class="cabecalho_tabela">Nome Completo</td>
  355 + <td align="left" class="cabecalho_tabela">Email</td>
  356 + <td align="left" class="cabecalho_tabela">Telefone/Ramal</td>
  357 + <td align="left" class="cabecalho_tabela">&nbsp;</td>
  358 + </tr>
  359 + <tr>
  360 + <td height="1" bgcolor="#333333" colspan="10"></td>
  361 + </tr>
  362 +
  363 + <?
  364 + $query = "SELECT u.id_usuario,
  365 + u.nm_usuario_acesso,
  366 + u.nm_usuario_completo,
  367 + u.te_emails_contato,
  368 + u.te_telefones_contato,
  369 + l.sg_local,
  370 + l.nm_local,
  371 + l.id_local
  372 + FROM usuarios u,
  373 + locais l
  374 + WHERE u.id_servidor_autenticacao = ".$_GET['id_servidor_autenticacao']." AND
  375 + u.id_local = l.id_local
  376 + ORDER BY l.nm_local,u.nm_usuario_acesso";
  377 + $result = mysql_query($query) or die ('Erro no acesso à tabela redes ou sua sessão expirou!');
  378 + $seq = 1;
  379 + $Cor = 1;
  380 + while ($row = mysql_fetch_array($result))
  381 + {
  382 + ?>
  383 + <tr <? if ($Cor) echo 'bgcolor="#E1E1E1"'; ?>>
  384 + <td width="3%" align="center" nowrap class="opcao_tabela"><a href="../usuarios/detalhes_usuario.php?id_usuario=<? echo $row['id_usuario'];?>&nm_chamador=servidores_autenticacao"><? echo $seq; ?></a></td>
  385 + <td width="1%" align="left" nowrap class="opcao_tabela">&nbsp;&nbsp;</td>
  386 + <td width="1%" align="left" nowrap class="opcao_tabela"><a href="../locais/detalhes_local.php?id_local=<? echo $row['id_local'];?>&nm_chamador=servidores_autenticacao"><? echo $row['sg_local'].'/'.$row['nm_local']; ?></a></td>
  387 + <td width="1%" align="left" nowrap class="opcao_tabela">&nbsp;</td>
  388 + <td width="3%" align="left" nowrap class="opcao_tabela"><a href="../usuarios/detalhes_usuario.php?id_usuario=<? echo $row['id_usuario'];?>&nm_chamador=servidores_autenticacao"><? echo $row['nm_usuario_acesso']; ?></a></td>
  389 + <td width="1%" align="left" class="opcao_tabela">&nbsp;&nbsp;</td>
  390 + <td width="92%" align="left" class="opcao_tabela"><a href="../usuarios/detalhes_usuario.php?id_usuario=<? echo $row['id_usuario'];?>&nm_chamador=servidores_autenticacao"><? echo $row['nm_usuario_completo']; ?></a></td>
  391 + <td width="92%" align="left" class="opcao_tabela"><a href="../usuarios/detalhes_usuario.php?id_usuario=<? echo $row['id_usuario'];?>&nm_chamador=servidores_autenticacao"><? echo $row['te_emails_contato']; ?></a></td>
  392 + <td width="92%" align="left" class="opcao_tabela"><a href="../usuarios/detalhes_usuario.php?id_usuario=<? echo $row['id_usuario'];?>&nm_chamador=servidores_autenticacao"><? echo $row['te_telefones_contato']; ?></a></td>
  393 + <td width="92%" align="left" class="opcao_tabela">&nbsp;</td>
  394 + </tr>
  395 + <?
  396 + $seq++;
  397 + $Cor=!$Cor;
  398 + }
  399 + }
  400 + else
  401 + echo '<tr><td colspan="5" class="label_vermelho">Ainda não existem usuários associados ao servidor de autenticação!</td></tr>';
  402 + ?>
  403 + <tr>
  404 + <td height="1" bgcolor="#333333" colspan="10"></td>
  405 + </tr>
  406 + </table>
  407 + */
  408 + ?>
  409 + <table width="90%" border="0" align="center" cellpadding="0" cellspacing="1">
  410 + <tr><td colspan="5" align="center"><?
  411 + if ($_SESSION['cs_nivel_administracao']==1)
  412 + {
  413 + ?>
  414 + <br>
  415 + <p>
  416 + <input name="GravaAlteracoes" type="submit" id="GravaAlteracoes" value=" Gravar Altera&ccedil;&otilde;es " onClick="return Confirma('Confirma Informações para o Servidor de Autenticação?');return valida_form();">
  417 + &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  418 + <input name="ExcluiServidorAutenticacao" type="submit" id="ExcluiServidorAutenticacao" onClick="return Confirma('Confirma Exclusão(Desativação) do Servidor de Autenticação?');" value=" Excluir/Desativar Servidor de Autenticação">
  419 + </p>
  420 + <?
  421 + }
  422 + ?>
  423 + </td></tr>
  424 + </table>
  425 + </form>
  426 + </body>
  427 +</html>
  428 + <?
  429 + }
  430 +?>
... ...
admin/servidores_autenticacao/incluir_servidor_autenticacao.php 0 → 100755
... ... @@ -0,0 +1,273 @@
  1 +<?
  2 + /*
  3 + Copyright 2000, 2001, 2002, 2003, 2004, 2005 Dataprev - Empresa de Tecnologia e Informações da Previdência Social, Brasil
  4 +
  5 + Este arquivo é parte do programa CACIC - Configurador Automático e Coletor de Informações Computacionais
  6 +
  7 + O CACIC é um software livre; você pode redistribui-lo e/ou modifica-lo dentro dos termos da Licença Pública Geral GNU como
  8 + publicada pela Fundação do Software Livre (FSF); na versão 2 da Licença, ou (na sua opnião) qualquer versão.
  9 +
  10 + Este programa é distribuido na esperança que possa ser util, mas SEM NENHUMA GARANTIA; sem uma garantia implicita de ADEQUAÇÂO a qualquer
  11 + MERCADO ou APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU para maiores detalhes.
  12 +
  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
  15 + */
  16 + session_start();
  17 +include_once "../../include/library.php";
  18 +AntiSpy('1,2'); // Permitido somente a estes cs_nivel_administracao...
  19 +// 1 - Administração
  20 +// 2 - Gestão Central
  21 +
  22 +
  23 +if($_POST['submit']<>'' && $_SESSION['cs_nivel_administracao']==1)
  24 + {
  25 + Conecta_bd_cacic();
  26 +
  27 + $query = "SELECT *
  28 + FROM servidores_autenticacao
  29 + WHERE nm_servidor_autenticacao = '".$_POST['frm_nm_servidor_autenticacao']."'";
  30 + $result = mysql_query($query) or die ('1-Select falhou ou sua sessão expirou!');
  31 +
  32 + if (mysql_num_rows($result) > 0)
  33 + {
  34 + header ("Location: ../../include/registro_ja_existente.php?chamador=../admin/servidores_autenticacao/index.php&tempo=1");
  35 + }
  36 + else
  37 + {
  38 + $query = "INSERT
  39 + INTO servidores_autenticacao
  40 + (nm_servidor_autenticacao,
  41 + te_ip_servidor_autenticacao,
  42 + id_tipo_protocolo,
  43 + nu_versao_protocolo,
  44 + te_base_consulta_raiz,
  45 + te_base_consulta_folha,
  46 + te_atributo_identificador,
  47 + te_atributo_retorna_nome,
  48 + te_atributo_retorna_email,
  49 + te_observacao)
  50 + VALUES ('".$_POST['frm_nm_servidor_autenticacao']."',
  51 + '".$_POST['frm_te_ip_servidor_autenticacao']."',
  52 + '".$_POST['frm_id_tipo_protocolo']."',
  53 + '".$_POST['frm_nu_versao_protocolo']."',
  54 + '".$_POST['frm_te_base_consulta_raiz']."',
  55 + '".$_POST['frm_te_base_consulta_folha']."',
  56 + '".$_POST['frm_te_atributo_identificador']."',
  57 + '".$_POST['frm_te_atributo_retorna_nome']."',
  58 + '".$_POST['frm_te_atributo_retorna_email']."',
  59 + '".$_POST['frm_te_observacao']."')";
  60 + $result = mysql_query($query) or die ('2-Falha na Inserção em Servidores de Autenticação ou sua sessão expirou!');
  61 + GravaLog('INS',$_SERVER['SCRIPT_NAME'],'servidores_autenticacao');
  62 +
  63 + header ("Location: index.php");
  64 + }
  65 + }
  66 +else
  67 + {
  68 + ?>
  69 + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  70 + <html>
  71 + <head>
  72 + <link rel="stylesheet" type="text/css" href="../../include/cacic.css">
  73 + <title>Inclus&atilde;o de Servidor de Autentica&ccedil;&atilde;o</title>
  74 + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  75 + <SCRIPT LANGUAGE="JavaScript">
  76 +
  77 + function valida_form()
  78 + {
  79 +
  80 + if ( document.form.frm_nm_servidor_autenticacao.value == "" )
  81 + {
  82 + alert("O nome é obrigatório.");
  83 + document.form.frm_nm_servidor_autenticacao.focus();
  84 + return false;
  85 + }
  86 + else if ( document.form.frm_te_ip_servidor_autenticacao.value == "" )
  87 + {
  88 + alert("O IP é obrigatório.");
  89 + document.form.frm_te_ip_servidor_autenticacao.focus();
  90 + return false;
  91 + }
  92 + else if ( document.form.frm_id_tipo_protocolo.value == "" )
  93 + {
  94 + alert("Selecione o Tipo de Protocolo.");
  95 + document.form.frm_id_tipo_protocolo.focus();
  96 + return false;
  97 + }
  98 + else if ( document.form.frm_te_base_consulta_raiz.value == "" )
  99 + {
  100 + alert("A base para consulta em raiz é obrigatória.");
  101 + document.form.frm_te_base_consulta_raiz.focus();
  102 + return false;
  103 + }
  104 + else if ( document.form.frm_te_base_consulta_folha.value == "" )
  105 + {
  106 + alert("A base para consulta em folha é obrigatória.");
  107 + document.form.frm_te_base_consulta_folha.focus();
  108 + return false;
  109 + }
  110 + else if ( document.form.frm_te_atributo_retorna_nome.value == "" )
  111 + {
  112 + alert("O atributo para retorno de nome completo é obrigatório.");
  113 + document.form.frm_te_atributo_retorna_nome.focus();
  114 + return false;
  115 + }
  116 + else if ( document.form.frm_te_atributo_retorna_email.value == "" )
  117 + {
  118 + alert("O atributo para retorno de email é obrigatório.");
  119 + document.form.frm_te_atributo_retorna_email.focus();
  120 + return false;
  121 + }
  122 + else if ( document.form.frm_te_atributo_identificador.value == "" )
  123 + {
  124 + alert("O atributo identificador é obrigatório.");
  125 + document.form.frm_te_atributo_identificador.focus();
  126 + return false;
  127 + }
  128 + return true;
  129 + }
  130 + </script>
  131 + <script language="JavaScript" type="text/JavaScript">
  132 + <!--
  133 + function MM_reloadPage(init) { //reloads the window if Nav4 resized
  134 + if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
  135 + document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  136 + else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
  137 + }
  138 + MM_reloadPage(true);
  139 + //-->
  140 + </script>
  141 + <style type="text/css">
  142 +<!--
  143 +.style2 {
  144 + font-size: 9px;
  145 + color: #000099;
  146 +}
  147 +-->
  148 + </style>
  149 + </head>
  150 +
  151 + <body background="../../imgs/linha_v.gif" onLoad="SetaCampo('frm_nm_servidor_autenticacao');">
  152 + <script language="JavaScript" type="text/javascript" src="../../include/cacic.js"></script>
  153 + <table width="90%" border="0" align="center">
  154 + <tr>
  155 + <td class="cabecalho">Inclus&atilde;o
  156 + de Servidor de Autenticação</td>
  157 + </tr>
  158 + <tr>
  159 + <td class="descricao">As informa&ccedil;&otilde;es que dever&atilde;o ser
  160 + cadastradas abaixo referem-se a um servidor a ser utilizado na autentica&ccedil;&atilde;o de usu&aacute;rios do suporte remoto seguro. </td>
  161 + </tr>
  162 + </table>
  163 + <form action="incluir_servidor_autenticacao.php" method="post" ENCTYPE="multipart/form-data" name="form" onSubmit="return valida_form()">
  164 + <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
  165 + <tr>
  166 + <td class="label"><br>
  167 + Nome do Servidor de Autenticação:</td>
  168 + <td nowrap class="label"><br>
  169 + Endere&ccedil;o IP do Servidor de Autenticação:</td>
  170 + </tr>
  171 + <tr>
  172 + <td height="1" bgcolor="#333333" colspan="3"></td>
  173 + </tr>
  174 + <tr>
  175 + <td class="label_peq_sem_fundo"> <input name="frm_nm_servidor_autenticacao" type="text" size="60" maxlength="60" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);" >
  176 + &nbsp;&nbsp;</td>
  177 + <td class="label_peq_sem_fundo"><input name="frm_te_ip_servidor_autenticacao" type="text" size="30" maxlength="15" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);" id="frm_te_ip_servidor_autenticacao" ></td>
  178 + </tr>
  179 + <tr>
  180 + <td class="label"><div align="left"><br>
  181 + Protocolo:</div></td>
  182 + <td class="label"><div align="left"><br>
  183 + Vers&atilde;o:</div></td>
  184 + </tr>
  185 + <tr>
  186 + <td height="1" bgcolor="#333333" colspan="3"></td>
  187 + </tr>
  188 + <tr>
  189 + <td nowrap><label>
  190 + <select name="frm_id_tipo_protocolo" class="opcao_tabela" id="frm_id_tipo_protocolo">
  191 + <option value="LDAP" selected>LDAP</option>
  192 + <option value="Open LDAP">Open LDAP</option>
  193 + </select>
  194 + </label></td>
  195 + <td class="label"><div align="left"><span class="label_peq_sem_fundo">
  196 + <input name="frm_nu_versao_protocolo" type="text" size="30" maxlength="10" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);" id="frm_nu_versao_protocolo" >
  197 + </span></div></td>
  198 + </tr>
  199 + <tr>
  200 + <td class="label"><p><br>
  201 + Base para Consulta em Ra&iacute;z: <span class="normal style2">(Ex.: &quot;dc=br, dc=com, dc=dominio&quot;</span><span class="normal style2">)</span></p></td>
  202 + <td class="label"><p><br>
  203 + Base para Consulta em Folha: <span class="normal style2">(Ex.: &quot;ou=pessoas, ou=usuarios&quot;</span><span class="normal style2">)</span></p></td>
  204 + </tr>
  205 + <tr>
  206 + <td height="1" bgcolor="#333333" colspan="3"></td>
  207 + </tr>
  208 + <tr>
  209 + <td><span class="label_peq_sem_fundo">
  210 + <input name="frm_te_base_consulta_raiz" type="text" size="60" maxlength="100" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);" id="frm_te_base_consulta_raiz" >
  211 + </span></td>
  212 + <td><span class="label_peq_sem_fundo">
  213 + <input name="frm_te_base_consulta_folha" type="text" size="60" maxlength="100" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);" id="frm_te_base_consulta_folha" >
  214 + </span></td>
  215 + </tr>
  216 + <tr>
  217 + <td>&nbsp;</td>
  218 + <td>&nbsp;</td>
  219 + </tr>
  220 + <tr>
  221 + <td class="label"><p><br>
  222 + Atributo para Identifica&ccedil;&atilde;o: <span class="normal style2">(Ex.: &quot;uniqueID&quot;</span><span class="normal style2">)</span></p></td>
  223 + <td>&nbsp;</td>
  224 + </tr>
  225 + <tr>
  226 + <td><span class="label_peq_sem_fundo">
  227 + <input name="frm_te_atributo_identificador" type="text" size="60" maxlength="100" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);" id="frm_te_atributo_identificador" >
  228 + </span></td>
  229 + <td>&nbsp;</td>
  230 + </tr>
  231 +
  232 + <tr>
  233 + <td class="label"><p><br>
  234 + Atributo para Retorno de Nome Completo: <span class="normal style2">(Ex.: &quot;fullName&quot;</span><span class="normal style2">)</span></p></td>
  235 + <td class="label"><p><br>
  236 + Atributo para Retorno de Email: <span class="normal style2">(Ex: &quot;email&quot;</span><span class="normal style2">)</span></p></td>
  237 + <td>&nbsp;</td>
  238 + </tr>
  239 + <tr>
  240 + <td><span class="label_peq_sem_fundo">
  241 + <input name="frm_te_atributo_retorna_nome" type="text" size="60" maxlength="100" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);" id="frm_te_atributo_retorna_nome" >
  242 + </span></td>
  243 + <td><span class="label_peq_sem_fundo">
  244 + <input name="frm_te_atributo_retorna_email" type="text" size="60" maxlength="100" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);" id="frm_te_atributo_retorna_email" >
  245 + </span></td>
  246 + <td>&nbsp;</td>
  247 + </tr>
  248 + <tr>
  249 + <td colspan="3">&nbsp;</td>
  250 + </tr>
  251 + <tr>
  252 + <td colspan="2" class="label"><div align="left"><br>
  253 + Observa&ccedil;&otilde;es:</div></td>
  254 + <td>&nbsp;</td>
  255 + </tr>
  256 + <tr>
  257 + <td colspan="2"><span class="label_peq_sem_fundo">
  258 + <input name="frm_te_observacao" type="text" size="100" maxlength="100" class="normal" onFocus="SetaClassDigitacao(this);" onBlur="SetaClassNormal(this);" id="frm_te_observacao" >
  259 + </span></td>
  260 + <td>&nbsp;</td>
  261 + </tr>
  262 + </table>
  263 + <p align="center">
  264 + <input name="submit" type="submit" value=" Gravar Informa&ccedil;&otilde;es " onClick="return Confirma('Confirma Inclusão de Servidor de Autenticação?');">
  265 + </p>
  266 + </form>
  267 + <p>
  268 + <?
  269 + }
  270 +?>
  271 +</p>
  272 +</body>
  273 +</html>
... ...
admin/servidores_autenticacao/index.php 0 → 100755
... ... @@ -0,0 +1,216 @@
  1 +<?
  2 + /*
  3 + Copyright 2000, 2001, 2002, 2003, 2004, 2005 Dataprev - Empresa de Tecnologia e Informações da Previdência Social, Brasil
  4 +
  5 + Este arquivo é parte do programa CACIC - Configurador Automático e Coletor de Informações Computacionais
  6 +
  7 + O CACIC é um software livre; você pode redistribui-lo e/ou modifica-lo dentro dos termos da Licença Pública Geral GNU como
  8 + publicada pela Fundação do Software Livre (FSF); na versão 2 da Licença, ou (na sua opnião) qualquer versão.
  9 +
  10 + Este programa é distribuido na esperança que possa ser util, mas SEM NENHUMA GARANTIA; sem uma garantia implicita de ADEQUAÇÂO a qualquer
  11 + MERCADO ou APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU para maiores detalhes.
  12 +
  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
  15 + */
  16 +session_start();
  17 +if ($_POST['submit'] && $_SESSION['cs_nivel_administracao']==1)
  18 + header ("Location: incluir_servidor_autenticacao.php");
  19 +
  20 +include_once "../../include/library.php";
  21 +AntiSpy();
  22 +
  23 +Conecta_bd_cacic();
  24 +$query = 'SELECT *
  25 + FROM servidores_autenticacao
  26 + ORDER BY ';
  27 +
  28 +$query .= ($_GET['cs_ordem']<>''?$_GET['cs_ordem']:'nm_servidor_autenticacao');
  29 +$result = mysql_query($query);
  30 +$msg = '<div align="center">
  31 + <font color="#c0c0c0" size="1" face="Verdana, Arial, Helvetica, sans-serif">
  32 + Clique nas Colunas para Ordenar</font><br><br></div>';
  33 +?>
  34 +
  35 +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  36 +<html>
  37 +<head>
  38 +<link rel="stylesheet" type="text/css" href="../../include/cacic.css">
  39 +<title>Cadastro de Servidor de Autentica&ccedil;&atilde;o</title>
  40 +<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  41 +</head>
  42 +
  43 +<body background="../../imgs/linha_v.gif">
  44 +<script language="JavaScript" type="text/javascript" src="../../include/cacic.js"></script>
  45 +<form name="form1" method="post" action="">
  46 +<table width="90%" border="0" align="center">
  47 + <tr>
  48 + <td class="cabecalho">Cadastro de Servidor de Autentica&ccedil;&atilde;o</td>
  49 + </tr>
  50 + <tr>
  51 + <td class="descricao">Neste m&oacute;dulo dever&atilde;o ser cadastrados
  52 + todos os servidores de autentica&ccedil;&atilde;o para uso nas aberturas de sess&otilde;es de suporte remoto seguro.</td>
  53 + </tr>
  54 +</table>
  55 +<br><table border="0" align="center" cellpadding="0" cellspacing="1">
  56 + <tr>
  57 + <td><div align="center">
  58 + <?
  59 + if ($_SESSION['cs_nivel_administracao']==1)
  60 + {
  61 + ?>
  62 + <input name="submit" type="submit" id="submit" value="Incluir Informa&ccedil;&otilde;es de Novo Servidor de Autentica&ccedil;&atilde;o">
  63 + <?
  64 + }
  65 + ?>
  66 + </div></td>
  67 + </tr>
  68 + <tr>
  69 + <td height="10">&nbsp;</td>
  70 + </tr>
  71 + <tr>
  72 + <td height="10"><? echo $msg;?></td>
  73 + </tr>
  74 +
  75 + <tr>
  76 + <td height="1" bgcolor="#333333"></td>
  77 + </tr>
  78 + <tr>
  79 + <td> <table border="0" cellpadding="2" cellspacing="0" bordercolor="#333333" align="center">
  80 + <tr bgcolor="#E1E1E1" nowrap>
  81 + <td align="center" nowrap>&nbsp;</td>
  82 + <td align="center" nowrap><div align="left"></div></td>
  83 + <td align="center" nowrap>&nbsp;</td>
  84 + <td align="center" nowrap class="cabecalho_tabela"><div align="left"><a href="index.php?cs_ordem=nm_servidor_autenticacao">Nome</a></div></td>
  85 + <td nowrap >&nbsp;</td>
  86 + <td nowrap class="cabecalho_tabela"><div align="left"><a href="index.php?cs_ordem=te_ip_servidor_autenticacao">Endere&ccedil;o IP</a></div></td>
  87 + <td nowrap >&nbsp;</td>
  88 + <td nowrap class="cabecalho_tabela"><div align="left"><a href="index.php?cs_ordem=nu_versao_protocolo">Protocolo/Vers&atilde;o</div></td>
  89 + <td nowrap class="cabecalho_tabela">&nbsp;</td>
  90 + <td class="cabecalho_tabela"><div align="left"><a href="index.php?cs_ordem=in_ativo">Ativo?</div></td>
  91 + <td nowrap class="cabecalho_tabela">&nbsp;</td>
  92 + </tr>
  93 + <tr>
  94 + <td height="1" bgcolor="#333333" colspan="11"></td>
  95 + </tr>
  96 +
  97 +<?
  98 +if(mysql_num_rows($result)==0)
  99 + {
  100 + $msg = '<div align="center">
  101 + <font color="red" size="1" face="Verdana, Arial, Helvetica, sans-serif">
  102 + Nenhum servidor de autentica&ccedil;&atilde;o cadastrado ou sua sessão expirou!</font><br><br></div>';
  103 + }
  104 +else
  105 + {
  106 + $Cor = 0;
  107 + $NumRegistro = 1;
  108 +
  109 + while($row = mysql_fetch_array($result))
  110 + {
  111 + ?>
  112 + <tr
  113 + <? if ($Cor)
  114 + echo 'bgcolor="#E1E1E1"';
  115 + ?>>
  116 + <td nowrap>&nbsp;</td>
  117 + <td nowrap class="opcao_tabela"><div align="left"><? echo $NumRegistro; ?></div></td>
  118 + <td nowrap>&nbsp;</td>
  119 + <td nowrap class="opcao_tabela"><div align="left">
  120 + <?
  121 + if ($_SESSION['cs_nivel_administracao']==1)
  122 + {
  123 + ?>
  124 + <a href="detalhes_servidor_autenticacao.php?id_servidor_autenticacao=<? echo $row['id_servidor_autenticacao'];?>">
  125 + <?
  126 + }
  127 +
  128 + echo $row['nm_servidor_autenticacao'];
  129 + if ($_SESSION['cs_nivel_administracao']==1)
  130 + {
  131 + ?>
  132 + </a>
  133 + <?
  134 + }
  135 + ?>
  136 +
  137 + </div></td>
  138 + <td nowrap>&nbsp;</td>
  139 + <td nowrap class="opcao_tabela"><div align="left">
  140 +
  141 + <?
  142 + if ($_SESSION['cs_nivel_administracao']==1)
  143 + {
  144 + ?>
  145 + <a href="detalhes_servidor_autenticacao.php?id_servidor_autenticacao=<? echo $row['id_servidor_autenticacao'];?>">
  146 + <?
  147 + }
  148 + echo $row['te_ip_servidor_autenticacao'];
  149 + if ($_SESSION['cs_nivel_administracao']==1)
  150 + {
  151 + ?>
  152 + </a>
  153 + <?
  154 + }
  155 + ?>
  156 + </div></td>
  157 + <td nowrap>&nbsp;</td>
  158 + <td nowrap class="opcao_tabela">
  159 +
  160 + <div align="center">
  161 + <?
  162 + if ($_SESSION['cs_nivel_administracao']==1)
  163 + {
  164 + ?>
  165 + <a href="detalhes_servidor_autenticacao.php?id_servidor_autenticacao=<? echo $row['id_servidor_autenticacao'];?>">
  166 + <?
  167 + }
  168 + echo $row['id_tipo_protocolo'] . '/'.$row['nu_versao_protocolo'];
  169 + if ($_SESSION['cs_nivel_administracao']==1)
  170 + {
  171 + ?>
  172 + </a>
  173 + <?
  174 + }
  175 + ?>
  176 + </div></td>
  177 + <td nowrap class="opcao_tabela">&nbsp;</td>
  178 + <td nowrap class="opcao_tabela"><div align="center"><a href="detalhes_servidor_autenticacao.php?id_servidor_autenticacao=<? echo $row['id_servidor_autenticacao'];?>">
  179 + <?
  180 + echo $row['in_ativo'];
  181 + if ($_SESSION['cs_nivel_administracao']==1)
  182 + {
  183 + ?>
  184 + </a>
  185 + <?
  186 + }
  187 + ?>
  188 + </div></td>
  189 + <td nowrap class="opcao_tabela">&nbsp;</td>
  190 + <?
  191 + $Cor=!$Cor;
  192 + $NumRegistro++;
  193 + }
  194 + }
  195 + ?>
  196 + </table></td>
  197 + </tr>
  198 + <tr>
  199 + <td height="1" bgcolor="#333333"></td>
  200 + </tr>
  201 + <tr>
  202 + <td height="10">&nbsp;</td>
  203 + </tr>
  204 + <tr>
  205 + <td height="10"><? echo $msg;?></td>
  206 + </tr>
  207 + <tr>
  208 + <td><div align="center">
  209 + <input name="submit" type="submit" id="submit" value="Incluir Informa&ccedil;&otilde;es de Novo Servidor de Autentica&ccedil;&atilde;o" <? echo ($_SESSION['cs_nivel_administracao']<>1?'disabled':'')?>>
  210 + </div></td>
  211 + </tr>
  212 + </table>
  213 + </form>
  214 + <p>&nbsp;</p>
  215 + </body>
  216 + </html>
... ...