It's trivial as hell to write a stateless one in PHP that uses flat files (almost easier than SQL, really). I wrote the one that's on
SmutWire, but as I sold that, I don't really feel I can start giving parts of it away.
I'm sure you will be able to manage with
Plug A Thug 2.