Skip to content

Commit

Permalink
Call ReadParse in individual cgi scripts instead of module library
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmark committed Dec 9, 2023
1 parent 37521b6 commit f4059fd
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 1 deletion.
2 changes: 2 additions & 0 deletions additional_config.cgi
Expand Up @@ -8,6 +8,8 @@ require "vsftpd-lib.pl";

use libvsftpdconfig::HtmlUICreator;

&ReadParse();

# [ [option, textname, [conflicting options], enable option, location option], ... ]

ui_print_header(undef, text('additional_title'), "", "additional", 1, 1);
Expand Down
2 changes: 2 additions & 0 deletions edit_config.cgi
Expand Up @@ -5,6 +5,8 @@ use libvsftpdconfig::Util;

require "vsftpd-lib.pl";

&ReadParse();

use strict;
use vars qw(%text %in $data %config);

Expand Down
2 changes: 2 additions & 0 deletions manual.cgi
Expand Up @@ -4,6 +4,8 @@ require "vsftpd-lib.pl";

use strict;

&ReadParse();

use vars qw/%text $tabs %in/;
use libvsftpdconfig::HtmlUICreator;
use libvsftpdconfig::ConfigManager;
Expand Down
2 changes: 2 additions & 0 deletions save.cgi
Expand Up @@ -5,6 +5,8 @@ require "vsftpd-lib.pl";
use libvsftpdconfig::HtmlUIController;
use libvsftpdconfig::HtmlUICreator;

&ReadParse();

my $redirect = HtmlUIController::handle_save(HtmlUICreator::get_permission());

redirect($redirect);
2 changes: 2 additions & 0 deletions save_additional.cgi
Expand Up @@ -5,5 +5,7 @@ require "vsftpd-lib.pl";

use libvsftpdconfig::HtmlUIController;

&ReadParse();

my $redirect = HtmlUIController::handle_line_config_save($files);
redirect($redirect);
2 changes: 2 additions & 0 deletions select_config.cgi
Expand Up @@ -5,6 +5,8 @@ require "vsftpd-lib.pl";
use libvsftpdconfig::HtmlUICreator;
use libvsftpdconfig::ConfigManager;

&ReadParse();

ui_print_header(undef, $text{'select_title'}, "", "profile", 1, 1);

if (exists $in{'selected'}) {
Expand Down
2 changes: 2 additions & 0 deletions view_logs.cgi
Expand Up @@ -9,6 +9,8 @@ use libvsftpdconfig::ConfigManager;

&foreign_require("proc", "proc-lib.pl");

&ReadParse();

# Work out the file
my $file_selected = $in{'file'};

Expand Down
1 change: 0 additions & 1 deletion vsftpd-lib.pl
Expand Up @@ -12,7 +12,6 @@ BEGIN
use WebminCore;

init_config();
ReadParse();

%access = get_module_acl();

Expand Down

0 comments on commit f4059fd

Please sign in to comment.