onokazu
onoka****@users*****
2005年 8月 3日 (水) 21:39:13 JST
Index: xoops2jp/html/modules/mylinks/index.php diff -u xoops2jp/html/modules/mylinks/index.php:1.3 xoops2jp/html/modules/mylinks/index.php:1.4 --- xoops2jp/html/modules/mylinks/index.php:1.3 Sat Jun 11 11:32:44 2005 +++ xoops2jp/html/modules/mylinks/index.php Wed Aug 3 21:39:13 2005 @@ -1,5 +1,5 @@ <?php -// $Id: index.php,v 1.3 2005/06/11 02:32:44 onokazu Exp $ +// $Id: index.php,v 1.4 2005/08/03 12:39:13 onokazu Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // Index: xoops2jp/html/modules/mylinks/myheader.php diff -u xoops2jp/html/modules/mylinks/myheader.php:1.3 xoops2jp/html/modules/mylinks/myheader.php:1.4 --- xoops2jp/html/modules/mylinks/myheader.php:1.3 Sat Jun 11 11:32:44 2005 +++ xoops2jp/html/modules/mylinks/myheader.php Wed Aug 3 21:39:13 2005 @@ -1,5 +1,5 @@ <?php -// $Id: myheader.php,v 1.3 2005/06/11 02:32:44 onokazu Exp $ +// $Id: myheader.php,v 1.4 2005/08/03 12:39:13 onokazu Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // Index: xoops2jp/html/modules/mylinks/ratelink.php diff -u xoops2jp/html/modules/mylinks/ratelink.php:1.3 xoops2jp/html/modules/mylinks/ratelink.php:1.4 --- xoops2jp/html/modules/mylinks/ratelink.php:1.3 Sat Jun 11 11:32:44 2005 +++ xoops2jp/html/modules/mylinks/ratelink.php Wed Aug 3 21:39:13 2005 @@ -1,5 +1,5 @@ <?php -// $Id: ratelink.php,v 1.3 2005/06/11 02:32:44 onokazu Exp $ +// $Id: ratelink.php,v 1.4 2005/08/03 12:39:13 onokazu Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // Index: xoops2jp/html/modules/mylinks/singlelink.php diff -u xoops2jp/html/modules/mylinks/singlelink.php:1.3 xoops2jp/html/modules/mylinks/singlelink.php:1.4 --- xoops2jp/html/modules/mylinks/singlelink.php:1.3 Sat Jun 11 11:32:44 2005 +++ xoops2jp/html/modules/mylinks/singlelink.php Wed Aug 3 21:39:13 2005 @@ -1,5 +1,5 @@ <?php -// $Id: singlelink.php,v 1.3 2005/06/11 02:32:44 onokazu Exp $ +// $Id: singlelink.php,v 1.4 2005/08/03 12:39:13 onokazu Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // Index: xoops2jp/html/modules/mylinks/submit.php diff -u xoops2jp/html/modules/mylinks/submit.php:1.2 xoops2jp/html/modules/mylinks/submit.php:1.3 --- xoops2jp/html/modules/mylinks/submit.php:1.2 Fri Mar 18 21:52:24 2005 +++ xoops2jp/html/modules/mylinks/submit.php Wed Aug 3 21:39:13 2005 @@ -1,5 +1,5 @@ <?php -// $Id: submit.php,v 1.2 2005/03/18 12:52:24 onokazu Exp $ +// $Id: submit.php,v 1.3 2005/08/03 12:39:13 onokazu Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -100,7 +100,7 @@ $notification_handler =& xoops_gethandler('notification'); $tags = array(); $tags['LINK_NAME'] = $title; - $tags['LINK_URL'] = XOOPS_URL . '/modules/'. $xoopsModule->getVar('dirname') . '/singlelink.php?cid=' . $cid . '&lid=' . $newid; + $tags['LINK_URL'] = XOOPS_URL . '/modules/'. $xoopsModule->getVar('dirname') . '/singlelink.php?cid=' . $cid . '&lid=' . $newid; $sql = "SELECT title FROM " . $xoopsDB->prefix("mylinks_cat") . " WHERE cid=" . $cid; $result = $xoopsDB->query($sql); $row = $xoopsDB->fetchArray($result); Index: xoops2jp/html/modules/mylinks/viewcat.php diff -u xoops2jp/html/modules/mylinks/viewcat.php:1.3 xoops2jp/html/modules/mylinks/viewcat.php:1.4 --- xoops2jp/html/modules/mylinks/viewcat.php:1.3 Sat Jun 11 11:32:44 2005 +++ xoops2jp/html/modules/mylinks/viewcat.php Wed Aug 3 21:39:13 2005 @@ -1,5 +1,5 @@ <?php -// $Id: viewcat.php,v 1.3 2005/06/11 02:32:44 onokazu Exp $ +// $Id: viewcat.php,v 1.4 2005/08/03 12:39:13 onokazu Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // Index: xoops2jp/html/modules/mylinks/visit.php diff -u xoops2jp/html/modules/mylinks/visit.php:1.3 xoops2jp/html/modules/mylinks/visit.php:1.4 --- xoops2jp/html/modules/mylinks/visit.php:1.3 Sat Jun 11 11:32:44 2005 +++ xoops2jp/html/modules/mylinks/visit.php Wed Aug 3 21:39:13 2005 @@ -1,5 +1,5 @@ <?php -// $Id: visit.php,v 1.3 2005/06/11 02:32:44 onokazu Exp $ +// $Id: visit.php,v 1.4 2005/08/03 12:39:13 onokazu Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -25,15 +25,21 @@ // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // ------------------------------------------------------------------------ // include '../../mainfile.php'; -$lid = intval($HTTP_GET_VARS['lid']); -$cid = intval($HTTP_GET_VARS['cid']); +$lid = intval($_GET['lid']); +if (empty($lid)) { + header('Location: '.XOOPS_URL.'/'); + exit(); +} +$cid = intval($_GET['cid']); $sql = sprintf("UPDATE %s SET hits = hits+1 WHERE lid = %u AND status > 0", $xoopsDB->prefix("mylinks_links"), $lid); $xoopsDB->queryF($sql); $result = $xoopsDB->query("select url from ".$xoopsDB->prefix("mylinks_links")." where lid=$lid and status>0"); list($url) = $xoopsDB->fetchRow($result); +if (empty($url)) { + header('Location: '.XOOPS_URL.'/'); + exit(); +} $url = htmlspecialchars(preg_replace( '/javascript:/si' , 'java script:', $url ), ENT_QUOTES); - - if ( $xoopsModuleConfig['frame'] != "" ) { header('Content-Type:text/html; charset='._CHARSET); header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');