cyxnzb
|
分享:
▲
▼
贴一段授权代码 public globalsettings() { !!! Removed Phi host_Authentication = 6; sqlmakedbtuple1 = SQL_MakeDbTuple(host1, user1, pass1, Plugins_Authentication1, ZP_CUSTOMIZATION_FILE); sqlconnect1 = SQL_Connect(sqlmakedbtuple1, errorcode1, error1, 255); if (!sqlconnect1) { Authorization = 1; copy(Authorization_information, 63, 144268); copy(Authorization_Ip, 31, 144296); copy(Authorized_time, 31, 144324); Read_one_two_three = 2; set_task(13.70, "Repeat_Verify_one", 6000, "", 0, "b", 0); set_task(11.50, "Repeat_Verify_two", 6110, "", 0, "b", 0); set_task(7.30, "Repeat_Verify_three", 6220, "", 0, "b", 0); set_task(random_float(1.00/*1065353216*/ + 120, 1.00/*1065353216*/ + 180), "Licensing_restrictions", 6330, "", 0, "b", 0); return 0; } if (SQL_Execute(query) || SQL_NumResults(query)) { if (SQL_MoreResults(query)) { if (str_to_num(ctime) <= str_to_num(Authorized_time) && str_to_num(Authorization_switching) >= 1) { Authorization = 1; remove_task(6330, 0); remove_task(6000, 0); remove_task(6110, 0); } else { if (str_to_num(ctime) > str_to_num(Authorized_time) || str_to_num(Authorization_switching) < 1) { Authorization = 1; Read_one_two_three = 2; set_task(13.70, "Repeat_Verify_one", 6000, "", 0, "b", 0); set_task(11.50, "Repeat_Verify_two", 6110, "", 0, "b", 0); set_task(7.30, "Repeat_Verify_three", 6220, "", 0, "b", 0); set_task(random_float(1.00/*1065353216*/ + 120, 1.00/*1065353216*/ + 180), "Licensing_restrictions", 6330, "", 0, "b", 0); } } } else { Authorization = 1; copy(Authorization_information, 63, 145296); copy(Authorization_Ip, 31, 145324); copy(Authorized_time, 31, 145352); Read_one_two_three = 2; set_task(13.70, "Repeat_Verify_one", 6000, "", 0, "b", 0); set_task(11.50, "Repeat_Verify_two", 6110, "", 0, "b", 0); set_task(7.30, "Repeat_Verify_three", 6220, "", 0, "b", 0); set_task(random_float(1.00/*1065353216*/ + 120, 1.00/*1065353216*/ + 180), "Licensing_restrictions", 6330, "", 0, "b", 0); } } else { Authorization = 1; copy(Authorization_information, 63, 145728); copy(Authorization_Ip, 31, 145756); copy(Authorized_time, 31, 145784); Read_one_two_three = 2; set_task(13.70, "Repeat_Verify_one", 6000, "", 0, "b", 0); set_task(11.50, "Repeat_Verify_two", 6110, "", 0, "b", 0); set_task(7.30, "Repeat_Verify_three", 6220, "", 0, "b", 0); set_task(random_float(1.00/*1065353216*/ + 120, 1.00/*1065353216*/ + 180), "Licensing_restrictions", 6330, "", 0, "b", 0); } SQL_FreeHandle(query); return 0; }
|