This commit is contained in:
Arionum
2018-01-09 11:07:50 +02:00
parent b0682f9e84
commit bfd3751a90
3 changed files with 4 additions and 4 deletions

View File

@@ -2,7 +2,7 @@
Arionum (ARO) cryptocurrency node
Requires php 7.2, mysql/mariadb, php-pdo and php-gmp
Requires php 7.2, mysql/mariadb, php-pdo, php-bcmath and php-gmp
This app should only be run in the main directory of the domain/subdomain, ex: http://111.111.111.111/

View File

@@ -23,7 +23,7 @@ function _log($data){
$date=date("[Y-m-d H:s:]");
$trace=debug_backtrace();
$location=$trace[1]['class'].'->'.$trace[1]['function'].'()';
//echo "$date [$location] $data\n";
if(php_sapi_name() === 'cli') "$date [$location] $data\n";
}
function pem2hex ($data) {
@@ -209,4 +209,4 @@ function coin2hex($data){
$bin= base58_decode($data);
return bin2hex($bin);
}
?>
?>

View File

@@ -29,7 +29,7 @@ if(!$db) die("Could not connect to the DB backend.");
if (!extension_loaded("openssl") && !defined("OPENSSL_KEYTYPE_EC")) api_err("Openssl php extension missing");
if (!extension_loaded("gmp")) api_err("gmp php extension missing");
if (!extension_loaded('PDO')) api_err("pdo php extension missing");
if (!extension_loaded("bcmath")) api_err("bcmath php extension missing");
if(floatval(phpversion())<7.2) api_err("The minimum php version required is 7.2");