It becomes clear to me from all of your posts that you don't know what you are doing and are doing things way over your head and making changes to code that affects security when you don't understand the code in the first place. This is a recipe for disaster.
I do not feel able to help you because you don't have the needed developer knowledge and I fear that you are building an insecure web site and it will make mojoPortal look bad but it will be your own changes that made it insecure.
Sorry to be blunt but that is the truth of the matter and I can't sugar coat it or pretend otherwise because that would only encourage you to keep going with changes you should not make. You should not modify software that you don't understand in the first place how it works and what the impact and implications of your changes are.