Changeset 3377 for branches/2.2/security/security-clr.php
- Timestamp:
- 10/20/10 12:54:49 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 }
Note: See TracChangeset
for help on using the changeset viewer.