MediawikiExtensions/MoonEdit

Situation
You are using the MoonEdit program (Tom Dobrowolski's multi-platform collaborative text editor) to colloboartively edit texts with other users and would like to save them into the Wiki for future reference. You used the 'svsavetxt command in your MoonEdit client to make the server save the session as plain text in the current working directory.

Tag
In the Wiki you can now use filename inside a wiki page, and the content of the file will be included into the wiki page. Note that often the MoonEdit files dont have a file extension.They should be plain text and not in the .me format.

Its called 'Ting' because that term is being used on the TingWiki, more on. TingWiki lives inside S23-Wiki where i installed this extension.

Tings have been the councils of the old vikings.

Ting (MoonEdit) Extension
setHook( "ting", "renderTing" ); }

function renderTing( $input ) {

$input = mysql_escape_string($input);

$file = "/var/www/moonedit/$input"; if (file_exists($file)) { $content = file($file); }

foreach($content as $key => $value) { $output.="$value "; }

return $output;

}

?>