Update top-level CGIs to support usermin

This commit is contained in:
Jamie Cameron
2010-04-26 21:46:26 -07:00
parent 57869655d9
commit 6961e49899
5 changed files with 15 additions and 0 deletions

View File

@@ -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

View File

@@ -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();

View File

@@ -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();

View File

@@ -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();

View File

@@ -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();