You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2025-08-09 05:02:44 +03:00
15 lines
539 B
PHP
15 lines
539 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() { // 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.");
|
|
}
|