Ejemplo n.º 1
0
 protected function _initInstalled()
 {
     $installed = RFLib_Core::isInstalled();
     $baseUrl = RFLib_Core::getBaseUrl();
     if ($installed) {
         header('location: ' . $baseUrl);
     }
 }
Ejemplo n.º 2
0
 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);
     }
 }