OSDN Git Service

PKWK_SAFE_MODE prohibits this
authorhenoheno <henoheno>
Sat, 29 Jan 2005 02:07:58 +0000 (11:07 +0900)
committerhenoheno <henoheno>
Sat, 29 Jan 2005 02:07:58 +0000 (11:07 +0900)
plugin/server.inc.php
plugin/source.inc.php
plugin/version.inc.php

index 19c9cf5..ac00f08 100644 (file)
@@ -1,11 +1,14 @@
 <?php
-// $Id: server.inc.php,v 1.5 2005/01/23 08:15:35 henoheno Exp $
+// $Id: server.inc.php,v 1.6 2005/01/29 02:07:58 henoheno Exp $
 //
 // Server information plugin
 // by Reimy http://pukiwiki.reimy.com/
 
 function plugin_server_convert()
 {
+
+       if (PKWK_SAFE_MODE) return ''; // Show nothing
+
        return '<dl>' . "\n" .
                '<dt>Server Name</dt>'     . '<dd>' . SERVER_NAME . '</dd>' . "\n" .
                '<dt>Server Software</dt>' . '<dd>' . SERVER_SOFTWARE . '</dd>' . "\n" .
index f11b29d..9223da0 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 // PukiWiki - Yet another WikiWikiWeb clone
-// $Id: source.inc.php,v 1.13 2004/11/28 08:52:29 henoheno Exp $
+// $Id: source.inc.php,v 1.14 2005/01/29 02:07:58 henoheno Exp $
 //
 // Source plugin
 
@@ -9,6 +9,8 @@ function plugin_source_action()
 {
        global $vars, $_source_messages;
 
+       if (PKWK_SAFE_MODE) die_message('PKWK_SAFE_MODE prohibits this');
+
        $page = isset($vars['page']) ? $vars['page'] : '';
        $vars['refer'] = $page;
 
index ec36374..ca3f467 100644 (file)
@@ -1,16 +1,20 @@
 <?php
 // PukiWiki - Yet another WikiWikiWeb clone
-// $Id: version.inc.php,v 1.7 2005/01/22 03:35:54 henoheno Exp $
+// $Id: version.inc.php,v 1.8 2005/01/29 02:07:58 henoheno Exp $
 //
 // Show PukiWiki version
 
 function plugin_version_convert()
 {
+       if (PKWK_SAFE_MODE) return ''; // Show nothing
+
        return '<p>' . S_VERSION . '</p>';
 }
 
 function plugin_version_inline()
 {
+       if (PKWK_SAFE_MODE) return ''; // Show nothing
+
        return S_VERSION;
 }
 ?>