Howto ban a ip addr from an extension?

Discussion forum for Extension Writers regarding Extension Development.
Post Reply
User avatar
Registered User
Posts: 706
Joined: Tue Oct 06, 2009 7:34 pm
Location: The Netherlands
Name: Gijs

Re: Howto ban a ip addr from an extension?

Post by posey » Wed Nov 15, 2017 10:54 pm

Not sure what you're trying to do.. but you're best of using the request, language and helper class.
request_var('subject', 'null') should be $this->request->variable('subject', '', true), dito for the message.
Where $request is injected through a service.

Not sure what the ban message includes, but here you can find some information on parsing text.

For a lot more information, have a look here.
''I'm pretty sure there's a lot more to life than being really, really, ridiculously good looking. And I plan on finding out what that is.''

Post Reply

Return to “Extension Writers Discussion”

Who is online

Users browsing this forum: friedfry and 7 guests