mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-04 02:09:23 +02:00
add a check for the sha256() hash algo
This commit is contained in:
parent
fb36d75ace
commit
ebcc2e6bbe
1 changed files with 9 additions and 1 deletions
|
@ -76,7 +76,15 @@ function check_database_inserted($dbh,$db_name) {
|
||||||
*/
|
*/
|
||||||
function check_php_ver($level=0) {
|
function check_php_ver($level=0) {
|
||||||
|
|
||||||
if (strcmp('5.1.0',phpversion()) > 0) {
|
if (strcmp('5.1.2',phpversion()) > 0) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Make sure that they have the sha256() algo installed
|
||||||
|
if (!function_exists('hash_algos')) { return false; }
|
||||||
|
$algos = hash_algos();
|
||||||
|
|
||||||
|
if (!in_array('sha256',$algos)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue