mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Fix more use of .. in include path
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
# chooser.cgi
|
# chooser.cgi
|
||||||
# Outputs HTML for a frame-based file chooser
|
# Outputs HTML for a frame-based file chooser
|
||||||
|
|
||||||
BEGIN { push(@INC, ".."); };
|
BEGIN { push(@INC, "."); };
|
||||||
use WebminCore;
|
use WebminCore;
|
||||||
|
|
||||||
@icon_map = ( "c", "text.gif",
|
@icon_map = ( "c", "text.gif",
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# config.cgi
|
# config.cgi
|
||||||
# Display a form for editing the configuration of a module.
|
# Display a form for editing the configuration of a module.
|
||||||
|
|
||||||
BEGIN { push(@INC, ".."); };
|
BEGIN { push(@INC, "."); };
|
||||||
use WebminCore;
|
use WebminCore;
|
||||||
require './config-lib.pl';
|
require './config-lib.pl';
|
||||||
&init_config();
|
&init_config();
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# config_save.cgi
|
# config_save.cgi
|
||||||
# Save inputs from config.cgi
|
# Save inputs from config.cgi
|
||||||
|
|
||||||
BEGIN { push(@INC, ".."); };
|
BEGIN { push(@INC, "."); };
|
||||||
use WebminCore;
|
use WebminCore;
|
||||||
require './config-lib.pl';
|
require './config-lib.pl';
|
||||||
&init_config();
|
&init_config();
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# date_chooser.cgi
|
# date_chooser.cgi
|
||||||
# Display a table of days in the current month
|
# Display a table of days in the current month
|
||||||
|
|
||||||
BEGIN { push(@INC, ".."); };
|
BEGIN { push(@INC, "."); };
|
||||||
use WebminCore;
|
use WebminCore;
|
||||||
use Time::Local;
|
use Time::Local;
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/local/bin/perl
|
#!/usr/local/bin/perl
|
||||||
# Send the webmin feedback form
|
# Send the webmin feedback form
|
||||||
|
|
||||||
BEGIN { push(@INC, ".."); };
|
BEGIN { push(@INC, "."); };
|
||||||
use WebminCore;
|
use WebminCore;
|
||||||
|
|
||||||
&init_config();
|
&init_config();
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# feedback_form.cgi
|
# feedback_form.cgi
|
||||||
# Display a form so that the user can send in a webmin bug report
|
# Display a form so that the user can send in a webmin bug report
|
||||||
|
|
||||||
BEGIN { push(@INC, ".."); };
|
BEGIN { push(@INC, "."); };
|
||||||
use WebminCore;
|
use WebminCore;
|
||||||
|
|
||||||
&init_config();
|
&init_config();
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# group_chooser.cgi
|
# group_chooser.cgi
|
||||||
# This CGI generated the HTML for choosing a group or list of groups.
|
# This CGI generated the HTML for choosing a group or list of groups.
|
||||||
|
|
||||||
BEGIN { push(@INC, ".."); };
|
BEGIN { push(@INC, "."); };
|
||||||
use WebminCore;
|
use WebminCore;
|
||||||
|
|
||||||
&init_config();
|
&init_config();
|
||||||
|
|||||||
2
help.cgi
2
help.cgi
@@ -2,7 +2,7 @@
|
|||||||
# help.cgi
|
# help.cgi
|
||||||
# Displays help HTML for some module, with substitutions
|
# Displays help HTML for some module, with substitutions
|
||||||
|
|
||||||
BEGIN { push(@INC, ".."); };
|
BEGIN { push(@INC, "."); };
|
||||||
use WebminCore;
|
use WebminCore;
|
||||||
|
|
||||||
&init_config();
|
&init_config();
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/local/bin/perl
|
#!/usr/local/bin/perl
|
||||||
# Display all Webmin modules visible to the current user
|
# Display all Webmin modules visible to the current user
|
||||||
|
|
||||||
BEGIN { push(@INC, ".."); };
|
BEGIN { push(@INC, "."); };
|
||||||
use WebminCore;
|
use WebminCore;
|
||||||
|
|
||||||
&init_config();
|
&init_config();
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/local/bin/perl
|
#!/usr/local/bin/perl
|
||||||
# This CGI generates the HTML for choosing a module or list of modules
|
# This CGI generates the HTML for choosing a module or list of modules
|
||||||
|
|
||||||
BEGIN { push(@INC, ".."); };
|
BEGIN { push(@INC, "."); };
|
||||||
use WebminCore;
|
use WebminCore;
|
||||||
|
|
||||||
&init_config();
|
&init_config();
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/local/bin/perl
|
#!/usr/local/bin/perl
|
||||||
# Ask one PAM question
|
# Ask one PAM question
|
||||||
|
|
||||||
BEGIN { push(@INC, ".."); };
|
BEGIN { push(@INC, "."); };
|
||||||
use WebminCore;
|
use WebminCore;
|
||||||
|
|
||||||
$pragma_no_cache = 1;
|
$pragma_no_cache = 1;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# password_form.cgi
|
# password_form.cgi
|
||||||
# Display the form that allows users to change their passwords at login time
|
# Display the form that allows users to change their passwords at login time
|
||||||
|
|
||||||
BEGIN { push(@INC, ".."); };
|
BEGIN { push(@INC, "."); };
|
||||||
use WebminCore;
|
use WebminCore;
|
||||||
|
|
||||||
$pragma_no_cache = 1;
|
$pragma_no_cache = 1;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/local/bin/perl
|
#!/usr/local/bin/perl
|
||||||
# Refresh the list of visible modules
|
# Refresh the list of visible modules
|
||||||
|
|
||||||
BEGIN { push(@INC, ".."); };
|
BEGIN { push(@INC, "."); };
|
||||||
use WebminCore;
|
use WebminCore;
|
||||||
|
|
||||||
&init_config();
|
&init_config();
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# session_login.cgi
|
# session_login.cgi
|
||||||
# Display the login form used in session login mode
|
# Display the login form used in session login mode
|
||||||
|
|
||||||
BEGIN { push(@INC, ".."); };
|
BEGIN { push(@INC, "."); };
|
||||||
use WebminCore;
|
use WebminCore;
|
||||||
|
|
||||||
$pragma_no_cache = 1;
|
$pragma_no_cache = 1;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# switch_skill.cgi
|
# switch_skill.cgi
|
||||||
# Change the skill level of the current user
|
# Change the skill level of the current user
|
||||||
|
|
||||||
BEGIN { push(@INC, ".."); };
|
BEGIN { push(@INC, "."); };
|
||||||
use WebminCore;
|
use WebminCore;
|
||||||
|
|
||||||
&init_config();
|
&init_config();
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# switch_user.cgi
|
# switch_user.cgi
|
||||||
# Force the webserver to re-authenticate
|
# Force the webserver to re-authenticate
|
||||||
|
|
||||||
BEGIN { push(@INC, ".."); };
|
BEGIN { push(@INC, "."); };
|
||||||
use WebminCore;
|
use WebminCore;
|
||||||
|
|
||||||
&init_config();
|
&init_config();
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/local/bin/perl
|
#!/usr/local/bin/perl
|
||||||
# Output Javascript in a loop to track an upload
|
# Output Javascript in a loop to track an upload
|
||||||
|
|
||||||
BEGIN { push(@INC, ".."); };
|
BEGIN { push(@INC, "."); };
|
||||||
use WebminCore;
|
use WebminCore;
|
||||||
|
|
||||||
&init_config();
|
&init_config();
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
# This CGI generated the HTML for choosing a user or list of users.
|
# This CGI generated the HTML for choosing a user or list of users.
|
||||||
|
|
||||||
$trust_unknown_referers = 1;
|
$trust_unknown_referers = 1;
|
||||||
BEGIN { push(@INC, ".."); };
|
BEGIN { push(@INC, "."); };
|
||||||
use WebminCore;
|
use WebminCore;
|
||||||
|
|
||||||
&init_config();
|
&init_config();
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# Search Webmin modules and help pages and text and config.info
|
# Search Webmin modules and help pages and text and config.info
|
||||||
|
|
||||||
$trust_unknown_referers = 1;
|
$trust_unknown_referers = 1;
|
||||||
BEGIN { push(@INC, ".."); };
|
BEGIN { push(@INC, "."); };
|
||||||
use WebminCore;
|
use WebminCore;
|
||||||
|
|
||||||
&init_config();
|
&init_config();
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ if (!$ENV{'GATEWAY_INTERFACE'}) {
|
|||||||
$command_line = 1;
|
$command_line = 1;
|
||||||
$> == 0 || die "xmlrpc.cgi must be run as root";
|
$> == 0 || die "xmlrpc.cgi must be run as root";
|
||||||
}
|
}
|
||||||
BEGIN { push(@INC, ".."); };
|
BEGIN { push(@INC, "."); };
|
||||||
use WebminCore;
|
use WebminCore;
|
||||||
use POSIX;
|
use POSIX;
|
||||||
use Socket;
|
use Socket;
|
||||||
|
|||||||
Reference in New Issue
Block a user