Ternary operators are there for a reason.
Don't send detailed error messages to clients in production mode.
Fix some obviously broken code. o_0
Enforce lowercase module and skin names