onokazu
onoka****@users*****
2005年 9月 5日 (月) 05:46:12 JST
Index: xoops2jp/html/modules/xoopspartners/join.php diff -u xoops2jp/html/modules/xoopspartners/join.php:1.4 xoops2jp/html/modules/xoopspartners/join.php:1.5 --- xoops2jp/html/modules/xoopspartners/join.php:1.4 Wed Aug 3 21:40:02 2005 +++ xoops2jp/html/modules/xoopspartners/join.php Mon Sep 5 05:46:12 2005 @@ -1,5 +1,5 @@ <?php -// $Id: join.php,v 1.4 2005/08/03 12:40:02 onokazu Exp $ +// $Id: join.php,v 1.5 2005/09/04 20:46:12 onokazu Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -82,7 +82,7 @@ $xoopsMailer->setTemplate("join.tpl"); $xoopsMailer->assign("SITENAME", $xoopsConfig['sitename']); $xoopsMailer->assign("SITEURL", XOOPS_URL."/"); - $xoopsMailer->assign("IP", $HTTP_SERVER_VARS['REMOTE_ADDR']); + $xoopsMailer->assign("IP", $_SERVER['REMOTE_ADDR']); $xoopsMailer->assign("URL", $url); $xoopsMailer->assign("IMAGE", $image); $xoopsMailer->assign("TITLE", $title); Index: xoops2jp/html/modules/xoopspartners/vpartner.php diff -u xoops2jp/html/modules/xoopspartners/vpartner.php:1.2 xoops2jp/html/modules/xoopspartners/vpartner.php:1.3 --- xoops2jp/html/modules/xoopspartners/vpartner.php:1.2 Fri Mar 18 21:52:49 2005 +++ xoops2jp/html/modules/xoopspartners/vpartner.php Mon Sep 5 05:46:12 2005 @@ -1,5 +1,5 @@ <?php -// $Id: vpartner.php,v 1.2 2005/03/18 12:52:49 onokazu Exp $ +// $Id: vpartner.php,v 1.3 2005/09/04 20:46:12 onokazu Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -30,14 +30,14 @@ include "header.php"; $part = new PartnerSystem(); -$id = $HTTP_GET_VARS['id']; +$id = $_GET['id']; if ( empty($id) || !is_numeric($id) ) { redirect_header("index.php", 1, _XP_NOPART); exit(); } $partners = $part->load($id); if ( $part->getVar("url") ) { - if ( !isset($HTTP_COOKIE_VARS['partners'][$id]) ) { + if ( !isset($_COOKIE['partners'][$id]) ) { setcookie("partners[$id]", $id, $xoopsModuleConfig['cookietime']); $part->setHits($id); }