onokazu
onoka****@users*****
2005年 6月 28日 (火) 16:45:06 JST
Index: xoops2jp/html/modules/newbb/delete.php diff -u xoops2jp/html/modules/newbb/delete.php:1.3 xoops2jp/html/modules/newbb/delete.php:1.4 --- xoops2jp/html/modules/newbb/delete.php:1.3 Sat Jun 11 11:32:46 2005 +++ xoops2jp/html/modules/newbb/delete.php Tue Jun 28 16:45:06 2005 @@ -1,5 +1,5 @@ <?php -// $Id: delete.php,v 1.3 2005/06/11 02:32:46 onokazu Exp $ +// $Id: delete.php,v 1.4 2005/06/28 07:45:06 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();