<?php
// PukiWiki - Yet another WikiWikiWeb clone.
-// $Id: read.inc.php,v 1.8 2005/01/15 13:57:07 henoheno Exp $
+// $Id: read.inc.php,v 1.9 2011/01/25 15:01:01 henoheno Exp $
//
// Read plugin: Show a page and InterWiki
$page = isset($vars['page']) ? $vars['page'] : '';
if (is_page($page)) {
- // ¥Ú¡¼¥¸¤òɽ¼¨
+ // ページを表示
check_readable($page, true, true);
header_lastmod($page);
return array('msg'=>'', 'body'=>'');
} else if (! PKWK_SAFE_MODE && is_interwiki($page)) {
- return do_plugin_action('interwiki'); // InterWikiName¤ò½èÍý
+ return do_plugin_action('interwiki'); // InterWikiNameを処理
} else if (is_pagename($page)) {
$vars['cmd'] = 'edit';
- return do_plugin_action('edit'); // ¸ºß¤·¤Ê¤¤¤Î¤Ç¡¢ÊÔ½¸¥Õ¥©¡¼¥à¤òɽ¼¨
+ return do_plugin_action('edit'); // 存在しないので、編集フォームを表示
} else {
- // ̵¸ú¤Ê¥Ú¡¼¥¸Ì¾
+ // 無効なページ名
return array(
'msg'=>$_title_invalidwn,
- 'body'=>str_replace('$1', htmlspecialchars($page),
+ 'body'=>str_replace('$1', htmlsc($page),
str_replace('$2', 'WikiName', $_msg_invalidiwn))
);
}