There is already a thread for this.
Aside from that, it's just more badly written php code.(and, wtf @ login required to do anything. Ugh.)