private void GetRequestSuccess(AdminSettingsGetResponse response)
        {
            Show();

            if (response.guest)
            {
                jQuery.Select("#admin-settings-guest").Attribute("checked", "checked");
            }
            else
            {
                jQuery.Select("#admin-settings-guest").RemoveAttr("checked");
            }

            if (response.zip)
            {
                jQuery.Select("#admin-settings-zip").Attribute("checked", "checked");
            }
            else
            {
                jQuery.Select("#admin-settings-zip").RemoveAttr("checked");
            }

            if (response.rar)
            {
                jQuery.Select("#admin-settings-rar").Attribute("checked", "checked");
            }
            else
            {
                jQuery.Select("#admin-settings-rar").RemoveAttr("checked");
            }

            if (response.pdf)
            {
                jQuery.Select("#admin-settings-pdf").Attribute("checked", "checked");
            }
            else
            {
                jQuery.Select("#admin-settings-pdf").RemoveAttr("checked");
            }

            jQuery.Select("#admin-settings-preprocess-count").Value(response.preprocessCount.ToString());
            jQuery.Select("#admin-settings-preprocess-delay").Value(response.preprocessDelay.ToString());
            jQuery.Select("#admin-settings-cachelimit").Value(response.cacheLimit.ToString());
        }
        public override void HandleRequest(string jsonString, AjaxBase ajax)
        {
            if (!User.IsAdminLoggedIn(ajax))
            {
                ajax.Unauthorized();
                return;
            }

            AdminSettingsGetResponse response = new AdminSettingsGetResponse();
            response.guest = Settings.AllowGuest;
            response.zip = Settings.UseZip;
            response.rar = Settings.UseRar;
            response.pdf = Settings.UsePdf;
            response.preprocessCount = Settings.MangaPagePreProcessCount;
            response.preprocessDelay = Settings.MangaPagePreProcessDelay;
            response.cacheLimit = Settings.MangaCacheSizeLimit;

            ajax.ReturnJson(response);
        }