Пример #1
0
 function __construct($uri)
 {
     $this->uri = preg_replace('/\\/\\?/', '/', $uri);
     // remove '?' in url
     if (realpath($_SERVER['DOCUMENT_ROOT'] . $this->uri) == realpath($_SERVER['SCRIPT_FILENAME'])) {
         $this->uri = implode('/', $this->uri_folders());
     }
     $this->inode = Inode::repr($this->path());
 }
Пример #2
0
 function files()
 {
     $files = array();
     foreach ($this->filenames() as $file) {
         if ($repr = Inode::repr($this->path . '/' . $file)) {
             $files[] = $repr;
         }
     }
     return $files;
 }