Hi,<br><br>Thanks for your previous help with page editing permissions.<br><br>This time I would like to make pages in the group 'Project' (for example, Project.Data, Project.Meetings, Project.Deadlines) accessible only to visitors from a fixed IP number.<br>
<br>If any other visitor tries to access 'Project' pages, then they should receive the page Main.HomePage instead.<br><br>Shall I put something like this into local/config.php ?<br><br>if ( <group is 'Project' -- how to write this?> && @$_SERVER['REMOTE_ADDR'] != '<selected IP>'){ <br>
<instead of the requested page set page to 'Main.HomePage'><br>}<br><br>Thanks,<br>Illes<br><br><div class="gmail_quote">On Thu, Sep 25, 2008 at 9:21 AM, Farkas, Illes <span dir="ltr"><<a href="mailto:illes.farkas@gmail.com">illes.farkas@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr">Thanks,<br>Illes<br><br><div class="gmail_quote">On Wed, Sep 24, 2008 at 8:21 PM, Patrick R. Michaud <span dir="ltr"><<a href="mailto:pmichaud@pobox.com" target="_blank">pmichaud@pobox.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>On Wed, Sep 24, 2008 at 06:00:17PM +0200, Farkas, Illes wrote:<br>
> Dear PmWiki Users,<br>
><br>
> Is it possible to allow editing only from one selected IP (and disallow from<br>
> all others) ?<br>
<br>
</div>In config.php:<br>
<br>
if ($action == 'edit' && @$_SERVER['REMOTE_ADDR'] != '<a href="http://192.168.1.1/" target="_blank">192.168.1.1</a>')<br>
$action = 'browse';<br>
<br>
This will prevent editing from any address other than <a href="http://192.168.1.1/" target="_blank">192.168.1.1</a>.<br>
<font color="#888888"><br>
Pm<br>
</font></blockquote></div><br></div>
</blockquote></div><br>