Added 2 new VIEW entries, removed/moved unnecessary \n characters

pull/760/head
sTiKyt 2020-08-13 14:44:00 +03:00
parent e756aed688
commit 5946b52955
No known key found for this signature in database
GPG Key ID: 510E1C3C9B2414B4
2 changed files with 13 additions and 8 deletions

View File

@ -1,6 +1,7 @@
import pathlib
import stat
from os import chmod
from time import sleep
from views.EULA_view import EULAView
@ -44,21 +45,21 @@ class EULAController:
def confirm_eula(self):
# FIXME replace those strings with View entries
print(
f"{self.license.read()}\nGreat Power Comes With Great Responsibility"
f"{self.license.read()}\nGreat Power Comes With Great Responsibility\n"
)
print(
"\nThe use of the HiddenEye & its resources/phishing-pages is COMPLETE RESPONSIBILITY of the END-USER."
"The use of the HiddenEye & its resources/phishing-pages is COMPLETE RESPONSIBILITY of the END-USER."
)
print(
"\nDevelopers assume NO liability and are NOT responsible for any damage caused by this program."
"Developers assume NO liability and are NOT responsible for any damage caused by this program."
)
print(
"\nAlso we want to inform you that some of your actions may be ILLEGAL and you CAN NOT use this "
"Also we want to inform you that some of your actions may be ILLEGAL and you CAN NOT use this"
)
print(
"\nsoftware to test device, company or any other type of target without WRITTEN PERMISSION from them."
"software to test device, company or any other type of target without WRITTEN PERMISSION from them."
)
print('\nDo you accept EULA? \nEnter: "I accept EULA" to continue')
print('Do you accept EULA? \n\nEnter: "I accept EULA" to continue\n')
answer = input("HiddenEye EULA>> ").lower().replace(" ", "")
if answer == "iaccepteula":
eula_temp_input = open(self.eula, "rt")
@ -70,8 +71,10 @@ class EULAController:
eula_temp_input = open(self.eula, "wt")
eula_temp_input.write(eula_temp_data)
eula_temp_input.close()
print(EULAView().EULA_messages["eula_was_just_accepted"])
sleep(3.5)
pass
# TODO add "thanks for confirmation" View entry
else:
print(EULAView().EULA_messages["eula_was_just_rejected"])
sleep(3.5)
exit()
# TODO add "you are not allowed to use HiddenEye" View entry

View File

@ -11,4 +11,6 @@ class EULAView:
"eula_is_invalid": _("EULA is not valid"),
"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")
}