WP Google Maps - Version 5.12

Version Description

  • Removed deprecated code
Download this release

Release Info

Developer WPGMaps
Plugin Icon 128x128 WP Google Maps
Version 5.12
Comparing to
See all releases

Code changes from version 5.11 to 5.12

Files changed (2) hide show
  1. readme.txt +6 -5
  2. wpGoogleMaps.php +1 -78
readme.txt CHANGED
@@ -1,8 +1,8 @@
1
  === WP Google Maps ===
2
  Contributors: WPGMaps
3
  Donate link: http://www.wpgmaps.com
4
- Tags: google maps, maps, map, map markers, google, interactive, maps api, wp maps, wp google maps, mappress, easy map
5
- Requires at least: 2.9.2
6
  Tested up to: 3.5.1
7
  Stable tag: trunk
8
  License: GPLv2
@@ -83,6 +83,9 @@ Previous versions may cause your blog to slow down. Upgrading to 4.5 will get ri
83
 
84
  == Changelog ==
85
 
 
 
 
86
  = 5.11 =
87
  * Added SSL bug fixes
88
  * Fixed a bug that wasnt allowing users to edit the exact location
@@ -297,6 +300,4 @@ Previous versions may cause your blog to slow down. Upgrading to 4.5 will get ri
297
  * added the ability to export your markers to a CSV file
298
 
299
  = 1.0.0 =
300
- * First release
301
-
302
-
1
  === WP Google Maps ===
2
  Contributors: WPGMaps
3
  Donate link: http://www.wpgmaps.com
4
+ Tags: google maps, maps, map, map markers, google, google map, maps api, wp maps, wp google maps, easy map
5
+ Requires at least: 3.4
6
  Tested up to: 3.5.1
7
  Stable tag: trunk
8
  License: GPLv2
83
 
84
  == Changelog ==
85
 
86
+ = 5.12 =
87
+ * Removed deprecated code
88
+
89
  = 5.11 =
90
  * Added SSL bug fixes
91
  * Fixed a bug that wasnt allowing users to edit the exact location
300
  * added the ability to export your markers to a CSV file
301
 
302
  = 1.0.0 =
303
+ * First release
 
 
wpGoogleMaps.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP Google Maps
4
  Plugin URI: http://www.wpgmaps.com
5
  Description: The easiest to use Google Maps plugin! Create custom Google Maps with high quality markers containing locations, descriptions, images and links. Add your customized map to your WordPress posts and/or pages quickly and easily with the supplied shortcode. No fuss.
6
- Version: 5.11
7
  Author: WP Google Maps
8
  Author URI: http://www.wpgmaps.com
9
  */
@@ -58,7 +58,6 @@ function wpgmaps_activate() {
58
  $table_name = $wpdb->prefix . "wpgmza";
59
  $table_name_maps = $wpdb->prefix . "wpgmza_maps";
60
 
61
- wpgmaps_debugger("activate_start");
62
  delete_option("WPGMZA");
63
 
64
  wpgmaps_handle_db();
@@ -146,7 +145,6 @@ function wpgmaps_activate() {
146
  //wpgmza_cURL_response("activate");
147
  //check to see if you have write permissions to the plugin folder (version 2.2)
148
  if (!wpgmaps_check_permissions()) { wpgmaps_permission_warning(); } else { wpgmaps_update_all_xml_file(); }
149
- wpgmaps_debugger("activate_end");
150
  }
151
  function wpgmaps_deactivate() { /* wpgmza_cURL_response("deactivate"); */ }
152
  function wpgmaps_init() {
@@ -156,7 +154,6 @@ function wpgmaps_init() {
156
  }
157
 
158
  function wpgmaps_reload_map_on_post() {
159
- wpgmaps_debugger("reload_map_start");
160
  if (isset($_POST['wpgmza_savemap'])){
161
 
162
  $res = wpgmza_get_map_data($_GET['map_id']);
@@ -193,7 +190,6 @@ function wpgmaps_reload_map_on_post() {
193
  </script>
194
  <?php
195
  }
196
- wpgmaps_debugger("reload_map_end");
197
 
198
 
199
  }
@@ -231,7 +227,6 @@ function wpgmaps_get_marker_url($mapid = false) {
231
 
232
 
233
  function wpgmaps_admin_edit_marker_javascript() {
234
- wpgmaps_debugger("edit_marker_start");
235
 
236
  $res = wpgmza_get_marker_data($_GET['id']);
237
  $wpgmza_lat = $res->lat;
@@ -299,7 +294,6 @@ function wpgmaps_admin_edit_marker_javascript() {
299
  </script>
300
  <?php
301
 
302
- wpgmaps_debugger("edit_marker_end");
303
 
304
  }
305
 
@@ -307,7 +301,6 @@ function wpgmaps_admin_javascript_basic() {
307
  global $wpdb;
308
  global $wpgmza_tblname_maps;
309
  $ajax_nonce = wp_create_nonce("wpgmza");
310
- wpgmaps_debugger("admin_js_basic_start");
311
 
312
  if (is_admin() && isset( $_GET['page'] ) && $_GET['page'] == 'wp-google-maps-menu' && isset( $_GET['action'] ) && $_GET['action'] == "edit_marker") {
313
  wpgmaps_admin_edit_marker_javascript();
@@ -626,7 +619,6 @@ function wpgmaps_admin_javascript_basic() {
626
  </script>
627
  <?php
628
  }
629
- wpgmaps_debugger("admin_js_basic_end");
630
 
631
  }
632
 
@@ -634,7 +626,6 @@ function wpgmaps_admin_javascript_basic() {
634
  function wpgmaps_user_javascript_basic() {
635
  global $short_code_active;
636
  global $wpgmza_current_map_id;
637
- wpgmaps_debugger("u_js_b_start");
638
 
639
  if ($short_code_active) {
640
 
@@ -778,7 +769,6 @@ function wpgmaps_user_javascript_basic() {
778
  </script>
779
  <?php
780
  }
781
- wpgmaps_debugger("u_js_b_end");
782
  }
783
 
784
 
@@ -786,7 +776,6 @@ function wpgmaps_user_javascript_basic() {
786
 
787
  function wpgmaps_update_xml_file($mapid = false) {
788
 
789
- // wpgmaps_debugger("update_xml_start");
790
 
791
  if (!$mapid) {
792
  $mapid = $_POST['map_id'];
@@ -891,7 +880,6 @@ function wpgmaps_update_xml_file($mapid = false) {
891
  }
892
 
893
  }
894
- //wpgmaps_debugger("update_xml_end");
895
  }
896
 
897
 
@@ -951,13 +939,10 @@ function wpgmaps_action_callback_basic() {
951
  }
952
 
953
  function wpgmaps_load_maps_api() {
954
- wpgmaps_debugger("load_maps_api_start");
955
  wp_enqueue_script('google-maps' , 'http://maps.google.com/maps/api/js?sensor=true' , false , '3');
956
- wpgmaps_debugger("load_maps_api_end");
957
  }
958
 
959
  function wpgmaps_tag_basic( $atts ) {
960
- wpgmaps_debugger("tag_basic_start");
961
  global $wpgmza_current_map_id;
962
  extract( shortcode_atts( array(
963
  'id' => '1'
@@ -997,7 +982,6 @@ function wpgmaps_tag_basic( $atts ) {
997
 
998
  ";
999
  return $ret_msg;
1000
- wpgmaps_debugger("tag_basic_end");
1001
  }
1002
 
1003
  function wpgmaps_get_plugin_url() {
@@ -1007,8 +991,6 @@ function wpgmaps_get_plugin_url() {
1007
  }
1008
 
1009
  function wpgmaps_head() {
1010
- wpgmaps_debugger("head_start");
1011
-
1012
  global $wpgmza_tblname_maps;
1013
 
1014
 
@@ -1319,7 +1301,6 @@ function wpgmaps_head() {
1319
  }
1320
 
1321
 
1322
- wpgmaps_debugger("head_end");
1323
 
1324
  }
1325
 
@@ -1345,8 +1326,6 @@ function wpgmaps_menu_layout() {
1345
  //check to see if we have write permissions to the plugin folder
1346
  //
1347
  //
1348
- wpgmaps_debugger("menu_start");
1349
-
1350
 
1351
  if (!$_GET['action']) {
1352
 
@@ -1419,8 +1398,6 @@ function wpgmaps_menu_layout() {
1419
  }
1420
  }
1421
 
1422
- wpgmaps_debugger("menu_end");
1423
-
1424
  }
1425
 
1426
 
@@ -1457,7 +1434,6 @@ function wpgmaps_menu_marker_layout() {
1457
  }
1458
 
1459
  function wpgmaps_menu_settings_layout() {
1460
- wpgmaps_debugger("menu_settings_start");
1461
  if (function_exists('wpgmza_register_pro_version')) {
1462
  if (function_exists('wpgmaps_settings_page_pro')) {
1463
  wpgmaps_settings_page_pro();
@@ -1465,10 +1441,6 @@ function wpgmaps_menu_settings_layout() {
1465
  } else {
1466
  wpgmaps_settings_page_basic();
1467
  }
1468
-
1469
-
1470
-
1471
- wpgmaps_debugger("menu_settings_end");
1472
  }
1473
 
1474
 
@@ -1542,12 +1514,6 @@ function wpgmaps_menu_advanced_layout() {
1542
  }
1543
 
1544
  function wpgmza_map_page() {
1545
- wpgmaps_debugger("map_page_start");
1546
-
1547
-
1548
-
1549
-
1550
-
1551
  if (function_exists('wpgmza_register_pro_version')) {
1552
  echo"<div class=\"wrap\"><div id=\"icon-edit\" class=\"icon32 icon32-posts-post\"><br></div><h2>".__("My Maps","wp-google-maps")." <a href=\"admin.php?page=wp-google-maps-menu&action=new\" class=\"add-new-h2\">".__("Add New","wp-google-maps")."</a></h2>";
1553
  wpgmaps_check_versions();
@@ -1561,14 +1527,10 @@ function wpgmza_map_page() {
1561
  }
1562
  echo "</div>";
1563
  echo"<br /><div style='float:right;'><a href='http://www.wpgmaps.com/documentation/troubleshooting/' title='WP Google Maps Troubleshooting Section'>".__("Problems with the plugin? See the troubleshooting manual.","wp-google-maps")."</a></div>";
1564
- wpgmaps_debugger("map_page_end");
1565
-
1566
  }
1567
 
1568
 
1569
  function wpgmaps_list_maps() {
1570
- wpgmaps_debugger("list_maps_start");
1571
-
1572
  global $wpdb;
1573
  global $wpgmza_tblname_maps;
1574
 
@@ -1616,7 +1578,6 @@ function wpgmaps_list_maps() {
1616
 
1617
  }
1618
  echo "</table>";
1619
- wpgmaps_debugger("list_maps_end");
1620
  }
1621
 
1622
 
@@ -1679,21 +1640,14 @@ function wpgmaps_list_markers() {
1679
 
1680
 
1681
  function wpgmaps_check_versions() {
1682
- wpgmaps_debugger("check_versions_start");
1683
-
1684
  $prov = get_option("WPGMZA_PRO");
1685
  $wpgmza_pro_version = $prov['version'];
1686
  if (floatval($wpgmza_pro_version) < 4.06 || $wpgmza_pro_version == null) {
1687
  wpgmaps_upgrade_notice();
1688
  }
1689
-
1690
-
1691
- wpgmaps_debugger("check_versions_end");
1692
  }
1693
 
1694
  function wpgmza_basic_menu() {
1695
- wpgmaps_debugger("bm_start");
1696
-
1697
  global $wpgmza_tblname_maps;
1698
  global $wpdb;
1699
  if (!wpgmaps_check_permissions()) { wpgmaps_permission_warning(); }
@@ -2045,8 +1999,6 @@ function wpgmza_basic_menu() {
2045
 
2046
 
2047
 
2048
- wpgmaps_debugger("bm_end");
2049
-
2050
  }
2051
 
2052
 
@@ -2110,7 +2062,6 @@ function wpgmza_edit_marker($mid) {
2110
 
2111
 
2112
  function wpgmaps_admin_scripts() {
2113
- wpgmaps_debugger("admin_scripts_start");
2114
  wp_enqueue_script('media-upload');
2115
  wp_enqueue_script('thickbox');
2116
  wp_register_script('my-wpgmaps-upload', plugins_url('upload.js', __FILE__), array('jquery','media-upload','thickbox'));
@@ -2125,8 +2076,6 @@ function wpgmaps_admin_scripts() {
2125
  wp_register_script('my-wpgmaps-tabs', plugins_url('js/wpgmaps_tabs.js',__FILE__), array('jquery-ui-core'), '1.0.1', true);
2126
  wp_enqueue_script('my-wpgmaps-tabs');
2127
  }
2128
- wpgmaps_debugger("admin_scripts_end");
2129
-
2130
  }
2131
  function wpgmaps_user_styles() {
2132
  wp_register_style( 'wpgmaps-style', plugins_url('css/wpgmza_style.css', __FILE__) );
@@ -2141,11 +2090,8 @@ function wpgmaps_admin_styles() {
2141
  }
2142
 
2143
  if (isset($_GET['page']) && $_GET['page'] == 'wp-google-maps-menu') {
2144
- wpgmaps_debugger("load_scripts_styles_start");
2145
-
2146
  add_action('admin_print_scripts', 'wpgmaps_admin_scripts');
2147
  add_action('admin_print_styles', 'wpgmaps_admin_styles');
2148
- wpgmaps_debugger("load_scripts_styles_end");
2149
  }
2150
 
2151
  add_action('wp_print_styles', 'wpgmaps_user_styles');
@@ -2153,8 +2099,6 @@ if (isset($_GET['page']) && $_GET['page'] == 'wp-google-maps-menu') {
2153
 
2154
 
2155
  function wpgmza_return_marker_list($map_id,$admin = true,$width = "100%") {
2156
- wpgmaps_debugger("return_marker_start");
2157
-
2158
  global $wpdb;
2159
  global $wpgmza_tblname;
2160
 
@@ -2251,7 +2195,6 @@ function wpgmza_return_marker_list($map_id,$admin = true,$width = "100%") {
2251
  $wpgmza_tmp .= "</tbody></table></div>";
2252
  }
2253
 
2254
- wpgmaps_debugger("return_marker_end");
2255
  return $wpgmza_tmp;
2256
  }
2257
  }
@@ -2323,7 +2266,6 @@ if (function_exists('wpgmza_register_pro_version')) {
2323
 
2324
 
2325
  function wpgmaps_check_shortcode() {
2326
- wpgmaps_debugger("check_for_sc_start");
2327
  global $posts;
2328
  global $short_code_active;
2329
  $short_code_active = false;
@@ -2340,7 +2282,6 @@ function wpgmaps_check_shortcode() {
2340
  }
2341
  }
2342
  }
2343
- wpgmaps_debugger("check_for_sc_end");
2344
  }
2345
 
2346
  function wpgmaps_check_permissions() {
@@ -2375,8 +2316,6 @@ function wpgmaps_permission_warning() {
2375
 
2376
  // handle database check upon upgrade
2377
  function wpgmaps_update_db_check() {
2378
- wpgmaps_debugger("update_db_start");
2379
-
2380
  global $wpgmza_version;
2381
  if (get_option('wpgmza_db_version') != $wpgmza_version) {
2382
  wpgmaps_handle_db();
@@ -2384,8 +2323,6 @@ function wpgmaps_update_db_check() {
2384
 
2385
  // create all XML files
2386
  wpgmaps_update_all_xml_file();
2387
-
2388
- wpgmaps_debugger("update_db_end");
2389
  }
2390
 
2391
 
@@ -2396,8 +2333,6 @@ add_action('plugins_loaded', 'wpgmaps_update_db_check');
2396
 
2397
 
2398
  function wpgmaps_handle_db() {
2399
- wpgmaps_debugger("handle_db_start");
2400
-
2401
  global $wpdb;
2402
  global $wpgmza_version;
2403
  global $wpgmza_tblname_poly;
@@ -2523,7 +2458,6 @@ function wpgmaps_handle_db() {
2523
 
2524
  add_option("wpgmza_db_version", $wpgmza_version);
2525
  update_option("wpgmza_db_version",$wpgmza_version);
2526
- wpgmaps_debugger("handle_db_end");
2527
  }
2528
 
2529
  function wpgmza_get_map_data($map_id) {
@@ -2594,17 +2528,6 @@ function wpgmaps_trash_map($map_id) {
2594
 
2595
  }
2596
 
2597
- function wpgmaps_debugger($section) {
2598
-
2599
- global $debug;
2600
- global $debug_start;
2601
- global $debug_step;
2602
- if ($debug) {
2603
- $end = (float) array_sum(explode(' ',microtime()));
2604
- echo "<!-- $section processing time: ". sprintf("%.4f", ($end-$debug_start))." seconds\n -->";
2605
- }
2606
-
2607
- }
2608
 
2609
  function wpgmaps_filter(&$array) {
2610
  $clean = array();
3
  Plugin Name: WP Google Maps
4
  Plugin URI: http://www.wpgmaps.com
5
  Description: The easiest to use Google Maps plugin! Create custom Google Maps with high quality markers containing locations, descriptions, images and links. Add your customized map to your WordPress posts and/or pages quickly and easily with the supplied shortcode. No fuss.
6
+ Version: 5.12
7
  Author: WP Google Maps
8
  Author URI: http://www.wpgmaps.com
9
  */
58
  $table_name = $wpdb->prefix . "wpgmza";
59
  $table_name_maps = $wpdb->prefix . "wpgmza_maps";
60
 
 
61
  delete_option("WPGMZA");
62
 
63
  wpgmaps_handle_db();
145
  //wpgmza_cURL_response("activate");
146
  //check to see if you have write permissions to the plugin folder (version 2.2)
147
  if (!wpgmaps_check_permissions()) { wpgmaps_permission_warning(); } else { wpgmaps_update_all_xml_file(); }
 
148
  }
149
  function wpgmaps_deactivate() { /* wpgmza_cURL_response("deactivate"); */ }
150
  function wpgmaps_init() {
154
  }
155
 
156
  function wpgmaps_reload_map_on_post() {
 
157
  if (isset($_POST['wpgmza_savemap'])){
158
 
159
  $res = wpgmza_get_map_data($_GET['map_id']);
190
  </script>
191
  <?php
192
  }
 
193
 
194
 
195
  }
227
 
228
 
229
  function wpgmaps_admin_edit_marker_javascript() {
 
230
 
231
  $res = wpgmza_get_marker_data($_GET['id']);
232
  $wpgmza_lat = $res->lat;
294
  </script>
295
  <?php
296
 
 
297
 
298
  }
299
 
301
  global $wpdb;
302
  global $wpgmza_tblname_maps;
303
  $ajax_nonce = wp_create_nonce("wpgmza");
 
304
 
305
  if (is_admin() && isset( $_GET['page'] ) && $_GET['page'] == 'wp-google-maps-menu' && isset( $_GET['action'] ) && $_GET['action'] == "edit_marker") {
306
  wpgmaps_admin_edit_marker_javascript();
619
  </script>
620
  <?php
621
  }
 
622
 
623
  }
624
 
626
  function wpgmaps_user_javascript_basic() {
627
  global $short_code_active;
628
  global $wpgmza_current_map_id;
 
629
 
630
  if ($short_code_active) {
631
 
769
  </script>
770
  <?php
771
  }
 
772
  }
773
 
774
 
776
 
777
  function wpgmaps_update_xml_file($mapid = false) {
778
 
 
779
 
780
  if (!$mapid) {
781
  $mapid = $_POST['map_id'];
880
  }
881
 
882
  }
 
883
  }
884
 
885
 
939
  }
940
 
941
  function wpgmaps_load_maps_api() {
 
942
  wp_enqueue_script('google-maps' , 'http://maps.google.com/maps/api/js?sensor=true' , false , '3');
 
943
  }
944
 
945
  function wpgmaps_tag_basic( $atts ) {
 
946
  global $wpgmza_current_map_id;
947
  extract( shortcode_atts( array(
948
  'id' => '1'
982
 
983
  ";
984
  return $ret_msg;
 
985
  }
986
 
987
  function wpgmaps_get_plugin_url() {
991
  }
992
 
993
  function wpgmaps_head() {
 
 
994
  global $wpgmza_tblname_maps;
995
 
996
 
1301
  }
1302
 
1303
 
 
1304
 
1305
  }
1306
 
1326
  //check to see if we have write permissions to the plugin folder
1327
  //
1328
  //
 
 
1329
 
1330
  if (!$_GET['action']) {
1331
 
1398
  }
1399
  }
1400
 
 
 
1401
  }
1402
 
1403
 
1434
  }
1435
 
1436
  function wpgmaps_menu_settings_layout() {
 
1437
  if (function_exists('wpgmza_register_pro_version')) {
1438
  if (function_exists('wpgmaps_settings_page_pro')) {
1439
  wpgmaps_settings_page_pro();
1441
  } else {
1442
  wpgmaps_settings_page_basic();
1443
  }
 
 
 
 
1444
  }
1445
 
1446
 
1514
  }
1515
 
1516
  function wpgmza_map_page() {
 
 
 
 
 
 
1517
  if (function_exists('wpgmza_register_pro_version')) {
1518
  echo"<div class=\"wrap\"><div id=\"icon-edit\" class=\"icon32 icon32-posts-post\"><br></div><h2>".__("My Maps","wp-google-maps")." <a href=\"admin.php?page=wp-google-maps-menu&action=new\" class=\"add-new-h2\">".__("Add New","wp-google-maps")."</a></h2>";
1519
  wpgmaps_check_versions();
1527
  }
1528
  echo "</div>";
1529
  echo"<br /><div style='float:right;'><a href='http://www.wpgmaps.com/documentation/troubleshooting/' title='WP Google Maps Troubleshooting Section'>".__("Problems with the plugin? See the troubleshooting manual.","wp-google-maps")."</a></div>";
 
 
1530
  }
1531
 
1532
 
1533
  function wpgmaps_list_maps() {
 
 
1534
  global $wpdb;
1535
  global $wpgmza_tblname_maps;
1536
 
1578
 
1579
  }
1580
  echo "</table>";
 
1581
  }
1582
 
1583
 
1640
 
1641
 
1642
  function wpgmaps_check_versions() {
 
 
1643
  $prov = get_option("WPGMZA_PRO");
1644
  $wpgmza_pro_version = $prov['version'];
1645
  if (floatval($wpgmza_pro_version) < 4.06 || $wpgmza_pro_version == null) {
1646
  wpgmaps_upgrade_notice();
1647
  }
 
 
 
1648
  }
1649
 
1650
  function wpgmza_basic_menu() {
 
 
1651
  global $wpgmza_tblname_maps;
1652
  global $wpdb;
1653
  if (!wpgmaps_check_permissions()) { wpgmaps_permission_warning(); }
1999
 
2000
 
2001
 
 
 
2002
  }
2003
 
2004
 
2062
 
2063
 
2064
  function wpgmaps_admin_scripts() {
 
2065
  wp_enqueue_script('media-upload');
2066
  wp_enqueue_script('thickbox');
2067
  wp_register_script('my-wpgmaps-upload', plugins_url('upload.js', __FILE__), array('jquery','media-upload','thickbox'));
2076
  wp_register_script('my-wpgmaps-tabs', plugins_url('js/wpgmaps_tabs.js',__FILE__), array('jquery-ui-core'), '1.0.1', true);
2077
  wp_enqueue_script('my-wpgmaps-tabs');
2078
  }
 
 
2079
  }
2080
  function wpgmaps_user_styles() {
2081
  wp_register_style( 'wpgmaps-style', plugins_url('css/wpgmza_style.css', __FILE__) );
2090
  }
2091
 
2092
  if (isset($_GET['page']) && $_GET['page'] == 'wp-google-maps-menu') {
 
 
2093
  add_action('admin_print_scripts', 'wpgmaps_admin_scripts');
2094
  add_action('admin_print_styles', 'wpgmaps_admin_styles');
 
2095
  }
2096
 
2097
  add_action('wp_print_styles', 'wpgmaps_user_styles');
2099
 
2100
 
2101
  function wpgmza_return_marker_list($map_id,$admin = true,$width = "100%") {
 
 
2102
  global $wpdb;
2103
  global $wpgmza_tblname;
2104
 
2195
  $wpgmza_tmp .= "</tbody></table></div>";
2196
  }
2197
 
 
2198
  return $wpgmza_tmp;
2199
  }
2200
  }
2266
 
2267
 
2268
  function wpgmaps_check_shortcode() {
 
2269
  global $posts;
2270
  global $short_code_active;
2271
  $short_code_active = false;
2282
  }
2283
  }
2284
  }
 
2285
  }
2286
 
2287
  function wpgmaps_check_permissions() {
2316
 
2317
  // handle database check upon upgrade
2318
  function wpgmaps_update_db_check() {
 
 
2319
  global $wpgmza_version;
2320
  if (get_option('wpgmza_db_version') != $wpgmza_version) {
2321
  wpgmaps_handle_db();
2323
 
2324
  // create all XML files
2325
  wpgmaps_update_all_xml_file();
 
 
2326
  }
2327
 
2328
 
2333
 
2334
 
2335
  function wpgmaps_handle_db() {
 
 
2336
  global $wpdb;
2337
  global $wpgmza_version;
2338
  global $wpgmza_tblname_poly;
2458
 
2459
  add_option("wpgmza_db_version", $wpgmza_version);
2460
  update_option("wpgmza_db_version",$wpgmza_version);
 
2461
  }
2462
 
2463
  function wpgmza_get_map_data($map_id) {
2528
 
2529
  }
2530
 
 
 
 
 
 
 
 
 
 
 
 
2531
 
2532
  function wpgmaps_filter(&$array) {
2533
  $clean = array();