<?php
-// $Id: stationary.inc.php,v 1.1 2005/02/08 14:04:05 henoheno Exp $
+// $Id: stationary.inc.php,v 1.2 2005/02/08 14:15:14 henoheno Exp $
//
// Stationary plugin
// License: The same as PukiWiki
function plugin_stationary_init()
{
+ if (PKWK_SAFE_MODE || PKWK_READONLY) return; // Do nothing
}
function plugin_stationary_convert()
{
- return '#stationary()' . '</br>' ."\n";
+ if (PKWK_SAFE_MODE || PKWK_READONLY) return ''; // Show nothing
+
+ $result = '#stationary()';
+
+ return htmlspecialchars($result) . '<br/>';
}
function plugin_stationary_inline()
{
- return '&stationary();';
+ if (PKWK_SAFE_MODE || PKWK_READONLY) return ''; // Show nothing
+
+ $result = '&stationary(){};';
+
+ return htmlspecialchars($result);
}
function plugin_stationary_action()
{
- die_message('stationary');
-}
+ if (PKWK_SAFE_MODE || PKWK_READONLY)
+ die_message('PKWK_SAFE_MODE or PKWK_READONLY prohibits this');
+
+ $msg = 'Message';
+ $body = 'Message body';
+ return array('msg'=>htmlspecialchars($msg), 'body'=>htmlspecialchars($body));
+}
?>