[ Avaa Bypassed ]




Upload:

Command:

www-data@18.116.15.98: ~ $
#!/usr/bin/perl
# edit_karma.cgi
# Edit karma traffic limitation options

require './jabber-lib.pl';
&ui_print_header(undef, $text{'karma_title'}, "", "karma");

$conf = &get_jabber_config();
$io = &find("io", $conf);
$karma = &find("karma", $io);

print "<form action=save_karma.cgi>\n";
print "<table border width=100%>\n";
print "<tr $tb> <td><b>$text{'karma_header'}</b></td> </tr>\n";
print "<tr $cb> <td><table width=100%>\n";

$rate = &find("rate", $io);
print "<tr> <td><b>$text{'karma_rate'}</b></td>\n";
printf "<td><input type=radio name=rate_def value=1 %s> %s\n",
	$rate ? "" : "checked", $text{'karma_rate_def'};
printf "<input type=radio name=rate_def value=0 %s>\n",
	$rate ? "checked" : "";
print &text('karma_rate_sel',
	    "<input name=points size=5 value='$rate->[1]->[0]->{'points'}'>",
	    "<input name=time size=5 value='$rate->[1]->[0]->{'time'}'>"),
	   "</td> </tr>\n";

$mode = $karma ? 3 : -1;
for($i=0; $i<@karma_presets; $i++) {
	local $kp = $karma_presets[$i];
	local $different = 0;
	foreach $k (keys %$kp) {
		local $v = &find_value($k, $karma);
		if ($v != $kp->{$k}) {
			$different++;
			last;
			}
		}
	if (!$different) {
		$mode = $i;
		last;
		}
	}

print "<tr> <td valign=top><b>$text{'karma_mode'}</b></td>\n";
print "<td><select name=mode>\n";
printf "<option value=-1 %s>%s</option>\n",
	$mode == -1 ? "selected" : "", $text{'karma_none'};
printf "<option value=0 %s>%s</option>\n",
	$mode == 0 ? "selected" : "", $text{'karma_low'};
printf "<option value=1 %s>%s</option>\n",
	$mode == 1 ? "selected" : "", $text{'karma_medium'};
printf "<option value=2 %s>%s</option>\n",
	$mode == 2 ? "selected" : "", $text{'karma_high'};
printf "<option value=3 %s>%s</option>\n",
	$mode == 3 ? "selected" : "", $text{'karma_sel'};
print "</select><br><table width=100%>\n";

print "<tr> <td valign=top><b>$text{'karma_heartbeat'}</b></td>\n";
printf "<td><input name=heartbeat size=6 value='%s'></td>\n",
	&find_value("heartbeat", $karma);

print "<td><b>$text{'karma_init'}</b></td>\n";
printf "<td><input name=init size=6 value='%s'></td> </tr>\n",
	&find_value("init", $karma);

print "<tr> <td><b>$text{'karma_max'}</b></td>\n";
printf "<td><input name=max size=6 value='%s'></td>\n",
	&find_value("max", $karma);

print "<td><b>$text{'karma_dec'}</b></td>\n";
printf "<td><input name=dec size=6 value='%s'></td> </tr>\n",
	&find_value("dec", $karma);

$p = &find_value("penalty", $karma);
print "<tr> <td><b>$text{'karma_penalty'}</b></td>\n";
printf "<td><input name=penalty size=6 value='%s'></td>\n",
	defined($p) ? $p * -1 : undef;

print "<td><b>$text{'karma_restore'}</b></td>\n";
printf "<td><input name=restore size=6 value='%s'></td> </tr>\n",
	&find_value("restore", $karma);

print "</table></td> </tr>\n";

print "</table></td></tr></table>\n";
print "<input type=submit value='$text{'save'}'></form>\n";

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


Filemanager

Name Type Size Permission Actions
help Folder 0755
images Folder 0755
lang Folder 0755
backup_config.pl File 770 B 0755
config File 152 B 0644
config-cobalt-linux File 190 B 0644
config-coherent-linux File 190 B 0644
config-debian-linux File 166 B 0644
config-gentoo-linux File 195 B 0644
config-mandrake-linux File 185 B 0644
config-msc-linux File 190 B 0644
config-openSUSE-Linux-15.0-ALL File 186 B 0644
config-openmamba-linux File 190 B 0644
config-redhat-linux File 190 B 0644
config-suse-linux File 190 B 0644
config-syno-linux File 152 B 0644
config-trustix-linux File 190 B 0644
config-turbo-linux File 190 B 0644
config-united-linux File 202 B 0644
config.info File 365 B 0644
config.info.ca File 415 B 0644
config.info.cs File 344 B 0644
config.info.de File 413 B 0644
config.info.es File 340 B 0644
config.info.nl File 397 B 0644
config.info.no File 373 B 0644
config.info.pl File 394 B 0644
config.info.ru File 580 B 0644
config.info.uk File 592 B 0644
cpan_modules.pl File 97 B 0755
edit_admin.cgi File 1.66 KB 0755
edit_file.cgi File 699 B 0755
edit_filter.cgi File 1.37 KB 0755
edit_general.cgi File 1.7 KB 0755
edit_ips.cgi File 1.59 KB 0755
edit_karma.cgi File 2.83 KB 0755
edit_messages.cgi File 2.46 KB 0755
edit_modules.cgi File 1.35 KB 0755
index.cgi File 4.11 KB 0755
install_check.pl File 609 B 0755
jabber-lib.pl File 5.13 KB 0755
module.info File 169 B 0644
module.info.af File 0 B 0644
module.info.af.auto File 106 B 0644
module.info.ar File 0 B 0644
module.info.ar.auto File 169 B 0644
module.info.be File 0 B 0644
module.info.be.auto File 189 B 0644
module.info.bg File 0 B 0644
module.info.bg.auto File 173 B 0644
module.info.ca File 98 B 0644
module.info.ca.auto File 15 B 0644
module.info.cs File 25 B 0644
module.info.cs.auto File 85 B 0644
module.info.da File 0 B 0644
module.info.da.auto File 106 B 0644
module.info.de File 95 B 0644
module.info.de.auto File 17 B 0644
module.info.el File 0 B 0644
module.info.el.auto File 201 B 0644
module.info.es File 42 B 0644
module.info.es.auto File 90 B 0644
module.info.eu File 0 B 0644
module.info.eu.auto File 120 B 0644
module.info.fa File 0 B 0644
module.info.fa.auto File 142 B 0644
module.info.fi File 0 B 0644
module.info.fi.auto File 115 B 0644
module.info.fr File 0 B 0644
module.info.fr.auto File 113 B 0644
module.info.he File 0 B 0644
module.info.he.auto File 153 B 0644
module.info.hr File 0 B 0644
module.info.hr.auto File 132 B 0644
module.info.hu File 0 B 0644
module.info.hu.auto File 119 B 0644
module.info.it File 0 B 0644
module.info.it.auto File 118 B 0644
module.info.ja File 0 B 0644
module.info.ja.auto File 148 B 0644
module.info.ko File 0 B 0644
module.info.ko.auto File 126 B 0644
module.info.lt File 0 B 0644
module.info.lt.auto File 130 B 0644
module.info.lv File 0 B 0644
module.info.lv.auto File 118 B 0644
module.info.ms File 94 B 0644
module.info.ms.auto File 15 B 0644
module.info.mt File 0 B 0644
module.info.mt.auto File 116 B 0644
module.info.nl File 25 B 0644
module.info.nl.auto File 93 B 0644
module.info.no File 25 B 0644
module.info.no.auto File 85 B 0644
module.info.pl File 95 B 0644
module.info.pl.auto File 17 B 0644
module.info.pt File 0 B 0644
module.info.pt.auto File 109 B 0644
module.info.pt_BR File 0 B 0644
module.info.pt_BR.auto File 118 B 0644
module.info.ro File 0 B 0644
module.info.ro.auto File 125 B 0644
module.info.ru File 47 B 0644
module.info.ru.auto File 150 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 120 B 0644
module.info.sv File 0 B 0644
module.info.sv.auto File 112 B 0644
module.info.th File 0 B 0644
module.info.th.auto File 250 B 0644
module.info.tr File 0 B 0644
module.info.tr.auto File 129 B 0644
module.info.uk File 0 B 0644
module.info.uk.auto File 191 B 0644
module.info.ur File 0 B 0644
module.info.ur.auto File 146 B 0644
module.info.vi File 0 B 0644
module.info.vi.auto File 114 B 0644
module.info.zh File 0 B 0644
module.info.zh.auto File 94 B 0644
module.info.zh_TW File 0 B 0644
module.info.zh_TW.auto File 103 B 0644
restart.cgi File 274 B 0755
save_admin.cgi File 1.16 KB 0755
save_file.cgi File 636 B 0755
save_filter.cgi File 920 B 0755
save_general.cgi File 1.75 KB 0755
save_ips.cgi File 979 B 0755
save_karma.cgi File 1.26 KB 0755
save_messages.cgi File 1.29 KB 0755
save_modules.cgi File 748 B 0755
start.cgi File 168 B 0755
stop.cgi File 197 B 0755