mirror of
https://github.com/webmin/webmin.git
synced 2026-02-15 03:02:39 +00:00
Delete obsolete eazel-specific code
This commit is contained in:
@@ -1,33 +0,0 @@
|
||||
#!/usr/local/bin/perl
|
||||
# change_syslet.cgi
|
||||
# Save syslet auto-download options
|
||||
|
||||
require './webmin-lib.pl';
|
||||
&ReadParse();
|
||||
&error_setup($text{'syslet_err'});
|
||||
|
||||
&lock_file("$config_directory/config");
|
||||
@base = split(/\s+/, $in{'syslet_base'});
|
||||
foreach $b (@base) {
|
||||
$b =~ /^http:\/\/([A-Za-z0-9\.\-]+)(:\d+)?\/(\S*)/ ||
|
||||
&error($text{'syslet_ebase'});
|
||||
}
|
||||
$gconfig{'syslet_base'} = join(" ", @base);
|
||||
&write_file("$config_directory/config", \%gconfig);
|
||||
&unlock_file("$config_directory/config");
|
||||
|
||||
&lock_file($ENV{'MINISERV_CONFIG'});
|
||||
&get_miniserv_config(\%miniserv);
|
||||
if ($in{'auto'}) {
|
||||
$miniserv{'error_handler_404'} = '/eazel_download_module.cgi';
|
||||
}
|
||||
elsif ($miniserv{'error_handler_404'} eq '/eazel_download_module.cgi') {
|
||||
$miniserv{'error_handler_404'} = '';
|
||||
}
|
||||
&put_miniserv_config(\%miniserv);
|
||||
&unlock_file($ENV{'MINISERV_CONFIG'});
|
||||
|
||||
&webmin_log("syslet", undef, undef, \%in);
|
||||
&show_restart_page();
|
||||
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
#!/usr/local/bin/perl
|
||||
# edit_syslet.cgi
|
||||
# Configure the automatic download and install of Eazel syslets
|
||||
|
||||
require './webmin-lib.pl';
|
||||
&ReadParse();
|
||||
&ui_print_header(undef, $text{'syslet_title'}, "");
|
||||
|
||||
print $text{'syslet_desc'},"<br>\n";
|
||||
print "<form action=change_syslet.cgi>\n";
|
||||
print "<table>\n";
|
||||
|
||||
&get_miniserv_config(\%miniserv);
|
||||
$auto = ($miniserv{'error_handler_404'} eq '/eazel_download_module.cgi');
|
||||
print "<tr> <td><b>$text{'syslet_auto'}</b></td>\n";
|
||||
printf "<td><input type=radio name=auto value=1 %s> %s\n",
|
||||
$auto ? 'checked' : '', $text{'yes'};
|
||||
printf "<input type=radio name=auto value=0 %s> %s</td> </tr>\n",
|
||||
$auto ? '' : 'checked', $text{'no'};
|
||||
|
||||
print "<tr> <td valign=top><b>$text{'syslet_base'}</b></td>\n";
|
||||
print "<td><textarea name=syslet_base rows=4 cols=40>",
|
||||
join("\n", split(/\s+/, $gconfig{'syslet_base'})),
|
||||
"</textarea></td> </tr>\n";
|
||||
|
||||
print "</table>\n";
|
||||
print "<input type=submit value='$text{'save'}'></form>\n";
|
||||
&ui_print_footer("", $text{'index_return'});
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 922 B |
Reference in New Issue
Block a user