phpweather-checkins Mailing List for PHP Weather (Page 14)
Brought to you by:
iridium
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
(7) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(1) |
Feb
(1) |
Mar
(184) |
Apr
(31) |
May
(45) |
Jun
(15) |
Jul
(11) |
Aug
(40) |
Sep
(19) |
Oct
(8) |
Nov
(6) |
Dec
(17) |
2003 |
Jan
(5) |
Feb
|
Mar
(12) |
Apr
(5) |
May
(2) |
Jun
(3) |
Jul
(3) |
Aug
(3) |
Sep
(17) |
Oct
(10) |
Nov
|
Dec
(4) |
2004 |
Jan
(21) |
Feb
(11) |
Mar
|
Apr
|
May
(3) |
Jun
(7) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2005 |
Jan
(4) |
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2006 |
Jan
|
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Martin G. <gim...@us...> - 2002-03-28 14:15:31
|
Update of /cvsroot/phpweather/web In directory usw-pr-cvs1:/tmp/cvs-serv31796 Modified Files: index.php Log Message: Added a link to the downloads directory. Index: index.php =================================================================== RCS file: /cvsroot/phpweather/web/index.php,v retrieving revision 1.18 retrieving revision 1.19 diff -u -3 -r1.18 -r1.19 --- index.php 27 Mar 2002 14:40:51 -0000 1.18 +++ index.php 28 Mar 2002 14:15:29 -0000 1.19 @@ -6,9 +6,14 @@ require_once('phpweather/pw_utilities.php'); ?> - <p>This is the homepage of PHP Weather at <a - href="http://www.sourceforge.net/">SourceForge</a>. You should go <a href="http://sourceforge.net/project/showfiles.php?group_id=23245">here to download</a> files.</p> +<p>This is the homepage of PHP Weather at <a +href="http://www.sourceforge.net/">SourceForge</a>.</p> +<p>If you're interested in obtaining PHP Weather, then go to the <a +href="http://sourceforge.net/project/showfiles.php?group_id=23245">download +area at SourceForge</a> for released files. If you want to download +the latest CVS code, then try our <a href="downloads/">daily CVS +snapshot</a>.</p> <p>PHP Weather helps you do this on your webpages:</p> |
From: Martin G. <gim...@us...> - 2002-03-27 21:55:21
|
Update of /cvsroot/phpweather/phpweather In directory usw-pr-cvs1:/tmp/cvs-serv10075 Modified Files: index.php Log Message: Let's try with a real HTTP header instead. Index: index.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/index.php,v retrieving revision 1.27 retrieving revision 1.28 diff -u -3 -r1.27 -r1.28 --- index.php 27 Mar 2002 21:34:34 -0000 1.27 +++ index.php 27 Mar 2002 21:55:17 -0000 1.28 @@ -1,9 +1,9 @@ +<?php header('Content-Type: text/html; charset=UTF-8'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html> <head> - <meta http-equiv="Content-type" content='text/html; charset="UTF-8"' /> <title>PHP Weather - test</title> <style type="text/css"> <!-- |
From: Martin G. <gim...@us...> - 2002-03-27 21:43:55
|
Update of /cvsroot/phpweather/phpweather/output In directory usw-pr-cvs1:/tmp/cvs-serv30923/output Modified Files: pw_text_hu.php Log Message: Small updates in the comments, but more important: I've tried to save the file as UTF-8 on my system, let's see how this goes... Index: pw_text_hu.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/output/pw_text_hu.php,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- pw_text_hu.php 26 Mar 2002 19:52:19 -0000 1.4 +++ pw_text_hu.php 27 Mar 2002 21:43:48 -0000 1.5 @@ -3,12 +3,13 @@ require_once(PHPWEATHER_BASE_DIR . '/output/pw_text.php'); /** - * Provides all the strings needed by locale_common to produce - * Hungarian output. - * A magyar szövegû idõjárásjelentéshez a locale_common innen - * veszi a sztringeket. + * Provides all the strings needed by pw_text to produce Hungarian + * output. * - * @author Mihály Gyulai + * A magyar szövegû idõjárásjelentéshez a pw_text innen veszi a + * sztringeket. + * + * @author Mihály Gyulai * @link http://gyulai.freeyellow.com/ The homepage of the author. * @version $Id$ */ @@ -18,62 +19,62 @@ * This constructor provides all the strings used. * * @param array This is just passed on to locale_common() - * Ezt a paramétert átadjuk locale_common() -nak. + * Ezt a paramétert átadjuk locale_common() -nak. */ function pw_text_hu($weather, $input) { $this->strings['charset'] = 'ISO-8859-2'; - $this->strings['no_data'] = 'Sajnos nincs adat %s%s%s számára.'; - $this->strings['list_sentences_and'] = ' és '; + $this->strings['no_data'] = 'Sajnos nincs adat %s%s%s számára.'; + $this->strings['list_sentences_and'] = ' és '; $this->strings['list_sentences_comma'] = ', '; - $this->strings['list_sentences_final_and'] = ', és '; - $this->strings['location'] = 'Idõjárásjelentés %s%s%s számára.'; + $this->strings['list_sentences_final_and'] = ', és '; + $this->strings['location'] = 'Idõjárásjelentés %s%s%s számára.'; $this->strings['minutes'] = ' '; - $this->strings['time_format'] = 'A jelentés %s perccel ezelõtt készült, %s%s%s UTC-kor.'; - $this->strings['time_minutes'] = 'és %s%s%s '; - $this->strings['time_one_hour'] = '%segy%s órával %s'; - $this->strings['time_several_hours'] = '%s%s%s órával %s'; + $this->strings['time_format'] = 'A jelentés %s perccel ezelõtt készült, %s%s%s UTC-kor.'; + $this->strings['time_minutes'] = 'és %s%s%s '; + $this->strings['time_one_hour'] = '%segy%s órával %s'; + $this->strings['time_several_hours'] = '%s%s%s órával %s'; $this->strings['time_a_moment'] = 'jelenleg'; $this->strings['meters_per_second'] = ' m/s'; - $this->strings['miles_per_hour'] = ' mérföld/h'; + $this->strings['miles_per_hour'] = ' mérföld/h'; $this->strings['meter'] = ' m'; $this->strings['meters'] = ' m'; - $this->strings['feet'] = ' láb'; + $this->strings['feet'] = ' láb'; $this->strings['kilometers'] = ' km'; - $this->strings['miles'] = ' mérföld'; - $this->strings['and'] = ' és '; - $this->strings['plus'] = ' és '; + $this->strings['miles'] = ' mérföld'; + $this->strings['and'] = ' és '; + $this->strings['plus'] = ' és '; $this->strings['with'] = ''; - $this->strings['wind_blowing'] = 'Szélsebesség: '; - $this->strings['wind_with_gusts'] = ' széllökések: '; - $this->strings['wind_from'] = ' iránya: '; - $this->strings['wind_variable'] = ' %skülönbözõ%s irányokból.'; - $this->strings['wind_varying'] = ', változik %s%s%s (%s%s°%s) és %s%s%s (%s%s°%s) között'; - $this->strings['wind_calm'] = 'Szél %snem fújt%s'; + $this->strings['wind_blowing'] = 'Szélsebesség: '; + $this->strings['wind_with_gusts'] = ' széllökések: '; + $this->strings['wind_from'] = ' iránya: '; + $this->strings['wind_variable'] = ' %skülönbözõ%s irányokból.'; + $this->strings['wind_varying'] = ', változik %s%s%s (%s%s°%s) és %s%s%s (%s%s°%s) között'; + $this->strings['wind_calm'] = 'Szél %snem fújt%s'; $this->strings['wind_dir'] = array( - 'Észak', - 'Észak/Északkelet', - 'Északkelet', - 'Kelet/Északkelet', + 'Ãszak', + 'Ãszak/Ãszakkelet', + 'Ãszakkelet', + 'Kelet/Ãszakkelet', 'Kelet', - 'Kelet/Délkelet', - 'Délkelet', - 'Dél/Délkelet', - 'Dél', - 'Dél/Délnyugat', - 'Délnyugat', - 'Nyugat/Délnyugat', + 'Kelet/Délkelet', + 'Délkelet', + 'Dél/Délkelet', + 'Dél', + 'Dél/Délnyugat', + 'Délnyugat', + 'Nyugat/Délnyugat', 'Nyugat', - 'Nyugat/Északnyugat', - 'Északnyugat', - 'Észak/Északnyugat', - 'Észak'); + 'Nyugat/Ãszaknyugat', + 'Ãszaknyugat', + 'Ãszak/Ãszaknyugat', + 'Ãszak'); $this->strings['wind_dir_short'] = array( - 'É', - 'É/ÉK', - 'ÉK', - 'K/ÉK', + 'Ã', + 'Ã/ÃK', + 'ÃK', + 'K/ÃK', 'K', 'K/DK', 'DK', @@ -83,98 +84,98 @@ 'DNY', 'NY/DNY', 'NY', - 'NY/ÉNY', - 'ÉNY', - 'É/ÉNY', - 'É' + 'NY/ÃNY', + 'ÃNY', + 'Ã/ÃNY', + 'Ã' ); $this->strings['wind_dir_short_long'] = array( - 'É' => 'északi', - 'ÉK' => 'északkeleti', + 'Ã' => 'északi', + 'ÃK' => 'északkeleti', 'K' => 'keleti', - 'DK' => 'délkeleti', - 'D' => 'déli', - 'DNY' => 'délnyugati', + 'DK' => 'délkeleti', + 'D' => 'déli', + 'DNY' => 'délnyugati', 'NY' => 'nyugati', - 'ÉNY' => 'északnyugati' + 'ÃNY' => 'északnyugati' ); - $this->strings['temperature'] = 'A hõmérséklet '; + $this->strings['temperature'] = 'A hõmérséklet '; $this->strings['dew_point'] = ', a harmatpont '; - $this->strings['altimeter'] = 'A légköri nyomás '; + $this->strings['altimeter'] = 'A légköri nyomás '; $this->strings['hPa'] = ' hPa'; $this->strings['inHg'] = ' inHg'; - $this->strings['rel_humidity'] = 'A relatív páratartalom '; - $this->strings['windchill'] = 'A hõérzet '; - $this->strings['cloud_group_beg'] = 'Az égbolton'; - $this->strings['cloud_group_end'] = ' magasságban.'; - $this->strings['cloud_clear'] = 'Az égbolt %sfelhõtlen%s volt.'; - $this->strings['cloud_height'] = 'felhõ '; - $this->strings['cloud_overcast'] = 'az égbolt %sborult%s '; - $this->strings['cloud_vertical_visibility'] = 'a %sfüggõleges láthatóság%s '; + $this->strings['rel_humidity'] = 'A relatÃv páratartalom '; + $this->strings['windchill'] = 'A hõérzet '; + $this->strings['cloud_group_beg'] = 'Az égbolton'; + $this->strings['cloud_group_end'] = ' magasságban.'; + $this->strings['cloud_clear'] = 'Az égbolt %sfelhõtlen%s volt.'; + $this->strings['cloud_height'] = 'felhõ '; + $this->strings['cloud_overcast'] = 'az égbolt %sborult%s '; + $this->strings['cloud_vertical_visibility'] = 'a %sfüggõleges láthatóság%s '; $this->strings['cloud_condition'] = array( - 'SKC' => ' derült', + 'SKC' => ' derült', 'CLR' => ' tiszta', - 'FEW' => ' néhány ', - 'SCT' => ' szórványos ', + 'FEW' => ' néhány ', + 'SCT' => ' szórványos ', 'BKN' => ' szakadozott ', 'OVC' => ' borult'); $this->strings['cumulonimbus'] = ' gomoly'; $this->strings['towering_cumulus'] = ' vihar'; - $this->strings['cavok'] = ' nincsenek felhõk %s magasságban, és nincs gomolyfelhõ'; - $this->strings['currently'] = 'Jellemzõ: '; + $this->strings['cavok'] = ' nincsenek felhõk %s magasságban, és nincs gomolyfelhõ'; + $this->strings['currently'] = 'Jellemzõ: '; $this->strings['weather'] = array( - '-' => ' könnyû ', + '-' => ' könnyû ', ' ' => ' enyhe ', - '+' => ' erõs ', - 'VC' => ' a közelben', - 'PR' => ' részleges', + '+' => ' erõs ', + 'VC' => ' a közelben', + 'PR' => ' részleges', 'BC' => ' szakadozott', - 'MI' => ' felszínes', - 'DR' => 'enyhe légmozgás', - 'BL' => 'széllökés', - 'SH' => 'zápor', + 'MI' => ' felszÃnes', + 'DR' => 'enyhe légmozgás', + 'BL' => 'széllökés', + 'SH' => 'zápor', 'TS' => 'zivatar', 'FZ' => 'fagy', - 'DZ' => 'szitáló esõ', - 'RA' => 'esõ', - 'SN' => 'hó', - 'SG' => 'szemcsés hó', - 'IC' => 'jégkristály', - 'PE' => 'jégdara', - 'GR' => 'jégesõ', - 'GS' => 'apró jégesõ és/vagy hódara', + 'DZ' => 'szitáló esõ', + 'RA' => 'esõ', + 'SN' => 'hó', + 'SG' => 'szemcsés hó', + 'IC' => 'jégkristály', + 'PE' => 'jégdara', + 'GR' => 'jégesõ', + 'GS' => 'apró jégesõ és/vagy hódara', 'UP' => 'ismeretlen', - 'BR' => 'köd', - 'FG' => 'sûrû köd', - 'FU' => 'füst', - 'VA' => 'vulkáni hamu', + 'BR' => 'köd', + 'FG' => 'sûrû köd', + 'FU' => 'füst', + 'VA' => 'vulkáni hamu', 'DU' => 'kiterjedt por', 'SA' => 'homok', - 'HZ' => 'pára', + 'HZ' => 'pára', 'PY' => 'permet', - 'PO' => 'por/homok örvény', - 'SQ' => 'szélroham', - 'FC' => 'felhõtölcsér/tornádó/vízoszlop', + 'PO' => 'por/homok örvény', + 'SQ' => 'szélroham', + 'FC' => 'felhõtölcsér/tornádó/vÃzoszlop', 'SS' => 'homokvihar/porvihar' ); - $this->strings['visibility'] = 'A láthatóság általában '; + $this->strings['visibility'] = 'A láthatóság általában '; $this->strings['visibility_greater_than'] = 'nagyobb, mint '; $this->strings['visibility_less_than'] = 'kisebb, mint '; - $this->strings['runway_upward_tendency'] = ' %snövekvõ%s tendenciával'; - $this->strings['runway_downward_tendency'] = ' %scsökkenõ%s tendenciával'; - $this->strings['runway_no_tendency'] = ' határozott %stendencia nélkül%s'; - $this->strings['runway_between'] = 'közötti? '; + $this->strings['runway_upward_tendency'] = ' %snövekvõ%s tendenciával'; + $this->strings['runway_downward_tendency'] = ' %scsökkenõ%s tendenciával'; + $this->strings['runway_no_tendency'] = ' határozott %stendencia nélkül%s'; + $this->strings['runway_between'] = 'közötti? '; $this->strings['runway_left'] = ' bal'; - $this->strings['runway_central'] = ' középsõ'; + $this->strings['runway_central'] = ' középsõ'; $this->strings['runway_right'] = ' jobb'; - $this->strings['runway_visibility'] = 'A láthatóság '; - $this->strings['runway_for_runway'] = ' a kifutópályán '; + $this->strings['runway_visibility'] = 'A láthatóság '; + $this->strings['runway_for_runway'] = ' a kifutópályán '; /* We run the parent constructor */ |
From: Martin G. <gim...@us...> - 2002-03-27 21:34:38
|
Update of /cvsroot/phpweather/phpweather In directory usw-pr-cvs1:/tmp/cvs-serv24254 Modified Files: index.php Log Message: Fix those alt attributes too. Index: index.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/index.php,v retrieving revision 1.26 retrieving revision 1.27 diff -u -3 -r1.26 -r1.27 --- index.php 27 Mar 2002 21:30:07 -0000 1.26 +++ index.php 27 Mar 2002 21:34:34 -0000 1.27 @@ -112,11 +112,14 @@ echo "<blockquote>\n"; echo '<img src="' . $icons->get_sky_image() . - '" height="50" width="80" border="1" /> '; + '" height="50" width="80" border="1" alt="Current weather in ' . + $weather->get_location() . '" /> '; echo '<img src="' . $icons->get_winddir_image() . - '" height="40" width="40" border="1" /> '; + '" height="40" width="40" border="1" alt="Current wind in ' . + $weather->get_location() . '" /> '; echo '<img src="' . $icons->get_temp_image() . - '" height="50" width="20" border="1" />'; + '" height="50" width="20" border="1" alt="Current weather in ' . + $weather->get_location() . '" />'; echo "</blockquote>\n"; |
From: Martin G. <gim...@us...> - 2002-03-27 21:30:14
|
Update of /cvsroot/phpweather/phpweather In directory usw-pr-cvs1:/tmp/cvs-serv19649 Modified Files: index.php Log Message: Ugh - we're found the XML-with-PHP problem I've heard about, but never thought that I would see. I don't think that we can require people to set 'short_open_tag false' in their configuration files (or .htaccess files for that matter) so we cannot have this line in our files. Index: index.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/index.php,v retrieving revision 1.25 retrieving revision 1.26 diff -u -3 -r1.25 -r1.26 --- index.php 27 Mar 2002 21:25:12 -0000 1.25 +++ index.php 27 Mar 2002 21:30:07 -0000 1.26 @@ -1,4 +1,3 @@ -<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> |
From: Martin G. <gim...@us...> - 2002-03-27 21:25:18
|
Update of /cvsroot/phpweather/phpweather In directory usw-pr-cvs1:/tmp/cvs-serv15364 Modified Files: index.php Log Message: More updates for XHTML. I'm not sure about that UTF-8 thing. As far as I understand it, then UTF-8 covers both ISO-8859-1 and ISO-8859-2. So if we specify that the charset is UTF-8, then we should be OK? Index: index.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/index.php,v retrieving revision 1.24 retrieving revision 1.25 diff -u -3 -r1.24 -r1.25 --- index.php 27 Mar 2002 20:13:19 -0000 1.24 +++ index.php 27 Mar 2002 21:25:12 -0000 1.25 @@ -1,17 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html> <head> + <meta http-equiv="Content-type" content='text/html; charset="UTF-8"' /> <title>PHP Weather - test</title> - <style type="text/css"> + <style type="text/css"> <!-- BODY { font-family: Verdana, Tahoma, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; } --> - </style> + </style> </head> <body> @@ -53,7 +55,7 @@ stations in that country. */ echo ' -<form action="index.php" method="get" /> +<form action="index.php" method="get"> <p> <input type="hidden" name="action" value="show_weather" /> '; |
From: Martin G. <gim...@us...> - 2002-03-27 20:16:07
|
Update of /cvsroot/phpweather/phpweather In directory usw-pr-cvs1:/tmp/cvs-serv9884 Modified Files: phpweather.php Log Message: This should be wrapped in a call to debug(). Index: phpweather.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/phpweather.php,v retrieving revision 1.20 retrieving revision 1.21 diff -u -3 -r1.20 -r1.21 --- phpweather.php 26 Mar 2002 16:29:32 -0000 1.20 +++ phpweather.php 27 Mar 2002 20:16:00 -0000 1.21 @@ -54,7 +54,7 @@ */ function get_languages($type) { require(PHPWEATHER_BASE_DIR . '/languages.php'); - echo "Finding language for $type\n"; + $this->debug("Finding language for $type"); $dir = opendir(PHPWEATHER_BASE_DIR . '/output'); while($file = readdir($dir)) { |
From: Martin G. <gim...@us...> - 2002-03-27 20:13:26
|
Update of /cvsroot/phpweather/phpweather In directory usw-pr-cvs1:/tmp/cvs-serv8521 Modified Files: index.php pw_utilities.php Log Message: This should fix most of the problems with XHTML in the pages. Index: index.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/index.php,v retrieving revision 1.23 retrieving revision 1.24 diff -u -3 -r1.23 -r1.24 --- index.php 27 Mar 2002 14:47:34 -0000 1.23 +++ index.php 27 Mar 2002 20:13:19 -0000 1.24 @@ -35,8 +35,8 @@ country. */ echo ' -<p> <form action="index.php" method="get"> +<p> <input type="hidden" name="action" value="show_stations" /> '; @@ -44,8 +44,8 @@ echo ' <input type="submit" /> -</form> </p> +</form> '; } elseif ($action == 'show_stations' && !empty($cc)) { @@ -53,8 +53,8 @@ stations in that country. */ echo ' -<p> <form action="index.php" method="get" /> +<p> <input type="hidden" name="action" value="show_weather" /> '; @@ -68,15 +68,15 @@ echo ' <input type="submit" /> -</form> </p> +</form> '; } elseif ($action == 'show_weather' && !empty($language)) { /* A station has just been selected - we print the weather. */ echo ' -<p> <form action="index.php" method="get"> +<p> <input type="hidden" name="action" value="show_weather" /> '; @@ -86,8 +86,8 @@ echo ' <input type="submit" /> -</form> </p> +</form> '; if ($cc == $old_cc) { Index: pw_utilities.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/pw_utilities.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- pw_utilities.php 27 Mar 2002 14:47:35 -0000 1.2 +++ pw_utilities.php 27 Mar 2002 20:13:20 -0000 1.3 @@ -11,7 +11,7 @@ $countries = $weather->db->get_countries(); while (list($cc, $country) = each($countries)) { if ($cc == $old_cc) { - echo "<option value=\"$cc\" selected>$country</option>\n"; + echo "<option value=\"$cc\" selected=\"selected\">$country</option>\n"; } else { echo "<option value=\"$cc\">$country</option>\n"; } @@ -33,7 +33,7 @@ while (list($icao, $name) = each($icaos)) { if ($icao == $old_icao) { - echo "<option value=\"$icao\" selected>$name</option>\n"; + echo "<option value=\"$icao\" selected=\"selected\">$name</option>\n"; } else { echo "<option value=\"$icao\">$name</option>\n"; } @@ -52,7 +52,7 @@ while (list($lc, $language) = each($languages)) { if ($lc == $old_language) { - echo "<option value=\"$lc\" selected>$language</option>\n"; + echo "<option value=\"$lc\" selected=\"selected\">$language</option>\n"; } else { echo "<option value=\"$lc\">$language</option>\n"; } |
From: Max H. <ir...@us...> - 2002-03-27 15:13:45
|
Update of /cvsroot/phpweather/phpweather/output In directory usw-pr-cvs1:/tmp/cvs-serv25216 Modified Files: pw_text.php Log Message: Utility function Index: pw_text.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/output/pw_text.php,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- pw_text.php 26 Mar 2002 23:10:49 -0000 1.5 +++ pw_text.php 27 Mar 2002 15:13:40 -0000 1.6 @@ -1124,6 +1124,20 @@ return 0; } + + /** + * Just get the time of the last report. + * + * @param array Data taken from decode_metar() + * @access public + */ + function get_metar_time() { + // We use our own weather-object. + $data = $this->weather->decode_metar(); + return gmdate('H:i \U\T\C', $data['time']); + } + + /** * Makes a short weather-report in a table. * |
From: Max H. <ir...@us...> - 2002-03-27 14:47:38
|
Update of /cvsroot/phpweather/phpweather In directory usw-pr-cvs1:/tmp/cvs-serv17091 Modified Files: index.php pw_utilities.php Log Message: XHTMLisation Index: index.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/index.php,v retrieving revision 1.22 retrieving revision 1.23 diff -u -3 -r1.22 -r1.23 --- index.php 26 Mar 2002 20:09:48 -0000 1.22 +++ index.php 27 Mar 2002 14:47:34 -0000 1.23 @@ -1,3 +1,6 @@ +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "DTD/xhtml1-transitional.dtd"> <html> <head> <title>PHP Weather - test</title> @@ -34,13 +37,13 @@ echo ' <p> <form action="index.php" method="get"> -<input type="hidden" name="action" value="show_stations"> +<input type="hidden" name="action" value="show_stations" /> '; make_countries_select($weather, ''); echo ' -<input type="submit"> +<input type="submit" /> </form> </p> '; @@ -51,8 +54,8 @@ echo ' <p> -<form action="index.php" method="get"> -<input type="hidden" name="action" value="show_weather"> +<form action="index.php" method="get" /> +<input type="hidden" name="action" value="show_weather" /> '; if (empty($icao)) $icao = ''; @@ -64,7 +67,7 @@ make_languages_select($weather, $language); echo ' -<input type="submit"> +<input type="submit" /> </form> </p> '; @@ -74,7 +77,7 @@ echo ' <p> <form action="index.php" method="get"> -<input type="hidden" name="action" value="show_weather"> +<input type="hidden" name="action" value="show_weather" /> '; make_countries_select($weather, $cc); @@ -82,7 +85,7 @@ make_languages_select($weather, $language); echo ' -<input type="submit"> +<input type="submit" /> </form> </p> '; @@ -108,11 +111,11 @@ echo "<blockquote>\n"; echo '<img src="' . $icons->get_sky_image() . - '" height="50" width="80" border="1"> '; + '" height="50" width="80" border="1" /> '; echo '<img src="' . $icons->get_winddir_image() . - '" height="40" width="40" border="1"> '; + '" height="40" width="40" border="1" /> '; echo '<img src="' . $icons->get_temp_image() . - '" height="50" width="20" border="1">'; + '" height="50" width="20" border="1" />'; echo "</blockquote>\n"; Index: pw_utilities.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/pw_utilities.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- pw_utilities.php 18 Mar 2002 16:13:21 -0000 1.1 +++ pw_utilities.php 27 Mar 2002 14:47:35 -0000 1.2 @@ -17,7 +17,7 @@ } } echo "</select>\n"; - echo '<input type="hidden" name="old_cc" value="' . $old_cc . '">'; + echo '<input type="hidden" name="old_cc" value="' . $old_cc . '" />'; } @@ -39,7 +39,7 @@ } } echo "</select>\n"; - echo '<input type="hidden" name="old_icao" value="' . $old_icao . '">'; + echo '<input type="hidden" name="old_icao" value="' . $old_icao . '" />'; } @@ -58,7 +58,7 @@ } } echo "</select>\n"; - echo '<input type="hidden" name="old_language" value="' . $old_language . '">'; + echo '<input type="hidden" name="old_language" value="' . $old_language . '" />'; } ?> |
From: Max H. <ir...@us...> - 2002-03-27 14:40:53
|
Update of /cvsroot/phpweather/web In directory usw-pr-cvs1:/tmp/cvs-serv15620 Modified Files: index.php Log Message: How many times am I going to make that same mistake? Index: index.php =================================================================== RCS file: /cvsroot/phpweather/web/index.php,v retrieving revision 1.17 retrieving revision 1.18 diff -u -3 -r1.17 -r1.18 --- index.php 27 Mar 2002 14:39:21 -0000 1.17 +++ index.php 27 Mar 2002 14:40:51 -0000 1.18 @@ -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 |
From: Max H. <ir...@us...> - 2002-03-27 14:40:53
|
Update of /cvsroot/phpweather/web/include In directory usw-pr-cvs1:/tmp/cvs-serv15620/include Modified Files: header.php Log Message: How many times am I going to make that same mistake? Index: header.php =================================================================== RCS file: /cvsroot/phpweather/web/include/header.php,v retrieving revision 1.8 retrieving revision 1.9 diff -u -3 -r1.8 -r1.9 --- header.php 27 Mar 2002 14:39:21 -0000 1.8 +++ header.php 27 Mar 2002 14:40:51 -0000 1.9 @@ -27,7 +27,7 @@ <!-- <link rel="shortcut icon" href="/favicon.ico"> --> </head> <body> -<a href="phpweather.sourceforge.net"><img src="http://phpweather.sourceforge.net/phpweather-long-white.gif" border="0" align="left" alt="PHP Weather Home Page" /></a> +<a href="http://phpweather.sourceforge.net"><img src="http://phpweather.sourceforge.net/phpweather-long-white.gif" border="0" align="left" alt="PHP Weather Home Page" /></a> <?php /* Make the links. */ print_parents(substr($PHP_SELF, strlen(ROOT))); print_siblings(substr($PHP_SELF, strlen(ROOT))); |
From: Max H. <ir...@us...> - 2002-03-27 14:39:24
|
Update of /cvsroot/phpweather/web In directory usw-pr-cvs1:/tmp/cvs-serv15189 Modified Files: index.php Log Message: XHTML time, guys. Close those tags... :) Index: index.php =================================================================== RCS file: /cvsroot/phpweather/web/index.php,v retrieving revision 1.16 retrieving revision 1.17 diff -u -3 -r1.16 -r1.17 --- index.php 26 Mar 2002 22:05:13 -0000 1.16 +++ index.php 27 Mar 2002 14:39:21 -0000 1.17 @@ -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 @@ -22,11 +22,11 @@ echo '<p>Current weather for ' . $weather->get_location() . ': <br />' . '<img src="' . $images->get_sky_image() . - '" height="50" width="80" border="1" alt="Current weather"> ' . + '" height="50" width="80" border="1" alt="Current weather" /> ' . '<img src="' . $images->get_winddir_image() . - '" height="40" width="40" border="1" alt="Current wind"> ' . + '" height="40" width="40" border="1" alt="Current wind" /> ' . '<img src="' . $images->get_temp_image() . - '" height="50" width="20" border="1" alt="Current temperature"></p>'; + '" height="50" width="20" border="1" alt="Current temperature" /></p>'; echo "<p>A textual report looks like this:</p>\n"; @@ -43,13 +43,13 @@ echo ' <p> <form action="index.php" method="post"> -<input type="hidden" name="action" value="show_stations"> +<input type="hidden" name="action" value="show_stations" /> '; make_countries_select($weather, ''); echo ' -<input type="submit"> +<input type="submit" /> </form> </p> '; @@ -61,7 +61,7 @@ echo ' <p> <form action="index.php" method="post"> -<input type="hidden" name="action" value="show_weather"> +<input type="hidden" name="action" value="show_weather" /> '; if (empty($icao)) $icao = ''; @@ -73,7 +73,7 @@ make_languages_select($weather, $language); echo ' -<input type="submit"> +<input type="submit" /> </form> </p> '; @@ -83,7 +83,7 @@ echo ' <p> <form action="index.php" method="post"> -<input type="hidden" name="action" value="show_weather"> +<input type="hidden" name="action" value="show_weather" /> '; make_countries_select($weather, $cc); @@ -118,11 +118,11 @@ echo "<blockquote>\n"; echo '<img src="' . $icons->get_sky_image() . - '" height="50" width="80" border="1" alt="Current weather"> '; + '" height="50" width="80" border="1" alt="Current weather" /> '; echo '<img src="' . $icons->get_winddir_image() . - '" height="40" width="40" border="1" alt="Current wind"> '; + '" height="40" width="40" border="1" alt="Current wind" /> '; echo '<img src="' . $icons->get_temp_image() . - '" height="50" width="20" border="1" alt="Current temperature">'; + '" height="50" width="20" border="1" alt="Current temperature" />'; echo "</blockquote>\n"; |
From: Max H. <ir...@us...> - 2002-03-27 14:39:24
|
Update of /cvsroot/phpweather/web/include In directory usw-pr-cvs1:/tmp/cvs-serv15189/include Modified Files: footer.php header.php Log Message: XHTML time, guys. Close those tags... :) Index: footer.php =================================================================== RCS file: /cvsroot/phpweather/web/include/footer.php,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- footer.php 26 Mar 2002 22:09:12 -0000 1.5 +++ footer.php 27 Mar 2002 14:39:21 -0000 1.6 @@ -1,12 +1,12 @@ -<hr> +<hr /> <a href="http://sourceforge.net/projects/phpweather/"><img src="http://phpweather.sourceforge.net/phpweather-white.gif" -border="0" alt="PHP Weather Logo" align="left"></a> +border="0" alt="PHP Weather Logo" align="left" /></a> <a href="http://sourceforge.net/"><img src="http://sourceforge.net/sflogo.php?group_id=23245" width="88" -height="31" border="0" alt="SourceForge Logo" align="right"></a> +height="31" border="0" alt="SourceForge Logo" align="right" /></a> <p>This page was last modified on <? echo date('F jS, Y', getlastmod()) ?>.</p> Index: header.php =================================================================== RCS file: /cvsroot/phpweather/web/include/header.php,v retrieving revision 1.7 retrieving revision 1.8 diff -u -3 -r1.7 -r1.8 --- header.php 26 Mar 2002 22:21:37 -0000 1.7 +++ header.php 27 Mar 2002 14:39:21 -0000 1.8 @@ -17,19 +17,21 @@ include(dirname(__FILE__) . '/navigation.php'); ?> -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "DTD/xhtml1-transitional.dtd"> <html> <head> <title>PHP Weather: <?php echo $pages[$PHP_SELF]['title'] ?></title> - <link rel="stylesheet" type="text/css" href="<?php echo ROOT ?>/style.css"> + <link rel="stylesheet" type="text/css" href="<?php echo ROOT ?>/style.css" /> <!-- <link rel="shortcut icon" href="/favicon.ico"> --> </head> <body> - +<a href="phpweather.sourceforge.net"><img src="http://phpweather.sourceforge.net/phpweather-long-white.gif" border="0" align="left" alt="PHP Weather Home Page" /></a> <?php /* Make the links. */ print_parents(substr($PHP_SELF, strlen(ROOT))); print_siblings(substr($PHP_SELF, strlen(ROOT))); -echo "<hr>\n"; +echo "<br /><hr />\n"; print_greeting(substr($PHP_SELF, strlen(ROOT))); ?> |
From: Max H. <ir...@us...> - 2002-03-27 14:23:48
|
Update of /cvsroot/phpweather/web In directory usw-pr-cvs1:/tmp/cvs-serv8440 Added Files: phpweather-long-white.gif Log Message: New long icon --- BINARY FILE --- |
From: Max H. <ir...@us...> - 2002-03-27 14:22:35
|
Update of /cvsroot/phpweather/web In directory usw-pr-cvs1:/tmp/cvs-serv7786 Modified Files: phpweather-white.gif Log Message: Updated icon again --- BINARY FILE --- |
From: Max H. <ir...@us...> - 2002-03-27 14:21:40
|
Update of /cvsroot/phpweather/phpweather/icons In directory usw-pr-cvs1:/tmp/cvs-serv7113 Modified Files: phpweather-black.gif phpweather-white.gif Added Files: phpweather-long-black.gif phpweather-long-white.gif Log Message: Updated cloud (again) and new larger icons too --- BINARY FILE --- --- BINARY FILE --- --- BINARY FILE --- --- BINARY FILE --- |
From: Max H. <ir...@us...> - 2002-03-27 10:59:36
|
Update of /cvsroot/phpweather/phpweather In directory usw-pr-cvs1:/tmp/cvs-serv7233 Modified Files: INSTALL README Log Message: Updated Index: INSTALL =================================================================== RCS file: /cvsroot/phpweather/phpweather/INSTALL,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- INSTALL 8 Jul 2001 19:43:29 -0000 1.5 +++ INSTALL 27 Mar 2002 10:59:33 -0000 1.6 @@ -1,5 +1,5 @@ Installation instructions for PHP Weather #VERSION# #DATE# -Copyright (C) 2000, 2001 Martin Geisler <gim...@gi...> +Copyright (C) 2000-2002 Martin Geisler <gim...@gi...> Licensed under the GNU GPL. See the file COPYING for details. @@ -7,19 +7,23 @@ ----------------- You can always get the latest version from - http://phpweather.sourceforge.net + http://www.phpweather.net Installation ------------ -To try out PHP Weather to see how it works, just untar the tarball -into a directory on your webserver, and load the page index.php into -your favourite browser. +To try out PHP Weather to see that it works, just untar the tarball +into a directory on your webserver, and load the page index.php in your +favorite browser. + +There will be a drop-down list where you can select a city and a +language, so have the weather for that city displayed in the chosen +language. -For detailed and current information about using PHP Weather please -see the webpage at this address: +For detailed information about using PHP Weather please +see the PHP Weather webpages at this address: - http://phpweather.sourceforge.net + http://www.phpweather.net I've chosen to put the documentation there, because it's easier for me to update. It also gives you a chance to see all the features of PHP @@ -28,42 +32,30 @@ Database Setup -------------- -To use a MySQL database, you should create a table with the following -SQL-statement: +You should use the script configurator.php to create the database tables +that you need. Two tables are configured, one that holds METARs, and one +that holds a database of station names. -CREATE TABLE metars ( - metar VARCHAR(255) NOT NULL, - timestamp TIMESTAMP(14), - station VARCHAR(4) NOT NULL, - PRIMARY KEY (station), - UNIQUE station (station) -); - -If you're using a PostgreSQL database, you should use this statement -instead: - -CREATE TABLE metars ( - metar VARCHAR(255) NOT NULL, - timestamp TIMESTAMP, - station VARCHAR(4) PRIMARY KEY NOT NULL -); +The configurator currently asks you what you'd like to call a table of +countries - this table is not created. Don't panic. Bugs? ----- -If you find a bug or miss something in PHP Weather, please don't -hesitate to mail to this address: - - <php...@li...> - -The address is a mailinglist for reporting bugs and general -discussions about PHP Weather. To join the list, please mail -to this page: +If you find a bug or have a feature request for PHP Weather, please +don't hesitate to report it at http://sourceforge.net/projects/phpweather/ +We have a mailing list for general discussions about PHP Weather, +but before you can send mails to the list, you have to subscribe +to it - go to this page to subscribe: http://lists.sourceforge.net/lists/listinfo/phpweather-devel -Please remember to include the raw METAR you're having problems with -if you send me a message. Without it I can't really help. - +If PHP Weather is decoding a METAR incorrectly, please remember to +include that METAR you're having problems with when you send a +message or submit a bug. Without it, we can't really help you. + +This version of PHP Weather only works with PHP4. The PHP Weather +1.x series work with PHP3, and are available from the project +page on sourceforge. -Enjoy the good weather! - Martin Geisler <gim...@gi...> +Enjoy! - Martin Geisler <gim...@gi...> Index: README =================================================================== RCS file: /cvsroot/phpweather/phpweather/README,v retrieving revision 1.12 retrieving revision 1.13 diff -u -3 -r1.12 -r1.13 --- README 8 Jul 2001 18:47:53 -0000 1.12 +++ README 27 Mar 2002 10:59:33 -0000 1.13 @@ -1,5 +1,5 @@ README for PHP Weather #VERSION# #DATE# -Copyright (C) 2000, 2001 Martin Geisler <gim...@gi...> +Copyright (C) 2000-2002 Martin Geisler <gim...@gi...> Licensed under the GNU GPL. See the file COPYING for details. @@ -32,23 +32,23 @@ you can add a translation. o Can be used with WAP-phones. Example-page is included. -Please see http://phpweather.sourceforge.net/ for full details and +Please see http://www.phpweather.net/ for full details and examples. How to contact me ----------------- -If you encounter problems with PHP Weather, or just want to suggest a -new feature, then please don't hesitate to contact me at this address: - - <php...@li...>. - -The address is a mailinglist, please go to this address to subscribe: +If you find a bug or have a feature request for PHP Weather, please +don't hesitate to report it at http://sourceforge.net/projects/phpweather/ +We have a mailing list for general discussions about PHP Weather, +but before you can send mails to the list, you have to subscribe +to it - go to this page to subscribe: http://lists.sourceforge.net/lists/listinfo/phpweather-devel -Please remember to include the raw METAR which you have problems with, -if you send me a message. Without it I can't really help. +If PHP Weather is decoding a METAR incorrectly, please remember to +include that METAR you're having problems with when you send a +message or submit a bug. Without it, we can't really help you. You can always get the newest version at |
From: Max H. <ir...@us...> - 2002-03-27 10:55:31
|
Update of /cvsroot/phpweather/phpweather-1.x In directory usw-pr-cvs1:/tmp/cvs-serv5788 Modified Files: INSTALL Log Message: General updates Index: INSTALL =================================================================== RCS file: /cvsroot/phpweather/phpweather-1.x/INSTALL,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -3 -r1.1.1.1 -r1.2 --- INSTALL 7 Mar 2002 09:49:11 -0000 1.1.1.1 +++ INSTALL 27 Mar 2002 10:55:28 -0000 1.2 @@ -34,18 +34,19 @@ Bugs? ----- -If you find a bug or miss something in PHP Weather, please don't -hesitate to report it at <php...@li...>! The -address is a maillinglist for reporting bugs and general discussions -about PHP Weather. But before you can send mails to the list, you have -to subscribe to it - go to this page to subscribe: +If you find a bug or feature request for PHP Weather, please don't +hesitate to report it at http://sourceforge.net/projects/phpweather/ +We have a mailing list for general discussions about PHP Weather, +but before you can send mails to the list, you have to subscribe +to it - go to this page to subscribe: http://lists.sourceforge.net/lists/listinfo/phpweather-devel -Please remember to include the METAR you're having problems with when -you send me a message. Without it, I can't really help you. +If PHP Weather is decoding a METAR incorrectly, please remember to +include that METAR you're having problems with when you send a +message or submit a bug. Without it, we can't really help you. -PHP Weather is know to work with PHP from version 3.0.12 and upward. +PHP Weather is known to work with PHP from version 3.0.12 and upward. If you find that it works with an earlier version, please write me! Enjoy! - Martin Geisler <gim...@gi...> |
From: Max H. <ir...@us...> - 2002-03-27 10:28:40
|
Update of /cvsroot/phpweather/phpweather/icons In directory usw-pr-cvs1:/tmp/cvs-serv23832 Modified Files: phpweather-black.gif phpweather-white.gif Log Message: New cloud --- BINARY FILE --- --- BINARY FILE --- |
From: Max H. <ir...@us...> - 2002-03-27 10:28:03
|
Update of /cvsroot/phpweather/web In directory usw-pr-cvs1:/tmp/cvs-serv23485 Modified Files: phpweather-white.gif Log Message: More rounded cloud --- BINARY FILE --- |
From: Martin G. <gim...@us...> - 2002-03-26 23:51:29
|
Update of /cvsroot/phpweather/phpweather-1.x In directory usw-pr-cvs1:/tmp/cvs-serv5301 Modified Files: locale_cz.inc Log Message: Translation of 'windchill'. Index: locale_cz.inc =================================================================== RCS file: /cvsroot/phpweather/phpweather-1.x/locale_cz.inc,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- locale_cz.inc 24 Mar 2002 19:52:32 -0000 1.2 +++ locale_cz.inc 26 Mar 2002 23:51:25 -0000 1.3 @@ -42,7 +42,7 @@ 'wind_str_calm' => '<b>bezvìtøí</b>', 'wind_vrb_long' => 'variable directions', 'wind_vrb_short' => 'VAR', - 'windchill' => ' the windchill was <b>%s</b> °C (<b>%s</b> °F) ', + 'windchill' => ' teplota vìtru byla <b>%s</b> °C (<b>%s</b> °F) ', 'precip_last_hour' => 'za poslední hodinu. ', 'precip_last_6_hours' => 'za posledních 3 a¾ 6 hodin. ', 'precip_last_24_hours' => 'za posledních 24 hodin. ', |
From: Martin G. <gim...@us...> - 2002-03-26 23:10:52
|
Update of /cvsroot/phpweather/phpweather/output In directory usw-pr-cvs1:/tmp/cvs-serv26783 Modified Files: pw_text.php Log Message: The global $charset variable is now updated wheneven a pw_text object is created. The demo-pages will have to be redone, so that the output object can be created before header.php is included. I don't know if this is overkill - I cannot see any difference in my browser when I look at the Hungarian translation using ISO-8859-1 and ISO-8859-2. Perhaps we could just send a header that tells people that all pages are written in Unicode? I think Unicode covers both encodings. Index: pw_text.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/output/pw_text.php,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- pw_text.php 24 Mar 2002 17:25:48 -0000 1.4 +++ pw_text.php 26 Mar 2002 23:10:49 -0000 1.5 @@ -38,11 +38,24 @@ /** * Constructor. * + * This class shouldn't be instanced directly, instead you should + * use one of it's subclasses such as pw_text_en, pw_text_da, or + * another language. + * + * The constructor in the subclass will finish off by calling this + * constructor. At that time, there should be a 'charset' entry in + * the $strings array. This entry will be placed in the global + * namespace so that things outside of PHP Weather can send the + * right header to the browser. + * * @param phpweather The object with the weather. * @access public */ function pw_text($w, $input) { + /* The charset should be part of the $strings array. We set it + * globally so that the outside world can react on it. */ + $GLOBALS['charset'] = $this->strings['charset']; $this->weather = $w; /* We call the parent constructor. */ |
From: Martin G. <gim...@us...> - 2002-03-26 22:21:40
|
Update of /cvsroot/phpweather/web/include In directory usw-pr-cvs1:/tmp/cvs-serv11830/include Modified Files: header.php Log Message: And now with character encoding header. The idea is to have the different translations set the $charset variable. The info is already there in the $strings array. Index: header.php =================================================================== RCS file: /cvsroot/phpweather/web/include/header.php,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- header.php 26 Mar 2002 21:58:25 -0000 1.6 +++ header.php 26 Mar 2002 22:21:37 -0000 1.7 @@ -1,5 +1,13 @@ <?php +/* The page that includes the header should set $charset if it wants + * something else than iso-8859-1: */ +if (empty($charset)) { + header('Content-Type: text/html; charset=iso-8859-1'); +} else { + header("Content-Type: text/html; charset=$charset"); +} + if ($SERVER_NAME == 'gimpster.bolignet-aarhus.dk') { define('ROOT', '/php/phpweather-web'); } else { |
From: Max H. <ir...@us...> - 2002-03-26 22:09:16
|
Update of /cvsroot/phpweather/web/include In directory usw-pr-cvs1:/tmp/cvs-serv8883 Modified Files: footer.php Log Message: frig it again Index: footer.php =================================================================== RCS file: /cvsroot/phpweather/web/include/footer.php,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- footer.php 26 Mar 2002 22:07:29 -0000 1.4 +++ footer.php 26 Mar 2002 22:09:12 -0000 1.5 @@ -2,8 +2,8 @@ <hr> <a href="http://sourceforge.net/projects/phpweather/"><img -src="http://phpweather.sourceforge.net/phpweather-white.gif" width="88" -height="31" border="0" alt="PHP Weather Logo" align="left"></a> +src="http://phpweather.sourceforge.net/phpweather-white.gif" +border="0" alt="PHP Weather Logo" align="left"></a> <a href="http://sourceforge.net/"><img src="http://sourceforge.net/sflogo.php?group_id=23245" width="88" height="31" border="0" alt="SourceForge Logo" align="right"></a> |