http://pastebin.com/MuXMnHmj
As you see plugin_end function is quoted because it gives me error : [MySQL] Invalid handle: 0
The variable:
escapes just does not saves.. I haven't got any errors from the plugin.
P.S. I put the code in pastebin because when I try to post the thread with the code - cloudflare of the forum does not allows me (maybe because of the sql symbols idk)..