Version 3.2.3

This commit is contained in:
Neo committed 2025-12-19 00:34:03 -08:00
1 parent ae5c01cc78
commit 78706903a2
2641 files changed
+228363 -201264

No files matched your search

@@ -3,20 +3,20 @@
/**
* <pre>
* Invision Power Services
* IP.Board v3.1.4
* IP.Board v3.2.3
* Bing mapping class
* Owner: Matt Mecham
* Last Updated: $Date: 2010-08-03 17:20:16 +0100 (Tue, 03 Aug 2010) $
* Last Updated: $Date: 2011-05-05 07:03:47 -0400 (Thu, 05 May 2011) $
*
* @example
*
* @author $Author: matt $
* @author $Author: ips_terabyte $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.invisionpower.com/community/board/license.html
* @license This is NULLED!
* @package IP.Board
* @link http://www.invisionpower.com
* @link http://hatynka.in
* @since 9th March 2005 11:03
* @version $Revision: 6725 $
* @version $Revision: 8644 $
*/
class classes_mapping_bing extends classes_mapping_composite
@@ -68,6 +68,7 @@ class classes_mapping_bing extends classes_mapping_composite
* @var object
*/
protected $member;
protected $memberData;
/**
* Cache object
@@ -76,11 +77,12 @@ class classes_mapping_bing extends classes_mapping_composite
* @var object
*/
protected $cache;
protected $caches;
/**
* Method constructor
*
* @return void
* @return @e void
*/
public function __construct()
{
@@ -93,8 +95,6 @@ class classes_mapping_bing extends classes_mapping_composite
$this->memberData =& $this->registry->member()->fetchMemberData();
$this->cache = $this->registry->cache();
$this->caches =& $this->registry->cache()->fetchCaches();
define( 'BING_API_KEY', 'AvxfFpDbujzwr7Taq2i0enES55OfCrRviwA17gJAGXkhLwAZKV4eNUdglFMQzlz6' );
}
/**
@@ -103,7 +103,7 @@ class classes_mapping_bing extends classes_mapping_composite
*/
public function fetchApiKey()
{
return BING_API_KEY;
return defined( 'BING_API_KEY' ) ? BING_API_KEY : false;
}
//$result = $file->getFileContents( "http://where.yahooapis.com/geocode?appid=" . $this->getYahooAppId() . "&location=" . $lat . "," . $lon . "&flags=J&gflags=R&locale=" . YAHOO_LOCALE );
@@ -125,8 +125,8 @@ class classes_mapping_bing extends classes_mapping_composite
}
/* Lets do it. */
require_once( IPS_KERNEL_PATH . 'classFileManagement.php' );
$file = new classFileManagement();
$classToLoad = IPSLib::loadLibrary( IPS_KERNEL_PATH . 'classFileManagement.php', 'classFileManagement' );
$file = new $classToLoad();
/* fetch */
$json = $file->getFileContents( "http://dev.virtualearth.net/REST/v1/Locations/" . $lat . "," . $lon . "?&key=" . BING_API_KEY );
@@ -235,7 +235,7 @@ class classes_mapping_bing extends classes_mapping_composite
* @param array $return
* @return string
*/
private function _getShort( $return )
protected function _getShort( $return )
{
if ( $return['locality'] != $return['district2'] )
{