mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
Removed deprecated Legacy code
This commit is contained in:
parent
44ad5cc34d
commit
c5a56c83a1
@ -21,31 +21,6 @@ from Defs.ImportManager.unsorted_will_be_replaced import try_to_run_command
|
|||||||
|
|
||||||
default_palette = theme.default_palette
|
default_palette = theme.default_palette
|
||||||
|
|
||||||
|
|
||||||
def license_handler():
|
|
||||||
""" Checks if eula.txt exists, creates one if it doesn't. Checks if "eula = True" is inside.
|
|
||||||
|
|
||||||
Returns:
|
|
||||||
boolean: Returns True if "eula = True" is inside eula.txt, False by default.
|
|
||||||
"""
|
|
||||||
eula = pathlib_Path("eula.txt")
|
|
||||||
if eula.exists():
|
|
||||||
with open("eula.txt", "r") as f:
|
|
||||||
if "eula = True" in f.read():
|
|
||||||
print("Found your license agreement, proceeding...")
|
|
||||||
return True
|
|
||||||
else:
|
|
||||||
print("Please read and accept license.")
|
|
||||||
return False
|
|
||||||
else:
|
|
||||||
eula.touch(mode=0o777, exist_ok=True)
|
|
||||||
eula = open("eula.txt", "w")
|
|
||||||
eula.write(localization.write_eula + "eula = False")
|
|
||||||
eula.close()
|
|
||||||
print("Please accept EULA.")
|
|
||||||
return False
|
|
||||||
|
|
||||||
|
|
||||||
def exit_message(port=80): # Message when HiddenEye exit
|
def exit_message(port=80): # Message when HiddenEye exit
|
||||||
"""Displays preconfigured message when HiddenEye execution ends or user tries to leave app.
|
"""Displays preconfigured message when HiddenEye execution ends or user tries to leave app.
|
||||||
|
|
||||||
|
@ -14,16 +14,10 @@ import Defs.ActionManager.simple_informant as simple_informant
|
|||||||
import Defs.FeatureManager.feature_prompt as prompt
|
import Defs.FeatureManager.feature_prompt as prompt
|
||||||
from controllers.EULA_controller import EULAController
|
from controllers.EULA_controller import EULAController
|
||||||
|
|
||||||
# simple_informant.license_handler()
|
|
||||||
# agreement = simple_informant.terms_of_service_message()
|
|
||||||
# if not agreement:
|
|
||||||
# exit()
|
|
||||||
# TODO replace everything above
|
|
||||||
if EULAController().check_eula_existence() is False:
|
if EULAController().check_eula_existence() is False:
|
||||||
EULAController().generate_new_eula()
|
EULAController().generate_new_eula()
|
||||||
if EULAController().check_eula_confirmation() is False:
|
if EULAController().check_eula_confirmation() is False:
|
||||||
exit()
|
exit()
|
||||||
# FIXME new code above
|
|
||||||
|
|
||||||
|
|
||||||
if not environ.get("PYTHONHTTPSVERIFY", "") and getattr(
|
if not environ.get("PYTHONHTTPSVERIFY", "") and getattr(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user