// Is the required extension "sql_patches" there?
if ((GET_EXT_VERSION("sql_patches") < "0.3.6") || (GET_EXT_VERSION("sql_patches") == "")) {
- // Extension sql_patches is missing/outdated so we return the plain text
- return $plainText;
+ // Extension sql_patches is missing/outdated so we return only the regular SHA1 hash
+ return sha1($plainText);
}
// When the salt is empty build a new one, else use the first x configured characters as the salt
// Unset/set session variables
function set_session ($var, $value) {
global $CSS;
+
// Abort in CSS mode here
if ($CSS == 1) return true;
// Taken from user comments in PHP documentation for function constant()
function isBooleanConstantAndTrue($constname) { // : Boolean
$res = false;
- if (defined($constname)) $res = (constant($constname) === true);
+ if (defined($constname)) {
+ $res = (constant($constname) === true);
+ }
return($res);
}