Replaced all EULA_controller.py strings with VIEW entries

This commit is contained in:
sTiKyt 2020-08-13 15:56:00 +03:00
parent 5946b52955
commit a39335fcc4
No known key found for this signature in database
GPG Key ID: 510E1C3C9B2414B4
2 changed files with 14 additions and 19 deletions

View File

@ -43,24 +43,10 @@ class EULAController:
return False
def confirm_eula(self):
# FIXME replace those strings with View entries
print(
f"{self.license.read()}\nGreat Power Comes With Great Responsibility\n"
)
print(
"The use of the HiddenEye & its resources/phishing-pages is COMPLETE RESPONSIBILITY of the END-USER."
)
print(
"Developers assume NO liability and are NOT responsible for any damage caused by this program."
)
print(
"Also we want to inform you that some of your actions may be ILLEGAL and you CAN NOT use this"
)
print(
"software to test device, company or any other type of target without WRITTEN PERMISSION from them."
)
print('Do you accept EULA? \n\nEnter: "I accept EULA" to continue\n')
answer = input("HiddenEye EULA>> ").lower().replace(" ", "")
print(f'{self.license.read()}\n{EULAView().EULA_messages["eula_power_and_responsibility_message"]}\n')
print(EULAView().EULA_messages["eula_full_disclaimer"])
print(f'{EULAView().EULA_messages["eula_do_you_accept"]} \n\n{EULAView().EULA_messages["eula_enter_to_continue"]}\n')
answer = input(EULAView().EULA_messages["eula_input_prompt"]).lower().replace(" ", "")
if answer == "iaccepteula":
eula_temp_input = open(self.eula, "rt")
eula_temp_data = eula_temp_input.read().replace(

View File

@ -12,5 +12,14 @@ class EULAView:
"eula_start_of_file_unconfirmed": _("# Please read and accept EULA below\n eula = False"),
"eula_start_of_file_confirmed": _("# Please read and accept EULA below\n eula = True"),
"eula_was_just_accepted": _("You accepted EULA, you can enjoy your HiddenEye experience"),
"eula_was_just_rejected": _("You rejected EULA, you are not allowed to use HiddenEye")
"eula_was_just_rejected": _("You rejected EULA, you are not allowed to use HiddenEye"),
"eula_power_and_responsibility_message": _("Great Power Comes With Great Responsibility"),
"eula_do_you_accept": _("Do you accept EULA?"),
"eula_enter_to_continue": _('Enter: "I accept EULA" to continue'),
"eula_input_prompt": _("HiddenEye EULA>> "),
"eula_full_disclaimer": _('''
The use of the HiddenEye & its resources/phishing-pages is COMPLETE RESPONSIBILITY of the END-USER.
Developers assume NO liability and are NOT responsible for any damage caused by this program.
Also we want to inform you that some of your actions may be ILLEGAL and you CAN NOT use this
software to test device, company or any other type of target without WRITTEN PERMISSION from them.''')
}