show expiration dates

This commit is contained in:
Roland Gruber 2011-04-25 17:47:17 +00:00
parent b66fd35204
commit 9dcbd06891
1 changed files with 17 additions and 0 deletions

View File

@ -293,6 +293,23 @@ class lamUserList extends lamList {
} }
} }
} }
// expire dates
elseif ($attribute == 'shadowexpire') {
if (isset($entry[$attribute][0]) && ($entry[$attribute][0] != '')) {
echo date('d. m. Y', $entry[$attribute][0] * 24 * 3600);
}
}
elseif ($attribute == 'sambakickofftime') {
if (isset($entry[$attribute][0]) && ($entry[$attribute][0] != '')) {
if ($entry[$attribute][0] > 2147483648) {
echo "";
}
else {
$date = getdate($entry[$attribute][0]);
echo $date['mday'] . "." . $date['mon'] . "." . $date['year'];
}
}
}
// print all other attributes // print all other attributes
else { else {
parent::listPrintTableCellContent($entry, $attribute); parent::listPrintTableCellContent($entry, $attribute);