Plugin Directory

Changeset 148666


Ignore:
Timestamp:
08/24/2009 05:36:14 PM (17 years ago)
Author:
dschuesae
Message:

Version 1.12.1
Supports even PHP 4

Location:
xml-google-maps/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • xml-google-maps/trunk/readme.txt

    r148320 r148666  
    44Requires at least: 2.1
    55Tested up to: 2.8
    6 Stable tag: 1.12
     6Stable tag: 1.12.1
    77Donate link: http://www.matusz.ch/donate_xmlgooglemapswpplugin.htm
    88
  • xml-google-maps/trunk/xmlgooglemaps.php

    r148320 r148666  
    55 Feed URI: http://www.matusz.ch/blog/tags/xml-google-maps-wp-plugin/feed/
    66 Description: This plugin allows you to easily insert Google Map or Google Earth Plugin Maps into your blog. Supports KML, KMZ, GPX, geoRSS filelinks. Supports Default, Satellite, Hybrid, Physical and Google Earth Plugin Maptypes
    7  Version: 1.12
     7 Version: 1.12.1
    88 Author: Patrick Matusz
    99 Author URI: http://www.matusz.ch/blog/
     
    1313
    1414//Versionsinformationen
    15 define("XML_GOOGLE_MAPS_VERSION","1.12",true);
     15define("XML_GOOGLE_MAPS_VERSION","1.12.1",true);
    1616define("XML_GOOGLE_MAPS_DB_VERSION",2,true);
    1717
  • xml-google-maps/trunk/xmlgooglemaps_helper.php

    r148320 r148666  
    3333   
    3434    function getFileModifiedDate($url, $user='', $password='') {
    35         try {
    3635            if (function_exists("curl_init")) {
    3736                $ch = curl_init();
     
    4241                if (($user != '') || ($password != '')) {
    4342                    curl_setopt($ch, CURLAUTH_NTLM);
    44                     curl_setopt ($ch, CURLOPT_USERPWD, "$username:$password");
     43                    curl_setopt($ch, CURLOPT_USERPWD, "$username:$password");
    4544                }           
    46                 $headers = curl_exec ($ch);
     45                $headers = curl_exec($ch);
    4746                curl_close($ch);
    48                 $headers = substr(stristr($headers, "Last-Modified:"),15);
     47                if ($headers===false) { return 0; }
     48                $headers = substr(stristr($headers, "Last-Modified:"),15);             
    4949                $lines=split("\n",$headers);   
    5050                if (count($lines)>0) {     
     
    5555            } else {
    5656                $url = xmlgooglemaps_helper::tryGetLocalPath($url);
    57                 return filemtime($url);
     57                $ret = filemtime($url);
     58                if ($ret === false) {
     59                    return 0;
     60                } else {
     61                    return $ret;
     62                }
    5863            }       
    59         } catch (Exception $e) {
    60             return 0;
    61         }
    6264    }
    6365
Note: See TracChangeset for help on using the changeset viewer.