Lines:
1 to 100 of 209
<?php /* Copyright 2011 - 2017 Bobbing Wide (email : herb@bobbingwide.com ) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2, as published by the Free Software Foundation. You may NOT assume that you can use any other version of the GPL. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. The license for this software can likely be found here: http://www.gnu.org/licenses/gpl-2.0.html */ /* function bw_get_tide_info() – Gets tide information from the $tide_url */ /** * Obtain tide information using the shortcode [bw_tides tide_url='tide feed xml url'] * The format of the feed from tidetimes.org.uk is expected to be as in the following output from bw_trace ` C:\apache\htdocs\wordpress\wp-content\plugins\oik\oik-tides.php(45:0) 2011-04-29T12:11:51+00:00 bw_get_tide_info response_xml SimpleXMLElement Object ( [@attributes] => Array ( [version] => 2.0 ) [channel] => SimpleXMLElement Object ( [title] => Chichester Harbour Tide Times [link] => http://www.tidetimes.org.uk/Chichester_Harbour.html [description] => Chichester Harbour tide times. [lastBuildDate] => Fri, 29 Apr 2011 00:25:00 GMT [language] => en-gb [item] => SimpleXMLElement Object ( [title] => Chichester Harbour tide times for 29th April 2011 [link] => http://www.tidetimes.org.uk/Chichester_Harbour.html [guid] => http://www.tidetimes.org.uk/Chichester_Harbour.html [pubDate] => Fri, 29 Apr 2011 00:25:00 GMT [description] => Tide times and height information for<br/>Chichester Harbour on 29th April 2011.<br/><br/>01:58 - Low Tide, 1.6m<br/>09:14 - High Tide, 3.9m<br/>14:17 - Low Tide, 1.5m<br/>21:36 - High Tide, 4.2m<br/><br/> ) ) ) ` as of 4th May 2011 the tideinfo->channel->item->description appeared to have additional Google Ad stuff ` C:\apache\htdocs\wordpress\wp-content\plugins\oik\oik-tides.php(45:0) 2011-05-04T03:17:51+00:00 bw_get_tide_info response_xml SimpleXMLElement Object ( [@attributes] => Array ( [version] => 2.0 ) [channel] => SimpleXMLElement Object ( [title] => Chichester Harbour Tide Times [link] => http://www.tidetimes.org.uk/Chichester_Harbour.html [description] => Chichester Harbour tide times. [lastBuildDate] => Tue, 3 May 2011 00:08:00 GMT [language] => en-gb [item] => SimpleXMLElement Object ( [title] => Chichester Harbour Tide Times for 4th May 2011 [link] => http://www.tidetimes.org.uk/Chichester_Harbour.html [guid] => http://www.tidetimes.org.uk/Chichester_Harbour.html [pubDate] => Tue, 3 May 2011 00:08:00 GMT [description] => <b>Chichester Harbour Tide Times:</b><br/>High Tides: 00:50 (4.50m), 13:13 (4.50m)<br/>Low Tides: 06:06 (1.00m), 18:18 (1.20m).<br/><a href="http://www.tidetimes.org.uk/Chichester_Harbour.html" title="Chichester Harbour Tide Times">http://www.tidetimes.org.uk/Chichester_Harbour.html</a><br/><br/><script type="text/javascript"> google_ad_client = "ca-pub-4314088479570355"; google_ad_slot = "4669933729"; google_ad_width = 234; google_ad_height = 60; </script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> ) ) ) ` from 28th October 2011 (first noticed) it changed again. The description was already formatted. ` C:\apache\htdocs\wordpress\wp-content\plugins\oik\oik-tides.php(44:0) 2011-10-29T16:49:09+00:00 54 bw_get_tide_info response_xml SimpleXMLElement Object ( [@attributes] => Array ( [version] => 2.0 ) [channel] => SimpleXMLElement ObjectView on GitHub View on Trac
