show infinity symbol for too big values

This commit is contained in:
Roland Gruber 2007-09-24 19:11:18 +00:00
parent 0235a8f940
commit 37f76431ee
1 changed files with 21 additions and 6 deletions

View File

@ -920,8 +920,13 @@ class sambaSamAccount extends baseModule {
$dateValue = "     -      ";
if (isset($this->attributes['sambaPwdCanChange'][0])) {
$date = getdate($this->attributes['sambaPwdCanChange'][0]);
$dateValue = $date['mday'] . "." . $date['mon'] . "." . $date['year'];
if ($this->attributes['sambaPwdCanChange'][0] > 2147483648) {
$dateValue = "     ∞      ";
}
else {
$date = getdate($this->attributes['sambaPwdCanChange'][0]);
$dateValue = $date['mday'] . "." . $date['mon'] . "." . $date['year'];
}
}
$return[] = array(
array('kind' => 'text', 'text' => _('User can change password')),
@ -932,8 +937,13 @@ class sambaSamAccount extends baseModule {
array('kind' => 'help', 'value' => 'pwdCanChange' ));
$dateValue = "     -      ";
if (isset($this->attributes['sambaPwdMustChange'][0])) {
$date = getdate($this->attributes['sambaPwdMustChange'][0]);
$dateValue = $date['mday'] . "." . $date['mon'] . "." . $date['year'];
if ($this->attributes['sambaPwdMustChange'][0] > 2147483648) {
$dateValue = "     ∞      ";
}
else {
$date = getdate($this->attributes['sambaPwdMustChange'][0]);
$dateValue = $date['mday'] . "." . $date['mon'] . "." . $date['year'];
}
}
$return[] = array(
array('kind' => 'text', 'text' => _('User must change password')),
@ -944,8 +954,13 @@ class sambaSamAccount extends baseModule {
array('kind' => 'help', 'value' => 'pwdMustChange' ));
$dateValue = "     -      ";
if (isset($this->attributes['sambaKickoffTime'][0])) {
$date = getdate($this->attributes['sambaKickoffTime'][0]);
$dateValue = $date['mday'] . "." . $date['mon'] . "." . $date['year'];
if ($this->attributes['sambaKickoffTime'][0] > 2147483648) {
$dateValue = "     ∞      ";
}
else {
$date = getdate($this->attributes['sambaKickoffTime'][0]);
$dateValue = $date['mday'] . "." . $date['mon'] . "." . $date['year'];
}
}
$return[] = array(
array('kind' => 'text', 'text' => _('Account expiration date')),