diff --git a/AyaNovaQBI/Timestamp.cs b/AyaNovaQBI/Timestamp.cs index e395258..0b839af 100644 --- a/AyaNovaQBI/Timestamp.cs +++ b/AyaNovaQBI/Timestamp.cs @@ -22,7 +22,7 @@ namespace AyaNovaQBI /// /// Do not modify the definition of BuildAt as your changes will be discarded. /// - public static DateTime BuildAt { get { return new DateTime(637914944578794775); } } //--** + public static DateTime BuildAt { get { return new DateTime(637914972292295086); } } //--** /// /// The program that time stamped it. /// diff --git a/AyaNovaQBI/util.cs b/AyaNovaQBI/util.cs index ed1a76c..edd6662 100644 --- a/AyaNovaQBI/util.cs +++ b/AyaNovaQBI/util.cs @@ -493,7 +493,17 @@ namespace AyaNovaQBI } - //check if build date is within licensed date (how did I do that automated build date thing?) + //check if build date is within maintenance and updates expiry date + if(ALicense.maintenanceExpiration < Timestamp.BuildAt) + { + initErrors.AppendLine("NOT LICENSED!\r\n\r\nThis QBI plugin was built " + + Timestamp.BuildAt.ToString("g") + "\r\n" + + "but the licensed support and updates subscription has ended on " + + ALicense.maintenanceExpiration.ToLocalTime().ToString("g") + "\r\n" + + "\r\nDowngrade back to your previous licensed QBI version or\r\npurchase a support and updates subscription to continue using this version of QBI."); + return false; + } + // copy timestamp.cs and the createtimestamp.exe utility from v7 qbi and create build event to run it here and do same thing //check that AyaNova version matches required minimum for this QBI (