require 'time-lib.pl';
sub acl_security_form
{
print(
"
",
"| ", $text{ 'acl_sys' }, " | ",
" { 'sysdate' } == 0 ? "checked" : "", ">", $text{ 'acl_yes' }, " { 'sysdate' } == 1 ? "checked" : "", ">", $text{ 'acl_no' },
" |
",
"| ", $text{ 'acl_hw' }, " | ",
" { 'hwdate' } == 0 ? "checked" : "", ">", $text{ 'acl_yes' }, " { 'hwdate' } == 1 ? "checked" : "", ">", $text{ 'acl_no' },
" |
",
"| ", $text{ 'acl_timezone' }, " | ",
" { 'timezone' } == 1 ? "checked" : "", ">", $text{ 'acl_yes' }, " { 'timezone' } == 0 ? "checked" : "", ">", $text{ 'acl_no' },
" |
",
"| ", $text{ 'acl_ntp' }, " | ",
" { 'ntp' } == 1 ? "checked" : "", ">", $text{ 'acl_yes' }, " { 'ntp' } == 0 ? "checked" : "", ">", $text{ 'acl_no' },
" |
\n");
}
sub acl_security_save
{
$_[0] -> { 'sysdate' } = $in{ 'sysdate' };
$_[0] -> { 'hwdate' } = $in{ 'hwdate' };
$_[0] -> { 'timezone' } = $in{ 'timezone' };
$_[0] -> { 'ntp' } = $in{ 'ntp' };
}