CVS: phpweather test.php,1.3,1.4
Brought to you by:
iridium
From: Max H. <ir...@us...> - 2002-05-12 15:09:32
|
Update of /cvsroot/phpweather/phpweather In directory usw-pr-cvs1:/tmp/cvs-serv31772 Modified Files: test.php Log Message: Made it work again Index: test.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/test.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- test.php 26 Mar 2002 18:39:45 -0000 1.3 +++ test.php 12 May 2002 15:09:30 -0000 1.4 @@ -13,16 +13,16 @@ require('pw_utilities.php'); $weather = new phpweather(array()); -$weather->set_metar('EGBE 241450Z 18030KT 140V230 9000 FEW025 M10/M15 Q1032'); +$weather->set_metar('RPLL 121400Z 13010KT 9999 FEW025 28/21 Q1011 A 29.86 NOSIG'); $language = "en"; - include(PHPWEATHER_BASE_DIR . "/output/pw_text_$language.php"); - include(PHPWEATHER_BASE_DIR . "/output/pw_images.php"); + require(PHPWEATHER_BASE_DIR . "/output/pw_text_$language.php"); + require(PHPWEATHER_BASE_DIR . "/output/pw_images.php"); $type = 'pw_text_' . $language; $text = new $type($weather, array()); -$text->print_pretty(); +echo $text->print_pretty() . "<br />\n"; $icons = new pw_images($weather, array()); echo '<img src="'.$icons->get_sky_image().'" />'; echo '<img src="'.$icons->get_winddir_image().'" />'; |