Changeset 148666
- Timestamp:
- 08/24/2009 05:36:14 PM (17 years ago)
- Location:
- xml-google-maps/trunk
- Files:
-
- 3 edited
-
readme.txt (modified) (1 diff)
-
xmlgooglemaps.php (modified) (2 diffs)
-
xmlgooglemaps_helper.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
xml-google-maps/trunk/readme.txt
r148320 r148666 4 4 Requires at least: 2.1 5 5 Tested up to: 2.8 6 Stable tag: 1.12 6 Stable tag: 1.12.1 7 7 Donate link: http://www.matusz.ch/donate_xmlgooglemapswpplugin.htm 8 8 -
xml-google-maps/trunk/xmlgooglemaps.php
r148320 r148666 5 5 Feed URI: http://www.matusz.ch/blog/tags/xml-google-maps-wp-plugin/feed/ 6 6 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 8 8 Author: Patrick Matusz 9 9 Author URI: http://www.matusz.ch/blog/ … … 13 13 14 14 //Versionsinformationen 15 define("XML_GOOGLE_MAPS_VERSION","1.12 ",true);15 define("XML_GOOGLE_MAPS_VERSION","1.12.1",true); 16 16 define("XML_GOOGLE_MAPS_DB_VERSION",2,true); 17 17 -
xml-google-maps/trunk/xmlgooglemaps_helper.php
r148320 r148666 33 33 34 34 function getFileModifiedDate($url, $user='', $password='') { 35 try {36 35 if (function_exists("curl_init")) { 37 36 $ch = curl_init(); … … 42 41 if (($user != '') || ($password != '')) { 43 42 curl_setopt($ch, CURLAUTH_NTLM); 44 curl_setopt ($ch, CURLOPT_USERPWD, "$username:$password");43 curl_setopt($ch, CURLOPT_USERPWD, "$username:$password"); 45 44 } 46 $headers = curl_exec ($ch);45 $headers = curl_exec($ch); 47 46 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); 49 49 $lines=split("\n",$headers); 50 50 if (count($lines)>0) { … … 55 55 } else { 56 56 $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 } 58 63 } 59 } catch (Exception $e) {60 return 0;61 }62 64 } 63 65
Note: See TracChangeset
for help on using the changeset viewer.