<?php if (!defined('PmWiki')) exit(); /* Author: Martin Fick Date: 2008-02-15 Requires: The Content recipe, the sdml2txt script Be sure to download the sdml2txt script from here: http://www.theficks.name/bin/lib/sdml/sdml2txt Give it execute permissions and put it in your webservers path, or edit the line: ContentRegFSConverter('sdml', 'sd', 'sdml2txt < ${i} > ${o}'); below to indicate the path to the sdml2txt converter like this: ContentRegFSConverter('sdml', 'sd', '<path>/sdml2txt < ${i} > ${o}'); */ define(SDML_VERSION, '1.0'); ContentRegisterType('sdml', 'text/plain', 'sdml', null, true); ContentRegisterType('sd', 'text/plain', 'txt', null, true); ContentRegFSConverter('sdml', 'sd', 'sdml2txt < ${i} > ${o}'); ContentRegConverter('sd', 'safe', "Sdml_sd2safe"); function Sdml_sd2safe($cp, $cnv, $intype, $outtype, $args, $data) { return "[@$data@]"; }