fixed expiration

This commit is contained in:
Roland Gruber 2011-10-31 19:01:40 +00:00
parent ac97e8fd01
commit 55d7b33c37
1 changed files with 3 additions and 1 deletions

View File

@ -454,7 +454,9 @@ class freeRadius extends baseModule {
for ( $i=0; $i<=23; $i++ ) { for ( $i=0; $i<=23; $i++ ) {
$hourList[] = str_pad($i, 2, '0', STR_PAD_LEFT); $hourList[] = str_pad($i, 2, '0', STR_PAD_LEFT);
} }
for ( $i=1; $i<=31; $i++ ) $dayList[] = $i; for ( $i=1; $i<=31; $i++ ) {
$dayList[] = str_pad($i, 2, '0', STR_PAD_LEFT);
}
for ( $i=2003; $i<=2050; $i++ ) $yearList[] = $i; for ( $i=2003; $i<=2050; $i++ ) $yearList[] = $i;
$return->addElement(new htmlOutputText($text)); $return->addElement(new htmlOutputText($text));
$return->addElement(new htmlSelect('expire_day', $dayList, array($day))); $return->addElement(new htmlSelect('expire_day', $dayList, array($day)));