-Åê¹ÆÆâÍƤΥ᡼¥ë¼«Æ°ÇÛ¿®Àè
¤òÀßÄê¤Î¾å¡¢¤´»ÈÍѤ¯¤À¤µ¤¤¡£
- $Id: article.inc.php,v 1.11 2003/04/08 09:51:11 arino Exp $
+ $Id: article.inc.php,v 1.12 2003/04/13 06:28:52 arino Exp $
*/
$postdata = '';
$postdata_old = get_source($post['refer']);
-
$article_no = 0;
if ($post['name'] != '') {
$article .= "\n\n#comment\n";
}
-
foreach($postdata_old as $line) {
if (!ARTICLE_INS) {
$postdata .= $line;
{
global $script,$vars,$digest;
global $_btn_article,$_btn_name,$_btn_subject;
- static $article_no = 0;
+ static $numbers = array();
+
+ if (!array_key_exists($vars['page'],$numbers))
+ {
+ $numbers[$vars['page']] = 0;
+ }
+ $article_no = $numbers[$vars['page']]++;
$s_page = htmlspecialchars($vars['page']);
$s_digest = htmlspecialchars($digest);
</div>
</form>
EOD;
-
- $article_no++;
return $string;
}
<?php
-// $Id: comment.inc.php,v 1.15 2003/04/08 10:33:46 arino Exp $
+// $Id: comment.inc.php,v 1.16 2003/04/13 06:28:52 arino Exp $
/////////////////////////////////////////////////
// ¥³¥á¥ó¥È¤Î̾Á°¥Æ¥¥¹¥È¥¨¥ê¥¢¤Î¥«¥é¥à¿ô
{
global $script,$vars,$digest;
global $_btn_comment,$_btn_name,$_msg_comment;
- static $comment_no_list_array = array();
+ static $numbers = array();
- $comment_no = array_key_exists($vars['page'],$comment_no_list_array) ?
- $comment_no_list_array[$vars['page']] : 0;
+ if (!array_key_exists($vars['page'],$numbers))
+ {
+ $numbers[$vars['page']] = 0;
+ }
+ $comment_no = $numbers[$vars['page']]++;
$options = func_num_args() ? func_get_args() : array();
</form>
EOD;
- $comment_no_list_array[$vars['page']] = ++$comment_no;
-
return $string;
}
?>
<?php
-// $Id: insert.inc.php,v 1.7 2003/01/27 05:38:46 panda Exp $
+// $Id: insert.inc.php,v 1.8 2003/04/13 06:28:52 arino Exp $
/////////////////////////////////////////////////
// ¥Æ¥¥¹¥È¥¨¥ê¥¢¤Î¥«¥é¥à¿ô
{
global $script,$vars,$digest;
global $_btn_insert;
- static $insert_no = 0;
+ static $numbers = array();
+
+ if (!array_key_exists($vars['page'],$numbers))
+ {
+ $numbers[$vars['page']] = 0;
+ }
+ $insert_no = $numbers[$vars['page']]++;
$s_page = htmlspecialchars($vars['page']);
$s_digest = htmlspecialchars($digest);
</form>
EOD;
- $insert_no++;
-
return $string;
}
?>
<?php
-// $Id: memo.inc.php,v 1.6 2003/01/27 05:38:46 panda Exp $
+// $Id: memo.inc.php,v 1.7 2003/04/13 06:28:52 arino Exp $
/////////////////////////////////////////////////
// ¥Æ¥¥¹¥È¥¨¥ê¥¢¤Î¥«¥é¥à¿ô
{
global $script,$vars,$digest;
global $_btn_memo_update;
- static $memo_no = 0;
+ static $numbers = array();
+
+ if (!array_key_exists($vars['page'],$numbers))
+ {
+ $numbers[$vars['page']] = 0;
+ }
+ $article_no = $numbers[$vars['page']]++;
$data = '';
if (func_num_args()) {
</form>
EOD;
- $memo_no++;
-
return $string;
}
?>
/////////////////////////////////////////////////
// PukiWiki - Yet another WikiWikiWeb clone.
//
-// $Id: paint.inc.php,v 1.5 2003/03/03 07:07:28 panda Exp $
+// $Id: paint.inc.php,v 1.6 2003/04/13 06:28:52 arino Exp $
//
/*
$HTTP_POST_FILES['attach_file']['name'] = $attachname;
$retval = do_plugin_action('attach');
- $retval = insert_ref($HTTP_POST_FILES['attach_file']['name']);
+ $retval = paint_insert_ref($HTTP_POST_FILES['attach_file']['name']);
}
else
{
{
global $script,$vars,$digest;
global $_paint_messages;
- static $paint_no = 0;
+ static $numbers = array();
+
+ if (!array_key_exists($vars['page'],$numbers))
+ {
+ $numbers[$vars['page']] = 0;
+ }
+ $paint_no = $numbers[$vars['page']]++;
//Ìá¤êÃÍ
$ret = '';
- $paint_no++;
-
//ʸ»úÎó¤ò¼èÆÀ
$width = $height = 0;
$args = func_get_args();
EOD;
return $ret;
}
-function insert_ref($filename)
+function paint_insert_ref($filename)
{
global $script,$vars,$now,$do_backup;
global $_paint_messages;
{
$postdata .= $line;
}
- if (preg_match('/^#paint/',$line) and (++$paint_no == $vars['paint_no']))
+ if (preg_match('/^#paint/',$line))
{
+ if ($paint_no == $vars['paint_no'])
+ {
$postdata .= $msg;
+ }
+ $paint_no++;
}
if (PAINT_INSERT_INS)
{
<?php
-// $Id: vote.inc.php,v 1.11 2003/01/27 05:38:47 panda Exp $
+// $Id: vote.inc.php,v 1.12 2003/04/13 06:28:52 arino Exp $
function plugin_vote_init()
{
continue;
}
- if (++$vote_no != $post['vote_no']) {
+ if ($vote_no++ != $post['vote_no']) {
$postdata .= $line;
continue;
}
{
global $script,$vars,$digest;
global $_vote_plugin_choice, $_vote_plugin_votes;
- static $vote_no = 0;
+ static $numbers = array();
- $vote_no++;
+ if (!array_key_exists($vars['page'],$numbers))
+ {
+ $numbers[$vars['page']] = 0;
+ }
+ $vote_no = $numbers[$vars['page']]++;
if (!func_num_args()) {
return '';