On 4/25/07, <b class="gmail_sendername">Tegan Dowling</b> &lt;<a href="mailto:tmdowling@gmail.com">tmdowling@gmail.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><span class="e" id="q_112298def3ffc448_0">On 4/25/07, <b class="gmail_sendername">Tegan Dowling</b> &lt;<a href="mailto:tmdowling@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">tmdowling@gmail.com
</a>&gt; wrote:</span></div><div><div><span class="e" id="q_112298def3ffc448_2"><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Because I use clean URLs, I was previously unable to use the very nifty WebAdmin recipe -- <a href="http://www.pmwiki.org/wiki/Cookbook/WebAdmin" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.pmwiki.org/wiki/Cookbook/WebAdmin
</a> -- but I&#39;ve finally revisited it and now see that in January, Bill Reveile (Thanks, Bill, if you&#39;re reading!) posted the solution, which is to disable clean URLs for a single page on which a [[{$Name}?action=webadmin | Web Admin]] link is placed.
<br><br>This works: <br>* I have a [[{$Name}?action=webadmin | Web Admin]] on a page Admin.WebAdmin, which requires the admin password for read-access,<br>* I have a local/Admin.WebAdmin.php file, on which I have just: <br>


&lt;?php<br>&nbsp;&nbsp;&nbsp; $EnablePathInfo = 0;<br><br>* In local/config.php, I have the WebAdmin recipe enabled with<br>&nbsp;&nbsp;&nbsp; include_once(&quot;$FarmD/cookbook/webadmin.php&quot;);<br><br><br>My question:<br>To eliminate the need for the extra 
Admin.WebAdmin.php file, how would I write something that I could put directly into local/config.php that would say:<br><br>If group.page = Admin.WebAdmin Then $EnablePathInfo = 0;<br><br>?</blockquote></span></div><div>
<br>Never mind! 
<br>Using an example from Hans&#39;s thread &quot;including php files&quot;, I have this in config.php, and it works:<br><br>&nbsp;&nbsp;&nbsp; if($page == &#39;Admin.WebAdmin&#39;)&nbsp; $EnablePathInfo = 0;<span class="q"><br>&nbsp;&nbsp;&nbsp; include_once(&quot;$FarmD/cookbook/webadmin.php&quot;);
<br><br><br></span>Thanks anyhow,</div></div></blockquote><div><br>Whoops.&nbsp; Never mind the never mind - that doesn&#39;t work after all.&nbsp; I have<br></div><br>&nbsp;&nbsp;&nbsp; if($page == &#39;Admin.WebAdmin&#39;)&nbsp; $EnablePathInfo = 0;
<span class="q"><br><br>That&#39;s no good.&nbsp; What should I have?&nbsp; Do I need some curly brackets in there or something?<br><br>(Also, I can&#39;t use </span><span class="e" id="q_112298def3ffc448_2">[[{$Name}?action=webadmin | Web Admin]] on the page 
Admin.WebAdmin - that does bring the WebAdmin form up, but with cleanURLs again, so that the links on the form don&#39;t work.&nbsp; I have to use </span><span class="e" id="q_112298def3ffc448_2">[[Admin.WebAdmin?action=webadmin | Web Admin]])
</span></div>