[ Avaa Bypassed ]




Upload:

Command:

www-data@3.133.149.165: ~ $
require 'logviewer-lib.pl';

# acl_security_form(&options)
# Output HTML for editing security options for the syslog module
sub acl_security_form
{

# Can enter arbitrary filename
print &ui_table_row($text{'acl_any'},
		    &ui_yesno_radio("any", int($_[0]->{'any'})));

# Can view syslog logs and logs from other modules
print &ui_table_row($text{'acl_syslog'},
		    &ui_yesno_radio("syslog", int($_[0]->{'syslog'})));
print &ui_table_row($text{'acl_others'},
		    &ui_yesno_radio("others", int($_[0]->{'others'})));

# Allowed directories
print &ui_table_row($text{'acl_logs'},
	    &ui_radio("logs_def", $_[0]->{'logs'} ? 0 : 1,
		      [ [ 1, $text{'acl_all'} ], [ 0, $text{'acl_sel'} ] ]).
	    "<br>\n".
	    &ui_textarea("logs", join("\n", split(/\t+/, $_[0]->{'logs'})),
			 5, 50), 3);

# Extra per-user log files
print &ui_table_row($text{'acl_extra'},
	    &ui_textarea("extras", join("\n", split(/\t+/, $_[0]->{'extras'})),
			 5, 50), 3);

}

# acl_security_save(&options)
# Parse the form for security options for the syslog module
sub acl_security_save
{
$_[0]->{'any'} = $in{'any'};
$_[0]->{'syslog'} = $in{'syslog'};
$_[0]->{'others'} = $in{'others'};
$in{'logs'} =~ s/\r//g;
$_[0]->{'logs'} = $in{'logs_def'} ? undef :
			join("\t", split(/\n/, $in{'logs'}));
$_[0]->{'extras'} = join("\t", split(/\n/, $in{'extras'}));
}


Filemanager

Name Type Size Permission Actions
images Folder 0755
lang Folder 0755
CHANGELOG File 103 B 0644
acl_security.pl File 1.31 KB 0755
backup_config.pl File 569 B 0755
config File 29 B 0644
config.info File 292 B 0644
defaultacl File 24 B 0644
index.cgi File 3.97 KB 0755
install_check.pl File 294 B 0755
logviewer-lib.pl File 3.6 KB 0755
module.info File 172 B 0644
prefs.info File 49 B 0644
safeacl File 24 B 0644
view_log.cgi File 7.83 KB 0755