MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /usr/libexec/webmin/time/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/libexec/webmin/time/acl_security.pl
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' };
}

Anon7 - 2021