[pmwiki-users] quick php question

Tegan Dowling tmdowling at gmail.com
Wed Apr 25 12:30:44 CDT 2007


On 4/25/07, Hans <design5 at softflow.co.uk> wrote:
>
> Wednesday, April 25, 2007, 6:06:03 PM, Tegan wrote:
>
> > Whoops.  Never mind the never mind - that doesn't work after all. I have
>
> >     if($page == 'Admin.WebAdmin')  $EnablePathInfo = 0;
>
> > That's no good.  What should I have?  Do I need some curly brackets in
> there
> > or something?
>
> try
>
>      $page = PageVar($pagename, '$FullName');
>      if($page == 'Admin.WebAdmin') {
>         $EnablePathInfo = 0;
>         include_once("$FarmD/cookbook/webadmin.php");
>      }


Close enough to get me there - it has to be

     $page = PageVar($pagename, '$FullName');
     if($page == 'Admin.WebAdmin') {
        $EnablePathInfo = 0;
     }
        include_once("$FarmD/cookbook/webadmin.php");

Thanks so much!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20070425/c94ed634/attachment.html 


More information about the pmwiki-users mailing list