From 092769a72798b3373a3f105dc7152d0bb10f68bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 15 Jun 2004 10:37:39 +0000 Subject: [PATCH] Support for SHA1 function (RFE #971703). --- ChangeLog | 3 +++ config.inc.php | 3 +++ libraries/common.lib.php | 2 +- libraries/config_import.lib.php | 3 +++ 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2fba2b405..102e2cc89 100755 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,9 @@ $Source$ 2004-06-15 Michal Čihař * lang/czech: Updated. + * config.inc.php, libraries/common.lib.php, + libraries/config_import.lib.php: Support for SHA1 function (RFE + #971703). 2004-06-09 Alexander M. Turek * libraries/config_import.lib.php: The default settings should be merged. diff --git a/config.inc.php b/config.inc.php index 1992a8124..36447a2d1 100644 --- a/config.inc.php +++ b/config.inc.php @@ -695,6 +695,7 @@ if ($cfg['ShowFunctionFields']) { 'NOW', 'PASSWORD', 'MD5', + 'SHA1', 'ENCRYPT', 'RAND', 'LAST_INSERT_ID', @@ -753,6 +754,7 @@ if ($cfg['ShowFunctionFields']) { 'UCASE', 'PASSWORD', 'MD5', + 'SHA1', 'ENCRYPT', 'LAST_INSERT_ID', 'USER', @@ -776,6 +778,7 @@ if ($cfg['ShowFunctionFields']) { 'ASCII', 'CHAR', 'MD5', + 'SHA1', 'ENCRYPT', 'RAND', 'LAST_INSERT_ID', diff --git a/libraries/common.lib.php b/libraries/common.lib.php index cdbd5b1d7..11256ffaf 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -136,7 +136,7 @@ if (isset($cfg['FileRevision'])) { } else { $cfg['FileRevision'] = array(1, 1); } -if ($cfg['FileRevision'][0] < 2 || ($cfg['FileRevision'][0] == 2 && $cfg['FileRevision'][1] < 26)) { +if ($cfg['FileRevision'][0] < 2 || ($cfg['FileRevision'][0] == 2 && $cfg['FileRevision'][1] < 27)) { require_once('./libraries/config_import.lib.php'); } diff --git a/libraries/config_import.lib.php b/libraries/config_import.lib.php index cf0fd279b..606f9ee4a 100644 --- a/libraries/config_import.lib.php +++ b/libraries/config_import.lib.php @@ -1095,6 +1095,7 @@ if ($cfg['ShowFunctionFields']) { 'NOW', 'PASSWORD', 'MD5', + 'SHA1', 'ENCRYPT', 'RAND', 'LAST_INSERT_ID', @@ -1154,6 +1155,7 @@ if ($cfg['ShowFunctionFields']) { 'UCASE', 'PASSWORD', 'MD5', + 'SHA1', 'ENCRYPT', 'LAST_INSERT_ID', 'USER', @@ -1177,6 +1179,7 @@ if ($cfg['ShowFunctionFields']) { 'ASCII', 'CHAR', 'MD5', + 'SHA1', 'ENCRYPT', 'RAND', 'LAST_INSERT_ID',