Further checks on BC math, a=chris
Further checks on BC math, a=chris
diff --git a/configs/config.php b/configs/config.php
index 0ca6bb292..bcefc3341 100755
--- a/configs/config.php
+++ b/configs/config.php
@@ -158,7 +158,8 @@ if(file_exists(WORK_DIRECTORY.PROFILE_FILE_NAME)) {
}
} else {
if((!isset( $_SERVER['SERVER_NAME'])||$_SERVER['SERVER_NAME']!=='localhost')
- && !defined("NO_LOCAL_CHECK") && php_sapi_name() != 'cli' ) {
+ && !defined("NO_LOCAL_CHECK") && !defined("WORK_DIRECTORY")
+ && php_sapi_name() != 'cli' ) {
echo "SERVICE AVAILABLE ONLY VIA LOCALHOST UNTIL CONFIGURED";
exit();
}
diff --git a/lib/utility.php b/lib/utility.php
index f4a892ca8..c43cc7990 100755
--- a/lib/utility.php
+++ b/lib/utility.php
@@ -1982,7 +1982,7 @@ function extractLCSFromTable($lcs_moves, $lines, $i, $j, $offset, &$lcs)
*/
function generateFiatShamirModulus()
{
- if(function_exists("openssl_pkey_new")) {
+ if(function_exists("openssl_pkey_new") && function_exists("bcmod")) {
$config = array(
"digest_alg" => "sha256",
"public_key_bits" => 1024,