Skip to content

Commit

Permalink
check if .htpasswd exists before removing it when initialize fails
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/phpsurveyor@1913 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
David Olivier committed Aug 13, 2006
1 parent 2f29b74 commit 57cc60c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/usercontrol.php
Expand Up @@ -69,7 +69,7 @@
}
else
{
unlink("$homedir/.htpasswd"); // Remove .htpasswd since it might have been written and operation failed?
if (file_exists("$homedir/.htpasswd")) unlink("$homedir/.htpasswd"); // Remove .htpasswd since it might have been written and operation failed?
$addsummary .= _("Error occurred creating htpasswd file")."<br /><br />\n<font size='1'>"._("If you are using a windows server it is recommended that you copy the apache htpasswd.exe file into your admin folder for this function to work properly. This file is usually found in /apache group/apache/bin/")."<br /></font>\n";
}
$addsummary .= "<br />\n<a href='$scriptname?action=editusers'>"._("Continue")."</a><br />&nbsp;\n";
Expand Down

0 comments on commit 57cc60c

Please sign in to comment.