17
juzles
4y

Php code without any class. Every page is a separate php file in project root folder.

Everything is all over the place, code repetition is everywhere.

The worst part? No security. The sql calls are with mysql_ functions and string concatenation. Files are just uploaded without checking.

And I had to repair it.

Comments
  • 2
    I had to maintain something like that, but it was mixed with html, js and css in usually single file. Also, register globals and deprecated PHP4 code mixed in. HTML tables and frames for layout. Database with no foreign keys and often fetched with SELECT *, followed with columns being accessed by index number, something I learned very hard way after I have added new column and decided to put it not at the end.
  • 2
    That isn't even that uncommon, when it comes to old dusty legacy..
Add Comment