/BlogEngine/BlogEngine.NET/themes/Indigo/site.master.cs
# · C# · 22 lines · 20 code · 2 blank · 0 comment · 0 complexity · c422f33eaf9bd0ffe21e0cd8fdf63d84 MD5 · raw file
- using System;
- using System.Data;
- using System.Configuration;
- using System.Collections;
- using System.Web;
- using System.Web.Security;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using System.Web.UI.WebControls.WebParts;
- using System.Web.UI.HtmlControls;
- using BlogEngine.Core;
-
-
- public partial class IndigoSite : System.Web.UI.MasterPage
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- bool isAuthenticated = Security.IsAuthenticated;
- hypLoginStatus.Text = isAuthenticated ? "Sign Out" : "Sign In";
- hypLoginStatus.NavigateUrl = string.Format("{0}Account/login.aspx{1}", Utils.RelativeWebRoot, isAuthenticated ? "?logoff" : string.Empty);
- }
- }