Code

Updated certificate handling
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 10 Jun 2005 09:58:20 +0000 (09:58 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 10 Jun 2005 09:58:20 +0000 (09:58 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@656 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/generic/class_user.inc

index 70b2a56e52bc5d8ab3d6dea4c1095768578c5a2e..2639f958572849c2155b9f366b8d808000947fa1 100644 (file)
@@ -391,9 +391,9 @@ class user extends plugin
           /* 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("/ /", "&nbsp;", $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 {