/////////////////////////////////////////////////
// PukiWiki - Yet another WikiWikiWeb clone.
//
-// $Id: en.lng,v 1.19 2003/07/03 06:39:17 arino Exp $
+// $Id: en.lng,v 1.20 2003/07/10 03:21:12 arino Exp $
//
// PukiWiki message file (english)
$_tb_header_Tracked = 'Tracked:';
$_tb_date = 'F j, Y, g:i A';
+/////////////////////////////////////////////////
+// no subject (article)
+$_no_subject = 'no subject';
+/////////////////////////////////////////////////
+// no name (article,comment,pcomment)
+$_no_name = '';
+
///////////////////////////////////////
// plug-in message
/////////////////////////////////////////////////
// PukiWiki - Yet another WikiWikiWeb clone.
//
-// $Id: ja.lng,v 1.19 2003/07/03 06:14:20 arino Exp $
+// $Id: ja.lng,v 1.20 2003/07/10 03:21:12 arino Exp $
//
// PukiWiki message file (japanese)
$_tb_header_Tracked = 'Æü»þ:';
$_tb_date = 'Yǯn·îjÆü H:i:s';
+/////////////////////////////////////////////////
+// Âê̾¤¬Ì¤µÆþ¤Î¾ì¹ç¤Îɽµ (article)
+$_no_subject = '̵Âê';
+/////////////////////////////////////////////////
+// ̾Á°¤¬Ì¤µÆþ¤Î¾ì¹ç¤Îɽµ (article,comment,pcomment)
+$_no_name = '';
+
///////////////////////////////////////
// plug-in message
-Åê¹ÆÆâÍƤΥ᡼¥ë¼«Æ°ÇÛ¿®Àè
¤òÀßÄê¤Î¾å¡¢¤´»ÈÍѤ¯¤À¤µ¤¤¡£
- $Id: article.inc.php,v 1.15 2003/07/03 05:35:14 arino Exp $
+ $Id: article.inc.php,v 1.16 2003/07/10 03:21:12 arino Exp $
*/
// Âê̾¤ÎÁÞÆþ¥Õ¥©¡¼¥Þ¥Ã¥È
define('SUBJECT_FORMAT','**$subject');
/////////////////////////////////////////////////
-// Âê̾¤¬Ì¤µÆþ¤Î¾ì¹ç¤Îɽµ
-define('NO_SUBJECT','̵Âê');
-/////////////////////////////////////////////////
// ÁÞÆþ¤¹¤ë°ÌÃÖ 1:Íó¤ÎÁ° 0:Íó¤Î¸å
define('ARTICLE_INS',0);
/////////////////////////////////////////////////
{
global $script,$post,$vars,$cols,$rows,$now;
global $_title_collided,$_msg_collided,$_title_updated;
- global $_mailto;
+ global $_mailto,$_no_subject,$_no_name;
if ($post['msg'] == '') {
- return;
- }
-
- $postdata = '';
- $postdata_old = get_source($post['refer']);
- $article_no = 0;
-
- if ($post['name'] != '') {
- $name = str_replace('$name',$post['name'],NAME_FORMAT);
+ return array('msg'=>'','body'=>'');
}
- $subject = str_replace('$subject',$post['subject'] == '' ? NO_SUBJECT : $post['subject'],SUBJECT_FORMAT);
-
+ $name = ($post['name'] == '') ? $_no_name : $post['name'];
+ $name = ($name == '') ? '' : str_replace('$name',$name,NAME_FORMAT);
+ $subject = ($post['subject'] == '') ? $_no_subject : $post['subject'];
+ $subject = ($subject == '') ? '' : str_replace('$subject',$subject,SUBJECT_FORMAT);
$article = "$subject\n>$name ($now)~\n~\n";
$msg = rtrim($post['msg']);
$article .= "\n\n#comment\n";
}
+ $postdata = '';
+ $postdata_old = get_source($post['refer']);
+ $article_no = 0;
+
foreach($postdata_old as $line) {
if (!ARTICLE_INS) {
$postdata .= $line;
/////////////////////////////////////////////////
// PukiWiki - Yet another WikiWikiWeb clone.
//
-// $Id: comment.inc.php,v 1.19 2003/05/28 04:45:10 arino Exp $
+// $Id: comment.inc.php,v 1.20 2003/07/10 03:21:12 arino Exp $
//
/////////////////////////////////////////////////
function plugin_comment_action()
{
global $script,$vars,$post,$now;
- global $_title_updated;
+ global $_title_updated,$_no_name;
global $_msg_comment_collided,$_title_comment_collided;
$post['msg'] = preg_replace("/\n/",'',$post['msg']);
$post['msg'] = $match[2];
}
- $_msg = str_replace('$msg', $post['msg'], COMMENT_MSG_FORMAT);
- $_name = ($post['name'] == '') ? '' : str_replace('$name',$post['name'],COMMENT_NAME_FORMAT);
- $_now = ($post['nodate'] == '1') ? '' : str_replace('$now', $now, COMMENT_NOW_FORMAT);
+ $_msg = str_replace('$msg',$post['msg'],COMMENT_MSG_FORMAT);
+ $_name = $post['name'] == '' ? $_no_name : $post['name'];
+ $_name = ($_name == '') ? '' : str_replace('$name',$_name,COMMENT_NAME_FORMAT);
+ $_now = ($post['nodate'] == '1') ? '' : str_replace('$now',$now,COMMENT_NOW_FORMAT);
$comment = str_replace("\x08MSG\x08", $_msg, COMMENT_FORMAT);
$comment = str_replace("\x08NAME\x08",$_name,$comment);
/////////////////////////////////////////////////
// PukiWiki - Yet another WikiWikiWeb clone.
//
-// $Id: pcomment.inc.php,v 1.22 2003/07/04 09:20:20 arino Exp $
+// $Id: pcomment.inc.php,v 1.23 2003/07/10 03:21:12 arino Exp $
//
/*
'below' =>FALSE,
'above' =>FALSE,
'reply' =>FALSE,
- '_args' =>array(),
- '_done' =>FALSE
+ '_args' =>array()
);
array_walk(func_get_args(), 'pcmt_check_arg', &$params);
function pcmt_insert()
{
global $script,$vars,$post,$now;
- global $_title_updated,$_pcmt_messages;
+ global $_title_updated,$_no_name,$_pcmt_messages;
$page = $post['page'];
if (!is_pagename($page))
);
//¥³¥á¥ó¥È¥Õ¥©¡¼¥Þ¥Ã¥È¤òŬÍÑ
- $msg = sprintf(PCMT_FORMAT_MSG, rtrim($post['msg']));
- $name = ($post['name'] == '') ? '' : sprintf(PCMT_FORMAT_NAME, $post['name']);
- $date = ($post['nodate'] == '1') ? '' : sprintf(PCMT_FORMAT_DATE, $now);
+ $msg = sprintf(PCMT_FORMAT_MSG,rtrim($post['msg']));
+ $name = $post['name'] == '' ? $_no_name : $post['name'];
+ $name = ($name == '') ? '' : sprintf(PCMT_FORMAT_NAME,$name);
+ $date = ($post['nodate'] == '1') ? '' : sprintf(PCMT_FORMAT_DATE,$now);
if ($date != '' or $name != '')
{
$msg = str_replace("\x08MSG\x08", $msg, PCMT_FORMAT);