Use new module in top-level CGIs
authorJamie Cameron <jcameron@webmin.com>
Sun, 1 Mar 2009 07:50:03 +0000 (07:50 +0000)
committerJamie Cameron <jcameron@webmin.com>
Sun, 1 Mar 2009 07:50:03 +0000 (07:50 +0000)
switch_user.cgi

index 2fea218..9bb8470 100755 (executable)
@@ -2,7 +2,9 @@
 # switch_user.cgi
 # Force the webserver to re-authenticate
 
-require './web-lib.pl';
+BEGIN { push(@INC, ".."); };
+use WebminCore;
+
 &init_config();
 &get_miniserv_config(\%miniserv);
 $id = $$.time();