예제 #1
0
 function DBVersionUnder($params)
 {
     parent::BaseTest($params);
     if (!is_array($this->params) || count($this->params) <= 0) {
         ErrorStack::addError("Invalid parameters, you need to provide the field names and version", ERRORSTACK_ERROR, 'DBVersionUnder');
         $this->result = INSTALLER_TEST_FAIL;
         return $this->result;
     }
 }
예제 #2
0
 function AdminPasswordConfirmed($params)
 {
     parent::BaseTest($params);
     if (!is_array($this->params) || count($this->params) <= 0) {
         ErrorStack::addError("Invalid parameters, you need to provide the password field names", ERRORSTACK_ERROR, 'AdminPasswordConfirmed');
         $this->result = INSTALLER_TEST_FAIL;
         return $this->result;
     }
 }
예제 #3
0
 function WritableLocation($params)
 {
     parent::BaseTest($params);
     if (!is_array($this->params) || count($this->params) <= 0) {
         ErrorStack::addError("Invalid parameters, you must provide at least one location to test.", ERRORSTACK_ERROR, 'WritableLocation');
         $this->result = INSTALLER_TEST_FAIL;
         return $this->result;
     }
 }
예제 #4
0
 function PHPVersionUnder($params)
 {
     parent::BaseTest($params);
     if (!is_array($this->params) || count($this->params) <= 0) {
         ErrorStack::addError("Invalid parameters, version to test against must be supplied as the only item in an array", ERRORSTACK_ERROR, 'PHPVersionUnder');
         $this->result = INSTALLER_TEST_FAIL;
         return $this->result;
     }
 }
예제 #5
0
 function PHPMagicQuotes($params)
 {
     parent::BaseTest($params);
     if (is_array($this->params) || count($this->params) < 0) {
         if ($params[0] != "On" && $params[0] != "Off") {
             ErrorStack::addError("Invalid parameters, must be On or Off", ERRORSTACK_ERROR, 'PHPMagicQuotes');
         }
         $this->result = INSTALLER_TEST_FAIL;
         return $this->result;
     }
 }