MyBB Community Forums

Full Version: Count errors PHP
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Cloudflare's WAF is being a pain, so here is my post: https://gist.github.com/Cameron-D/9989669
Thanks buddy very much I very appreciate you help Smile
(2014-04-05, 09:40 AM)Cameron:D Wrote: [ -> ]Cloudflare's WAF is being a pain, so here is my post: https://gist.github.com/Cameron-D/9989669

The problem is if I don't add error(); then it just validates the thread!!!! I need to return or something?
Oh, you can call error() after the my_setcookie line.
(2014-04-07, 04:44 AM)Cameron:D Wrote: [ -> ]Oh, you can call error() after the my_setcookie line.

These are my hooks!
$plugins->add_hook("datahandler_post_validate_post", "hello");
$plugins->add_hook("datahandler_post_validate_thread", "hello");

I added you code but when checking cookies it looks like cookie had not been set I mean it's not setting cookie!
Pages: 1 2