0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-20 11:38:42 +02:00
postfixadmin/lib/block_random_int.php
2020-01-31 16:30:46 +00:00

18 lines
550 B
PHP

<?php
/**
* This file should only be loaded if you're :
* a. running PHP < 7.0, and
* b. have the php_crypt password hash configured, and
* c. have not loaded paragonie's random_compat library.
*
*/
if(function_exists('random_int')) {
return;
}
function random_int($a, $b) { // someone might not be using php_crypt or ask for password generation, in which case random_int() won't be called
die(__FILE__ . " Postfixadmin security: Please install https://github.com/paragonie/random_compat OR enable the 'Phar' extension.");
}