public static function InDir($strDir) { $uri = Context::getCurrent()->getServer()->getRequestUri(); if( substr($uri, -1, 1)=='/' ) $uri .= 'index.php'; return (substr($uri, 0, strlen($strDir))==$strDir); }