* PukiWiki calendar_viewer¥×¥é¥°¥¤¥ó
*
*
- *$Id: calendar_viewer.inc.php,v 1.8 2003/06/22 06:37:19 arino Exp $
+ *$Id: calendar_viewer.inc.php,v 1.9 2003/07/03 05:18:50 arino Exp $
calendarrecent¥×¥é¥°¥¤¥ó¤ò¸µ¤ËºîÀ®
*/
/**
*/
-function plugin_calendar_viewer_init()
-{
- $messages = array(
- '_err_calendar_viewer_param' => '°ú¿ô»ØÄꤷ¤Æ¤Í',
- '_err_calendar_viewer_param2' => 'Âè2°ú¿ô¤¬ÊѤÀ¤è',
- '_msg_calendar_viewer_right' => '¼¡¤Î%d·ï>>',
- '_msg_calendar_viewer_left' => '<<Á°¤Î%d·ï'
- );
- set_plugin_messages($messages);
-}
-
-
function plugin_calendar_viewer_convert()
{
global $WikiName,$BracketName,$vars,$get,$post,$hr,$script;
global $_err_calendar_viewer_param,$_err_calendar_viewer_param2;
global $_msg_calendar_viewer_right,$_msg_calendar_viewer_left;
+ global $_msg_calendar_viewer_restrict;
+
//*¥Ç¥Õ¥©¥ë¥ÈÃͤò¥»¥Ã¥È
//´ð½à¤È¤Ê¤ë¥Ú¡¼¥¸Ì¾
$pagename = "";
if (check_readable($page,false,false)) {
$body = convert_html(get_source($page));
} else {
- $body = $page." ¤Ï±ÜÍ÷À©¸Â¤¬¤«¤«¤Ã¤Æ¤¤¤ë¤¿¤ácalendar_viewer¤Ë¤è¤ë»²¾È¤Ï¤Ç¤¤Þ¤»¤ó";
+ $body = str_replace('$1',$page,$_msg_calendar_viewer_restrict);
}
$r_page = rawurlencode($page);
/////////////////////////////////////////////////
// PukiWiki - Yet another WikiWikiWeb clone.
//
-// $Id: deleted.inc.php,v 1.2 2003/04/01 08:05:26 panda Exp $
+// $Id: deleted.inc.php,v 1.3 2003/07/03 05:19:37 arino Exp $
//
//ºï½ü¤µ¤ì¤¿¥Ú¡¼¥¸(BACKUP_DIR¤Ë¤¢¤Ã¤Æ¡¢DATA_DIR¤Ë¤Ê¤¤¥Õ¥¡¥¤¥ë)¤Î°ìÍ÷¤òɽ¼¨¤¹¤ë
-function plugin_deleted_init()
-{
- if (LANG == 'ja')
- {
- $messages = array(
- '_deleted_plugin_title' => 'ºï½ü¥Ú¡¼¥¸¤Î°ìÍ÷',
- '_deleted_plugin_title_withfilename' => 'ºï½ü¥Ú¡¼¥¸¥Õ¥¡¥¤¥ë¤Î°ìÍ÷',
- );
- }
- else
- {
- $messages = array(
- '_deleted_plugin_title' => 'deleted pages',
- '_deleted_plugin_title_withfilename' => 'deleted pages (with filename)',
- );
- }
- set_plugin_messages($messages);
-}
-
function plugin_deleted_action()
{
global $get;
/////////////////////////////////////////////////
// PukiWiki - Yet another WikiWikiWeb clone.
//
-// $Id: ls2.inc.php,v 1.14 2003/05/17 11:18:22 arino Exp $
+// $Id: ls2.inc.php,v 1.15 2003/07/03 05:21:48 arino Exp $
//
/*
//¸«½Ð¤·¥ì¥Ù¥ë¤òÄ´À°¤¹¤ë(¥Ç¥Õ¥©¥ë¥ÈÃÍ)
define('LS2_LIST_COMPACT',FALSE);
-function plugin_ls2_init()
-{
- $messages = array('_ls2_messages'=>array(
- 'err_nopages' => '<p>\'$1\' ¤Ë¤Ï¡¢²¼°ÌÁؤΥڡ¼¥¸¤¬¤¢¤ê¤Þ¤»¤ó¡£</p>',
- 'msg_title' => '\'$1\'¤Ç»Ï¤Þ¤ë¥Ú¡¼¥¸¤Î°ìÍ÷',
- 'msg_go' => '<span class="small">...</span>',
- ));
- set_plugin_messages($messages);
-}
function plugin_ls2_action()
{
global $vars;
- global $_ls2_messages;
+ global $_ls2_msg_title;
$params = array();
foreach (array('title','include','reverse') as $key)
return array(
'body'=>$body,
- 'msg'=>str_replace('$1',htmlspecialchars($prefix),$_ls2_messages['msg_title'])
+ 'msg'=>str_replace('$1',htmlspecialchars($prefix),$_ls2_msg_title)
);
}
function plugin_ls2_convert()
{
global $script,$vars;
- global $_ls2_messages;
+ global $_ls2_msg_title;
$prefix = '';
if (func_num_args())
array_walk($args, 'ls2_check_arg', &$params);
$title = (count($params['_args']) > 0) ?
join(',', $params['_args']) :
- str_replace('$1',htmlspecialchars($prefix),$_ls2_messages['msg_title']);
+ str_replace('$1',htmlspecialchars($prefix),$_ls2_msg_title);
if ($params['link'])
{
}
function ls2_show_lists($prefix,&$params)
{
- global $_ls2_messages;
+ global $_ls2_err_nopages;
- $pages = array();
- foreach (get_existpages() as $_page)
+ if (strlen($prefix))
{
- if (strpos($_page,$prefix) === 0)
+ $pages = array();
+ foreach (get_existpages() as $_page)
{
- $pages[] = $_page;
+ if (strpos($_page,$prefix) === 0)
+ {
+ $pages[] = $_page;
+ }
}
}
+ else
+ {
+ $pages = get_existpages();
+ }
natcasesort($pages);
if ($params['reverse'])
}
if (count($pages) == 0)
{
- return str_replace('$1',htmlspecialchars($prefix),$_ls2_messages['err_nopages']);
+ return str_replace('$1',htmlspecialchars($prefix),$_ls2_err_nopages);
}
$params['result'] = array();
function ls2_get_headings($page,&$params,$level,$include = FALSE)
{
global $script;
- global $_ls2_messages;
static $_ls2_anchor = 0;
$is_done = (isset($params["page_$page"]) and $params["page_$page"] > 0); //¥Ú¡¼¥¸¤¬É½¼¨ºÑ¤ß¤Î¤È¤True
$level = strlen($matches[1]);
$id = LS2_CONTENT_HEAD.$anchor++;
ls2_list_push($params,$level + strlen($level));
- array_push($params['result'], '<li>'.$line.
- '<a href="'.$href.$id.'">'.$_ls2_messages['msg_go'].'</a>'
- );
+ array_push($params['result'], "<li><a href=\"$href$id\">$line</a>");
}
else if ($params['include']
and preg_match('/^#include\((.+)\)/',$line,$matches) and is_page($matches[1]))
/////////////////////////////////////////////////
// PukiWiki - Yet another WikiWikiWeb clone.
//
-// $Id: navi.inc.php,v 1.14 2003/05/20 10:31:21 arino Exp $
+// $Id: navi.inc.php,v 1.15 2003/07/03 05:22:36 arino Exp $
//
/*
// <link>¥¿¥°¤ò½ÐÎϤ¹¤ë (TRUE|FALSE)
define('NAVI_LINK_TAGS',FALSE);
-function plugin_navi_init()
-{
- $messages = array(
- '_navi_messages'=>array(
- 'msg_prev'=>'Prev',
- 'msg_next'=>'Next',
- 'msg_up' =>'Up',
- 'msg_home' =>'Home'
- )
- );
- set_plugin_messages($messages);
-}
function plugin_navi_convert()
{
global $vars, $script, $head_tags;
- global $_navi_messages;
+ global $_navi_prev,$_navi_next,$_navi_up,$_navi_home;
static $navi = array();
$home = $current = $vars['page'];
if ($pos > 0)
{
$up = substr($current, 0, $pos);
- $navi[$home]['up'] = make_pagelink($up,$_navi_messages['msg_up']);
+ $navi[$home]['up'] = make_pagelink($up,$_navi_up);
}
if (!$is_home)
{
$navi[$home]['prev'] = make_pagelink($prev);
- $navi[$home]['prev1'] = make_pagelink($prev,$_navi_messages['msg_prev']);
+ $navi[$home]['prev1'] = make_pagelink($prev,$_navi_prev);
}
if ($next != '')
{
$navi[$home]['next'] = make_pagelink($next);
- $navi[$home]['next1'] = make_pagelink($next,$_navi_messages['msg_next']);
+ $navi[$home]['next1'] = make_pagelink($next,$_navi_next);
}
$navi[$home]['home'] = make_pagelink($home);
- $navi[$home]['home1'] = make_pagelink($home,$_navi_messages['msg_home']);
+ $navi[$home]['home1'] = make_pagelink($home,$_navi_home);
// <link>¥¿¥°¤òÀ¸À®¤¹¤ë : start next prev(previous) parent(up)
// ̤Âбþ : contents(toc) search first(begin) last(end)
<?php
-// $Id: newpage.inc.php,v 1.7 2003/05/28 04:47:10 arino Exp $
-
-function plugin_newpage_init()
-{
- $messages = array(
- '_msg_newpage' => '¥Ú¡¼¥¸¿·µ¬ºîÀ®'
- );
- set_plugin_messages($messages);
-}
+// $Id: newpage.inc.php,v 1.8 2003/07/03 05:23:08 arino Exp $
function plugin_newpage_convert()
{
/////////////////////////////////////////////////
// PukiWiki - Yet another WikiWikiWeb clone.
//
-// $Id: paint.inc.php,v 1.9 2003/05/16 05:55:52 arino Exp $
+// $Id: paint.inc.php,v 1.10 2003/07/03 05:23:47 arino Exp $
//
/*
//¥á¥Ã¥»¡¼¥¸¤¬¤Ê¤¤¾ì¹ç
define('PAINT_FORMAT_NOMSG',"\x08NAME\x08 \x08DATE\x08");
-function plugin_paint_init()
-{
- $messages = array(
- '_paint_messages'=>array(
- 'field_name' => '¤ªÌ¾Á°',
- 'field_filename'=> '¥Õ¥¡¥¤¥ë̾',
- 'field_comment' => '¥³¥á¥ó¥È',
- 'btn_submit' => 'paint',
- 'msg_max' => '(ºÇÂç %d x %d)',
- 'msg_title' => 'Paint and Attach to $1',
- 'msg_title_collided' => '$1 ¤Ç¡Ú¹¹¿·¤Î¾×ÆÍ¡Û¤¬µ¯¤¤Þ¤·¤¿',
- 'msg_collided' => '¤¢¤Ê¤¿¤¬²èÁü¤òÊÔ½¸¤·¤Æ¤¤¤ë´Ö¤Ë¡¢Â¾¤Î¿Í¤¬Æ±¤¸¥Ú¡¼¥¸¤ò¹¹¿·¤·¤Æ¤·¤Þ¤Ã¤¿¤è¤¦¤Ç¤¹¡£<br />
-²èÁü¤È¥³¥á¥ó¥È¤òÄɲä·¤Þ¤·¤¿¤¬¡¢°ã¤¦°ÌÃÖ¤ËÁÞÆþ¤µ¤ì¤Æ¤¤¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£<br />',
- )
- );
- set_plugin_messages($messages);
-}
function plugin_paint_action()
{
global $script,$vars;
/////////////////////////////////////////////////
// PukiWiki - Yet another WikiWikiWeb clone.
//
-// $Id: pcomment.inc.php,v 1.19 2003/06/24 01:17:32 arino Exp $
+// $Id: pcomment.inc.php,v 1.20 2003/07/03 05:24:28 arino Exp $
//
/*
// ¼«Æ°²áµî¥í¥°²½ 1¥Ú¡¼¥¸¤¢¤¿¤ê¤Î·ï¿ô¤ò»ØÄê 0¤Ç̵¸ú
define('PCMT_AUTO_LOG',0);
-function plugin_pcomment_init()
-{
- $messages = array(
- '_pcmt_messages'=>array(
- 'btn_name' => '¤ªÌ¾Á°: ',
- 'btn_comment' => '¥³¥á¥ó¥È¤ÎÁÞÆþ',
- 'msg_comment' => '¥³¥á¥ó¥È: ',
- 'msg_recent' => 'ºÇ¿·¤Î%d·ï¤òɽ¼¨¤·¤Æ¤¤¤Þ¤¹¡£',
- 'msg_all' => '¥³¥á¥ó¥È¥Ú¡¼¥¸¤ò»²¾È',
- 'msg_none' => '¥³¥á¥ó¥È¤Ï¤¢¤ê¤Þ¤»¤ó¡£',
- 'title_collided' => '$1 ¤Ç¡Ú¹¹¿·¤Î¾×ÆÍ¡Û¤¬µ¯¤¤Þ¤·¤¿',
- 'msg_collided' => '¤¢¤Ê¤¿¤¬¤³¤Î¥Ú¡¼¥¸¤òÊÔ½¸¤·¤Æ¤¤¤ë´Ö¤Ë¡¢Â¾¤Î¿Í¤¬Æ±¤¸¥Ú¡¼¥¸¤ò¹¹¿·¤·¤Æ¤·¤Þ¤Ã¤¿¤è¤¦¤Ç¤¹¡£<br />
-¥³¥á¥ó¥È¤òÄɲä·¤Þ¤·¤¿¤¬¡¢°ã¤¦°ÌÃÖ¤ËÁÞÆþ¤µ¤ì¤Æ¤¤¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£<br />',
- 'err_pagename' => basename(__FILE__).' : ¥Ú¡¼¥¸Ì¾ [[%s]] ¤Ï»ÈÍѤǤ¤Þ¤»¤ó¡£ Àµ¤·¤¤¥Ú¡¼¥¸Ì¾¤ò»ØÄꤷ¤Æ¤¯¤À¤µ¤¤¡£',
- )
- );
- set_plugin_messages($messages);
-}
function plugin_pcomment_action()
{
global $script,$post,$vars;
/////////////////////////////////////////////////
// PukiWiki - Yet another WikiWikiWeb clone.
//
-// $Id: popular.inc.php,v 1.3 2003/03/03 07:07:28 panda Exp $
+// $Id: popular.inc.php,v 1.4 2003/07/03 05:24:43 arino Exp $
//
/*
if (!defined('COUNTER_DIR'))
define('COUNTER_DIR', './counter/');
-function plugin_popular_init()
-{
- if (LANG == 'ja')
- $messages = array(
- '_popular_plugin_frame' => '<h5>¿Íµ¤¤Î%d·ï</h5><div>%s</div>',
- '_popular_plugin_today_frame' => '<h5>º£Æü¤Î%d·ï</h5><div>%s</div>',
- );
- else
- $messages = array(
- '_popular_plugin_frame' => '<h5>popular(%d)</h5><div>%s</div>',
- '_popular_plugin_today_frame' => '<h5>today\'s(%d)</h5><div>%s</div>',
- );
- set_plugin_messages($messages);
-}
-
function plugin_popular_convert()
{
global $_popular_plugin_frame, $_popular_plugin_today_frame;
/////////////////////////////////////////////////
// PukiWiki - Yet another WikiWikiWeb clone.
//
-// $Id: rename.inc.php,v 1.7 2003/06/18 00:11:09 arino Exp $
+// $Id: rename.inc.php,v 1.8 2003/07/03 05:25:10 arino Exp $
//
/*
define('RENAME_LOGPAGE',':RenameLog');
-function plugin_rename_init()
-{
- $messages = array(
- '_rename_messages'=>array(
- 'err' => '<p>¥¨¥é¡¼:%s</p>',
- 'err_nomatch' => '¥Þ¥Ã¥Á¤¹¤ë¥Ú¡¼¥¸¤¬¤¢¤ê¤Þ¤»¤ó¡£',
- 'err_notvalid' => '¥ê¥Í¡¼¥à¸å¤Î¥Ú¡¼¥¸Ì¾¤¬Àµ¤·¤¯¤¢¤ê¤Þ¤»¤ó¡£',
- 'err_adminpass' => '´ÉÍý¼Ô¥Ñ¥¹¥ï¡¼¥É¤¬Àµ¤·¤¯¤¢¤ê¤Þ¤»¤ó¡£',
- 'err_notpage' => '%s¤Ï¥Ú¡¼¥¸Ì¾¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£',
- 'err_norename' => '%s¤ò¥ê¥Í¡¼¥à¤¹¤ë¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£',
- 'err_already' => '¥Ú¡¼¥¸¤¬¤¹¤Ç¤Ë¸ºß¤·¤Þ¤¹¡£:%s',
- 'err_already_below' => '°Ê²¼¤Î¥Õ¥¡¥¤¥ë¤¬¤¹¤Ç¤Ë¸ºß¤·¤Þ¤¹¡£',
- 'msg_title' => '¥Ú¡¼¥¸Ì¾¤ÎÊѹ¹',
- 'msg_page' => 'Êѹ¹¸µ¥Ú¡¼¥¸¤ò»ØÄê',
- 'msg_regex' => 'Àµµ¬É½¸½¤ÇÃÖ´¹',
- 'msg_related' => '´ØÏ¢¥Ú¡¼¥¸',
- 'msg_do_related' => '´ØÏ¢¥Ú¡¼¥¸¤â¥ê¥Í¡¼¥à¤¹¤ë',
- 'msg_rename' => '%s¤Î̾Á°¤òÊѹ¹¤·¤Þ¤¹¡£',
- 'msg_oldname' => '¸½ºß¤Î̾Á°',
- 'msg_newname' => '¿·¤·¤¤Ì¾Á°',
- 'msg_adminpass' => '´ÉÍý¼Ô¥Ñ¥¹¥ï¡¼¥É',
- 'msg_arrow' => '¢ª',
- 'msg_exist_none' => '¤½¤Î¥Ú¡¼¥¸¤ò½èÍý¤·¤Ê¤¤',
- 'msg_exist_overwrite' => '¤½¤Î¥Õ¥¡¥¤¥ë¤ò¾å½ñ¤¤¹¤ë',
- 'msg_confirm' => '°Ê²¼¤Î¥Õ¥¡¥¤¥ë¤ò¥ê¥Í¡¼¥à¤·¤Þ¤¹¡£',
- 'msg_result' => '°Ê²¼¤Î¥Õ¥¡¥¤¥ë¤ò¾å½ñ¤¤·¤Þ¤·¤¿¡£',
- 'btn_submit' => '¼Â¹Ô',
- 'btn_next' => '¼¡¤Ø'
- )
- );
- set_plugin_messages($messages);
-}
function plugin_rename_action()
{
global $adminpass,$whatsnew,$WikiName,$BracketName;
/////////////////////////////////////////////////
// PukiWiki - Yet another WikiWikiWeb clone.
//
-// $Id: source.inc.php,v 1.8 2003/03/13 06:00:23 panda Exp $
+// $Id: source.inc.php,v 1.9 2003/07/03 05:25:53 arino Exp $
//
// ¥Ú¡¼¥¸¥½¡¼¥¹¤òɽ¼¨
-function plugin_source_init()
-{
- $messages = array(
- '_source_messages'=>array(
- 'msg_title' => '$1¤Î¥½¡¼¥¹',
- 'msg_notfound' => '$1¤¬¸«¤Ä¤«¤ê¤Þ¤»¤ó',
- 'err_notfound' => '¥Ú¡¼¥¸¤Î¥½¡¼¥¹¤òɽ¼¨¤Ç¤¤Þ¤»¤ó¡£'
- )
- );
- set_plugin_messages($messages);
-}
-
function plugin_source_action()
{
global $vars;
<?php
-// $Id: template.inc.php,v 1.12 2003/05/16 06:19:15 arino Exp $
+// $Id: template.inc.php,v 1.13 2003/07/03 05:27:08 arino Exp $
define('MAX_LEN',60);
{
global $script,$vars;
global $_title_edit;
+ global $_msg_template_start,$_msg_template_end,$_msg_template_page,$_msg_template_refer;
+ global $_btn_template_create,$_title_template;
if (!is_page($vars['refer']))
{
// input mb_strwidth()
else
{
- $begin_select = "³«»Ï¹Ô:<br /><select name=\"begin\" size=\"10\">\n";
+ $begin_select = $_msg_template_start."<select name=\"begin\" size=\"10\">\n";
for ($i = 0; $i < count($lines); $i++)
{
$lines[$i] = mb_strimwidth($lines[$i],0,MAX_LEN,'...');
}
$begin_select.= "</select><br />\n<br />\n";
- $end_select = "½ªÎ»¹Ô:<br /><select name=\"end\" size=\"10\">\n";
+ $end_select = $_msg_template_end."<select name=\"end\" size=\"10\">\n";
for ($i = 0; $i < count($lines); $i++)
{
$tag = ($i == count($lines) - 1) ? ' selected="selected"' : '';
$select.= "</table><br />\n";
*/
}
- $s_refer = htmlspecialchars($vars['refer']);
+ $s_refer = str_replace('$1',htmlspecialchars($vars['refer']),$_msg_template_page);
$ret = <<<EOD
<form action="$script" method="post">
<div>
<input type="hidden" name="refer" value="$s_refer" />
$begin_select
$end_select
- ¥Ú¡¼¥¸Ì¾: <input type="text" name="page" value="$s_refer/Ê£À½" />
- <input type="submit" name="submit" value="ºîÀ®" />
+ $_msg_template_refer <input type="text" name="page" value="$s_refer" />
+ <input type="submit" name="submit" value="$_btn_template_create" />
</div>
</form>
EOD;
- $retvar['msg'] = '$1 ¤ò¥Æ¥ó¥×¥ì¡¼¥È¤Ë¤·¤ÆºîÀ®';
+ $retvar['msg'] = $_title_template;
$retvar['body'] = $ret;
return $retvar;
* CopyRight 2002 S.YOSHIMURA GPL2
* http://masui.net/pukiwiki/ yosimura@excellence.ac.jp
*
- * $Id: versionlist.inc.php,v 1.5 2003/03/02 07:25:20 panda Exp $
+ * $Id: versionlist.inc.php,v 1.6 2003/07/03 05:27:46 arino Exp $
*/
-function plugin_versionlist_init()
-{
- if (LANG == 'ja')
- {
- $messages = array(
- '_title_versionlist' => '¹½À®¥Õ¥¡¥¤¥ë¤Î¥Ð¡¼¥¸¥ç¥ó°ìÍ÷'
- );
- }
- else
- {
- $messages = array(
- '_title_versionlist' => 'version list'
- );
- }
- set_plugin_messages($messages);
-}
-
function plugin_versionlist_action()
{
global $_title_versionlist;
/////////////////////////////////////////////////
// PukiWiki - Yet another WikiWikiWeb clone.
//
-// $Id: vote.inc.php,v 1.13 2003/05/14 10:13:31 arino Exp $
+// $Id: vote.inc.php,v 1.14 2003/07/03 05:28:04 arino Exp $
//
-function plugin_vote_init()
-{
- if (LANG == 'ja')
- {
- $messages = array(
- '_vote_plugin_choice' => 'ÁªÂò»è',
- '_vote_plugin_votes' => 'Åêɼ',
- );
- }
- else
- {
- $messages = array(
- '_vote_plugin_choice' => 'Selection',
- '_vote_plugin_votes' => 'Vote',
- );
- }
- set_plugin_messages($messages);
-}
-
function plugin_vote_action()
{
global $post,$vars,$script,$cols,$rows;
/////////////////////////////////////////////////
// PukiWiki - Yet another WikiWikiWeb clone.
//
-// $Id: yetlist.inc.php,v 1.17 2003/06/05 00:32:14 arino Exp $
+// $Id: yetlist.inc.php,v 1.18 2003/07/03 05:28:24 arino Exp $
//
-function plugin_yetlist_init()
-{
- if (LANG == 'ja')
- {
- $messages = array(
- '_title_yetlist' => '̤ºîÀ®¤Î¥Ú¡¼¥¸°ìÍ÷',
- '_err_notexist' => '̤ºîÀ®¤Î¥Ú¡¼¥¸¤Ï¤¢¤ê¤Þ¤»¤ó¡£'
- );
- }
- else
- {
- $messages = array(
- '_title_yetlist' => 'List of pages, are not made yet',
- '_err_notexist' => 'All pages are made.'
- );
- }
- set_plugin_messages($messages);
-}
function plugin_yetlist_action()
{
global $script;