Ejemplo n.º 1
0
        static AdminLogService()
        {
            GlobalDatabase = Kooboo.Data.DB.Global();
            LogFolder      = System.IO.Path.Combine(Data.AppSettings.RootPath, "AppData", "AdminLog");
            IOHelper.EnsureDirectoryExists(LogFolder);

            var setting = new Setting();

            setting.AppendColumn("Path", typeof(string), 800);

            LastPath = GlobalDatabase.GetOrCreateTable("userpath", setting);
        }
Ejemplo n.º 2
0
        static UserLoginService()
        {
            GlobalDatabase = Kooboo.Data.DB.Global();

            var setting = new Setting();

            setting.AppendColumn("Path", typeof(string), 800);

            LastPath = GlobalDatabase.GetOrCreateTable("userpath", setting);

            IgnorePath = new List <string>();
            IgnorePath.Add("/_admin/account");
            IgnorePath.Add("/_admin/scripts");
            IgnorePath.Add("/_admin/styles");
            IgnorePath.Add("/_admin/images");
            IgnorePath.Add("/_admin/help");
            IgnorePath.Add("_ddmin/sites/edit");
        }