Changeset 9377 for extensions/edit_gmaps/include
- Timestamp:
- Feb 25, 2011, 12:44:14 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/edit_gmaps/include/functions.php
r8918 r9377 1 1 <?php 2 2 3 function cl m_get_cache_file_name()3 function cl_meta_get_cache_file_name() 4 4 { 5 5 global $conf; … … 8 8 } 9 9 10 function cl m_invalidate_cache()10 function cl_meta_invalidate_cache() 11 11 { 12 @unlink( cl m_get_cache_file_name() );12 @unlink( cl_meta_get_cache_file_name() ); 13 13 } 14 14 15 function cl m_load_language()15 function cl_meta_load_language() 16 16 { 17 17 global $lang,$lang_info,$conf; … … 21 21 } 22 22 23 function cl m_items_have_latlon($items)23 function cl_meta_items_have_latlon($items) 24 24 { 25 25 $query = ' … … 34 34 } 35 35 36 function cl m_make_map_picture_url($params)36 function cl_meta_make_map_picture_url($params) 37 37 { 38 38 global $conf; … … 43 43 } 44 44 45 function cl m_duplicate_map_picture_url()45 function cl_meta_duplicate_map_picture_url() 46 46 { 47 47 global $conf; … … 52 52 } 53 53 54 function cl m_make_map_index_url($params=array())54 function cl_meta_make_map_index_url($params=array()) 55 55 { 56 global $conf, $cl m_dir;56 global $conf, $cl_meta_dir; 57 57 if ( empty($conf['gmaps_api_key']) and $_SERVER['SERVER_ADDR']!='127.0.0.1' ) 58 58 return ""; … … 67 67 } 68 68 69 function cl m_duplicate_map_index_url($redefined=array(), $removed=array())69 function cl_meta_duplicate_map_index_url($redefined=array(), $removed=array()) 70 70 { 71 return cl m_make_map_index_url(71 return cl_meta_make_map_index_url( 72 72 params_for_duplication($redefined, $removed) 73 73 ); 74 74 } 75 75 76 function cl m_duplicate_kml_index_url($redefined=array(), $removed=array())76 function cl_meta_duplicate_kml_index_url($redefined=array(), $removed=array()) 77 77 { 78 return cl m_make_kml_index_url(78 return cl_meta_make_kml_index_url( 79 79 params_for_duplication($redefined, $removed) 80 80 ); 81 81 } 82 82 83 function cl m_make_kml_index_url($params)83 function cl_meta_make_kml_index_url($params) 84 84 { 85 global $conf, $cl m_dir;86 $url = get_root_url().'plugins/'.$cl m_dir.'/kml.php';85 global $conf, $cl_meta_dir; 86 $url = get_root_url().'plugins/'.$cl_meta_dir.'/kml.php'; 87 87 if ($conf['question_mark_in_urls']) 88 88 $url .= '?';
Note: See TracChangeset
for help on using the changeset viewer.