One thing I noticed. Not one person here has questioned why the code has failed repeatedly and sent people bitcoins OR intersangos integrity. Does this happen to anyone else, to any other exchange? Maybe once, but not over and over, right? Is Patrick really that bad of a coder? That raises an eyebrow for me. I don't know about you guys.
https://bitcointalk.org/index.php?topic=40934.msg498999#msg498999This code was thoroughly tested using testnet.
The issue was with the server configuration, the database user did not have the proper permissions and the code failed in an unexpected way.
I have now changed to relevant code such that any failure of any kind will stop the script cold.
If you wish to learn more specific details, there's #bitcoinconsultancy on Freenode IRC network. The rest of your post is interesting to shed some light on as well. It'll be interesting for phantomcircuit to provide more details about his experience.