OSDN Git Service

PKWK_READONLY prohibits this
authorhenoheno <henoheno>
Sun, 23 Jan 2005 09:33:10 +0000 (18:33 +0900)
committerhenoheno <henoheno>
Sun, 23 Jan 2005 09:33:10 +0000 (18:33 +0900)
plugin/update_entities.inc.php

index e429a79..a93ffb1 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 // PukiWiki - Yet another WikiWikiWeb clone
-// $Id: update_entities.inc.php,v 1.6 2005/01/23 09:32:03 henoheno Exp $
+// $Id: update_entities.inc.php,v 1.7 2005/01/23 09:33:10 henoheno Exp $
 //
 // Update entities plugin - Update XHTML entities from DTD
 // (for admin)
@@ -39,6 +39,8 @@ function plugin_update_entities_action()
        global $script, $vars;
        global $_entities_messages;
 
+       if (PKWK_READONLY) die_message('PKWK_READONLY prohibits this');
+
        $msg = $body = '';
        if (empty($vars['action']) || empty($vars['adminpass']) || ! pkwk_login($vars['adminpass'])) {
                $msg   = & $_entities_messages['title_update'];