[pmwiki-users] To disable html markup on publically-editable

Stirling Westrup sti at pooq.com
Sun Nov 19 01:30:38 CST 2006


JB wrote:
> 
>> FWIW, a farmconfig.php can have things happen after local/config.php
>> by simply doing:
>>
>>     <?php
>>       ## initial farm configuration (before local/config.php) stuff here
>>       $FarmPubDirUrl = '...';
>>
>>       ## get local configuration settings
>>       include_once('local/config.php');
>>
>>       ## farm configuration after local/config.php here
>>       if (!CondAuth($pagename, 'admin')) { ... }
> 
> Won't that make the config.php execute twice then?
>

It would if you used include('local/config.php') instead of
include_once('local/config.php'). The big difference is that include_once
won't include a file that's already been included, so when pmwiki.php goes to
include it the second time, nothing happens.





More information about the pmwiki-users mailing list