chpasswd: Use well known 'General::swroot' instead of 'swroot' .
Commit Message
---
html/cgi-bin/chpasswd.cgi | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
@@ -34,15 +34,14 @@ my %mainsettings;
my %proxysettings;
my %netsettings;
my %temp;
-my $swroot;
my $errormessage;
my $language;
$proxysettings{'NCSA_MIN_PASS_LEN'} = 6;
### Initialize environment
-&readhash("${swroot}/main/settings", \%mainsettings);
-&readhash("${swroot}/proxy/advanced/settings", \%proxysettings);
+&readhash("${General::swroot}/main/settings", \%mainsettings);
+&readhash("${General::swroot}/proxy/advanced/settings", \%proxysettings);
$language = $mainsettings{'LANGUAGE'};
### Initialize language
@@ -52,9 +51,9 @@ require '/var/ipfire/general-functions.pl';
require "${General::swroot}/lang.pl";
require "${General::swroot}/header.pl";
-my $userdb = "$swroot/proxy/advanced/ncsa/passwd";
+my $userdb = "${General::swroot}/proxy/advanced/ncsa/passwd";
-&readhash("$swroot/ethernet/settings", \%netsettings);
+&readhash("${General::swroot}/ethernet/settings", \%netsettings);
my $success = 0;
@@ -295,3 +294,4 @@ sub getcgihash
# -------------------------------------------------------------------
+