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
* Generic Mapping Class
* Owner: Matt Mecham
* Last Updated: $Date: 2010-08-03 17:20:16 +0100 (Tue, 03 Aug 2010) $
* Last Updated: $Date: 2011-03-10 16:00:38 -0500 (Thu, 10 Mar 2011) $
*
* @example
*
* @author $Author: matt $
* @author $Author: bfarber $
* @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: 8021 $
*/
/**
@@ -31,7 +31,7 @@ class classes_mapping
* App object
* @var object
*/
static private $_app;
static protected $_app;
/**
* Construct
@@ -45,15 +45,14 @@ class classes_mapping
/* Pointless comment! */
$_file = IPS_ROOT_PATH . 'sources/classes/mapping/engines/' . $engine . '.php';
$_class = 'classes_mapping_' . $engine;
if ( file_exists( $_file ) )
if ( is_file( $_file ) )
{
require_once( $_file );
if ( class_exists( $_class ) )
{
self::$_app = new $_class();
$classToLoad = IPSLib::loadLibrary( $_file, 'classes_mapping_' . $engine );
if ( class_exists( $classToLoad ) )
{
self::$_app = new $classToLoad();
}
else
{
@@ -217,7 +216,7 @@ abstract class classes_mapping_composite
$file_0 = md5( $lat . ',' . $lon . ',' . $size ) . '_0.png';
$file_1 = md5( $lat . ',' . $lon . ',' . $size ) . '_1.png';
if ( file_exists( $this->_getCachePath() . '/' . $file_0 ) && file_exists( $this->_getCachePath() . '/' . $file_1 ) )
if ( is_file( $this->_getCachePath() . '/' . $file_0 ) && is_file( $this->_getCachePath() . '/' . $file_1 ) )
{
return array( $this->_getCacheUrl() . '/' . $file_0, $this->_getCacheUrl() . '/' . $file_1 );
}
@@ -237,8 +236,8 @@ abstract class classes_mapping_composite
{
if ( ! is_dir( $this->settings['upload_dir'] . '/maps' ) )
{
@mkdir( $this->settings['upload_dir'] . '/maps', 0777 );
@chmod( $this->settings['upload_dir'] . '/maps', 0777 );
@mkdir( $this->settings['upload_dir'] . '/maps', IPS_FOLDER_PERMISSION );
@chmod( $this->settings['upload_dir'] . '/maps', IPS_FOLDER_PERMISSION );
}
$filename = md5( $lat . ',' . $lon . ',' . $size ) . '_' . $key;
@@ -302,19 +301,17 @@ abstract class classes_mapping_composite
* Returns cache path
* @return string
*/
private function _getCachePath()
protected function _getCachePath()
{
return ( is_dir( $this->settings['upload_dir'] . '/maps' ) ) ? $this->settings['upload_dir'] . '/maps' : $this->settings['upload_dir'];
}
/**
/**
* Returns cache path
* @return string
*/
private function _getCacheUrl()
protected function _getCacheUrl()
{
return ( is_dir( $this->settings['upload_dir'] . '/maps' ) ) ? $this->settings['upload_url'] . '/maps' : $this->settings['upload_url'];
}
}