function valiadateSystemInfo() { if (!isset($this->request['dbServer'])) { $this->libFunc->m_mosRedirect("index.php"); } $this->errMsg = ""; $comFunc = new c_commonFunctions(); $comFunc->db_host = $this->request['dbServer']; $comFunc->db_user = $this->request['dbUserName']; $comFunc->db_password = $this->request['dbPassword']; $comFunc->db_port = "3306"; $comFunc->db_name = $this->request['dsn']; $comFunc->testTable = $this->request['dbPrefix'] . "temp_choices"; $returnValue = $comFunc->checkDatabase(); if ($returnValue != 1) { $this->err = 1; $this->errMsg .= $returnValue . "<br />"; } else { $checkPrefix = $comFunc->m_checkPrefix(); if ($checkPrefix != 1) { $this->err = 1; $this->errMsg .= $checkPrefix . "<br />"; } } if ($this->libFunc->m_isNull($this->request['dbServer'])) { $this->err = 1; $this->errMsg .= "Please enter your database server.<br /> "; } if ($this->libFunc->m_isNull($this->request['dsn'])) { $this->err = 1; $this->errMsg .= "Please enter your database name.<br /> "; } if ($this->libFunc->m_isNull($this->request['dbUserName'])) { $this->err = 1; $this->errMsg .= "Please enter your database username.<br /> "; } if ($this->libFunc->m_isNull($this->request['dbPassword'])) { $this->err = 1; $this->errMsg .= "Please enter your database password.<br /> "; } if ($this->libFunc->m_isNull($this->request['siteurl'])) { $this->err = 1; $this->errMsg .= "Please enter your secure URL.<br /> "; } if ($this->libFunc->m_isNull($this->request['adminUser'])) { $this->err = 1; $this->errMsg .= "Please enter your preferred admin username.<br /> "; } if ($this->libFunc->m_isNull($this->request['adminPassword'])) { $this->err = 1; $this->errMsg .= "Please enter your preferred admin password.<br /> "; } if ($this->libFunc->m_isNull($this->request['adminemail'])) { $this->err = 1; $this->errMsg .= "Please enter your admin email address.<br /> "; } if ($this->libFunc->m_isNull($this->request['license'])) { $this->err = 1; $this->errMsg .= "Please enter your license key.<br /> "; } else { $license = $this->license->DolicenseCheck($this->request['license']); if ($license['status'] == "Active") { if (isset($license['localkey'])) { $this->localLicense = $license['localkey']; } } elseif ($license['status'] == "Invalid") { $this->err = 1; $this->errMsg .= "Your license key is invalid.<br /> "; } elseif ($license['status'] == "Expired") { $this->err = 1; $this->errMsg .= "Your license key has expired.<br /> "; } elseif ($license['status'] == "Suspended") { $this->err = 1; $this->errMsg .= "Your license key has been suspended.<br /> "; } } if (!($handle = @fopen($this->filename, 'w+'))) { $this->err = 1; $this->errMsg .= "Unable to write file. Please make sure the <strong>/config/</strong> directory exists & is writable.<br /> "; } else { fclose($handle); } return $this->err; }