| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/libexec/webmin/time/ |
Upload File : |
require 'time-lib.pl';
sub acl_security_form
{
print(
"<tr>",
"<td><b>", $text{ 'acl_sys' }, "</b></td>",
"<td><input type=radio name=sysdate value=0 ", $_[0] -> { 'sysdate' } == 0 ? "checked" : "", ">", $text{ 'acl_yes' }, " <input type=radio name=sysdate value=1 ", $_[0] -> { 'sysdate' } == 1 ? "checked" : "", ">", $text{ 'acl_no' },
"</tr><tr>",
"<td><b>", $text{ 'acl_hw' }, "</b></td>",
"<td><input type=radio name=hwdate value=0 ", $_[0] -> { 'hwdate' } == 0 ? "checked" : "", ">", $text{ 'acl_yes' }, " <input type=radio name=hwdate value=1 ", $_[0] -> { 'hwdate' } == 1 ? "checked" : "", ">", $text{ 'acl_no' },
"</tr><tr>",
"<td><b>", $text{ 'acl_timezone' }, "</b></td>",
"<td><input type=radio name=timezone value=1 ", $_[0] -> { 'timezone' } == 1 ? "checked" : "", ">", $text{ 'acl_yes' }, " <input type=radio name=timezone value=0 ", $_[0] -> { 'timezone' } == 0 ? "checked" : "", ">", $text{ 'acl_no' },
"</tr><tr>",
"<td><b>", $text{ 'acl_ntp' }, "</b></td>",
"<td><input type=radio name=ntp value=1 ", $_[0] -> { 'ntp' } == 1 ? "checked" : "", ">", $text{ 'acl_yes' }, " <input type=radio name=ntp value=0 ", $_[0] -> { 'ntp' } == 0 ? "checked" : "", ">", $text{ 'acl_no' },
"</tr>\n");
}
sub acl_security_save
{
$_[0] -> { 'sysdate' } = $in{ 'sysdate' };
$_[0] -> { 'hwdate' } = $in{ 'hwdate' };
$_[0] -> { 'timezone' } = $in{ 'timezone' };
$_[0] -> { 'ntp' } = $in{ 'ntp' };
}