aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstfwi <cerberos@atwillys.de>2011-07-05 15:12:28 +0100
committerstfwi <cerberos@atwillys.de>2011-07-05 15:12:28 +0100
commit2c44ee697d05d864f3b8b4e81fb80883f6532c17 (patch)
tree1ae752985fbf4d37088397d1501eec62005b435d
parent00083c1f9c6bee2207afd4bd38c601bc3a64e959 (diff)
downloaddrupal_htpasswdsync-2c44ee697d05d864f3b8b4e81fb80883f6532c17.tar.gz
drupal_htpasswdsync-2c44ee697d05d864f3b8b4e81fb80883f6532c17.tar.bz2
drupal_htpasswdsync-2c44ee697d05d864f3b8b4e81fb80883f6532c17.zip
Referenced help page in Help/Module page. Changed default hash to SHA-1
-rw-r--r--HTPasswdSync.module8
1 files changed, 4 insertions, 4 deletions
diff --git a/HTPasswdSync.module b/HTPasswdSync.module
index 9777d1e..b20e542 100644
--- a/HTPasswdSync.module
+++ b/HTPasswdSync.module
@@ -5,7 +5,7 @@
* @return string
*/
function _htpasswdsync_passfilename() {
- return variable_get('htpasswdsync_htpasswd', "/etc/httpd/htpasswd");
+ return variable_get('htpasswdsync_htpasswd', '/etc/httpd/htpasswd');
}
@@ -14,7 +14,7 @@ function _htpasswdsync_passfilename() {
* @return string
*/
function _htpasswdsync_grpfilename() {
- return variable_get('htpasswdsync_htgroup', "");
+ return variable_get('htpasswdsync_htgroup', '');
}
@@ -42,7 +42,7 @@ function _htpasswdsync_hashes() {
* @return string
*/
function _htpasswdsync_hash() {
- return variable_get('htpasswdsync_hash', 0);
+ return variable_get('htpasswdsync_hash', 'SHA-1');
}
@@ -359,7 +359,7 @@ function _htpasswdsync_validate($edit, $account) {
* @return string
*/
function htpasswdsync_help($path, $arg) {
- if($path != 'admin/help#htpasswdsync') return '';
+ if($path != 'admin/help#HTPpasswdSync') return '';
return '<pre>' . htmlspecialchars(@file_get_contents(dirname(__FILE__) . '/README.txt'), null, 'UTF-8') . '</pre>';
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy