Changeset 12701 for extensions/rv_gmaps/trunk/main.inc.php
- Timestamp:
- Dec 7, 2011, 10:48:16 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/rv_gmaps/trunk/main.inc.php
r12700 r12701 1 1 <?php /* 2 2 Plugin Name: RV Maps&Earth 3 Version: 2.3. a3 Version: 2.3.b-alpha 4 4 Description: Extend your gallery with Google Maps and Google Earth ... 5 5 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=122 … … 7 7 Author URI: http://www.modusoptimus.com/ 8 8 */ 9 define( 'RVM_PLUGIN_VERSION', '2.3. a');10 if (!defined('PHPWG_ROOT_PATH'))die('Hacking attempt!');9 define( 'RVM_PLUGIN_VERSION', '2.3.b-alpha'); 10 defined('PHPWG_ROOT_PATH') or die('Hacking attempt!'); 11 11 12 12 add_event_handler('loc_end_index', 'rvm_end_index' ); … … 20 20 $rvm_dir = basename( dirname(__FILE__) ); 21 21 22 global $conf; 23 if (@$conf['gmaps_auto_sync']) 24 { 25 $conf['use_exif_mapping']['lat'] = 'lat'; 26 $conf['use_exif_mapping']['lon'] = 'lon'; 27 add_event_handler('format_exif_data', 'rvm_format_exif', EVENT_HANDLER_PRIORITY_NEUTRAL, 3); 28 } 22 29 23 30 function rvm_index_cat_thumbs_displayed() … … 132 139 } 133 140 141 function rvm_format_exif($exif, $file, $map) 142 { 143 if (isset($map['lat'])) 144 { 145 include_once( dirname(__FILE__) .'/include/functions_metadata.php'); 146 $ll = exif_to_lat_lon($exif); 147 if (is_array($ll)) 148 { 149 $exif[$map['lat']] = $ll[0]; 150 $exif[$map['lon']] = $ll[1]; 151 } 152 } 153 return $exif; 154 } 134 155 ?>
Note: See TracChangeset
for help on using the changeset viewer.