This code has likely got vulnerabilites and questionable security, it's also a poor example of what good code looks like. I do not recommend investing any time into this.