Exemplo n.º 1
0
        public bool SaveTerms(string terms)
        {
            try
            {
                SiteSettings setting = new SiteSettings();
                setting.LoadByPrimaryKey(5); // terms
                setting.Content = Server.HtmlEncode(terms);
                setting.Save();

            }
            catch (Exception ex)
            {
                return false;
            }

            return true;
        }
Exemplo n.º 2
0
        public bool SavePrivacy(string privacy)
        {
            try
            {
                SiteSettings setting = new SiteSettings();
                setting.LoadByPrimaryKey(6); // privacy
                setting.Content = Server.HtmlEncode(privacy);
                setting.Save();

            }
            catch (Exception ex)
            {
                return false;
            }

            return true;
        }
Exemplo n.º 3
0
        public bool SaveSocials(string fb, string tw, string gp, string yt)
        {
            try
            {
                SiteSettings setting = new SiteSettings();
                setting.LoadByPrimaryKey(1); // fb
                setting.URL = fb;
                setting.Save();

                setting.LoadByPrimaryKey(2); // TWITTER
                setting.URL = tw;
                setting.Save();

                setting.LoadByPrimaryKey(3); // youtube
                setting.URL = yt;
                setting.Save();

                setting.LoadByPrimaryKey(4); // google
                setting.URL = gp;
                setting.Save();
            }
            catch (Exception ex)
            {
                return false;
            }

            return true;
        }
Exemplo n.º 4
0
        public bool SaveFaq(string Faq)
        {
            try
            {
                SiteSettings setting = new SiteSettings();
                setting.LoadByPrimaryKey(7); // faq
                setting.Content = Server.HtmlEncode(Faq);
                setting.Save();

            }
            catch (Exception ex)
            {
                return false;
            }

            return true;
        }