isActualFile($staticFilePath = $sitePath.$uri)) { return $staticFilePath; } return false; } /** * Get the fully resolved path to the application's front controller. * * @param string $sitePath * @param string $siteName * @param string $uri * @return string */ public function frontControllerPath($sitePath, $siteName, $uri) { if (strpos($uri, '/admin.php') === 0) { $_SERVER['SCRIPT_NAME'] = '/admin.php'; return $sitePath.'/admin.php'; } if ($uri === '/admin') { $_SERVER['SCRIPT_NAME'] = '/admin/index.php'; return $sitePath.'/admin/index.php'; } $_SERVER['SCRIPT_NAME'] = '/index.php'; return $sitePath.'/index.php'; } }