개정판 a03e9271
dev issue #000 : edit License
Change-Id: I95d8d5b708c302d51a309f908382166e217e3104
DTI_PID/SPPIDConverter/License.cs | ||
---|---|---|
34 | 34 |
|
35 | 35 |
if (string.IsNullOrEmpty(data)) |
36 | 36 |
{ |
37 |
if (SPPIDConverter.GetValue("Version") == null) |
|
38 |
{ |
|
39 |
SPPIDConverter.SetValue("Version", "U"); |
|
40 |
data = "Date:" + DateTime.Today.ToShortDateString(); |
|
41 |
data = Crypt.encrypt(data, "dof1073#"); |
|
42 |
File.WriteAllText(path, data); |
|
43 |
result = true; |
|
44 |
} |
|
45 |
} |
|
46 |
else |
|
47 |
{ |
|
48 |
DateTime dataTime = DateTime.MinValue; |
|
37 |
DateTime dataTime = new DateTime(2000, 1, 1); |
|
49 | 38 |
DateTime currentTime = DateTime.Now; |
50 |
if (DateTime.TryParse(data, out dataTime) && DateTime.Compare(dataTime.AddDays(14), currentTime) >= 0)
|
|
39 |
if (DateTime.TryParse(Converter.SPPID.Properties.Resources.lic, out dataTime) && DateTime.Compare(dataTime.AddDays(14), currentTime) >= 0)
|
|
51 | 40 |
result = true; |
52 |
|
|
53 | 41 |
} |
54 | 42 |
} |
55 | 43 |
else if (data.StartsWith("Absolute:")) |
내보내기 Unified diff