[pmwiki-users] how to make pages in the group 'Project' accessible only from one fixed IP

Hans design5 at softflow.co.uk
Thu Oct 8 11:15:28 CDT 2009


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');



  ~Hans




More information about the pmwiki-users mailing list