[ Avaa Bypassed ]




Upload:

Command:

www-data@3.147.75.50: ~ $
#!/usr/bin/perl
# index.cgi
# Show all logs that are being rotated

require './logrotate-lib.pl';

# Make sure config file and program exists
if (!&has_command($config{'logrotate'})) {
	&ui_print_header(undef, $text{'index_title'}, "", "intro", 1, 1);
	print &ui_config_link('index_ecmd',
		        [ "<tt>$config{'logrotate'}</tt>", undef ]),"<p>\n";

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

	&ui_print_footer("/", $text{'index'});
	exit;
	}
if (!-r $config{'logrotate_conf'}) {
	&ui_print_header(undef, $text{'index_title'}, "", "intro", 1, 1);
	&ui_print_endpage(
		&ui_config_link('index_econf',
			[ "<tt>$config{'logrotate_conf'}</tt>", undef ]));
	}

# Get the version
$logrotate_version = &get_logrotate_version(\$out);
if (!$logrotate_version) {
	&ui_print_header(undef, $text{'index_title'}, "", "intro", 1, 1);
	&ui_print_endpage(
		&text('index_eversion', "<tt>$config{'logrotate'} -v</tt>",
		      "<pre>$out</pre>"));
	}
&open_tempfile(VERSION, ">$module_config_directory/version");
&print_tempfile(VERSION, "$logrotate_version\n");
&close_tempfile(VERSION);
&ui_print_header(undef, $text{'index_title'}, "", "intro", 1, 1, 0,
		 &help_search_link("logrotate", "man", "doc", "google"),
		 undef, undef,
		 &text('index_version', $logrotate_version));

# Show table of log files
$conf = &get_config();
$defp = &get_period($conf);
foreach $c ($config{'sort_mode'} ?
	     (sort { $a->{'name'}->[0] cmp $b->{'name'}->[0] } @$conf) :
	     @$conf) {
	if ($c->{'members'}) {
		local $p = &get_period($c->{'members'}) || $defp;
		local $r = &find_value("postrotate", $c->{'members'});
		$r =~ s/\n/<br>\n/g;
		push(@table, [ &ui_link("edit_log.cgi?idx=".$c->{'index'},
			       join(" ", map { "<tt>$_</tt><br>" }
					     @{$c->{'name'}}) ),
			       $text{'period_'.$p} ||
				"<i>$text{'index_notset'}</i>",
			       $r ? "<tt><font size=-1>$r</font></tt>"
				  : "<i>$text{'index_nocmd'}</i>" ]);
		push(@tablelogs, $c);
		}
	}
if (@table) {
	print &ui_form_start("delete_logs.cgi", "post");
	@links = ( &select_all_link("d"),
		   &select_invert_link("d"),
		   &ui_link("edit_log.cgi?new=1", $text{'index_add'}) );
	print &ui_links_row(\@links);
	@tds = ( "width=5", "nowrap valign=top", "valign=top", "valign=top" );
	print &ui_columns_start([ "",
				  $text{'index_file'},
			    	  $text{'index_period'},
			    	  $text{'index_post'} ], 100, 0, \@tds);
	$i = 0;
	foreach $r (@table) {
		print &ui_checked_columns_row($r, \@tds, "d",
					      $tablelogs[$i]->{'index'});
		$i++;
		}
	print &ui_columns_end();
	print &ui_links_row(\@links);
	print &ui_form_end([ [ "delete", $text{'index_delete'} ] ]);
	}
else {
	print "<p><b>$text{'index_none'}</b><p>\n";
	print &ui_link("edit_log.cgi?new=1", $text{'index_add'});
    print "<p>\n";
	}

# Show buttons for editing global config and scheduling
print &ui_hr();
print &ui_buttons_start();
print &ui_buttons_row("edit_log.cgi", $text{'index_global'},
		      $text{'index_globaldesc'},
		      &ui_hidden("global", 1));
print &ui_buttons_row("edit_sched.cgi", $text{'index_sched'},
		      $text{'index_scheddesc'});
print &ui_buttons_row("force.cgi", $text{'index_force'},
		      $text{'index_forcedesc'});
print &ui_buttons_end();

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


Filemanager

Name Type Size Permission Actions
help Folder 0755
images Folder 0755
lang Folder 0755
CHANGELOG File 528 B 0644
backup_config.pl File 630 B 0755
cgi_args.pl File 221 B 0755
config File 67 B 0644
config-ALL-linux File 67 B 0644
config-debian-linux File 93 B 0644
config-freebsd File 142 B 0644
config-open-linux File 71 B 0644
config-redhat-linux File 93 B 0644
config-solaris-10-ALL File 132 B 0644
config-syno-linux File 67 B 0644
config.info File 288 B 0644
config.info.ca File 358 B 0644
config.info.cs File 342 B 0644
config.info.de File 345 B 0644
config.info.es File 272 B 0644
config.info.fr File 390 B 0644
config.info.hu File 0 B 0644
config.info.ja File 398 B 0644
config.info.ko File 276 B 0644
config.info.nl File 321 B 0644
config.info.no File 325 B 0644
config.info.pl File 334 B 0644
config.info.sk File 356 B 0644
config.info.tr File 288 B 0644
delete_logs.cgi File 642 B 0755
edit_log.cgi File 7.12 KB 0755
edit_sched.cgi File 1.4 KB 0755
force.cgi File 619 B 0755
index.cgi File 3.34 KB 0755
install_check.pl File 331 B 0755
log_parser.pl File 605 B 0755
logrotate-lib.pl File 9.36 KB 0755
module.info File 203 B 0644
module.info.af File 0 B 0644
module.info.af.auto File 132 B 0644
module.info.ar File 0 B 0644
module.info.ar.auto File 186 B 0644
module.info.be File 0 B 0644
module.info.be.auto File 226 B 0644
module.info.bg File 0 B 0644
module.info.bg.auto File 223 B 0644
module.info.ca File 145 B 0644
module.info.ca.auto File 17 B 0644
module.info.cs File 32 B 0644
module.info.cs.auto File 114 B 0644
module.info.da File 0 B 0644
module.info.da.auto File 133 B 0644
module.info.de File 126 B 0644
module.info.de.auto File 18 B 0644
module.info.el File 0 B 0644
module.info.el.auto File 256 B 0644
module.info.es File 40 B 0644
module.info.es.auto File 120 B 0644
module.info.eu File 0 B 0644
module.info.eu.auto File 163 B 0644
module.info.fa File 0 B 0644
module.info.fa.auto File 179 B 0644
module.info.fi File 0 B 0644
module.info.fi.auto File 139 B 0644
module.info.fr File 36 B 0644
module.info.fr.auto File 120 B 0644
module.info.he File 0 B 0644
module.info.he.auto File 195 B 0644
module.info.hr File 0 B 0644
module.info.hr.auto File 141 B 0644
module.info.hu File 45 B 0644
module.info.hu.auto File 125 B 0644
module.info.it File 0 B 0644
module.info.it.auto File 152 B 0644
module.info.ja File 0 B 0644
module.info.ja.auto File 210 B 0644
module.info.ko File 29 B 0644
module.info.ko.auto File 127 B 0644
module.info.lt File 0 B 0644
module.info.lt.auto File 164 B 0644
module.info.lv File 0 B 0644
module.info.lv.auto File 147 B 0644
module.info.ms File 119 B 0644
module.info.ms.auto File 18 B 0644
module.info.mt File 0 B 0644
module.info.mt.auto File 142 B 0644
module.info.nl File 25 B 0644
module.info.nl.auto File 112 B 0644
module.info.no File 25 B 0644
module.info.no.auto File 109 B 0644
module.info.pl File 115 B 0644
module.info.pl.auto File 18 B 0644
module.info.pt File 0 B 0644
module.info.pt.auto File 151 B 0644
module.info.pt_BR File 0 B 0644
module.info.pt_BR.auto File 160 B 0644
module.info.ro File 0 B 0644
module.info.ro.auto File 163 B 0644
module.info.ru File 0 B 0644
module.info.ru.auto File 213 B 0644
module.info.sk File 44 B 0644
module.info.sk.auto File 130 B 0644
module.info.sl File 0 B 0644
module.info.sl.auto File 143 B 0644
module.info.sv File 0 B 0644
module.info.sv.auto File 137 B 0644
module.info.th File 0 B 0644
module.info.th.auto File 241 B 0644
module.info.tr File 0 B 0644
module.info.tr.auto File 162 B 0644
module.info.uk File 0 B 0644
module.info.uk.auto File 226 B 0644
module.info.ur File 0 B 0644
module.info.ur.auto File 218 B 0644
module.info.vi File 0 B 0644
module.info.vi.auto File 169 B 0644
module.info.zh File 0 B 0644
module.info.zh.auto File 129 B 0644
module.info.zh_TW File 0 B 0644
module.info.zh_TW.auto File 138 B 0644
prefs.info File 18 B 0644
save_log.cgi File 6.03 KB 0755
save_sched.cgi File 936 B 0755