- Timestamp:
- 10/20/10 12:54:49 (14 years ago)
- Location:
- branches/2.2
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/security/gera-arvore.php
r3232 r3377 82 82 else 83 83 { 84 $msg = '<font color="FF0000" size="4"><b> Certificado ausente da cadeia.</b></font> ';84 $msg = '<font color="FF0000" size="4"><b>' . lang('Certificate not in chain') . '.</b></font> '; 85 85 $lnk = '<b>' . $K . '</b>'; 86 86 } … … 100 100 else 101 101 { 102 $msg = '<font color="FF0000" ><b> Certificado ausente da cadeia.</b></font> ';102 $msg = '<font color="FF0000" ><b>' . lang('Certificate not in chain') . '.</b></font> '; 103 103 } 104 104 $tudo .= $prefixo1 . '<font color="#000000" ><a href="javascript:Um_Certificado(\''. $tab_certs[$K1]['item'] . ' - ' . $K1 .'\',\'' . $arquivo . '\')" style="text-decoration: none" >' . $K1 . '</a></font> ' . ' ' . $msg . '<br/>'; … … 113 113 else 114 114 { 115 $msg = '<font color="FF0000" ><b> Certificado ausente da cadeia.</b></font> ';115 $msg = '<font color="FF0000" ><b>' . lang('Certificate not in chain') . '.</b></font> '; 116 116 } 117 117 if($num>$item) -
branches/2.2/security/security-cas.php
r3232 r3377 11 11 if(!is_dir(dirname($path3))) 12 12 { 13 echo lang('Erro.') . ' ' . lang(' Não foi possível localizar arquivo de configuração no servidor.');13 echo lang('Erro.') . ' ' . lang('Configuration file not found in server.'); 14 14 exit(); 15 15 } … … 53 53 if(count(explode(chr(0x0A),$w)) < 7 ) 54 54 { 55 $msgs_alertas .= lang(' Arquivo') . ' '. $_FILES['file']['name'] . lang('nao pode ser processado. Formato invalido') . '.<br/>';55 $msgs_alertas .= lang('File') . ' '. $_FILES['file']['name'] . lang('not processed. Invalid format') . '.<br/>'; 56 56 } 57 57 } … … 80 80 { 81 81 $conteudo .= chr(0x0D) . chr(0x0A) . $cert; 82 $msgs_alertas .= lang(' Adicionado certificado para') . ' ' . $a->dados['NOME'] . ' .<br/>';82 $msgs_alertas .= lang('Certificate added to') . ' ' . $a->dados['NOME'] . ' .<br/>'; 83 83 } 84 84 } … … 92 92 { 93 93 file_put_contents($path3,$conteudo,FILE_APPEND); 94 $msgs_alertas .= lang(' Arquivo atualizado e salvo') . '.';94 $msgs_alertas .= lang('File updated and save') . '.'; 95 95 } 96 96 else 97 97 { 98 $msgs_alertas .= lang('Fa lhou ao salvar arquivo (CD04). Nao foi concluida a operacao solicitada') . '.<br/>';98 $msgs_alertas .= lang('Failure on save file (CD04). The requested operation is not concluded') . '.<br/>'; 99 99 } 100 100 } 101 101 else 102 102 { 103 $msgs_alertas .= lang('Fa lhou ao salvar arquivo (CD03). Nao foi concluida a operacao solicitada') . '.<br/>';103 $msgs_alertas .= lang('Failure on save file (CD03). The requested operation is not concluded') . '.<br/>'; 104 104 } 105 105 } 106 106 else 107 107 { 108 $msgs_alertas .= lang(' Nao foram localizados certificados de CAs') . '.';108 $msgs_alertas .= lang('ACs certificates not found') . '.'; 109 109 } 110 110 } … … 115 115 echo '<div style="padding-left:90px" >'; 116 116 echo '<form id="frm3" enctype="multipart/form-data" method="post" action="' . $_SERVER["PHP_SELF"] . '">'; 117 echo '<a href="../security/security_admin.php" style="text-decoration:none"><input type="button" value="' . lang(' Voltar') . '"/></a>';117 echo '<a href="../security/security_admin.php" style="text-decoration:none"><input type="button" value="' . lang('Back') . '"/></a>'; 118 118 $aux99 = explode('/',$path3); 119 119 $path3 = $aux99[count($aux99)-1]; … … 123 123 echo '</div>'; 124 124 echo '<div id="files"/>'; 125 echo '<h4 style="color: #000066">' . lang(' Selecione um arquivo com certificados de CAs para adionar ao arquivo de Cas em uso') . ':<h5>';125 echo '<h4 style="color: #000066">' . lang('Choose a file with CAs to add') . ':<h5>'; 126 126 echo '<input id="file" type="file" name="file" />'; 127 127 echo ' '; 128 echo '<input type="button" name="adicionar" value="' . lang('Ad icionar') . '" onclick="javascript:Submete_Cas(\'frm3\',\'' . lang('Adicionar conteudo do arquivo selecionado ao arquivo de CAs') . ' ?\')" />';128 echo '<input type="button" name="adicionar" value="' . lang('Add') . '" onclick="javascript:Submete_Cas(\'frm3\',\'' . lang('Add file contents to ACs file') . ' ?\')" />'; 129 129 echo '</div>'; 130 130 echo '</form>'; 131 echo '<h2 id="titulo1" style="color: #000066">' . lang('Certifica dos em') . ' ' . $path3 . ' :</h2>';131 echo '<h2 id="titulo1" style="color: #000066">' . lang('Certificates in') . ' ' . $path3 . ' :</h2>'; 132 132 echo '<div id="xdiv1" style="border: #000000 1px solid; overflow: auto; width: 870px; height: 160px; white-space: pre; padding: 3px; " >'; 133 echo '<br/><font color="#000066"><b> ' . lang(' Carregando...') . '</b></font>';133 echo '<br/><font color="#000066"><b> ' . lang('Loading ...') . '</b></font>'; 134 134 echo '</div>'; 135 135 echo '<br/><pre>'; 136 136 echo '<div id="xdiv2" style="border: #000000 1px solid; overflow: auto; width: 870px; height: 180px; white-space: pre; padding: 3px; " >'; 137 echo '<br/><font color="#000066"><b> ' . lang(' Carregando...') . '</b></font>';137 echo '<br/><font color="#000066"><b> ' . lang('Loading ...') . '</b></font>'; 138 138 echo '</div></pre>'; 139 139 echo '<br/>'; 140 echo '<a href="../security/security_admin.php" style="text-decoration:none"><input type="button" value="' . lang(' Voltar') . '"/></a>';140 echo '<a href="../security/security_admin.php" style="text-decoration:none"><input type="button" value="' . lang('Back') . '"/></a>'; 141 141 echo '<div>'; 142 142 echo '<script type="text/javascript"> Lista_de_Certificados(\'' . $path3 . '\'); </script>'; -
branches/2.2/security/security-cfg.php
r3232 r3377 8 8 echo '<script type="text/javascript" src="certificados.js" ></script>'; 9 9 echo '<div style="padding-left:90px" >'; 10 echo '<h2 style="color: #000066">' . lang('Paramet ros em') . ' ' . $path1 . ':</h2>';10 echo '<h2 style="color: #000066">' . lang('Parameters into') . ' ' . $path1 . ':</h2>'; 11 11 echo '<table border="0" witdh="80%">'; 12 12 echo '<tr >'; 13 echo '<td valign="top"><b>' . lang(' CaminhoBASE') . ':</b><br/></td>';13 echo '<td valign="top"><b>' . lang('Path BASE') . ':</b><br/></td>'; 14 14 echo '<td valign="top">'; 15 15 echo '<input type="text" name="BASE" value="'. $GLOBALS['BASE'] . '" size="60" READONLY />'; … … 18 18 echo '<tr>'; 19 19 $aux = explode($GLOBALS['BASE'] . '/',$GLOBALS['dirtemp']); 20 echo '<td valign="top"><b>' . lang(' Pasta para conter arquivos temporarios usados na validacao do certificado digital') . ':</b><br/></td>';20 echo '<td valign="top"><b>' . lang('Folder to temporary files to digital certificate validation') . ':</b><br/></td>'; 21 21 echo '<td valign="top">'; 22 22 echo '<input type="text" name="dirtemp" value="'. $aux[1] . '" size="60" READONLY />'; … … 25 25 echo '<tr >'; 26 26 $aux = explode($GLOBALS['BASE'] . '/',$GLOBALS['CAs']); 27 echo '<td valign="top"><b>' . lang(' Arquivo contendo cadeias das autoridades certificadoras(CAs)') . ':</b><br/></td>';27 echo '<td valign="top"><b>' . lang('File with Certificate Authority(CAs) chains') . ':</b><br/></td>'; 28 28 echo '<td valign="top">'; 29 29 echo '<input type="text" name="CAs" value="'. $aux[1] . '" size="60" READONLY />'; … … 32 32 echo '<tr>'; 33 33 $aux = explode($GLOBALS['BASE'] . '/',$GLOBALS['CRLs']); 34 echo '<td valign="top"><b>' . lang(' Pasta para conter Listas de Revogacao de Certificados(CRLs)') . ':<br>35 ' . lang(' Deixar vazio para nao verificar se certificado esta revogado') . '.</b></td>';34 echo '<td valign="top"><b>' . lang('Folder with CRLs') . ':<br> 35 ' . lang('Empty to disable revogation test') . '.</b></td>'; 36 36 echo '<td valign="top">'; 37 37 echo '<input type="text" name="CRLs" value="'. $aux[1]. '" size="60" READONLY />'; … … 40 40 echo '<tr >'; 41 41 $aux = explode($GLOBALS['BASE'] . '/',$GLOBALS['arquivos_crls']); 42 echo '<td valign="top"><b>' . lang(' Arquivo contendo as URLs para obter as listas de certificados revogados') . ':</b></td>';42 echo '<td valign="top"><b>' . lang('Point to file with URLs of CRLs') . ':</b></td>'; 43 43 echo '<td valign="top">'; 44 44 echo '<input type="text" name="arquivos_crls" value="'. $aux[1] . '" size="60" READONLY />'; … … 47 47 echo '<tr>'; 48 48 $aux = explode($GLOBALS['BASE'] . '/',$GLOBALS['log']); 49 echo '<td valign="top"><b>' . lang(' Arquivo para conter log de execucao da rotina de obtencao das listas de certificados revogados') . ':</b></td>';49 echo '<td valign="top"><b>' . lang('File to execution log of get CRLs') . ':</b></td>'; 50 50 echo '<td valign="top">'; 51 51 echo '<input type="text" name="log" value="'. $aux[1] . '" size="60" READONLY />'; … … 53 53 echo '</tr>'; 54 54 echo '<tr>'; 55 echo '<td valign="top"><b>' . lang(' Tamanho maximo do arquivo de log(em bytes):') . ':</b></td>';55 echo '<td valign="top"><b>' . lang('Maximum length of file log(bytes)') . ':</b></td>'; 56 56 echo '<td valign="top">'; 57 57 echo '<input type="text" name="log" value="'. $GLOBALS['lenMax'] . '" size="60" READONLY />'; … … 59 59 echo '</tr>'; 60 60 echo '<tr>'; 61 echo '<td valign="top"><b>' . lang(' Numero maximo de arquivos de log a serem guardados:') . ':</b></td>';61 echo '<td valign="top"><b>' . lang('Maximum number of files log to retain') . ':</b></td>'; 62 62 echo '<td valign="top">'; 63 63 echo '<input type="text" name="log" value="'. $GLOBALS['bkpNum'] . '" size="60" READONLY />'; … … 66 66 echo '</table>'; 67 67 echo '<br/>'; 68 echo '<a href="../security/security_admin.php" style="text-decoration:none"><input type="button" value="' . lang(' Voltar') . '"/></a>';68 echo '<a href="../security/security_admin.php" style="text-decoration:none"><input type="button" value="' . lang('Back') . '"/></a>'; 69 69 echo '<div>'; 70 70 ?> -
branches/2.2/security/security-clr.php
r3232 r3377 7 7 if($GLOBALS['CRLs'] == '') 8 8 { 9 echo '<br/><br/><br/><div align="center"><h3><b>' . lang(' O uso de listas de revogacao de certificados nao esta habilitado') . '.<b><h3><br/><br/>';10 echo '<a href="security_admin.php" style="text-decoration:none"><input type="button" value="' . lang(' Voltar') . '"/></a></div>';9 echo '<br/><br/><br/><div align="center"><h3><b>' . lang('CRLs use is disable') . '.<b><h3><br/><br/>'; 10 echo '<a href="security_admin.php" style="text-decoration:none"><input type="button" value="' . lang('Back') . '"/></a></div>'; 11 11 exit(); 12 12 } … … 27 27 echo '<script type="text/javascript" src="certificados.js" ></script>'; 28 28 echo '<div style="padding-left:90px" >'; 29 echo '<a href="../security/security_admin.php" style="text-decoration:none"><input type="button" value="' . lang(' Voltar') . '"/></a>';29 echo '<a href="../security/security_admin.php" style="text-decoration:none"><input type="button" value="' . lang('Back') . '"/></a>'; 30 30 echo '<input type="hidden" name="adicionar" value="adicionar" />'; 31 31 $Linhas = explode(chr(0x0A),$arq); … … 33 33 { 34 34 35 echo '<h2 style="color: #000066">' . lang(' LCRs configuradas') . ':</h2>';35 echo '<h2 style="color: #000066">' . lang('RCLs configurated') . ':</h2>'; 36 36 echo '<div id="xdiv2" style="border: #000000 1px solid; overflow: auto; width: 870px; height: 190px; white-space: pre; padding: 3px; " >'; 37 37 echo '<table border ="1" style="margin-top: 8px; width: 770px">'; 38 echo '<th nowrap align="left" style=" padding: 5px">' . lang(' Lista de Certificados revogados obtida em') . ':</th><th nowrap align="left" style=" padding: 5px">' . lang('Onde é salva a LCR') . ':</th>';38 echo '<th nowrap align="left" style=" padding: 5px">' . lang('RCLs get in') . ':</th><th nowrap align="left" style=" padding: 5px">' . lang('Where save RCLs') . ':</th>'; 39 39 foreach($Linhas as $linhaz) 40 40 { … … 48 48 if(!is_file($f)) 49 49 { 50 echo '<p style="margin-bottom: 5px"><b style="color: #FF0000">' . lang(' Arquivo nao localizado') . '.</b></p>';50 echo '<p style="margin-bottom: 5px"><b style="color: #FF0000">' . lang('File not found') . '.</b></p>'; 51 51 } 52 52 else … … 54 54 $data = file_get_contents($f); 55 55 $dados = Crl_parseASN($data); 56 echo '<br/><br/> Emitido por: ';56 echo '<br/><br/>' . lang ('Issuer') . ': '; 57 57 $aux = $dados[1][0][1][2][1]; // pega dados do emissor. 58 58 $aux = $aux[count($aux)-1]; // ultimo item he o do CN..... 59 59 echo $aux[1][1][1][1]; 60 echo '<br/> Num. certificados: ';60 echo '<br/>' . lang('Num. Certificates') . ': '; 61 61 $num = 0; 62 62 if(count($dados[1][0][1]) > 6) // qtd de itens esperado he 7. o 6 contem os certificados revogados. … … 65 65 } 66 66 echo $num; 67 echo '<br/> LCR num.: ';67 echo '<br/>' . lang('Num. RCL') . ': '; 68 68 $oid_Num_crl = recupera_dados_oid($data,'2.5.29.20'); // oid que informa o numero de geracao da LCR. 69 69 $num = $oid_Num_crl[0][1][1][1]; … … 87 87 $cor = 'style="color: #000066"'; 88 88 } 89 echo '<p><b ' . $cor . '>' . lang(' Gerada em') . ' : </b>' . substr($di,0,4) . '/' . substr($di,4,2) . '/' . substr($di,6,2) . ' - ' . substr($di,8,2) . ':' . substr($di,10,2) . ':' . substr($di,12,2) . ' GMT</p>';89 echo '<p><b ' . $cor . '>' . lang('Create in') . ' : </b>' . substr($di,0,4) . '/' . substr($di,4,2) . '/' . substr($di,6,2) . ' - ' . substr($di,8,2) . ':' . substr($di,10,2) . ':' . substr($di,12,2) . ' GMT</p>'; 90 90 if(gmdate("YmdHis") > $df) 91 91 { 92 $cor = 'style="color: #FF0000" >' . lang('Expir ada em') . ': ';92 $cor = 'style="color: #FF0000" >' . lang('Expired on') . ': '; 93 93 } 94 94 else 95 95 { 96 $cor = 'style="color: #000066" >' . lang('Expir a em') . ': ';96 $cor = 'style="color: #000066" >' . lang('Expire on') . ': '; 97 97 } 98 98 echo '<p><b ' . $cor . ' </b>' . substr($df,0,4) . '/' . substr($df,4,2) . '/' . substr($df,6,2) . ' - ' . substr($df,8,2) . ':' . substr($df,10,2) . ':' . substr($df,12,2) . ' GMT</p>'; … … 106 106 echo '<input type="hidden" name="atualizar" value="atualizar" />'; 107 107 echo '<br/>'; 108 echo '<input type="button" name="atualiz" value="' . lang('Execut ar atualização das LCRs') . '" onclick="javascript:Salvar_arq(\'frm2\',\'' . lang('Confirma atualização das LCRs') . ' ?\')"/>';108 echo '<input type="button" name="atualiz" value="' . lang('Execute RCLs update') . '" onclick="javascript:Salvar_arq(\'frm2\',\'' . lang('Confirm RCLs update') . ' ?\')"/>'; 109 109 echo '<br/>'; 110 110 echo '</form>'; … … 114 114 if($path2) 115 115 { 116 echo '<h2 style="color: #000066">' . lang('Log da atualizacao das LCRs') . ':</h2>';116 echo '<h2 style="color: #000066">' . lang('Log of RCLs update') . ':</h2>'; 117 117 echo '<div style="border: #000000 1px solid; overflow: auto; width: 770px; height:180px; white-space: pre; padding: 5px" >'; 118 118 echo '<pre>'; … … 130 130 { 131 131 //$ret = exec('cat ' . $path2 ,$saida); 132 echo '<p style="margin-bottom: 5px"><b style="color: #FF0000">' . lang(' Arquivo') . ' ' . $path2 . ' ' . lang('nao localizado') . '</b></p>';132 echo '<p style="margin-bottom: 5px"><b style="color: #FF0000">' . lang('File') . ' ' . $path2 . ' ' . lang('not found') . '</b></p>'; 133 133 } 134 134 echo '</pre>'; 135 135 echo '</div><br/><br/>'; 136 echo '<a href="../security/security_admin.php" style="text-decoration:none"><input type="button" value="' . lang(' Voltar') . '"/></a>';136 echo '<a href="../security/security_admin.php" style="text-decoration:none"><input type="button" value="' . lang('Back') . '"/></a>'; 137 137 echo '<div>'; 138 138 } -
branches/2.2/security/security.php
r3232 r3377 4 4 <br/><br/> 5 5 <span> 6 <a href="security-cas.php" style="text-decoration:none"><b><?php echo lang(' ACs (Autoridades Certificadoras)') ?></b></a>6 <a href="security-cas.php" style="text-decoration:none"><b><?php echo lang('CAs (Certificate Authority)') ?></b></a> 7 7 </span> 8 8 <br/><br/> 9 9 <span> 10 <a href="security-clr.php" style="text-decoration:none"><b><?php echo lang(' LCRs(Listas de Certificados Revogados)') ?></b></a>10 <a href="security-clr.php" style="text-decoration:none"><b><?php echo lang('RCLs(Revoked Certificate List)') ?></b></a> 11 11 </span> 12 12 <br/><br/> 13 13 <span> 14 <a href="security-cfg.php" style="text-decoration:none"><b><?php echo lang('Vi sualizar Configuracao em uso') ?></b></a>14 <a href="security-cfg.php" style="text-decoration:none"><b><?php echo lang('View Current configuration') ?></b></a> 15 15 </span> 16 16 <br/><br/><br/><br/> 17 <a href="../admin/index.php" style="text-decoration:none"><input type="button" value="<?php echo lang('Cancel ar') ?>"/></a>17 <a href="../admin/index.php" style="text-decoration:none"><input type="button" value="<?php echo lang('Cancel') ?>"/></a> 18 18 <br/><br/> 19 19 </div> -
branches/2.2/security/security_admin.php
r3232 r3377 12 12 else 13 13 { 14 echo '<div><h4>' . lang(' Dados para administração das CA\'s e CRL\'s não foram localizados') . '.</h4></div>';14 echo '<div><h4>' . lang('Administration data of AC\'s and RCL\'s not found') . '.</h4></div>'; 15 15 } 16 16 ?>
Note: See TracChangeset
for help on using the changeset viewer.