Ignore:
Timestamp:
Feb 25, 2011, 12:44:14 PM (14 years ago)
Author:
cljosse
Message:

[edit_gmaps] adding support to the altitude.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/edit_gmaps/include/functions.php

    r8918 r9377  
    11<?php
    22
    3 function clm_get_cache_file_name()
     3function cl_meta_get_cache_file_name()
    44{
    55        global $conf;
     
    88}
    99
    10 function clm_invalidate_cache()
     10function cl_meta_invalidate_cache()
    1111{
    12         @unlink(  clm_get_cache_file_name() );
     12        @unlink(  cl_meta_get_cache_file_name() );
    1313}
    1414
    15 function clm_load_language()
     15function cl_meta_load_language()
    1616{
    1717        global $lang,$lang_info,$conf;
     
    2121}
    2222
    23 function clm_items_have_latlon($items)
     23function cl_meta_items_have_latlon($items)
    2424{
    2525  $query = '
     
    3434}
    3535
    36 function clm_make_map_picture_url($params)
     36function cl_meta_make_map_picture_url($params)
    3737{
    3838        global $conf;
     
    4343}
    4444
    45 function clm_duplicate_map_picture_url()
     45function cl_meta_duplicate_map_picture_url()
    4646{
    4747        global $conf;
     
    5252}
    5353
    54 function clm_make_map_index_url($params=array())
     54function cl_meta_make_map_index_url($params=array())
    5555{
    56         global $conf, $clm_dir;
     56        global $conf, $cl_meta_dir;
    5757        if ( empty($conf['gmaps_api_key']) and $_SERVER['SERVER_ADDR']!='127.0.0.1' )
    5858                return "";
     
    6767}
    6868
    69 function clm_duplicate_map_index_url($redefined=array(), $removed=array())
     69function cl_meta_duplicate_map_index_url($redefined=array(), $removed=array())
    7070{
    71         return clm_make_map_index_url(
     71        return cl_meta_make_map_index_url(
    7272                params_for_duplication($redefined, $removed)
    7373                );
    7474}
    7575
    76 function clm_duplicate_kml_index_url($redefined=array(), $removed=array())
     76function cl_meta_duplicate_kml_index_url($redefined=array(), $removed=array())
    7777{
    78         return clm_make_kml_index_url(
     78        return cl_meta_make_kml_index_url(
    7979                params_for_duplication($redefined, $removed)
    8080                );
    8181}
    8282
    83 function clm_make_kml_index_url($params)
     83function cl_meta_make_kml_index_url($params)
    8484{
    85         global $conf, $clm_dir;
    86         $url = get_root_url().'plugins/'.$clm_dir.'/kml.php';
     85        global $conf, $cl_meta_dir;
     86        $url = get_root_url().'plugins/'.$cl_meta_dir.'/kml.php';
    8787        if ($conf['question_mark_in_urls'])
    8888                $url .= '?';
Note: See TracChangeset for help on using the changeset viewer.