[ Avaa Bypassed ]




Upload:

Command:

www-data@52.15.174.159: ~ $
#!/usr/bin/perl
#
# An OpenSLP webmin module
# by Monty Charlton <monty@caldera.com>,
#
# Copyright (c) 2000 Caldera Systems
#
# Permission to use, copy, modify, and distribute this software and its
# documentation under the terms of the GNU General Public License is hereby 
# granted. No representations are made about the suitability of this software 
# for any purpose. It is provided "as is" without express or implied warranty.
# See the GNU General Public License for more details.
#

require './slp-lib.pl';
&ui_print_header(undef, $text{'netcfg_title'}, "");

local $netcfg = &get_netcfg_config();
print "<form action=save_netcfg.cgi>\n";
print "<table border width=100%>\n";
print "<tr $tb> <td><b>$text{'netcfg_title'}</b></td> </tr>\n";
print "<tr $cb> <td><table width=100% cellpadding=2>\n";

if ($netcfg->{'isBroadcastOnly'} !~ /^true$/i || $netcfg->{'isBroadcastOnlyDisabled'}) {
	$false = " checked";
} else {
	$true = " checked";
}
print "<tr><td><b>$text{'netcfg_isBroadcastOnly'}</b></td><td nowrap>\n";
print "<input type=radio name=isBroadcastOnly value=1$true>\n";
print "True&nbsp;&nbsp;<BR>";
print "<input type=radio name=isBroadcastOnly value=0$false>\n";
print "False&nbsp;(default)";
print "</td>\n";
print "<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>\n";

local $true=""; local $false="";
if ($netcfg->{'passiveDADetection'} !~ /^false$/i || $netcfg->{'passiveDADetectionDisabled'}) {
	$true = " checked";
} else {
	$false = " checked";
}
print "<td><b>$text{'netcfg_passiveDADetection'}</b></td><td nowrap>\n";
print "<input type=radio name=passiveDADetection value=1$true>\n";
print "True&nbsp;(default)&nbsp;<BR>";
print "<input type=radio name=passiveDADetection value=0$false>\n";
print "False&nbsp;";
print "</td></tr>\n";                                                                                               
print "<tr><td colspan=6><HR></td></tr>";

$true=""; $false="";
if ($netcfg->{'activeDADetection'} !~ /^false$/i || $netcfg->{'activeDADetectionDisabled'}) {
        $true = " checked";
} else {
        $false = " checked";
}
print "<tr><td><b>$text{'netcfg_activeDADetection'}</b></td><td nowrap>\n";
print "<input type=radio name=activeDADetection value=1$true>\n";
print "True&nbsp;(default)&nbsp;<BR>";
print "<input type=radio name=activeDADetection value=0$false>\n";
print "False&nbsp;";
print "</td>\n";
print "<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>\n";
 
$true=""; $false="";
if ($netcfg->{'DAActiveDiscoveryIntervalDisabled'}) {
	$true = " checked";
} else {
	$false = " checked";
}
print "<td><b>$text{'netcfg_DAActiveDiscoveryInterval'}</b></td><td nowrap>\n";
print "<input type=radio name=DAActiveDiscoveryInterval value=1$true>\n";
print "Default&nbsp;";
print "<input type=radio name=DAActiveDiscoveryInterval value=0$false>\n";
print "&nbsp;";
printf "<input name=DAActiveDiscoveryIntervalValue size=6 value=\"%s\"><br>\n",
	$netcfg->{'DAActiveDiscoveryInterval'};
print "</td>\n";
print "<tr><td colspan=6><HR></td>";

$true=""; $false="";
if ($netcfg->{'multicastTTLDisabled'}) {
	$true = " checked";
} else {
	$false = " checked";
}
print "<tr><td><b>$text{'netcfg_multicastTTL'}</b></td><td nowrap>\n";
print "<input type=radio name=multicastTTL value=1$true>\n";
print "Default&nbsp;";
print "<input type=radio name=multicastTTL value=0$false>\n";
print "&nbsp;";
printf "<input name=multicastTTLValue size=6 value=\"%s\"><br>\n",
	$netcfg->{'multicastTTL'};
print "</td>\n";
print "<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>\n";

$true=""; $false="";
if ($netcfg->{'DADiscoveryMaximumWaitDisabled'}) {
	$true = " checked";
} else {
	$false = " checked";
}
print "<td><b>$text{'netcfg_DADiscoveryMaximumWait'}</b></td><td nowrap>\n";
print "<input type=radio name=DADiscoveryMaximumWait value=1$true>\n";
print "Default&nbsp;";
print "<input type=radio name=DADiscoveryMaximumWait value=0$false>\n";
print "&nbsp;";
printf "<input name=DADiscoveryMaximumWaitValue size=6 value=\"%s\"><br>\n",
	$netcfg->{'DADiscoveryMaximumWait'};
print "</td></tr>\n";
print "<tr><td colspan=6><HR></td>";

$true=""; $false="";
if ($netcfg->{'DADiscoveryTimeoutsDisabled'}) {
	$true = " checked";
} else {
	$false = " checked";
}
print "<tr><td><b>$text{'netcfg_DADiscoveryTimeouts'}</b></td><td nowrap>\n";
print "<table><tr><td nowrap>\n";
print "<input type=radio name=DADiscoveryTimeouts value=1$true>\n";
print "Default&nbsp;";
print "<input type=radio name=DADiscoveryTimeouts value=0$false></td><td>\n";
for ($i=0; $i<5; $i++) {
	printf "<input name=DADiscoveryTimeoutsValue_$i size=6 value=\"%s\"><br>\n",
		$netcfg->{'DADiscoveryTimeouts'}->[$i];
}
print "</td></tr></table></td>\n";
print "<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>\n";

$true=""; $false="";
if ($netcfg->{'HintsFileDisabled'}) {
	$true = " checked";
} else {
	$false = " checked";
}
print "<td><b>$text{'netcfg_HintsFile'}</b></td><td nowrap>\n";
print "<input type=radio name=HintsFile value=1$true>\n";
print "Default&nbsp;";
print "<input type=radio name=HintsFile value=0$false>\n";
print "&nbsp;";
printf "<input name=HintsFileValue size=13 value=\"%s\"><br>\n",
	$netcfg->{'HintsFile'};
print "</td></tr>\n";
print "<tr><td colspan=6><HR></td>";

$true=""; $false="";
if ($netcfg->{'multicastMaximumWaitDisabled'}) {
	$true = " checked";
} else {
	$false = " checked";
}
print "<tr><td><b>$text{'netcfg_multicastMaximumWait'}</b></td><td nowrap>\n";
print "<input type=radio name=multicastMaximumWait value=1$true>\n";
print "Default&nbsp;";
print "<input type=radio name=multicastMaximumWait value=0$false>\n";
print "&nbsp;";
printf "<input name=multicastMaximumWaitValue size=6 value=\"%s\"><br>\n",
	$netcfg->{'multicastMaximumWait'};
print "</td>\n";
print "<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>\n";

$true=""; $false="";
if ($netcfg->{'multicastTimeoutsDisabled'}) {
	$true = " checked";
} else {
	$false = " checked";
}
print "<td><b>$text{'netcfg_multicastTimeouts'}</b></td><td nowrap>\n";
print "<table><tr><td nowrap>\n";
print "<input type=radio name=multicastTimeouts value=1$true>\n";
print "Default&nbsp;";
print "<input type=radio name=multicastTimeouts value=0$false></td><td>\n";
for ($i=0; $i<5; $i++) {
	printf "<input name=multicastTimeoutsValue_$i size=6 value=\"%s\"><br>\n",
		$netcfg->{'multicastTimeouts'}->[$i];
}
print "</td></tr></table></td><tr>\n";
print "<tr><td colspan=6><HR></td>";

$true=""; $false="";
if ($netcfg->{'unicastMaximumWaitDisabled'}) {
	$true = " checked";
} else {
	$false = " checked";
}
print "<tr><td><b>$text{'netcfg_unicastMaximumWait'}</b></td><td nowrap>\n";
print "<input type=radio name=unicastMaximumWait value=1$true>\n";
print "Default&nbsp;";
print "<input type=radio name=unicastMaximumWait value=0$false>\n";
print "&nbsp;";
printf "<input name=unicastMaximumWaitValue size=6 value=\"%s\"><br>\n",
	$netcfg->{'unicastMaximumWait'};
print "</td>\n";
print "<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>\n";

$true=""; $false="";
if ($netcfg->{'randomWaitBoundDisabled'}) {
	$true = " checked";
} else {
	$false = " checked";
}
print "<td><b>$text{'netcfg_randomWaitBound'}</b></td><td nowrap>\n";
print "<input type=radio name=randomWaitBound value=1$true>\n";
print "Default&nbsp;";
print "<input type=radio name=randomWaitBound value=0$false>\n";
print "&nbsp;";
printf "<input name=randomWaitBoundValue size=6 value=\"%s\"><br>\n",
	$netcfg->{'randomWaitBound'};
print "</td></tr>\n";
print "<tr><td colspan=6><HR></td>";

$true=""; $false="";
if ($netcfg->{'MTUDisabled'}) {
	$true = " checked";
} else {
	$false = " checked";
}
print "<tr><td><b>$text{'netcfg_MTU'}</b></td><td nowrap>\n";
print "<input type=radio name=MTU value=1$true>\n";
print "Default&nbsp;";
print "<input type=radio name=MTU value=0$false>\n";
print "&nbsp;";
printf "<input name=MTUValue size=6 value=\"%s\"><br>\n",
	$netcfg->{'MTU'};
print "</td>\n";
print "<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>\n";

$true=""; $false="";
if ($netcfg->{'interfacesDisabled'}) {
	$true = " checked";
} else {
	$false = " checked";
}
print "<td><b>$text{'netcfg_interfaces'}</b></td><td nowrap>\n";
print "<table><tr><td nowrap>\n";
print "<input type=radio name=interfaces value=1$true>\n";
print "All&nbsp;";
print "<input type=radio name=interfaces value=0$false></td><td>\n";
for ($i=0; $i<5; $i++) {
	printf "<input name=interfacesValue_$i size=13 value=\"%s\"><br>\n",
		$netcfg->{'interfaces'}->[$i];
}
print "</td></tr></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
README File 1.23 KB 0644
backup_config.pl File 646 B 0755
config File 120 B 0644
config-cobalt-linux File 194 B 0644
config-coherent-linux File 194 B 0644
config-freebsd File 220 B 0644
config-mandrake-linux File 176 B 0644
config-msc-linux File 194 B 0644
config-open-linux File 194 B 0644
config-openSUSE-Linux-15.0-ALL File 194 B 0644
config-openmamba-linux File 194 B 0644
config-pardus-linux File 120 B 0644
config-redhat-linux File 194 B 0644
config-suse-linux File 194 B 0644
config-syno-linux File 120 B 0644
config-trustix-linux File 194 B 0644
config-turbo-linux File 194 B 0644
config-united-linux File 184 B 0644
config.info File 336 B 0644
config.info.ca File 394 B 0644
config.info.cs File 383 B 0644
config.info.de File 370 B 0644
config.info.ms File 349 B 0644
config.info.nl File 379 B 0644
config.info.no File 352 B 0644
config.info.ru File 519 B 0644
config.info.uk File 546 B 0644
edit_dacfg.cgi File 1.49 KB 0755
edit_log.cgi File 2.7 KB 0755
edit_netcfg.cgi File 8.4 KB 0755
edit_snda.cgi File 2.04 KB 0755
index.cgi File 2.23 KB 0755
install_check.pl File 323 B 0755
module.info File 174 B 0644
module.info.af File 0 B 0644
module.info.af.auto File 100 B 0644
module.info.ar File 0 B 0644
module.info.ar.auto File 113 B 0644
module.info.be File 0 B 0644
module.info.be.auto File 139 B 0644
module.info.bg File 0 B 0644
module.info.bg.auto File 182 B 0644
module.info.ca File 102 B 0644
module.info.ca.auto File 16 B 0644
module.info.cs File 23 B 0644
module.info.cs.auto File 81 B 0644
module.info.da File 0 B 0644
module.info.da.auto File 100 B 0644
module.info.de File 86 B 0644
module.info.de.auto File 16 B 0644
module.info.el File 0 B 0644
module.info.el.auto File 165 B 0644
module.info.es File 0 B 0644
module.info.es.auto File 117 B 0644
module.info.eu File 0 B 0644
module.info.eu.auto File 116 B 0644
module.info.fa File 0 B 0644
module.info.fa.auto File 125 B 0644
module.info.fi File 0 B 0644
module.info.fi.auto File 101 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 130 B 0644
module.info.hr File 0 B 0644
module.info.hr.auto File 106 B 0644
module.info.hu File 0 B 0644
module.info.hu.auto File 120 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 135 B 0644
module.info.ko File 0 B 0644
module.info.ko.auto File 111 B 0644
module.info.lt File 0 B 0644
module.info.lt.auto File 116 B 0644
module.info.lv File 0 B 0644
module.info.lv.auto File 118 B 0644
module.info.ms File 84 B 0644
module.info.ms.auto File 16 B 0644
module.info.mt File 0 B 0644
module.info.mt.auto File 114 B 0644
module.info.nl File 23 B 0644
module.info.nl.auto File 73 B 0644
module.info.no File 23 B 0644
module.info.no.auto File 77 B 0644
module.info.pl File 0 B 0644
module.info.pl.auto File 102 B 0644
module.info.pt File 0 B 0644
module.info.pt.auto File 117 B 0644
module.info.pt_BR File 0 B 0644
module.info.pt_BR.auto File 126 B 0644
module.info.ro File 0 B 0644
module.info.ro.auto File 114 B 0644
module.info.ru File 29 B 0644
module.info.ru.auto File 122 B 0644
module.info.sk File 0 B 0644
module.info.sk.auto File 104 B 0644
module.info.sl File 0 B 0644
module.info.sl.auto File 108 B 0644
module.info.sv File 0 B 0644
module.info.sv.auto File 98 B 0644
module.info.th File 0 B 0644
module.info.th.auto File 199 B 0644
module.info.tr File 0 B 0644
module.info.tr.auto File 104 B 0644
module.info.uk File 0 B 0644
module.info.uk.auto File 149 B 0644
module.info.ur File 0 B 0644
module.info.ur.auto File 161 B 0644
module.info.vi File 0 B 0644
module.info.vi.auto File 113 B 0644
module.info.zh File 0 B 0644
module.info.zh.auto File 90 B 0644
module.info.zh_TW File 0 B 0644
module.info.zh_TW.auto File 99 B 0644
save_dacfg.cgi File 680 B 0755
save_log.cgi File 1015 B 0755
save_netcfg.cgi File 2.95 KB 0755
save_snda.cgi File 1.03 KB 0755
slp-lib.pl File 10.16 KB 0755
start.cgi File 408 B 0755
stop.cgi File 330 B 0755