public function CheckForFile() { if ($this->GetFile && isset($_GET['file'])) { $file = $_GET['file']; $this->FetchFile($file); exit(0); } elseif ($this->URLControl && !RD::IsCLI()) { $fileparts = explode(DIR_SEP, substr($_SERVER['REQUEST_URI'], 1)); if (in_array($fileparts[0], array_keys($this->PublicDirs))) { $this->FetchFile(substr($_SERVER['REQUEST_URI'], 1)); exit(0); } } }