11
trokanas
14h

Opened a legacy PHP file from 2008.

No functions.
2,000+ lines.
Inline SQL.
HTML inside echo statements.
A single if (true) wrapping the entire thing like some cursed gift box.

At the top:
// Do not modify. Works perfectly.

At the bottom:
It writes to two databases. Only one exists.

Somewhere in the middle:
It sends an email…
to the client’s ex-wife.

I closed the file.
Rebooted my laptop.
Took a walk.
Still not okay.

Comments
  • 2
    The email to the ex wife is hitting a fail level few have reached…..
  • 4
    The newbies on this platform are killing it 😂 Amazing rant 😁
  • 0
    I bet the email works perfectly as well. What would happen if you modify that, would they fire you?
  • 1
    writing crap and then saying //Do not modify

    just nuts
Add Comment