Changeset 65 for branches/user_agent
- Timestamp:
- 03/03/09 18:48:44 (3 years ago)
- Location:
- branches/user_agent
- Files:
-
- 2 modified
-
functions.php (modified) (1 diff)
-
manifest.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/user_agent/functions.php
r63 r65 36 36 function get_useragent_names($useragent) 37 37 { 38 if (!$useragent) 39 return; 38 if ($useragent == '') 39 { 40 $result = array( 41 'system' => 'Unknown', 42 'browser_img' => 'Unknown', 43 'browser_version' => 'Unknown', 44 'browser_name' => 'Unknown' 45 ); 46 return $result; 47 } 40 48 41 49 $browser_img = ''; -
branches/user_agent/manifest.xml
r64 r65 17 17 <hooks> 18 18 <hook id="vt_row_pre_display"><![CDATA[ 19 if (isset($cur_post['user_agent'])) 20 $forum_page['author_info']['user_agent'] = '<li><span>'.get_useragent_icons($cur_post['user_agent']).'</span></li>'; 19 $forum_page['author_info']['user_agent'] = '<li><span>'.get_useragent_icons($cur_post['user_agent']).'</span></li>'; 21 20 ]]></hook> 22 21 <hook id="vt_start"><![CDATA[