@{
string style = "";
if (ViewBag.Banner != null)
{
style = "background: url(\"" + ViewBag.Banner + "\") center center fixed;background-size:cover;";
}
}
Welcome to Project: Unite! Things are a bit barren right now and not a lot of stuff is implemented - but feel free to explore!
@if (!ACL.UserEmailConfirmed(User.Identity.Name))
{
Email address not confirmed! Hi! It appears that your email has not been confirmed. Please check your email. @Html.ActionLink("Resend confirmation link", "ResendConf", "Account")
}
@if (ViewBag.Moderator == true)
{
@Html.ActionLink("Home", "Index", "Moderator")
@if (ACL.Granted(User.Identity.Name, "CanIssueBan"))
{
@Html.ActionLink("Bans", "Bans", "Moderator")
}
@if (ACL.Granted(User.Identity.Name, "CanEditProfiles"))
{
@Html.ActionLink("Users", "Users", "Moderator")
}
@Html.ActionLink("Audit logs", "Logs", "Moderator")
@RenderBody();
}
else if (ACL.Granted(User.Identity.Name, ViewBag.ACLRule))
{
if (ViewBag.Admin == true)
{
if (ACL.Granted(User.Identity.Name, "CanAccessAdminCP"))
{
@Html.ActionLink("Home", "Index", "Admin")
@if (ACL.Granted(User.Identity.Name, "CanEditRoles"))
{
@Html.ActionLink("Roles", "Roles", "Admin")
@Html.ActionLink("Access Control", "AccessControl", "Admin")
}
@if (ACL.Granted(User.Identity.Name, "CanEditProfiles"))
{
@Html.ActionLink("Users", "Users", "Admin")
}
@if (ACL.Granted(User.Identity.Name, "CanEditForumCategories"))
{
@Html.ActionLink("Forum Categories", "Forums", "Admin")
}
@Html.ActionLink("Audit logs", "Logs", "Admin")
@RenderBody();
}
else
{
Access denied.
You do not have permission to access this page. Contact an admin if this is in error.
}
}
else
{
@RenderBody()
}
}
else
{
Access denied.
You do not have permission to access this page. Contact an admin if this is in error.
}
© @DateTime.Now.Year Michael VanOverbeek and the ShiftOS Dev Team
@if (ACL.Granted(User.Identity.Name, "CanAccessAdminCP"))
{
@Html.ActionLink("Administrator Control Panel", "Index", "Admin")
}
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/bootstrap")
@RenderSection("scripts", required: false)