CVS: web .cvsignore,1.2,1.3 index.php,1.11,1.12
Brought to you by:
iridium
From: Max H. <ir...@us...> - 2002-03-25 20:26:33
|
Update of /cvsroot/phpweather/web In directory usw-pr-cvs1:/tmp/cvs-serv19337 Modified Files: .cvsignore index.php Log Message: Try to keep it real :) Index: .cvsignore =================================================================== RCS file: /cvsroot/phpweather/web/.cvsignore,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- .cvsignore 18 Mar 2002 16:37:29 -0000 1.2 +++ .cvsignore 25 Mar 2002 20:26:29 -0000 1.3 @@ -1,2 +1,3 @@ phpweather phpweather-1.x +egbe.txt Index: index.php =================================================================== RCS file: /cvsroot/phpweather/web/index.php,v retrieving revision 1.11 retrieving revision 1.12 diff -u -3 -r1.11 -r1.12 --- index.php 24 Mar 2002 22:49:52 -0000 1.11 +++ index.php 25 Mar 2002 20:26:29 -0000 1.12 @@ -1,9 +1,9 @@ <?php require_once('include/header.php'); -require_once('phpweather/phpweather.php'); -require_once('phpweather/output/pw_text_en.php'); -require_once('phpweather/output/pw_images.php'); -require_once('phpweather/pw_utilities.php'); +require_once('../phpweather/phpweather.php'); +require_once('../phpweather/output/pw_text_en.php'); +require_once('../phpweather/output/pw_images.php'); +require_once('../phpweather/pw_utilities.php'); ?> <p>This is the homepage of PHP Weather at <a @@ -14,7 +14,8 @@ <? $weather = new phpweather(array()); -$weather->set_metar("EGBE 242120Z 21005KT 200V270 CAVOK 08/03 Q1031"); +$egbe = fread(fopen('egbe.txt', 'r'),filesize('egbe.txt')); +$weather->set_metar($egbe); $text = new pw_text_en($weather, array('mark_begin' => '<font color="blue">', 'mark_end' => '</font>')); $images = new pw_images($weather, array('icons_path' => 'phpweather/icons/')); |