summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b48dacd)
raw | patch | inline | side by side (parent: b48dacd)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 10 Jun 2005 09:58:20 +0000 (09:58 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 10 Jun 2005 09:58:20 +0000 (09:58 +0000) |
plugins/personal/generic/class_user.inc | patch | blob | history |
index 70b2a56e52bc5d8ab3d6dea4c1095768578c5a2e..2639f958572849c2155b9f366b8d808000947fa1 100644 (file)
/* Read out data*/
$timeto = $certificate->getvalidto_date();
$timefrom = $certificate->getvalidfrom_date();
- $str = $certificate->getname()."<br>".
- _("Serialnumber")." : ".$certificate->getSerialNumber()."<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()?_("valid"):_("invalid"));
+ $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>".
+ 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");
} else {