[pmwiki-users] Additional Protocals

Patrick R. Michaud pmichaud at pobox.com
Thu Feb 10 11:48:08 CST 2005


On Thu, Feb 10, 2005 at 12:04:28PM -0500, Martin Fick wrote:
> Might I suggest that the protocol detection for links be separated
> out into an array such as:
> ...
> foreach(array('http:','https:','mailto:','ftp:','news:','gopher:','nap:',
>     'file:') as $m)
> 
> This wil allow sites to add to the portocol list in config.php.

You can already add to the protocol list, it's just done a little
differently than what you suggest:

    $LinkFunctions['other:'] = 'LinkIMap';
    $IMap['other:'] = 'other:$1';

Indeed, you can even do it just by adding lines to local/localmap.txt:

    other     other:$1

Pm



More information about the pmwiki-users mailing list