/** * Launches an application controller. Returns what the controller returns. * If it is false, a not found error is displayed. * @return boolean */ function Launch() { $Parts = explode("/", $this->Request); $Type = array_shift($Parts); if (!array_key_exists($Type, self::$StaticContentPrefix)) { return false; } $Type = self::$StaticContentPrefix[$Type]; array_unshift($Parts, $Type); $file = jf::root() . DIRECTORY_SEPARATOR . implode(DIRECTORY_SEPARATOR, $Parts); $FileMan = new DownloadManager(); return $FileMan->Feed($file); }