Terrible PHP code, feel free to hate it, love it, use it, abuse it.