[pmwiki-users] Run cookbook or not depending the visitor's IP
ABClf
languefrancaise at gmail.com
Thu Oct 13 19:54:24 CDT 2011
It looks like it works ; thank you Peter.
2011/10/13 Peter Bowers <pbowers at pobox.com>:
> On Thu, Oct 13, 2011 at 5:45 AM, ABClf <languefrancaise at gmail.com> wrote:
>> if my ip, do nothing,
>> else include actionlog recipe
>
> if ($_SERVER['REMOTE_ADDR'] != 'www.xxx.yyy.zzz')
> include_once("$FarmD/cookbook/actionlog.php");
>
> Be aware that a lot of these $_SERVER values can be spoofed, so it's
> not fool-proof.
>
> -Peter
>
--
---------------------------------------
| A | de la langue française
| B | http://www.languefrancaise.net/
| C | languefrancaise at gmail.com
---------------------------------------
More information about the pmwiki-users
mailing list