#property copyright "Copyright @ Gogo Jungle,Inc. All Rights Reserved." #property link "http://gogojungle.co.jp" #property library int gi_76 = 173; string g_name_80 = "authentication_00173.csv"; int gi_88 = 0; int gi_92 = 0; int gi_96 = 0; string gs_100 = ""; int AccountCertification() { if (IsDemo()) { Comment("\nThis mode is demo."); return (1); } int li_0 = 0; int l_count_4 = 0; int l_file_8 = FileOpen(g_name_80, FILE_CSV); if (l_file_8 < 1) { Print("File " + g_name_80 + " not found, the last error is ", GetLastError()); return (0); } for (int l_count_12 = 0; l_count_12 < 30; l_count_12++) { li_0 = FileReadNumber(l_file_8); if (l_count_4 == 3 && li_0 % 2 == 0) { li_0 /= 12 * (gi_76 + 221); if (l_count_12 == 11) gs_100 = gs_100 + CharToStr(li_0 - 92675); if (l_count_12 == 12) gs_100 = gs_100 + CharToStr(li_0 - 92328); if (l_count_12 == 13) gs_100 = gs_100 + CharToStr(li_0 - 92765); if (l_count_12 == 14) gs_100 = gs_100 + CharToStr(li_0 - 92552); if (l_count_12 == 15) gs_100 = gs_100 + CharToStr(li_0 - 92753); if (l_count_12 == 16) gs_100 = gs_100 + CharToStr(li_0 - 92141); if (l_count_12 == 17) gs_100 = gs_100 + CharToStr(li_0 - 92426); if (l_count_12 == 18) gs_100 = gs_100 + CharToStr(li_0 - 92845); if (l_count_12 == 19) gs_100 = gs_100 + CharToStr(li_0 - 91343); if (l_count_12 == 20) gs_100 = gs_100 + CharToStr(li_0 - 93941); } if (li_0 < 0) l_count_4++; if (l_count_4 == 4) break; } FileClose(l_file_8); if (AccountNumber() == StrToInteger(gs_100)) return (1); return (0); } int DateCertification() { if (IsTesting()) return (1); int li_0 = 0; int l_count_4 = 0; int l_file_8 = FileOpen(g_name_80, FILE_CSV); if (l_file_8 < 1) { Print("File " + g_name_80 + " not found, the last error is ", GetLastError()); return (0); } for (int l_count_12 = 0; l_count_12 < 30; l_count_12++) { li_0 = StrToInteger(FileReadString(l_file_8)); if (l_count_4 == 1 && li_0 % 2 == 0) { li_0 /= 12 * (gi_76 + 221); if (l_count_12 == 1) gi_88 = li_0 - 97832; if (l_count_12 == 2) gi_92 = li_0 - 92132; if (l_count_12 == 3) gi_96 = li_0 - 92743; } if (li_0 < 0) l_count_4++; if (l_count_4 == 2) break; } FileClose(l_file_8); int l_year_16 = TimeYear(TimeCurrent()); int l_month_20 = TimeMonth(TimeCurrent()); int l_day_24 = TimeDay(TimeCurrent()); if (l_year_16 > gi_88) return (0); if (l_year_16 + 2 < gi_88) return (0); if (l_year_16 == gi_88 && l_month_20 > gi_92) return (0); if (l_year_16 == gi_88 && l_month_20 + 2 < gi_92) return (0); if (l_year_16 == gi_88 && l_month_20 == gi_92 && l_day_24 > gi_96) return (0); l_year_16 = TimeYear(TimeLocal()); l_month_20 = TimeMonth(TimeLocal()); l_day_24 = TimeDay(TimeLocal()); if (l_year_16 > gi_88) return (0); if (l_year_16 + 2 < gi_88) return (0); if (l_year_16 == gi_88 && l_month_20 > gi_92) return (0); if (l_year_16 == gi_88 && l_month_20 + 2 < gi_92) return (0); if (l_year_16 == gi_88 && l_month_20 == gi_92 && l_day_24 > gi_96) return (0); return (1); }