On Thu, Oct 08, 2009 at 05:15:28PM +0100, Hans wrote:
> Thursday, October 8, 2009, 2:25:44 PM, Farkas, Illes wrote:
> 
> > Shall I put something like this into local/config.php ?
> 
> > if ( <group is 'Project' -- how to write this?> &&
> > @$_SERVER['REMOTE_ADDR'] != '<selected IP>'){  
> >       <instead of the requested page set page to 'Main.HomePage'>
> > }
> 
> try
> 
> $group = PageVar($pagename, '$Group');
> if ($group=='Project')
>    if (@$_SERVER['REMOTE_ADDR'] != '<selected IP>')
>        Redirect('Main.HomePage');

Or even create a group-specific local/Project.php file
that performs the IP test.

Note that this solution doesn't block access to the pages
via (:include:) and the like.

Pm

_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to