onokazu
onoka****@users*****
2005年 9月 5日 (月) 05:46:11 JST
Index: xoops2jp/html/modules/news/archive.php diff -u xoops2jp/html/modules/news/archive.php:1.2 xoops2jp/html/modules/news/archive.php:1.3 --- xoops2jp/html/modules/news/archive.php:1.2 Fri Mar 18 21:52:25 2005 +++ xoops2jp/html/modules/news/archive.php Mon Sep 5 05:46:11 2005 @@ -1,5 +1,5 @@ <?php -// $Id: archive.php,v 1.2 2005/03/18 12:52:25 onokazu Exp $ +// $Id: archive.php,v 1.3 2005/09/04 20:46:11 onokazu Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -40,8 +40,8 @@ $months_arr = array(1 => _CAL_JANUARY, 2 => _CAL_FEBRUARY, 3 => _CAL_MARCH, 4 => _CAL_APRIL, 5 => _CAL_MAY, 6 => _CAL_JUNE, 7 => _CAL_JULY, 8 => _CAL_AUGUST, 9 => _CAL_SEPTEMBER, 10 => _CAL_OCTOBER, 11 => _CAL_NOVEMBER, 12 => _CAL_DECEMBER); -$fromyear = (isset($HTTP_GET_VARS['year'])) ? intval ($HTTP_GET_VARS['year']): 0; -$frommonth = (isset($HTTP_GET_VARS['month'])) ? intval($HTTP_GET_VARS['month']) : 0; +$fromyear = (isset($_GET['year'])) ? intval ($_GET['year']): 0; +$frommonth = (isset($_GET['month'])) ? intval($_GET['month']) : 0; $useroffset = ""; if($xoopsUser){ Index: xoops2jp/html/modules/news/comment_new.php diff -u xoops2jp/html/modules/news/comment_new.php:1.2 xoops2jp/html/modules/news/comment_new.php:1.3 --- xoops2jp/html/modules/news/comment_new.php:1.2 Fri Mar 18 21:52:25 2005 +++ xoops2jp/html/modules/news/comment_new.php Mon Sep 5 05:46:11 2005 @@ -1,5 +1,5 @@ <?php -// $Id: comment_new.php,v 1.2 2005/03/18 12:52:25 onokazu Exp $ +// $Id: comment_new.php,v 1.3 2005/09/04 20:46:11 onokazu Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -26,7 +26,7 @@ // ------------------------------------------------------------------------ // include '../../mainfile.php'; include_once XOOPS_ROOT_PATH.'/modules/news/class/class.newsstory.php'; -$com_itemid = isset($HTTP_GET_VARS['com_itemid']) ? intval($HTTP_GET_VARS['com_itemid']) : 0; +$com_itemid = isset($_GET['com_itemid']) ? intval($_GET['com_itemid']) : 0; if ($com_itemid > 0) { $article = new NewsStory($com_itemid); $com_replytext = _POSTEDBY.' <b>'.$article->uname().'</b> '._DATE.' <b>'.formatTimestamp($article->published()).'</b><br /><br />'.$article->hometext(); Index: xoops2jp/html/modules/news/index.php diff -u xoops2jp/html/modules/news/index.php:1.2 xoops2jp/html/modules/news/index.php:1.3 --- xoops2jp/html/modules/news/index.php:1.2 Fri Mar 18 21:52:25 2005 +++ xoops2jp/html/modules/news/index.php Mon Sep 5 05:46:11 2005 @@ -1,5 +1,5 @@ <?php -// $Id: index.php,v 1.2 2005/03/18 12:52:25 onokazu Exp $ +// $Id: index.php,v 1.3 2005/09/04 20:46:11 onokazu Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -29,13 +29,13 @@ include XOOPS_ROOT_PATH.'/header.php'; include_once XOOPS_ROOT_PATH.'/modules/news/class/class.newsstory.php'; -if (isset($HTTP_GET_VARS['storytopic'])) { - $xoopsOption['storytopic'] = intval($HTTP_GET_VARS['storytopic']); +if (isset($_GET['storytopic'])) { + $xoopsOption['storytopic'] = intval($_GET['storytopic']); } else { $xoopsOption['storytopic'] = 0; } -if ( isset($HTTP_GET_VARS['storynum']) ) { - $xoopsOption['storynum'] = intval($HTTP_GET_VARS['storynum']); +if ( isset($_GET['storynum']) ) { + $xoopsOption['storynum'] = intval($_GET['storynum']); if ($xoopsOption['storynum'] > 30) { $xoopsOption['storynum'] = $xoopsModuleConfig['storyhome']; } @@ -43,8 +43,8 @@ $xoopsOption['storynum'] = $xoopsModuleConfig['storyhome']; } -if ( isset($HTTP_GET_VARS['start']) ) { - $start = intval($HTTP_GET_VARS['start']); +if ( isset($_GET['start']) ) { + $start = intval($_GET['start']); } else { $start = 0; } Index: xoops2jp/html/modules/news/print.php diff -u xoops2jp/html/modules/news/print.php:1.4 xoops2jp/html/modules/news/print.php:1.5 --- xoops2jp/html/modules/news/print.php:1.4 Wed Aug 3 21:39:14 2005 +++ xoops2jp/html/modules/news/print.php Mon Sep 5 05:46:11 2005 @@ -1,5 +1,5 @@ <?php -// $Id: print.php,v 1.4 2005/08/03 12:39:14 onokazu Exp $ +// $Id: print.php,v 1.5 2005/09/04 20:46:11 onokazu Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -26,7 +26,7 @@ // ------------------------------------------------------------------------ // include '../../mainfile.php'; -$storyid = isset($HTTP_GET_VARS['storyid']) ? intval($HTTP_GET_VARS['storyid']) : 0; +$storyid = isset($_GET['storyid']) ? intval($_GET['storyid']) : 0; if ( empty($storyid) ) { redirect_header("index.php"); }