From 2c44ee697d05d864f3b8b4e81fb80883f6532c17 Mon Sep 17 00:00:00 2001 From: stfwi Date: Tue, 5 Jul 2011 15:12:28 +0100 Subject: Referenced help page in Help/Module page. Changed default hash to SHA-1 --- HTPasswdSync.module | 8 ++++---- 1 file 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 '
' . htmlspecialchars(@file_get_contents(dirname(__FILE__) . '/README.txt'), null, 'UTF-8') . '
'; } -- cgit v1.2.3