summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6277cb3)
raw | patch | inline | side by side (parent: 6277cb3)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Sat, 11 Jun 2005 16:03:27 +0000 (16:03 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Sat, 11 Jun 2005 16:03:27 +0000 (16:03 +0000) |
plugins/personal/generic/class_user.inc | patch | blob | history |
index ab8d5d69d9c57cf60bb9e5ad9053ecf43165f8d1..41185d617d68e9ced1a670746694e1977ef02809 100644 (file)
/* Read out data*/
$timeto = $certificate->getvalidto_date();
$timefrom = $certificate->getvalidfrom_date();
- $str = "<table border=0><tr><td style='vertical-align:top'>CN</td><td>".preg_replace("/ /", " ", $certificate->getname())."</td></tr>".
- "<tr><td>"._("Serial")."</td><td>#".$certificate->getSerialNumber()."</td></tr></table><br>".
+ $str = "<table border=0><tr><td style='vertical-align:top'>CN</td><td>".preg_replace("/ /", " ", $certificate->getname())."</td></tr></table><br>".
sprintf(_("Certificate is valid from <b>%s</b> to <b>%s</b> and is currently <b>%s</b>."), date('d M Y',$timefrom),date('d M Y',$timeto), $certificate->isvalid()?"<font style='color:green'>"._("valid")."</font>":"<font style='color:red'>"._("invalid")."</font>");
$smarty->assign($cert."info",$str);
$smarty->assign($cert."_state","true");