HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/TDijk1/erp-apps.eu/wwwroot/CMSPages/PortalTemplate.aspx.cs
using System;

using CMS.Base;
using CMS.UIControls;
using CMS.ExtendedControls;
using CMS.Helpers;

public partial class CMSPages_PortalTemplate : PortalPage
{
    #region "Properties"

    /// <summary>
    /// Document manager
    /// </summary>
    public override ICMSDocumentManager DocumentManager
    {
        get
        {
            // Enable document manager
            docMan.Visible = true;
            docMan.StopProcessing = false;
            return docMan;
        }
    }


    /// <summary>
    /// Returns XHTML namespace if current page has XHTML DocType. Otherwise it returns empty string.
    /// </summary>
    protected string XHtmlNameSpace
    {
        get
        {
            return DocumentBase.IsHTML5 ? String.Empty : HTMLHelper.DEFAULT_XMLNS_ATTRIBUTE;
        }
    }

    #endregion


    #region "Methods"

    protected override void OnInit(EventArgs e)
    {
        var resolvedTemplatePage = URLHelper.ResolveUrl(URLHelper.PortalTemplatePage);
        if (RequestContext.RawURL.StartsWithCSafe(resolvedTemplatePage, true))
        {
            // Deny direct access to this page
            RequestHelper.Respond404();
        }

        base.OnInit(e);
    }


    protected override void OnPreRender(EventArgs e)
    {
        base.OnPreRender(e);

        // Init the header tags
        tags.Text = HeaderTags;
    }

    #endregion
}