[ Avaa Bypassed ]




Upload:

Command:

www-data@18.226.163.8: ~ $
#!/usr/bin/perl
# index.cgi
# Display the current list of procmail recipes

require './procmail-lib.pl';
if ($minfo{'usermin'}) {
	&ui_print_header(undef, $text{'index_title'}, "", undef, 1, 1);
	}
else {
	&ui_print_header(undef, $text{'index_title'}, "", undef, 1, 1);
	}

# Make sure procmail is installed
if (!$module_info{'usermin'} && !&has_command($config{'procmail'})) {
	print &text('index_ecmd', "<tt>$config{'procmail'}</tt>",
				  "../config.cgi?$module_name"),"<p>\n";

	&foreign_require("software", "software-lib.pl");
	$lnk = &software::missing_install_link(
			"procmail", $text{'index_procmail'},
			"../$module_name/", $text{'index_title'});
	print $lnk,"<p>\n" if ($lnk);

	&ui_print_footer("/", $text{'index_return'});
	exit;
	}

# Tell user when procmail will be used
if ($module_info{'usermin'}) {
	print &text('index_desc', "<tt>$procmailrc</tt>"),"<p>\n";
	}
else {
	($ms, $mserr) = &check_mailserver_config();
	if ($mserr) {
		print "<b>",&text('index_mserr', $mserr),"</b><p>\n";
		}
	elsif (!$ms) {
		print &text('index_desc_other', "<tt>$procmailrc</tt>"),"<p>\n";
		}
	}

# Check if config is from Virtualmin
@conf = &get_procmailrc();
if (&check_virtualmin_config(\@conf)) {
	print "<b>",$text{'index_virtualmin'},"</b><p>\n";
	}

# Build links for adding things
@links = ( &ui_link("edit_recipe.cgi?new=1",$text{'index_add'}),
	   &ui_link("edit_recipe.cgi?new=1&block=1",$text{'index_badd'}),
	   &ui_link("edit_env.cgi?new=1",$text{'index_eadd'}) );
push(@links, &ui_link("edit_inc.cgi?new=1",$text{'index_iadd'}))
	if (!$includes);

if (@conf) {
	@tds = ( "width=5" );
	print &ui_form_start("delete_recipes.cgi", "post");
	unshift(@links, &select_all_link("d"),
			&select_invert_link("d") );
	print &ui_links_row(\@links);
	print &ui_columns_start([
		"",
		$text{'index_action'},
		$text{'index_conds'},
		$text{'index_move'},
		$text{'index_ba'} ], 100, 0, \@tds);
	foreach $c (@conf) {
		local @cols;
		local @tds = ( "width=5" );
		if ($c->{'name'}) {
			# Environment variable assignment
			local $v = length($c->{'value'}) > 80 ?
					substr($c->{'value'}, 0, 80)." ..." :
					$c->{'value'};
			push(@cols, "<a href='edit_env.cgi?idx=$c->{'index'}'>".
			      &text('index_env',
			    	"<tt>".&html_escape($c->{'name'})."</tt>",
				"<tt>".&html_escape($v)."</tt>")."</a>");
			push(@tds, "width=100% colspan=2");
			}
		elsif ($c->{'include'}) {
			# Included file
			push(@cols, "<a href='edit_inc.cgi?idx=$c->{'index'}'>".
				&text('index_include', 
				"<tt>".&html_escape($c->{'include'})."</tt>").
				"</a>");
			push(@tds, "width=100% colspan=2");
			}
		else {
			# Procmail recipe
			local ($t, $a) = &parse_action($c);
			push(@cols,
			    "<a href='edit_recipe.cgi?idx=$c->{'index'}'>".
			    &text('index_act'.$t,
				    "<tt>".&html_escape($a)."</tt>")."</a>");
			push(@tds, "valign=top width=50%");

			local @c = @{$c->{'conds'}};
			if (!@c) {
				push(@cols, $text{'index_noconds'});
				}
			else {
				local $c;
				foreach $n (@c) {
					local $he ="<tt>".&html_escape($n->[1]).
						   "</tt>";
					if ($n->[0] eq '') {
						$c .= &text('index_re', $he);
						}
					elsif ($n->[0] eq '!') {
						$c .= &text('index_nre', $he);
						}
					elsif ($n->[0] eq '$') {
						$c .= &text('index_shell', $he);
						}
					elsif ($n->[0] eq '?') {
						$c .= &text('index_exit', $he);
						}
					elsif ($n->[0] eq '<') {
						$c .= &text('index_lt',$n->[1]);
						}
					elsif ($n->[0] eq '>') {
						$c .= &text('index_gt',$n->[1]);
						}
					$c .= "<br>\n";
					}
				push(@cols, $c);
				}
			push(@tds, "width=50%");
			}

		# Move up/down links
		local $mover;
		if ($c eq $conf[@conf-1] ||
		    $c->{'file'} ne $conf[$c->{'index'}+1]->{'file'}) {
			$mover .= "<img src=images/gap.gif>";
			}
		else {
			$mover .= "<a href='down.cgi?idx=$c->{'index'}'>".
			      "<img src=images/down.gif border=0></a>";
			}
		if ($c eq $conf[0] ||
		    $c->{'file'} ne $conf[$c->{'index'}-1]->{'file'}) {
			$mover .= "<img src=images/gap.gif>";
			}
		else {
			$mover .= "<a href='up.cgi?idx=$c->{'index'}'>".
			      "<img src=images/up.gif border=0></a>";
			}
		push(@cols, $mover);
		push(@tds, "width=32");

		# Add before/after links
		push(@cols, &ui_link("edit_recipe.cgi?new=1&after=$c->{'index'}","<img src=images/after.gif border=0>"));
		print &ui_checked_columns_row(\@cols, \@tds, "d",$c->{'index'});
		}
	print &ui_columns_end();
	print &ui_links_row(\@links);
	print &ui_form_end([ [ "delete", $text{'index_delete'} ] ]);
	}
else {
	print "<b>$text{'index_none'}</b><p>\n";
	print &ui_links_row(\@links);
	}

# Manual edit button
print &ui_hr();
print &ui_buttons_start();
print &ui_buttons_row("manual_form.cgi",
		      $text{'index_man'}, $text{'index_mandesc'});
print &ui_buttons_end();

print &ui_link("manual_form.cgi","$text{'index_manual'}")."\n";
print "<p>\n";

&ui_print_footer("/", $text{'index'});


Filemanager

Name Type Size Permission Actions
images Folder 0755
lang Folder 0755
CHANGELOG File 289 B 0644
backup_config.pl File 649 B 0755
cgi_args.pl File 488 B 0755
config File 56 B 0644
config-freebsd File 66 B 0644
config.info File 237 B 0644
config.info.ca File 281 B 0644
config.info.cs File 212 B 0644
config.info.de File 265 B 0644
config.info.es File 57 B 0644
config.info.fr File 265 B 0644
config.info.hu File 0 B 0644
config.info.ko File 272 B 0644
config.info.nl File 262 B 0644
config.info.no File 244 B 0644
config.info.pl File 0 B 0644
config.info.ru File 278 B 0644
config.info.uk File 296 B 0644
delete_recipes.cgi File 418 B 0755
down.cgi File 277 B 0755
edit_env.cgi File 1022 B 0755
edit_inc.cgi File 864 B 0755
edit_recipe.cgi File 2.75 KB 0755
index.cgi File 4.79 KB 0755
install_check.pl File 483 B 0755
log_parser.pl File 764 B 0755
manual_form.cgi File 533 B 0755
manual_save.cgi File 331 B 0755
module.info File 198 B 0644
module.info.af File 0 B 0644
module.info.af.auto File 161 B 0644
module.info.ar File 0 B 0644
module.info.ar.auto File 222 B 0644
module.info.be File 0 B 0644
module.info.be.auto File 265 B 0644
module.info.bg File 0 B 0644
module.info.bg.auto File 225 B 0644
module.info.ca File 142 B 0644
module.info.ca.auto File 17 B 0644
module.info.cs File 35 B 0644
module.info.cs.auto File 137 B 0644
module.info.da File 0 B 0644
module.info.da.auto File 154 B 0644
module.info.de File 149 B 0644
module.info.de.auto File 17 B 0644
module.info.el File 0 B 0644
module.info.el.auto File 335 B 0644
module.info.es File 34 B 0644
module.info.es.auto File 150 B 0644
module.info.eu File 0 B 0644
module.info.eu.auto File 175 B 0644
module.info.fa File 0 B 0644
module.info.fa.auto File 243 B 0644
module.info.fi File 0 B 0644
module.info.fi.auto File 179 B 0644
module.info.fr File 36 B 0644
module.info.fr.auto File 139 B 0644
module.info.he File 0 B 0644
module.info.he.auto File 183 B 0644
module.info.hr File 0 B 0644
module.info.hr.auto File 158 B 0644
module.info.hu File 37 B 0644
module.info.hu.auto File 135 B 0644
module.info.it File 37 B 0644
module.info.it.auto File 129 B 0644
module.info.ja File 0 B 0644
module.info.ja.auto File 216 B 0644
module.info.ko File 31 B 0644
module.info.ko.auto File 152 B 0644
module.info.lt File 0 B 0644
module.info.lt.auto File 170 B 0644
module.info.lv File 0 B 0644
module.info.lv.auto File 177 B 0644
module.info.ms File 132 B 0644
module.info.ms.auto File 17 B 0644
module.info.mt File 0 B 0644
module.info.mt.auto File 159 B 0644
module.info.nl File 31 B 0644
module.info.nl.auto File 136 B 0644
module.info.no File 31 B 0644
module.info.no.auto File 123 B 0644
module.info.pl File 33 B 0644
module.info.pl.auto File 138 B 0644
module.info.pt File 0 B 0644
module.info.pt.auto File 156 B 0644
module.info.pt_BR File 0 B 0644
module.info.pt_BR.auto File 165 B 0644
module.info.ro File 0 B 0644
module.info.ro.auto File 160 B 0644
module.info.ru File 47 B 0644
module.info.ru.auto File 219 B 0644
module.info.sk File 0 B 0644
module.info.sk.auto File 171 B 0644
module.info.sl File 0 B 0644
module.info.sl.auto File 139 B 0644
module.info.sv File 0 B 0644
module.info.sv.auto File 157 B 0644
module.info.th File 0 B 0644
module.info.th.auto File 248 B 0644
module.info.tr File 0 B 0644
module.info.tr.auto File 165 B 0644
module.info.uk File 0 B 0644
module.info.uk.auto File 250 B 0644
module.info.ur File 0 B 0644
module.info.ur.auto File 229 B 0644
module.info.vi File 0 B 0644
module.info.vi.auto File 185 B 0644
module.info.zh File 0 B 0644
module.info.zh.auto File 154 B 0644
module.info.zh_TW File 0 B 0644
module.info.zh_TW.auto File 163 B 0644
prefs.info File 16 B 0644
procmail-lib.pl File 9.39 KB 0755
save_env.cgi File 753 B 0755
save_inc.cgi File 680 B 0755
save_recipe.cgi File 2.58 KB 0755
up.cgi File 271 B 0755