NobuNobu
nobun****@users*****
2005年 6月 19日 (日) 00:51:13 JST
Index: xoops2jp/html/modules/newbb/delete.php diff -u xoops2jp/html/modules/newbb/delete.php:1.2.6.1.2.1 xoops2jp/html/modules/newbb/delete.php:1.2.6.1.2.2 --- xoops2jp/html/modules/newbb/delete.php:1.2.6.1.2.1 Sat Jun 11 12:04:57 2005 +++ xoops2jp/html/modules/newbb/delete.php Sun Jun 19 00:51:13 2005 @@ -1,5 +1,5 @@ <?php -// $Id: delete.php,v 1.2.6.1.2.1 2005/06/11 03:04:57 onokazu Exp $ +// $Id: delete.php,v 1.2.6.1.2.2 2005/06/18 15:51:13 nobunobu Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -53,12 +53,12 @@ if ( $xoopsUser ) { if ( !$xoopsUser->isAdmin($xoopsModule->mid()) ) { if ( !is_moderator($forum, $xoopsUser->uid()) ) { - redirect_header("viewtopic.php?topic_id=$topic_id&order=$order&viewmode=$viewmode&pid=$pid&forum=$forum", 2, _MD_DELNOTALLOWED); + redirect_header("viewtopic.php?topic_id=$topic_id&order=$order&viewmode=$viewmode&pid=$pid&forum=$forum", 2, _MD_DELNOTALLOWED); exit(); } } } else { - redirect_header("viewtopic.php?topic_id=$topic_id&order=$order&viewmode=$viewmode&pid=$pid&forum=$forum", 2, _MD_DELNOTALLOWED); + redirect_header("viewtopic.php?topic_id=$topic_id&order=$order&viewmode=$viewmode&pid=$pid&forum=$forum", 2, _MD_DELNOTALLOWED); exit(); } @@ -75,7 +75,7 @@ redirect_header("viewforum.php?forum=$forum", 2, _MD_POSTSDELETED); exit(); } else { - redirect_header("viewtopic.php?topic_id=$topic_id&order=$order&viewmode=$viewmode&pid=$pid&forum=$forum", 2, _MD_POSTSDELETED); + redirect_header("viewtopic.php?topic_id=$topic_id&order=$order&viewmode=$viewmode&pid=$pid&forum=$forum", 2, _MD_POSTSDELETED); exit(); } } else { Index: xoops2jp/html/modules/newbb/edit.php diff -u xoops2jp/html/modules/newbb/edit.php:1.2 xoops2jp/html/modules/newbb/edit.php:1.2.10.1 --- xoops2jp/html/modules/newbb/edit.php:1.2 Fri Mar 18 21:52:25 2005 +++ xoops2jp/html/modules/newbb/edit.php Sun Jun 19 00:51:13 2005 @@ -1,5 +1,5 @@ <?php -// $Id: edit.php,v 1.2 2005/03/18 12:52:25 onokazu Exp $ +// $Id: edit.php,v 1.2.10.1 2005/06/18 15:51:13 nobunobu Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -61,7 +61,7 @@ $accesserror = 1; } if ( $accesserror == 1 ) { - redirect_header("viewtopic.php?topic_id=$topic_id&post_id=$post_id&order=$order&viewmode=$viewmode&pid=$pid&forum=$forum",2,_MD_NORIGHTTOPOST); + redirect_header("viewtopic.php?topic_id=$topic_id&post_id=$post_id&order=$order&viewmode=$viewmode&pid=$pid&forum=$forum",2,_MD_NORIGHTTOPOST); exit(); } } else { @@ -80,7 +80,7 @@ $accesserror = 1; } if ( $accesserror == 1 ) { - redirect_header("viewtopic.php?topic_id=$topic_id&post_id=$post_id&order=$order&viewmode=$viewmode&pid=$pid&forum=$forum",2,_MD_NORIGHTTOPOST); + redirect_header("viewtopic.php?topic_id=$topic_id&post_id=$post_id&order=$order&viewmode=$viewmode&pid=$pid&forum=$forum",2,_MD_NORIGHTTOPOST); exit(); } } @@ -98,7 +98,7 @@ } } if ( $editerror ) { - redirect_header("viewtopic.php?topic_id=$topic_id&post_id=$post_id&order=$order&viewmode=$viewmode&pid=$pid&forum=$forum",2,_MD_NORIGHTTOPOST); + redirect_header("viewtopic.php?topic_id=$topic_id&post_id=$post_id&order=$order&viewmode=$viewmode&pid=$pid&forum=$forum",2,_MD_NORIGHTTOPOST); exit(); } $nohtml = $forumpost->nohtml(); Index: xoops2jp/html/modules/newbb/newtopic.php diff -u xoops2jp/html/modules/newbb/newtopic.php:1.2 xoops2jp/html/modules/newbb/newtopic.php:1.2.10.1 --- xoops2jp/html/modules/newbb/newtopic.php:1.2 Fri Mar 18 21:52:25 2005 +++ xoops2jp/html/modules/newbb/newtopic.php Sun Jun 19 00:51:13 2005 @@ -1,5 +1,5 @@ <?php -// $Id: newtopic.php,v 1.2 2005/03/18 12:52:25 onokazu Exp $ +// $Id: newtopic.php,v 1.2.10.1 2005/06/18 15:51:13 nobunobu Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -59,7 +59,7 @@ $accesserror = 1; } if ( $accesserror == 1 ) { - redirect_header("viewforum.php?order=$order&viewmode=$viewmode&forum=$forum",2,_MD_NORIGHTTOPOST); + redirect_header("viewforum.php?order=$order&viewmode=$viewmode&forum=$forum",2,_MD_NORIGHTTOPOST); exit(); } // Ok, looks like we're good. @@ -79,7 +79,7 @@ $accesserror = 1; } if ( $accesserror == 1 ) { - redirect_header("viewforum.php?order=$order&viewmode=$viewmode&forum=$forum",2,_MD_NORIGHTTOPOST); + redirect_header("viewforum.php?order=$order&viewmode=$viewmode&forum=$forum",2,_MD_NORIGHTTOPOST); exit(); } } Index: xoops2jp/html/modules/newbb/post.php diff -u xoops2jp/html/modules/newbb/post.php:1.2.6.6 xoops2jp/html/modules/newbb/post.php:1.2.6.6.2.1 --- xoops2jp/html/modules/newbb/post.php:1.2.6.6 Wed May 18 04:41:56 2005 +++ xoops2jp/html/modules/newbb/post.php Sun Jun 19 00:51:13 2005 @@ -1,5 +1,5 @@ <?php -// $Id: post.php,v 1.2.6.6 2005/05/17 19:41:56 onokazu Exp $ +// $Id: post.php,v 1.2.6.6.2.1 2005/06/18 15:51:13 nobunobu Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -66,7 +66,7 @@ } if ( $accesserror == 1 ) { - redirect_header("viewforum.php?order=".$order."&viewmode=".$viewmode."&forum=".$forum,2,_MD_NORIGHTTOPOST); + redirect_header("viewforum.php?order=".$order."&viewmode=".$viewmode."&forum=".$forum,2,_MD_NORIGHTTOPOST); exit(); } } else { @@ -85,7 +85,7 @@ $accesserror = 1; } if ( $accesserror == 1 ) { - redirect_header("viewforum.php?order=".$order."&viewmode=".$viewmode."&forum=".$forum,2,_MD_NORIGHTTOPOST); + redirect_header("viewforum.php?order=".$order."&viewmode=".$viewmode."&forum=".$forum,2,_MD_NORIGHTTOPOST); exit(); } } @@ -122,7 +122,7 @@ $editerror = 1; } if ( $editerror == 1 ) { - redirect_header("viewtopic.php?topic_id=".$topic_id."&post_id=".$post_id."&order=".$order."&viewmode=".$viewmode."&pid=".$pid."&forum=".$forum,2,_MD_EDITNOTALLOWED); + redirect_header("viewtopic.php?topic_id=".$topic_id."&post_id=".$post_id."&order=".$order."&viewmode=".$viewmode."&pid=".$pid."&forum=".$forum,2,_MD_EDITNOTALLOWED); exit(); } $editor = $xoopsUser->getVar("uname"); @@ -138,7 +138,7 @@ $uid = 0; } else { if ( !empty($topic_id) ) { - redirect_header("viewtopic.php?topic_id=".$topic_id."&order=".$order."&viewmode=".$viewmode."&pid=".$pid."&forum=".$forum,2,_MD_ANONNOTALLOWED); + redirect_header("viewtopic.php?topic_id=".$topic_id."&order=".$order."&viewmode=".$viewmode."&pid=".$pid."&forum=".$forum,2,_MD_ANONNOTALLOWED); } else { redirect_header("viewforum.php?forum=".$forum,2,_MD_ANONNOTALLOWED); } @@ -178,7 +178,7 @@ // Define tags for notification message $tags = array(); $tags['THREAD_NAME'] = $HTTP_POST_VARS['subject']; - $tags['THREAD_URL'] = XOOPS_URL . '/modules/' . $xoopsModule->dirname() . '/viewtopic.php?forum=' . $forum . '&post_id='.$postid.'&topic_id=' . $forumpost->topic(); + $tags['THREAD_URL'] = XOOPS_URL . '/modules/' . $xoopsModule->dirname() . '/viewtopic.php?forum=' . $forum . '&post_id='.$postid.'&topic_id=' . $forumpost->topic(); $tags['POST_URL'] = $tags['THREAD_URL'] . '#forumpost' . $postid; include_once 'include/notification.inc.php'; $forum_info = newbb_notify_iteminfo ('forum', $forum); Index: xoops2jp/html/modules/newbb/reply.php diff -u xoops2jp/html/modules/newbb/reply.php:1.2 xoops2jp/html/modules/newbb/reply.php:1.2.10.1 --- xoops2jp/html/modules/newbb/reply.php:1.2 Fri Mar 18 21:52:25 2005 +++ xoops2jp/html/modules/newbb/reply.php Sun Jun 19 00:51:13 2005 @@ -1,5 +1,5 @@ <?php -// $Id: reply.php,v 1.2 2005/03/18 12:52:25 onokazu Exp $ +// $Id: reply.php,v 1.2.10.1 2005/06/18 15:51:13 nobunobu Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -40,11 +40,11 @@ redirect_header("viewforum.php?forum=$forum", 2, _MD_ERRORTOPIC); exit(); } elseif ( empty($post_id) ) { - redirect_header("viewtopic.php?topic_id=$topic_id&order=$order&viewmode=$viewmode&pid=$pid&forum=$forum", 2, _MD_ERRORPOST); + redirect_header("viewtopic.php?topic_id=$topic_id&order=$order&viewmode=$viewmode&pid=$pid&forum=$forum", 2, _MD_ERRORPOST); exit(); } else { if ( is_locked($topic_id) ) { - redirect_header("viewtopic.php?topic_id=$topic_id&order=$order&viewmode=$viewmode&pid=$pid&forum=$forum", 2, _MD_TOPICLOCKED); + redirect_header("viewtopic.php?topic_id=$topic_id&order=$order&viewmode=$viewmode&pid=$pid&forum=$forum", 2, _MD_TOPICLOCKED); exit(); } $sql = "SELECT forum_type, forum_name, forum_access, allow_html, allow_sig, posts_per_page, hot_threshold, topics_per_page FROM ".$xoopsDB->prefix("bb_forums")." WHERE forum_id = $forum"; @@ -68,7 +68,7 @@ $accesserror = 1; } if ( $accesserror == 1 ) { - redirect_header("viewtopic.php?topic_id=$topic_id&post_id=$post_id&order=$order&viewmode=$viewmode&pid=$pid&forum=$forum",2,_MD_NORIGHTTOPOST); + redirect_header("viewtopic.php?topic_id=$topic_id&post_id=$post_id&order=$order&viewmode=$viewmode&pid=$pid&forum=$forum",2,_MD_NORIGHTTOPOST); exit(); } // Ok, looks like we're good. @@ -88,7 +88,7 @@ $accesserror = 1; } if ( $accesserror == 1 ) { - redirect_header("viewtopic.php?topic_id=$topic_id&post_id=$post_id&order=$order&viewmode=$viewmode&pid=$pid&forum=$forum",2,_MD_NORIGHTTOPOST); + redirect_header("viewtopic.php?topic_id=$topic_id&post_id=$post_id&order=$order&viewmode=$viewmode&pid=$pid&forum=$forum",2,_MD_NORIGHTTOPOST); exit(); } } Index: xoops2jp/html/modules/newbb/viewforum.php diff -u xoops2jp/html/modules/newbb/viewforum.php:1.2 xoops2jp/html/modules/newbb/viewforum.php:1.2.10.1 --- xoops2jp/html/modules/newbb/viewforum.php:1.2 Fri Mar 18 21:52:25 2005 +++ xoops2jp/html/modules/newbb/viewforum.php Sun Jun 19 00:51:13 2005 @@ -1,5 +1,5 @@ <?php -// $Id: viewforum.php,v 1.2 2005/03/18 12:52:25 onokazu Exp $ +// $Id: viewforum.php,v 1.2.10.1 2005/06/18 15:51:13 nobunobu Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -228,7 +228,7 @@ if ( $i > 3 && $i < $totalpages ) { $pagination .= "..."; } else { - $addlink = '&start='.(($i - 1) * $forumdata['posts_per_page']); + $addlink = '&start='.(($i - 1) * $forumdata['posts_per_page']); $pagination .= '[<a href="'.$topiclink.$addlink.'">'.$i.'</a>]'; } }