OSDN Git Service

ブラウザ解析機能更新。
[magic3/magic3.git] / widgets / admin_main / include / container / admin_mainLoginhistoryWidgetContainer.php
index 4373668..a35b641 100644 (file)
@@ -269,6 +269,7 @@ class admin_mainLoginhistoryWidgetContainer extends admin_mainUserBaseWidgetCont
        function logListLoop($index, $fetchedRow, $param)
        {
                $serial = $fetchedRow['ol_serial'];
+               $agent = $fetchedRow['al_user_agent'];
                                
                $msgChecked = '';
                if ($fetchedRow['ol_checked']){
@@ -297,7 +298,7 @@ class admin_mainLoginhistoryWidgetContainer extends admin_mainUserBaseWidgetCont
                }
                
                // ブラウザ、プラットフォームの情報を取得
-               $browserCode = $this->gInstance->getAnalyzeManager()->getBrowserType($fetchedRow['al_user_agent'], $version);
+/*             $browserCode = $this->gInstance->getAnalyzeManager()->getBrowserType($fetchedRow['al_user_agent'], $version);
                $browserImg = '';
                if (!empty($browserCode)){
                        $iconFile = $this->browserIconFile[$browserCode];
@@ -306,6 +307,16 @@ class admin_mainLoginhistoryWidgetContainer extends admin_mainUserBaseWidgetCont
                                $iconUrl = $this->gEnv->getRootUrl() . self::BROWSER_ICON_DIR . $iconFile;
                                $browserImg = '<img src="' . $this->getUrl($iconUrl) . '" border="0" alt="' . $iconTitle . '" title="' . $iconTitle . '" />';
                        }
+               }*/
+               $browserTypeInfo = $this->gInstance->getAnalyzeManager()->getBrowserType($agent);
+               $browserImg = '';
+               if (!empty($browserTypeInfo)){
+                       $iconFile = $browserTypeInfo['icon'];
+                       if (!empty($iconFile)){
+                               $iconTitle = $browserTypeInfo['name'];
+                               $iconUrl = $this->gEnv->getRootUrl() . self::BROWSER_ICON_DIR . $iconFile;
+                               $browserImg = '<img src="' . $this->getUrl($iconUrl) . '" rel="m3help" alt="' . $iconTitle . '" title="' . $iconTitle . '" />';
+                       }
                }
                
                // メッセージのリンク先