Update top-level CGIs to support usermin
authorJamie Cameron <jcameron@webmin.com>
Tue, 27 Apr 2010 04:46:26 +0000 (21:46 -0700)
committerJamie Cameron <jcameron@webmin.com>
Tue, 27 Apr 2010 04:46:26 +0000 (21:46 -0700)
chooser.cgi
feedback.cgi
feedback_form.cgi
group_chooser.cgi
user_chooser.cgi

index 7a14173..022ee9a 100755 (executable)
@@ -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
index 27f7d2b..72da72f 100755 (executable)
@@ -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();
index 68d3645..e91871b 100755 (executable)
@@ -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();
index 2a56b4d..4e6a734 100755 (executable)
@@ -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();
 
index 66f1849..74046a6 100755 (executable)
@@ -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();