[ Avaa Bypassed ]




Upload:

Command:

www-data@3.148.202.164: ~ $
#!/usr/bin/perl
# index.cgi

require './dfs-lib.pl';
&ui_print_header(undef, $text{'index_title'}, "", "intro", 1, 1, 0,
	&help_search_link("dfstab share", "man"));

@shlist = &list_shares();
if (@shlist && $access{'icons'}) {
	# Display shares as icons
	print "<a href=\"edit_share.cgi\">$text{'index_add'}</a><br>\n";
	foreach $s (@shlist) {
		next if ($s->{'type'} ne 'nfs');
		push(@icons, "images/share.gif");
		push(@titles, $s->{'dir'});
		push(@links, "edit_share.cgi?$s->{'index'}");
		}
	&icons_table(\@links, \@titles, \@icons);
	if (!$access{'view'}) {
		print "<a href=\"edit_share.cgi\">$text{'index_add'}</a><br>\n";
		}
	}
elsif (@shlist) {
	# Display shares as table
	if (!$access{'view'}) {
		print &ui_form_start("delete_shares.cgi", "post");
		print &select_all_link("d"),"\n";
		print &select_invert_link("d"),"\n";
		print "<a href=\"edit_share.cgi\">$text{'index_add'}</a><br>\n";
		@tds = ( "width=5" );
		}
	print &ui_columns_start([
		$access{'view'} ? ( ) : ( "" ),
		$text{'index_dir'},
		$text{'index_clients'} ], 100, 0, \@tds);
	foreach $s (@shlist) {
		next if ($s->{'type'} ne 'nfs');
		&parse_options($s->{'opts'});
		local @cols;
		if ($access{'view'}) {
			push(@cols, &html_escape($s->{'dir'}));
			}
		elsif (defined($options{'public'})) {
			push(@cols, "<a href=\"edit_share.cgi?$s->{'index'}\">".
				    &html_escape($s->{'dir'})."</a>");
			}
		else {
			push(@cols, "<a href=\"edit_share.cgi?$s->{'index'}\">".				    &html_escape($s->{'dir'})."</a>");
			}
		undef(%clients);
		foreach (split(/:/, $options{"ro"})) { $clients{$_}++; }
		foreach (split(/:/, $options{"rw"})) { $clients{$_}++; }
		foreach (split(/:/, $options{"root"})) { $clients{$_}++; }
		if (%clients) {
			$clients = join(' &nbsp;|&nbsp; ' , sort { $a cmp $b }
			    map { &html_escape($_ =~ /^\@(.*)/ ? "$1.*" : $_) }
				     (keys %clients) );
			if (length($clients) > 80) {
				$clients = substr($clients, 0, 80)."...";
				}
			}
		else {
			$clients = $text{'index_everyone'};
			}
		push(@cols, $clients);
		if ($access{'view'}) {
			print &ui_columns_row(\@cols, \@tds);
			}
		else {
			print &ui_checked_columns_row(\@cols, \@tds, "d",
						      $s->{'index'});
			}
		}
	print &ui_columns_end();
	if (!$access{'view'}) {
		print &select_all_link("d"),"\n";
		print &select_invert_link("d"),"\n";
		print "<a href=\"edit_share.cgi\">$text{'index_add'}</a><br>\n";
		print &ui_form_end([ [ "delete", $text{'index_delete'} ] ]);
		}
	}
else {
	print "<b>$text{'index_none'}</b><p>\n";
	print "<a href=\"edit_share.cgi\">$text{'index_add'}</a><p>\n";
	}

if (!$access{'view'}) {
	print &ui_hr();
	print &ui_buttons_start();
	print &ui_buttons_row("restart_sharing.cgi",
			      $text{'index_apply'},
			      $text{'index_applydesc'});
	print &ui_buttons_end();
	}

&ui_print_footer("/", "index");


Filemanager

Name Type Size Permission Actions
help Folder 0755
images Folder 0755
lang Folder 0755
CHANGELOG File 196 B 0644
acl_security.pl File 468 B 0755
backup_config.pl File 602 B 0755
config-openserver File 123 B 0644
config-solaris File 153 B 0644
config-unixware File 123 B 0644
config.info File 211 B 0644
config.info.ca File 267 B 0644
config.info.de File 232 B 0644
config.info.es File 247 B 0644
config.info.fr File 161 B 0644
config.info.hu File 209 B 0644
config.info.nl File 215 B 0644
config.info.pl File 234 B 0644
config.info.sv File 165 B 0644
config.info.tr File 141 B 0644
config.info.zh File 125 B 0644
config.info.zh_TW File 167 B 0644
defaultacl File 7 B 0644
delete_share.cgi File 354 B 0755
delete_shares.cgi File 481 B 0755
dfs-lib.pl File 3.32 KB 0755
edit_share.cgi File 4.14 KB 0755
index.cgi File 2.76 KB 0755
log_parser.pl File 882 B 0755
module.info File 193 B 0644
module.info.af File 0 B 0644
module.info.af.auto File 113 B 0644
module.info.ar File 0 B 0644
module.info.ar.auto File 139 B 0644
module.info.be File 0 B 0644
module.info.be.auto File 159 B 0644
module.info.bg File 0 B 0644
module.info.bg.auto File 190 B 0644
module.info.ca File 0 B 0644
module.info.ca.auto File 131 B 0644
module.info.cs File 0 B 0644
module.info.cs.auto File 115 B 0644
module.info.da File 0 B 0644
module.info.da.auto File 107 B 0644
module.info.de File 0 B 0644
module.info.de.auto File 112 B 0644
module.info.el File 0 B 0644
module.info.el.auto File 191 B 0644
module.info.es File 0 B 0644
module.info.es.auto File 119 B 0644
module.info.eu File 0 B 0644
module.info.eu.auto File 128 B 0644
module.info.fa File 0 B 0644
module.info.fa.auto File 143 B 0644
module.info.fi File 0 B 0644
module.info.fi.auto File 103 B 0644
module.info.fr File 0 B 0644
module.info.fr.auto File 131 B 0644
module.info.he File 0 B 0644
module.info.he.auto File 131 B 0644
module.info.hr File 0 B 0644
module.info.hr.auto File 130 B 0644
module.info.hu File 0 B 0644
module.info.hu.auto File 141 B 0644
module.info.it File 0 B 0644
module.info.it.auto File 121 B 0644
module.info.ja File 0 B 0644
module.info.ja.auto File 139 B 0644
module.info.ko File 0 B 0644
module.info.ko.auto File 128 B 0644
module.info.lt File 0 B 0644
module.info.lt.auto File 114 B 0644
module.info.lv File 0 B 0644
module.info.lv.auto File 120 B 0644
module.info.ms File 0 B 0644
module.info.ms.auto File 115 B 0644
module.info.mt File 0 B 0644
module.info.mt.auto File 109 B 0644
module.info.nl File 0 B 0644
module.info.nl.auto File 123 B 0644
module.info.no File 0 B 0644
module.info.no.auto File 111 B 0644
module.info.pl File 0 B 0644
module.info.pl.auto File 117 B 0644
module.info.pt File 0 B 0644
module.info.pt.auto File 134 B 0644
module.info.pt_BR File 0 B 0644
module.info.pt_BR.auto File 143 B 0644
module.info.ro File 0 B 0644
module.info.ro.auto File 136 B 0644
module.info.ru File 0 B 0644
module.info.ru.auto File 152 B 0644
module.info.sk File 0 B 0644
module.info.sk.auto File 120 B 0644
module.info.sl File 0 B 0644
module.info.sl.auto File 130 B 0644
module.info.sv File 0 B 0644
module.info.sv.auto File 107 B 0644
module.info.th File 0 B 0644
module.info.th.auto File 198 B 0644
module.info.tr File 0 B 0644
module.info.tr.auto File 149 B 0644
module.info.uk File 0 B 0644
module.info.uk.auto File 153 B 0644
module.info.ur File 0 B 0644
module.info.ur.auto File 190 B 0644
module.info.vi File 0 B 0644
module.info.vi.auto File 142 B 0644
module.info.zh File 0 B 0644
module.info.zh.auto File 113 B 0644
module.info.zh_TW File 0 B 0644
module.info.zh_TW.auto File 122 B 0644
rbac-mapping File 115 B 0644
restart_sharing.cgi File 302 B 0755
save_share.cgi File 3.71 KB 0755