OSDN Git Service

PKWK_READONLY prohibits this
authorhenoheno <henoheno>
Sun, 23 Jan 2005 07:48:55 +0000 (16:48 +0900)
committerhenoheno <henoheno>
Sun, 23 Jan 2005 07:48:55 +0000 (16:48 +0900)
plugin/links.inc.php

index c3007ff..caded24 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 // PukiWiki - Yet another WikiWikiWeb clone
-// $Id: links.inc.php,v 1.21 2005/01/23 07:47:48 henoheno Exp $
+// $Id: links.inc.php,v 1.22 2005/01/23 07:48:55 henoheno Exp $
 //
 // Update link cache plugin
 
@@ -35,6 +35,8 @@ function plugin_links_action()
        global $script, $post, $vars, $foot_explain;
        global $_links_messages;
 
+       if (PKWK_READONLY) die_message('PKWK_READONLY prohibits this');
+
        $msg = $body = '';
        if (empty($vars['action']) || empty($post['adminpass']) || ! pkwk_login($post['adminpass'])) {
                $msg   = & $_links_messages['title_update'];