OSDN Git Service
(root)
/
pukiwiki
/
pukiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6cac382
)
Added stationary plugin. This is just a stationary
author
henoheno
<henoheno>
Tue, 8 Feb 2005 14:15:14 +0000
(23:15 +0900)
committer
henoheno
<henoheno>
Tue, 8 Feb 2005 14:15:14 +0000
(23:15 +0900)
plugin/stationary.inc.php
patch
|
blob
|
history
diff --git
a/plugin/stationary.inc.php
b/plugin/stationary.inc.php
index
5ea684c
..
873b997
100644
(file)
--- a/
plugin/stationary.inc.php
+++ b/
plugin/stationary.inc.php
@@
-1,5
+1,5
@@
<?php
<?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
//
// Stationary plugin
// License: The same as PukiWiki
@@
-9,22
+9,36
@@
define('PLUGIN_STATIONARY_MAX', 10);
function plugin_stationary_init()
{
function plugin_stationary_init()
{
+ if (PKWK_SAFE_MODE || PKWK_READONLY) return; // Do nothing
}
function plugin_stationary_convert()
{
}
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()
{
}
function plugin_stationary_inline()
{
- return '&stationary();';
+ if (PKWK_SAFE_MODE || PKWK_READONLY) return ''; // Show nothing
+
+ $result = '&stationary(){};';
+
+ return htmlspecialchars($result);
}
function plugin_stationary_action()
{
}
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));
+}
?>
?>