/** * Checks for the minimum PHP requirement and if the database credentials file is readable * * @return void */ public function checkPreUpgrade() { if (!$this->checkMinimumPhpVersion()) { printf('<p class="alert alert-danger">Sorry, but you need PHP %s or later!</p>', PMF_System::VERSION_MINIMUM_PHP); PMF_System::renderFooter(); } if (!is_readable(PMF_ROOT_DIR . '/config/database.php')) { echo '<p class="alert alert-error">It seems you never run a version of phpMyFAQ.<br />' . 'Please use the <a href="setup.php">install script</a>.</p>'; PMF_System::renderFooter(); } if (!$this->_system->checkRegisterGlobals()) { echo '<p class="alert alert-danger">Please disable register_globals!</p>'; PMF_System::renderFooter(); } if (!$this->_system->checkMagicQuotesGpc()) { echo '<p class="alert alert-danger">Please disable magic_quotes_gpc!</p>'; PMF_System::renderFooter(); } }