From: cajus Date: Fri, 10 Jun 2005 09:58:20 +0000 (+0000) Subject: Updated certificate handling X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7601852d9bf0b5f3a4f16208539d0dacf8780da6;p=gosa.git Updated certificate handling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@656 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/generic/class_user.inc b/plugins/personal/generic/class_user.inc index 70b2a56e5..2639f9585 100644 --- a/plugins/personal/generic/class_user.inc +++ b/plugins/personal/generic/class_user.inc @@ -391,9 +391,9 @@ class user extends plugin /* Read out data*/ $timeto = $certificate->getvalidto_date(); $timefrom = $certificate->getvalidfrom_date(); - $str = $certificate->getname()."
". - _("Serialnumber")." : ".$certificate->getSerialNumber()."
". - sprintf(_("Certificate is valid from %s to %s and is currently %s."), date('d M Y',$timefrom),date('d M Y',$timeto), $certificate->isvalid()?_("valid"):_("invalid")); + $str = "". + "
CN".preg_replace("/ /", " ", $certificate->getname())."
"._("Serial")."#".$certificate->getSerialNumber()."

". + sprintf(_("Certificate is valid from %s to %s and is currently %s."), date('d M Y',$timefrom),date('d M Y',$timeto), $certificate->isvalid()?""._("valid")."":""._("invalid").""); $smarty->assign($cert."info",$str); $smarty->assign($cert."_state","true"); } else {