From cb7b7f1929dce12936eca957caa432e74c6dc7de Mon Sep 17 00:00:00 2001 From: xue <> Date: Sun, 12 Mar 2006 04:43:03 +0000 Subject: reorganized FT tests. --- .../FunctionalTests/protected/pages/ViewSource.php | 85 ---------------------- 1 file changed, 85 deletions(-) delete mode 100644 tests/FunctionalTests/protected/pages/ViewSource.php (limited to 'tests/FunctionalTests/protected/pages/ViewSource.php') diff --git a/tests/FunctionalTests/protected/pages/ViewSource.php b/tests/FunctionalTests/protected/pages/ViewSource.php deleted file mode 100644 index 84f39161..00000000 --- a/tests/FunctionalTests/protected/pages/ViewSource.php +++ /dev/null @@ -1,85 +0,0 @@ -Request->Items['path']; - $fullPath=realpath($this->Service->BasePath.'/'.$path); - $fileExt=$this->getFileExtension($fullPath); - if($fullPath!==false && is_file($fullPath) && strpos($fullPath,$this->Service->BasePath)!==false) - { - if($this->isFileTypeAllowed($fileExt)) - { - $this->_fullPath=strtr($fullPath,'\\','/'); - $this->_path=strtr(substr($fullPath,strlen($this->Service->BasePath)),'\\','/'); - } - } - if($this->_fullPath===null) - throw new THttpException(500,'File Not Found: %s',$path); - $basePath=dirname($this->_fullPath); - if($dh=opendir($basePath)) - { - $str="