Changeset 5007 for branches/2.3/security
- Timestamp:
- 08/30/11 16:44:04 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.3/security/classes/funcoes_auxiliares.php
r4947 r5007 159 159 $aux = strtr($aux,' ','+'); 160 160 $aux = '-----BEGIN CERTIFICATE-----'.$aux.'-----END CERTIFICATE-----'; 161 $aux = str_replace(chr(0x0A).chr(0x0A),chr(0x0A),str_replace(chr(0x0D).chr(0x0A),chr(0x0A), $aux)); 161 162 return $aux; 162 163 } 164 163 165 function verificaopenssl() 164 166 { … … 172 174 173 175 174 176 function print_hex($value) 175 177 { 176 178 $tab_val = array('0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'); … … 1742 1744 $dados['INICIO_VALIDADE'] = data_hora($cert_data[1][0][1][$KK][1][0][1]); 1743 1745 $dados['FIM_VALIDADE'] = data_hora($cert_data[1][0][1][$KK][1][1][1]); 1744 $agora = date('YmdHis');1746 $agora = data_hora(date('y').date('m').date('d').date('H').date('i').date('s')); 1745 1747 if(($agora < $dados['INICIO_VALIDADE']) || ($agora > $dados['FIM_VALIDADE'])) 1746 1748 {
Note: See TracChangeset
for help on using the changeset viewer.