Changeset 3255:2235d173165d for inc/prepend.php
- Timestamp:
- 06/17/16 10:54:27 (9 years ago)
- Branch:
- default
- Parents:
- 3253:b70713af5431 (diff), 3254:49a71802e24b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/prepend.php
r3242 r3255 142 142 # Constants 143 143 define('DC_ROOT',path::real(dirname(__FILE__).'/..')); 144 define('DC_VERSION','2. 9.2');144 define('DC_VERSION','2.10-dev'); 145 145 define('DC_DIGESTS',dirname(__FILE__).'/digests'); 146 146 define('DC_L10N_ROOT',dirname(__FILE__).'/../locales'); … … 189 189 if (!defined('DC_ALLOW_MULTI_MODULES')) { 190 190 define('DC_ALLOW_MULTI_MODULES',false); 191 } 192 193 if (!defined('DC_CRYPT_ALGO')) { 194 define('DC_CRYPT_ALGO','sha1'); // As in Dotclear 2.9 and previous 195 } else { 196 // Check length of cryptographic algorithm result and exit if less than 40 characters long 197 if (strlen(crypt::hmac(DC_MASTER_KEY,DC_VENDOR_NAME,DC_CRYPT_ALGO)) < 40) { 198 if (!defined('DC_CONTEXT_ADMIN')) { 199 exit('Site temporarily unavailable'); 200 } else { 201 exit(DC_CRYPT_ALGO.' cryptographic algorithm configured is not strong enough, please change it.'); 202 } 203 } 191 204 } 192 205
Note: See TracChangeset
for help on using the changeset viewer.