onokazu
onoka****@users*****
2005年 6月 11日 (土) 12:04:58 JST
Index: xoops2jp/html/modules/newbb/delete.php diff -u xoops2jp/html/modules/newbb/delete.php:1.2.6.1 xoops2jp/html/modules/newbb/delete.php:1.2.6.1.2.1 --- xoops2jp/html/modules/newbb/delete.php:1.2.6.1 Thu Mar 31 00:49:04 2005 +++ xoops2jp/html/modules/newbb/delete.php Sat Jun 11 12:04:57 2005 @@ -1,5 +1,5 @@ <?php -// $Id: delete.php,v 1.2.6.1 2005/03/30 15:49:04 onokazu Exp $ +// $Id: delete.php,v 1.2.6.1.2.1 2005/06/11 03:04:57 onokazu Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -37,11 +37,11 @@ $topic_id = isset($_GET['topic_id']) ? intval($_GET['topic_id']) : 0; $order = isset($_GET['order']) ? intval($_GET['order']) : 0; $viewmode = (isset($_GET['viewmode']) && $_GET['viewmode'] != 'flat') ? 'thread' : 'flat'; -$forum = isset($_POST['forum']) ? intval($_POST['forum']) : 0; -$post_id = isset($_POST['post_id']) ? intval($_POST['post_id']) : 0; -$topic_id = isset($_POST['topic_id']) ? intval($_POST['topic_id']) : 0; -$order = isset($_POST['order']) ? intval($_POST['order']) : 0; -$viewmode = (isset($_POST['viewmode']) && $_POST['viewmode'] != 'flat') ? 'thread' : 'flat'; +$forum = isset($_POST['forum']) ? intval($_POST['forum']) : $forum; +$post_id = isset($_POST['post_id']) ? intval($_POST['post_id']) : $post_id; +$topic_id = isset($_POST['topic_id']) ? intval($_POST['topic_id']) : $topic_id; +$order = isset($_POST['order']) ? intval($_POST['order']) : $order; +$viewmode = (isset($_POST['viewmode']) && $_POST['viewmode'] != 'flat') ? 'thread' : $viewmode; if ( empty($forum) ) { redirect_header("index.php", 2, _MD_ERRORFORUM); exit();