/// <summary> /// Returns CMS Version with build time. /// </summary> private string GetCMSVersion() { Version v = CMSContext.GetCMSVersion(); string result = v.ToString(4); DateTime date = new DateTime(2000, 1, 1); date = date.AddDays(v.Build).AddSeconds(v.MinorRevision * 2); return(result + " (" + date.ToString() + ")"); }
protected void Page_Load(object sender, EventArgs e) { // Show version only if right key is inserted string versionKey = QueryHelper.GetString("versionkey", string.Empty); if (EncryptionHelper.VerifyVersionRSA(versionKey)) { Version v = CMSContext.GetCMSVersion(); if (v != null) { // Write the version to the response Response.Clear(); Response.Write(v.ToString(3)); RequestHelper.EndResponse(); } } }