function wpgmaps_pro_activate() { wpgmza_cURL_response_pro("activate"); if (function_exists("wpgmaps_handle_directory")) { wpgmaps_handle_directory(); } }
function wpgmza_check_if_marker_file_exists($mapid) { wpgmaps_handle_directory(); $upload_dir = wp_upload_dir(); $xml_marker_location = get_option("wpgmza_xml_location"); if (is_multisite()) { global $blog_id; if (file_exists($xml_marker_location . $blog_id . '-' . $mapid . 'markers.xml')) { /* all OK */ } else { $wpgmza_check = wpgmaps_update_xml_file($mapid); if (is_wp_error($wpgmza_check)) { wpgmza_return_error($wpgmza_check); } } } else { if (file_exists($xml_marker_location . $mapid . 'markers.xml')) { } else { $wpgmza_check = wpgmaps_update_xml_file($mapid); if (is_wp_error($wpgmza_check)) { wpgmza_return_error($wpgmza_check); } } } }
function wpgmza_check_if_marker_file_exists($mapid) { wpgmaps_handle_directory(); $upload_dir = wp_upload_dir(); if (is_multisite()) { global $blog_id; if (file_exists($upload_dir['path'] . '/wp-google-maps/' . $blog_id . '-' . $mapid . 'markers.xml')) { /* all OK */ } else { $wpgmza_check = wpgmaps_update_xml_file($mapid); if (is_wp_error($wpgmza_check)) { wpgmza_return_error($wpgmza_check); } } } else { if (file_exists($upload_dir['path'] . '/wp-google-maps/' . $mapid . 'markers.xml')) { } else { $wpgmza_check = wpgmaps_update_xml_file($mapid); if (is_wp_error($wpgmza_check)) { wpgmza_return_error($wpgmza_check); } } } }