protected function _initInstalled() { $installed = RFLib_Core::isInstalled(); $baseUrl = RFLib_Core::getBaseUrl(); if ($installed) { header('location: ' . $baseUrl); } }
protected function _initInstalled() { $baseUrl = RFLib_Core::getBaseUrl(); if (!RFLib_Core::isInstalled()) { header('location: ' . $baseUrl . 'install.php'); } elseif (strpos(strtolower($_SERVER['REQUEST_URI']), 'install')) { header('location: ' . $baseUrl); } }