- Timestamp:
- 08/31/11 13:51:20 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.3/phpgwapi/templates/default/login_default.php
r4951 r5010 65 65 $aux = strtr($aux,' ','+'); 66 66 $aux = '-----BEGIN CERTIFICATE-----'.$aux.'-----END CERTIFICATE-----'; 67 $aux = str_replace(chr(0x0A).chr(0x0A),chr(0x0A),str_replace(chr(0x0D).chr(0x0A),chr(0x0A), $aux)); 67 68 return $aux; 68 69 } … … 114 115 unset($sslattributes); 115 116 } 116 if(isset($_POST['certificado']) && $_POST['certificado'] )117 if(isset($_POST['certificado']) && $_POST['certificado'] && $GLOBALS['phpgw_info']['server']['certificado']==1) 117 118 { 118 $_SESSION['login_certificate'] = troca_espaco_por_mais( str_replace(chr(0x0D).chr(0x0A),chr(0x0A),str_replace(chr(0x0A).chr(0x0A),chr(0x0A),$_POST['certificado'])));119 $_SESSION['login_certificate'] = troca_espaco_por_mais($_POST['certificado']); 119 120 } 120 121 if( isset( $_GET[ 'cd' ] ) && ( $_GET['cd']=='1' || $_GET['cd'] == 10 ) )
Note: See TracChangeset
for help on using the changeset viewer.