Simplified login cycling code, fixed improper use of =&, moved copyright into PHP code blocks