Skip to content

Commit

Permalink
Update top-level CGIs to support usermin
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Apr 27, 2010
1 parent 5786965 commit 6961e49
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chooser.cgi
Expand Up @@ -18,6 +18,9 @@ use WebminCore;

$trust_unknown_referers = 1;
&init_config();
if (&get_product_name() eq 'usermin') {
&switch_to_remote_user();
}
%access = &get_module_acl();

# Work out root directory
Expand Down
3 changes: 3 additions & 0 deletions feedback.cgi
Expand Up @@ -5,6 +5,9 @@ BEGIN { push(@INC, ".."); };
use WebminCore;

&init_config();
if (&get_product_name() eq 'usermin') {
&switch_to_remote_user();
}
&ReadParseMime();
&error_setup($text{'feedback_err'});
%access = &get_module_acl();
Expand Down
3 changes: 3 additions & 0 deletions feedback_form.cgi
Expand Up @@ -6,6 +6,9 @@ BEGIN { push(@INC, ".."); };
use WebminCore;

&init_config();
if (&get_product_name() eq 'usermin') {
&switch_to_remote_user();
}
&ReadParse();
&error_setup($text{'feedback_err'});
%access = &get_module_acl();
Expand Down
3 changes: 3 additions & 0 deletions group_chooser.cgi
Expand Up @@ -7,6 +7,9 @@ use WebminCore;

$trust_unknown_referers = 1;
&init_config();
if (&get_product_name() eq 'usermin') {
&switch_to_remote_user();
}
&ReadParse(undef, undef, 2);
%access = &get_module_acl();

Expand Down
3 changes: 3 additions & 0 deletions user_chooser.cgi
Expand Up @@ -7,6 +7,9 @@ use WebminCore;

$trust_unknown_referers = 1;
&init_config();
if (&get_product_name() eq 'usermin') {
&switch_to_remote_user();
}
&ReadParse(undef, undef, 2);
%access = &get_module_acl();

Expand Down

0 comments on commit 6961e49

Please sign in to comment.