View Single Post
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-14-2014 , 09:06   Re: Protect Plugin By IP
Reply With Quote #3

Quote:
Originally Posted by Neeeeeeeeeel.- View Post
But, if your code is at the top, the "return" statement will stop plugin_init execution
No it will not, certain forwards ignore the return value, plugin_init being one of them. Plus, an empty return is the same as doing "return 0".

Oh, and simply editing get_user_ip to throw an error if the index is 0 would be much easier.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).

Last edited by YamiKaitou; 08-14-2014 at 09:08.
YamiKaitou is offline