Пример #1
0
        public int CompareTo(object obj)
        {
            HtaccessFolder folder = obj as HtaccessFolder;

            if (folder != null)
            {
                return(String.CompareOrdinal(this.Path.ToLower(), folder.Path.ToLower()));
            }

            return(0);
        }
Пример #2
0
        public static HtaccessFolder CreateHttpdConfFolder(string path)
        {
            HtaccessFolder folder = new HtaccessFolder
            {
                ContentPath = path,
                Path        = HTTPD_CONF_FILE
            };

            folder.ReadHttpdConf();

            return(folder);
        }
Пример #3
0
        public static HtaccessFolder CreateHtaccessFolder(string siteRootPath, string folderPath)
        {
            HtaccessFolder folder = new HtaccessFolder
            {
                SiteRootPath = siteRootPath,
                Path         = folderPath,
                ContentPath  = System.IO.Path.Combine(siteRootPath, folderPath)
            };

            folder.ReadHtaccess();

            return(folder);
        }