mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Update functions.php
This commit is contained in:
@@ -2147,7 +2147,7 @@ function number_pad($number,$n) {
|
||||
}
|
||||
}
|
||||
|
||||
//add a random_bytes function when it doesn't exist for older versions of PHP
|
||||
//add a random_bytes function when it doesn't exist for old versions of PHP
|
||||
if (!function_exists('random_bytes')) {
|
||||
function random_bytes($length) {
|
||||
$charset .= "0123456789";
|
||||
@@ -2162,4 +2162,16 @@ function number_pad($number,$n) {
|
||||
}
|
||||
}
|
||||
|
||||
//add a hash_equals function when it doesn't exist for old versions of PHP
|
||||
if (!function_exists('hash_equals')) {
|
||||
function hash_equals($var1, $var2) {
|
||||
if ($var1 == $var2) {
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user