Skip to content

Commit

Permalink
Update install.py
Browse files Browse the repository at this point in the history
  • Loading branch information
perspector authored Feb 18, 2022
1 parent ddf08ef commit fb04c9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def rewrite(file, line, target_text):

# Adds credentials to the files so they work properly
print("[...] Adding credentials to files EmailChecker.py and CustomBlockPage.php so the script can work")
rewrite(php_file, 20, f" <a href='mailto:{email}?subject=Domain%20Blocked&body=[sub]' onclick='this.href =this.href.replace(\"[sub]\",window.location)' target='_blank' rel=noopener noreferrer><button style='background-color:white; border-color:white'>here</button></a>.<br>\n")
rewrite(php_file, 21, f" <a href='mailto:{email}?subject=Domain%20Blocked&body=[sub]' onclick='this.href =this.href.replace(\"[sub]\",window.location)' target='_blank' rel=noopener noreferrer><button style='background-color:white; border-color:white'>here</button></a>.<br>\n")
rewrite(email_file, 9, f"with MailBox('{provider}').login('{email}', '{password}', initial_folder='INBOX') as mailbox:\n")
print("[✓] Finished adding credentials to files")

Expand Down

0 comments on commit fb04c9a

Please sign in to comment.