mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
Update top-level CGIs to support usermin
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user