From: hickert Date: Tue, 7 Jun 2005 09:19:54 +0000 (+0000) Subject: update for certfificate informations X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e10ef8fe3628d2cb140fef257c649902a97be8fd;p=gosa.git update for certfificate informations git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@612 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/generic/class_user.inc b/plugins/personal/generic/class_user.inc index c0f6b8611..afa0383aa 100644 --- a/plugins/personal/generic/class_user.inc +++ b/plugins/personal/generic/class_user.inc @@ -384,7 +384,6 @@ class user extends plugin if ($this->cert_dialog){ foreach(array("userCertificate", "userSMIMECertificate", "userPKCS12") as $cert){ if ($this->$cert != ""){ - $smarty->assign("$cert"."_state", _("present")); /* import certificate */ $certificate = new certificate; $certificate->import($this->$cert); @@ -392,11 +391,12 @@ class user extends plugin /* Read out data*/ $timeto = ($certificate->getvalidto_date()); $timefrom = ($certificate->getvalidfrom_date()); - $str = _("This Certificate is valid till ").date('d M Y',$timeto)." - ".str_replace("/"," , ",$certificate->getCN()); + $str = $certificate->getname()."
". + _("Valid from")." ".date('d M Y',$timefrom)." "._("to")." ".date('d M Y',$timeto)." - "._("Serialnumber")." : ".$certificate->getSerialNumber()."
". + _("This certificate is")." ".$certificate->isvalid(true).""; $smarty->assign($cert."info",$str); } else { - $smarty->assign($cert."info",""); - $smarty->assign("$cert"."_state", _("absent")); + $smarty->assign($cert."info",_("No certificate present")); } } $smarty->assign("governmentmode", "false"); diff --git a/plugins/personal/generic/generic_certs.tpl b/plugins/personal/generic/generic_certs.tpl index f8d7e2342..bd53f2885 100644 --- a/plugins/personal/generic/generic_certs.tpl +++ b/plugins/personal/generic/generic_certs.tpl @@ -9,7 +9,7 @@ - {t}Standard certificate{/t} ({$userCertificate_state}) + {t}Standard certificate{/t} @@ -35,7 +35,7 @@
- {t}S/MIME certificate{/t} ({$userSMIMECertificate_state}) + {t}S/MIME certificate{/t} @@ -58,7 +58,7 @@
- {t}PKCS12 certificate{/t} ({$userPKCS12_state}) + {t}PKCS12 certificate{/t}