Version 3.4.5

This commit is contained in:
Neo committed 2025-12-19 00:38:12 -08:00
1 parent fb6b5baabc
commit e4478369d8
1360 files changed
+228921 -179445

No files matched your search

@@ -3,19 +3,19 @@
/**
* <pre>
* Invision Power Services
* IP.Board v3.3.4
* IP.Board v3.4.5
* Skin Functions
* Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
* Last Updated: $Date: 2012-12-13 08:29:08 -0500 (Thu, 13 Dec 2012) $
* </pre>
*
* Owner: Matt
* @author $Author: bfarber $
* @author $Author: AndyMillne $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.invisionpower.com/company/standards.php#license
* @package IP.Board
* @link http://www.invisionpower.com
* @since 9th March 2005 11:03
* @version $Revision: 10914 $
* @version $Revision: 11713 $
*
*/
@@ -239,7 +239,7 @@ class userAgentFunctions
//-----------------------------------------
// Add new 'uns
//-----------------------------------------
foreach( $ENGINES as $key => $data )
{
foreach( $data['b_regex'] as $k => $d )
@@ -278,6 +278,7 @@ class userAgentFunctions
$this->DB->insert( 'core_uagents', array( 'uagent_name' => $data['b_title'],
'uagent_key' => $key,
'uagent_regex' => $_regex,
'uagent_default_regex' => $_regex,
'uagent_regex_capture' => intval( $_capture ),
'uagent_position' => $count,
'uagent_type' => 'browser' ) );
@@ -621,7 +622,7 @@ class userAgentFunctions
$this->DB->update( 'core_uagents', array( 'uagent_key' => $uagent_key,
'uagent_name' => $uagent_name,
'uagent_regex' => $uagent_regex,
'uagent_regex' => str_replace( '&#092;', '\\', $uagent_regex ),
'uagent_regex_capture' => $uagent_regex_capture,
'uagent_position' => $uagent_position,
'uagent_type' => $uagent_type ), 'uagent_id=' . $uagent_id );
@@ -694,7 +695,7 @@ class userAgentFunctions
$this->DB->insert( 'core_uagents', array( 'uagent_key' => $uagent_key,
'uagent_name' => $uagent_name,
'uagent_regex' => $uagent_regex,
'uagent_regex' => str_replace( '&#092;', '\\', $uagent_regex ),
'uagent_regex_capture' => $uagent_regex_capture,
'uagent_position' => $uagent_position,
'uagent_type' => $uagent_type ) );
@@ -818,6 +819,14 @@ class userAgentFunctions
'uagent_version' => intval( $matches[1] ) );
}
}
else if ( stristr( $userAgent, 'IP-OTHER' ) ) // http://community.invisionpower.com/resources/bugs.html/_/ip-board/mobile-app-user-agents-invalid-r39508
{
preg_match( '#^IP-OTHER\/([\d].[\d]+?)#i', $userAgent, $matches );
if ( $matches[0] )
{
return array( 'uagent_id' => -1, 'uagent_key' => 'ipsMobileOther', 'uagent_name' => 'IPS Mobile Other', 'uagent_type' => 'mobileApp', 'uagent_version' => intval( $matches[1] ) );
}
}
//-----------------------------------------
// Test in the DB