protected function isProtectedPath($path) { do { if (file_exists(TL_ROOT . '/' . $path . '/.public')) { return false; } $path = dirname($path); } while ($path != '.'); return true; }