Exemplo n.º 1
0
 function requirements(&$Page)
 {
     $missing = array();
     if (!GeneralExtended::checkRequirement(phpversion(), 'version', '5.2')) {
         $Page->log->pushToLog('Requirement - PHP Version is not correct. ' . phpversion() . ' detected.', E_ERROR, true);
         $missing[] = MISSING_PHP;
     }
     if (!GeneralExtended::checkRequirement('mysql_connect', 'func', true)) {
         $Page->log->pushToLog('Requirement - MySQL extension not present', E_ERROR, true);
         $missing[] = MISSING_MYSQL;
     }
     if (!GeneralExtended::checkRequirement('zlib', 'ext', true)) {
         $Page->log->pushToLog('Requirement - ZLib extension not present', E_ERROR, true);
         $missing[] = MISSING_ZLIB;
     }
     if (!GeneralExtended::checkRequirement('xml:libxml', 'ext', true)) {
         $Page->log->pushToLog('Requirement - No XML extension present', E_ERROR, true);
         $missing[] = MISSING_XML;
     }
     if (!GeneralExtended::checkRequirement('xsl:xslt', 'ext', true) && !GeneralExtended::checkRequirement('domxml_xslt_stylesheet', 'func', true)) {
         $Page->log->pushToLog('Requirement - No XSL extension present', E_ERROR, true);
         $missing[] = MISSING_XSL;
     }
     $Page->missing = $missing;
     return;
 }
Exemplo n.º 2
0
 function requirements(&$Page)
 {
     $missing = array();
     if (!GeneralExtended::checkRequirement(phpversion(), "version", "4.3")) {
         $Page->log->pushToLog("Requirement - PHP Version is not correct. " . phpversion() . " detected.", SYM_LOG_ERROR, true);
         $missing[] = MISSING_PHP;
     }
     if (!GeneralExtended::checkRequirement('mysql_connect', "func", true)) {
         $Page->log->pushToLog("Requirement - MySQL extension not present", SYM_LOG_ERROR, true);
         $missing[] = MISSING_MYSQL;
     } elseif (!GeneralExtended::checkRequirement(mysql_get_client_info(), "version", '3.23')) {
         $Page->log->pushToLog("Requirement - MySQL Version is not correct. " . mysql_get_client_info() . " detected.", SYM_LOG_ERROR, true);
         $missing[] = MISSING_MYSQL;
     }
     if (!GeneralExtended::checkRequirement("zlib", "ext", true)) {
         $Page->log->pushToLog("Requirement - ZLib extension not present", SYM_LOG_ERROR, true);
         $missing[] = MISSING_ZLIB;
     }
     if (!GeneralExtended::checkRequirement("xml:libxml", "ext", true)) {
         $Page->log->pushToLog("Requirement - No XML extension present", SYM_LOG_ERROR, true);
         $missing[] = MISSING_XML;
     }
     if (!GeneralExtended::checkRequirement("xsl:xslt", "ext", true) && !GeneralExtended::checkRequirement("domxml_xslt_stylesheet", "func", true)) {
         $Page->log->pushToLog("Requirement - No XSL extension present", SYM_LOG_ERROR, true);
         $missing[] = MISSING_XSL;
     }
     $Page->missing = $missing;
     return;
 }