cvs: pear /Services_Weather/examples ejse-basic.php globalweather-basic.php metar-basic.php metar-extensive.php php_sunrise_sunset.php
weather.com-basic.php weather.com-extensive.php

From: Date: Tue, 08 Nov 2005 17:52:42 +0000
Subject: cvs: pear /Services_Weather/examples ejse-basic.php globalweather-basic.php metar-basic.php metar-extensive.php php_sunrise_sunset.php
weather.com-basic.php weather.com-extensive.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-36159@lists.php.net to get a copy of this message
eru Tue Nov 8 12:52:42 2005 EDT Modified files: /pear/Services_Weather/examples metar-basic.php weather.com-basic.php ejse-basic.php globalweather-basic.php weather.com-extensive.php php_sunrise_sunset.php metar-extensive.php Log: o Changed header-style as proposed in RFC::Header Comment Blocks

http://cvs.php.net/diff.php/pear/Services_Weather/examples/metar-basic.php?r1=1.10&r2=1.11&ty=u Index: pear/Services_Weather/examples/metar-basic.php diff -u pear/Services_Weather/examples/metar-basic.php:1.10 pear/Services_Weather/examples/metar-basic.php:1.11 --- pear/Services_Weather/examples/metar-basic.php:1.10 Fri May 7 10:41:36 2004 +++ pear/Services_Weather/examples/metar-basic.php Tue Nov 8 12:52:42 2005 @@ -1,22 +1,49 @@ <?php -/* vim: set expandtab tabstop=4 shiftwidth=4: */ -// +----------------------------------------------------------------------+ -// | PHP version 4 | -// +----------------------------------------------------------------------+ -// | Copyright (c) 1997-2004 The PHP Group | -// +----------------------------------------------------------------------+ -// | This source file is subject to version 2.0 of the PHP license, | -// | that is bundled with this package in the file LICENSE, and is | -// | available through the world-wide-web at | -// | http://www.php.net/license/2_02.txt. | -// | If you did not receive a copy of the PHP license and are unable to | -// | obtain it through the world-wide-web, please send a note to | -// | license@php.net so we can mail you a copy immediately. | -// +----------------------------------------------------------------------+ -// | Authors: Alexander Wirtz <alex@pc4p.net> | -// +----------------------------------------------------------------------+ -// -// $Id: metar-basic.php,v 1.10 2004/05/07 14:41:36 eru Exp $ +/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */ + +/** + * Basic example for the METAR/TAF-service + * + * PHP versions 4 and 5 + * + * <LICENSE> + * Copyright (c) 2005, Alexander Wirtz + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * o Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * o Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * o Neither the name of the software nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * </LICENSE> + * + * @category Web Services + * @package Services_Weather + * @author Alexander Wirtz <alex@pc4p.net> + * @copyright 2005 Alexander Wirtz + * @license http://www.opensource.org/licenses/bsd-license.php BSD License + * @version CVS: $Id: metar-basic.php,v 1.11 2005/11/08 17:52:42 eru Exp $ + * @link http://pear.php.net/package/Services_Weather + * @filesource + */ require_once "Services/Weather.php"; http://cvs.php.net/diff.php/pear/Services_Weather/examples/weather.com-basic.php?r1=1.6&r2=1.7&ty=u Index: pear/Services_Weather/examples/weather.com-basic.php diff -u pear/Services_Weather/examples/weather.com-basic.php:1.6 pear/Services_Weather/examples/weather.com-basic.php:1.7 --- pear/Services_Weather/examples/weather.com-basic.php:1.6 Fri May 7 10:41:36 2004 +++ pear/Services_Weather/examples/weather.com-basic.php Tue Nov 8 12:52:42 2005 @@ -1,22 +1,49 @@ <?php -/* vim: set expandtab tabstop=4 shiftwidth=4: */ -// +----------------------------------------------------------------------+ -// | PHP version 4 | -// +----------------------------------------------------------------------+ -// | Copyright (c) 1997-2004 The PHP Group | -// +----------------------------------------------------------------------+ -// | This source file is subject to version 2.0 of the PHP license, | -// | that is bundled with this package in the file LICENSE, and is | -// | available through the world-wide-web at | -// | http://www.php.net/license/2_02.txt. | -// | If you did not receive a copy of the PHP license and are unable to | -// | obtain it through the world-wide-web, please send a note to | -// | license@php.net so we can mail you a copy immediately. | -// +----------------------------------------------------------------------+ -// | Authors: Alexander Wirtz <alex@pc4p.net> | -// +----------------------------------------------------------------------+ -// -// $Id: weather.com-basic.php,v 1.6 2004/05/07 14:41:36 eru Exp $ +/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */ + +/** + * Basic example for the Weather.com-service + * + * PHP versions 4 and 5 + * + * <LICENSE> + * Copyright (c) 2005, Alexander Wirtz + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * o Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * o Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * o Neither the name of the software nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * </LICENSE> + * + * @category Web Services + * @package Services_Weather + * @author Alexander Wirtz <alex@pc4p.net> + * @copyright 2005 Alexander Wirtz + * @license http://www.opensource.org/licenses/bsd-license.php BSD License + * @version CVS: $Id: weather.com-basic.php,v 1.7 2005/11/08 17:52:42 eru Exp $ + * @link http://pear.php.net/package/Services_Weather + * @filesource + */ require_once "Services/Weather.php"; http://cvs.php.net/diff.php/pear/Services_Weather/examples/ejse-basic.php?r1=1.3&r2=1.4&ty=u Index: pear/Services_Weather/examples/ejse-basic.php diff -u pear/Services_Weather/examples/ejse-basic.php:1.3 pear/Services_Weather/examples/ejse-basic.php:1.4 --- pear/Services_Weather/examples/ejse-basic.php:1.3 Fri May 7 10:41:36 2004 +++ pear/Services_Weather/examples/ejse-basic.php Tue Nov 8 12:52:42 2005 @@ -1,23 +1,50 @@ <?php -/* vim: set expandtab tabstop=4 shiftwidth=4: */ -// +----------------------------------------------------------------------+ -// | PHP version 4 | -// +----------------------------------------------------------------------+ -// | Copyright (c) 1997-2004 The PHP Group | -// +----------------------------------------------------------------------+ -// | This source file is subject to version 2.0 of the PHP license, | -// | that is bundled with this package in the file LICENSE, and is | -// | available through the world-wide-web at | -// | http://www.php.net/license/2_02.txt. | -// | If you did not receive a copy of the PHP license and are unable to | -// | obtain it through the world-wide-web, please send a note to | -// | license@php.net so we can mail you a copy immediately. | -// +----------------------------------------------------------------------+ -// | Authors: Alexander Wirtz <alex@pc4p.net> | -// +----------------------------------------------------------------------+ -// -// $Id: ejse-basic.php,v 1.3 2004/05/07 14:41:36 eru Exp $ +/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */ +/** + * Basic example for the EJSE-service + * + * PHP versions 4 and 5 + * + * <LICENSE> + * Copyright (c) 2005, Alexander Wirtz + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * o Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * o Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * o Neither the name of the software nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * </LICENSE> + * + * @category Web Services + * @package Services_Weather + * @author Alexander Wirtz <alex@pc4p.net> + * @copyright 2005 Alexander Wirtz + * @license http://www.opensource.org/licenses/bsd-license.php BSD License + * @version CVS: $Id: ejse-basic.php,v 1.4 2005/11/08 17:52:42 eru Exp $ + * @link http://pear.php.net/package/Services_Weather + * @filesource + */ + require_once "Services/Weather.php"; // Object initialization - error checking is important, because of http://cvs.php.net/diff.php/pear/Services_Weather/examples/globalweather-basic.php?r1=1.4&r2=1.5&ty=u Index: pear/Services_Weather/examples/globalweather-basic.php diff -u pear/Services_Weather/examples/globalweather-basic.php:1.4 pear/Services_Weather/examples/globalweather-basic.php:1.5 --- pear/Services_Weather/examples/globalweather-basic.php:1.4 Fri May 7 10:41:36 2004 +++ pear/Services_Weather/examples/globalweather-basic.php Tue Nov 8 12:52:42 2005 @@ -1,22 +1,49 @@ <?php -/* vim: set expandtab tabstop=4 shiftwidth=4: */ -// +----------------------------------------------------------------------+ -// | PHP version 4 | -// +----------------------------------------------------------------------+ -// | Copyright (c) 1997-2004 The PHP Group | -// +----------------------------------------------------------------------+ -// | This source file is subject to version 2.0 of the PHP license, | -// | that is bundled with this package in the file LICENSE, and is | -// | available through the world-wide-web at | -// | http://www.php.net/license/2_02.txt. | -// | If you did not receive a copy of the PHP license and are unable to | -// | obtain it through the world-wide-web, please send a note to | -// | license@php.net so we can mail you a copy immediately. | -// +----------------------------------------------------------------------+ -// | Authors: Alexander Wirtz <alex@pc4p.net> | -// +----------------------------------------------------------------------+ -// -// $Id: globalweather-basic.php,v 1.4 2004/05/07 14:41:36 eru Exp $ +/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */ + +/** + * Basic example for the GlobalWeather-service + * + * PHP versions 4 and 5 + * + * <LICENSE> + * Copyright (c) 2005, Alexander Wirtz + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * o Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * o Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * o Neither the name of the software nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * </LICENSE> + * + * @category Web Services + * @package Services_Weather + * @author Alexander Wirtz <alex@pc4p.net> + * @copyright 2005 Alexander Wirtz + * @license http://www.opensource.org/licenses/bsd-license.php BSD License + * @version CVS: $Id: globalweather-basic.php,v 1.5 2005/11/08 17:52:42 eru Exp $ + * @link http://pear.php.net/package/Services_Weather + * @filesource + */ require_once "Services/Weather.php"; http://cvs.php.net/diff.php/pear/Services_Weather/examples/weather.com-extensive.php?r1=1.13&r2=1.14&ty=u Index: pear/Services_Weather/examples/weather.com-extensive.php diff -u pear/Services_Weather/examples/weather.com-extensive.php:1.13 pear/Services_Weather/examples/weather.com-extensive.php:1.14 --- pear/Services_Weather/examples/weather.com-extensive.php:1.13 Wed Oct 12 12:09:22 2005 +++ pear/Services_Weather/examples/weather.com-extensive.php Tue Nov 8 12:52:42 2005 @@ -1,24 +1,9 @@ <?php -/* vim: set expandtab tabstop=4 shiftwidth=4: */ -// +----------------------------------------------------------------------+ -// | PHP version 4 | -// +----------------------------------------------------------------------+ -// | Copyright (c) 1997-2004 The PHP Group | -// +----------------------------------------------------------------------+ -// | This source file is subject to version 2.0 of the PHP license, | -// | that is bundled with this package in the file LICENSE, and is | -// | available through the world-wide-web at | -// | http://www.php.net/license/2_02.txt. | -// | If you did not receive a copy of the PHP license and are unable to | -// | obtain it through the world-wide-web, please send a note to | -// | license@php.net so we can mail you a copy immediately. | -// +----------------------------------------------------------------------+ -// | Authors: Alexander Wirtz <alex@pc4p.net> | -// +----------------------------------------------------------------------+ -// -// $Id: weather.com-extensive.php,v 1.13 2005/10/12 16:09:22 eru Exp $ +/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */ -/* +/** + * Elaborate example for the GlobalWeather-service + * * Well, this is a more elaborate example how to create a neat little page * with fetching data from weather.com and putting it into a design. * I'm not too proud of my design-skills, most of the stuff here is taken @@ -34,7 +19,47 @@ * The design should adhere to the conventions defined by the weather.com * SDK-guide, though I won't give any legal certainty for this (of course). * Have fun! -*/ + * + * PHP versions 4 and 5 + * + * <LICENSE> + * Copyright (c) 2005, Alexander Wirtz + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * o Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * o Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * o Neither the name of the software nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * </LICENSE> + * + * @category Web Services + * @package Services_Weather + * @author Alexander Wirtz <alex@pc4p.net> + * @copyright 2005 Alexander Wirtz + * @license http://www.opensource.org/licenses/bsd-license.php BSD License + * @version CVS: $Id: weather.com-extensive.php,v 1.14 2005/11/08 17:52:42 eru Exp $ + * @link http://pear.php.net/package/Services_Weather + * @filesource + */ //------------------------------------------------------------------------- // This is the area, where you can customize the script http://cvs.php.net/diff.php/pear/Services_Weather/examples/php_sunrise_sunset.php?r1=1.4&r2=1.5&ty=u Index: pear/Services_Weather/examples/php_sunrise_sunset.php diff -u pear/Services_Weather/examples/php_sunrise_sunset.php:1.4 pear/Services_Weather/examples/php_sunrise_sunset.php:1.5 --- pear/Services_Weather/examples/php_sunrise_sunset.php:1.4 Thu Jul 21 03:49:07 2005 +++ pear/Services_Weather/examples/php_sunrise_sunset.php Tue Nov 8 12:52:42 2005 @@ -1,30 +1,53 @@ <?php -/* vim: set expandtab tabstop=4 shiftwidth=4: */ -// +----------------------------------------------------------------------+ -// | PHP version 4 | -// +----------------------------------------------------------------------+ -// | Copyright (c) 1997-2004 The PHP Group | -// +----------------------------------------------------------------------+ -// | This source file is subject to version 2.0 of the PHP license, | -// | that is bundled with this package in the file LICENSE, and is | -// | available through the world-wide-web at | -// | http://www.php.net/license/2_02.txt. | -// | If you did not receive a copy of the PHP license and are unable to | -// | obtain it through the world-wide-web, please send a note to | -// | license@php.net so we can mail you a copy immediately. | -// +----------------------------------------------------------------------+ -// | Authors: Alexander Wirtz <alex@pc4p.net> | -// +----------------------------------------------------------------------+ -// -// $Id: php_sunrise_sunset.php,v 1.4 2005/07/21 07:49:07 eru Exp $ - -// The sun position algorithm taken from the 'US Naval Observatory's -// Almanac for Computers', implemented by Ken Bloom <kekabloom@ucdavis.edu> -// for the zmanim project <http://sourceforge.net/projects/zmanim/> -// and finally converted to C by Moshe Doron <mosdoron@netvision.net.il>. -// -// Taken from the PHP5 sources and converted to PHP by above authors. - +/** + * Calculates sunrise and sunset for a location + * The sun position algorithm taken from the 'US Naval Observatory's + * Almanac for Computers', implemented by Ken Bloom <kekabloom[at]ucdavis[dot]edu> + * for the zmanim project <http://sourceforge.net/projects/zmanim/> + * and finally converted to C by Moshe Doron <mosdoron[at]netvision[dot]net[dot]il>. + * + * Taken from the PHP5 sources and converted to PHP by the authors below. + * + * PHP versions 4 and 5 + * + * <LICENSE> + * Copyright (c) 2005, Alexander Wirtz + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * o Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * o Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * o Neither the name of the software nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * </LICENSE> + * + * @category Web Services + * @package Services_Weather + * @author Alexander Wirtz <alex@pc4p.net> + * @copyright 2005 Alexander Wirtz + * @license http://www.opensource.org/licenses/bsd-license.php BSD License + * @version CVS: $Id: php_sunrise_sunset.php,v 1.5 2005/11/08 17:52:42 eru Exp $ + * @link http://pear.php.net/package/Services_Weather + * @filesource + */ if(!defined("SUNFUNCS_RET_TIMESTAMP")) { define("SUNFUNCS_RET_TIMESTAMP", 0); http://cvs.php.net/diff.php/pear/Services_Weather/examples/metar-extensive.php?r1=1.13&r2=1.14&ty=u Index: pear/Services_Weather/examples/metar-extensive.php diff -u pear/Services_Weather/examples/metar-extensive.php:1.13 pear/Services_Weather/examples/metar-extensive.php:1.14 --- pear/Services_Weather/examples/metar-extensive.php:1.13 Thu Jul 21 03:48:39 2005 +++ pear/Services_Weather/examples/metar-extensive.php Tue Nov 8 12:52:42 2005 @@ -1,26 +1,11 @@ <?php -/* vim: set expandtab tabstop=4 shiftwidth=4: */ -// +----------------------------------------------------------------------+ -// | PHP version 4 | -// +----------------------------------------------------------------------+ -// | Copyright (c) 1997-2004 The PHP Group | -// +----------------------------------------------------------------------+ -// | This source file is subject to version 2.0 of the PHP license, | -// | that is bundled with this package in the file LICENSE, and is | -// | available through the world-wide-web at | -// | http://www.php.net/license/2_02.txt. | -// | If you did not receive a copy of the PHP license and are unable to | -// | obtain it through the world-wide-web, please send a note to | -// | license@php.net so we can mail you a copy immediately. | -// +----------------------------------------------------------------------+ -// | Authors: Alexander Wirtz <alex@pc4p.net> | -// +----------------------------------------------------------------------+ -// -// $Id: metar-extensive.php,v 1.13 2005/07/21 07:48:39 eru Exp $ +/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */ -/* +/** + * Elaborate example for the METAR/TAF-service + * * Well, this is a more elaborate example how to create a neat little page - * with fetching METAR/TAF data from noaa.org and putting it into a design. + * with fetching METAR/TAF data from NOAA and putting it into a design. * I'm not too proud of my design-skills, most of the stuff here is taken * from the metar-block which can be found within the Horde Framework, * courtesy of Rick Emery - creative pixelshoving isn't my domain :-P @@ -28,7 +13,47 @@ * disappointed, if the page looks shabby with the IE, not that I care * very much anyway ;-) * Have fun! -*/ + * + * PHP versions 4 and 5 + * + * <LICENSE> + * Copyright (c) 2005, Alexander Wirtz + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * o Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * o Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * o Neither the name of the software nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * </LICENSE> + * + * @category Web Services + * @package Services_Weather + * @author Alexander Wirtz <alex@pc4p.net> + * @copyright 2005 Alexander Wirtz + * @license http://www.opensource.org/licenses/bsd-license.php BSD License + * @version CVS: $Id: metar-extensive.php,v 1.14 2005/11/08 17:52:42 eru Exp $ + * @link http://pear.php.net/package/Services_Weather + * @filesource + */ //------------------------------------------------------------------------- // This is the area, where you can customize the script @@ -55,6 +80,7 @@ // Load the Weather class require_once "Services/Weather.php"; + // Load the scripts needed for sunrise/-set calculation include_once "php_sunrise_sunset.php";
« previous php.pear.cvs (#36159) next »