]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/filter/node/class_NodePhpRequirementsFilter.php
Updated 'core'.
[hub.git] / application / hub / main / filter / node / class_NodePhpRequirementsFilter.php
index c273029190917a86b439bed5a7bab71c05690915..7cba2b5ca371859eaff41ae81f319f4712d60b8e 100644 (file)
@@ -64,7 +64,17 @@ class NodePhpRequirementsFilter extends BaseNodeFilter implements Filterable {
                        // Test failed
                        $checkPassed = FALSE;
                        $checksFailed++;
-               } // END -if
+               } // END - if
+
+               // If scrypt() is not found (ext-scrypt) then the "Hubcoins reward" is not working
+               if ((extension_loaded('scrypt')) && (is_callable('scrypt'))) {
+                       // Mark it as working
+                       self::createDebugInstance(__CLASS__)->debugOutput('FILTER[' . __METHOD__ . ':' . __LINE__ . '] ext-scrypt and a callable scrypt() function found. "Hubcoin reward" feature possible.');
+                       $this->getConfigInstance()->setConfigEntry('extension_scrypt_loaded', TRUE);
+               } else {
+                       // Not working (not all have ext-scrypt installed
+                       self::createDebugInstance(__CLASS__)->debugOutput('FILTER[' . __METHOD__ . ':' . __LINE__ . '] ext-scrypt not found or scrypt() function not found. "Hubcoin reward" feature disabled.');
+               }
 
                // Are all tests passed?
                if ($checkPassed === FALSE) {