[xoops-cvslog 2120] CVS update: xoops2jp/html/modules/system/blocks

Back to archive index

Minahito minah****@users*****
2006年 2月 3日 (金) 01:00:33 JST


Index: xoops2jp/html/modules/system/blocks/system_blocks.php
diff -u xoops2jp/html/modules/system/blocks/system_blocks.php:1.2.8.5 xoops2jp/html/modules/system/blocks/system_blocks.php:1.2.8.6
--- xoops2jp/html/modules/system/blocks/system_blocks.php:1.2.8.5	Mon Jan  2 21:40:55 2006
+++ xoops2jp/html/modules/system/blocks/system_blocks.php	Fri Feb  3 01:00:32 2006
@@ -1,5 +1,5 @@
 <?php
-// $Id: system_blocks.php,v 1.2.8.5 2006/01/02 12:40:55 minahito Exp $
+// $Id: system_blocks.php,v 1.2.8.6 2006/02/02 16:00:32 minahito Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -46,9 +46,14 @@
         $uname = '';
     }
     if (is_object($xoopsModule)) {
-        $online_handler->write($uid, $uname, time(), $xoopsModule->getVar('mid'), $_SERVER['REMOTE_ADDR']);
+        $online_handler->write($uid, $uname, time(), $xoopsModule->get('mid'), $_SERVER['REMOTE_ADDR']);
     } else {
-        $online_handler->write($uid, $uname, time(), 0, $_SERVER['REMOTE_ADDR']);
+		//
+		// TODO We have to find the best method.
+		//
+		if (strpos(xoops_getenv('REQUEST_URI'),'misc.php') === false) {
+			$online_handler->write($uid, $uname, time(), 0, $_SERVER['REMOTE_ADDR']);
+		}
     }
     $onlines =& $online_handler->getAll();
     if (false != $onlines) {


xoops-cvslog メーリングリストの案内
Back to archive index