phphtmllib-devel Mailing List for phpHtmlLib (Page 4)
Status: Beta
Brought to you by:
hemna
You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(33) |
Jul
(2) |
Aug
(3) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
|
Feb
|
Mar
(4) |
Apr
|
May
(3) |
Jun
(1) |
Jul
(10) |
Aug
(5) |
Sep
|
Oct
|
Nov
(2) |
Dec
(5) |
2004 |
Jan
(1) |
Feb
(8) |
Mar
(139) |
Apr
(65) |
May
(32) |
Jun
(55) |
Jul
(21) |
Aug
(60) |
Sep
(43) |
Oct
(1) |
Nov
(18) |
Dec
(34) |
2005 |
Jan
(25) |
Feb
(2) |
Mar
(49) |
Apr
(13) |
May
(40) |
Jun
(22) |
Jul
(21) |
Aug
(59) |
Sep
(178) |
Oct
(54) |
Nov
(3) |
Dec
(49) |
2006 |
Jan
(21) |
Feb
(1) |
Mar
(5) |
Apr
(29) |
May
(86) |
Jun
(79) |
Jul
(52) |
Aug
(127) |
Sep
(187) |
Oct
(90) |
Nov
(61) |
Dec
(48) |
2007 |
Jan
(79) |
Feb
(136) |
Mar
(58) |
Apr
(139) |
May
(293) |
Jun
(112) |
Jul
(138) |
Aug
(112) |
Sep
(148) |
Oct
(76) |
Nov
(29) |
Dec
(66) |
2008 |
Jan
(45) |
Feb
(60) |
Mar
(119) |
Apr
(169) |
May
(172) |
Jun
(136) |
Jul
(107) |
Aug
(114) |
Sep
(104) |
Oct
(26) |
Nov
(50) |
Dec
(48) |
2009 |
Jan
(9) |
Feb
(35) |
Mar
(22) |
Apr
(43) |
May
(83) |
Jun
(68) |
Jul
(58) |
Aug
(21) |
Sep
(23) |
Oct
(62) |
Nov
(36) |
Dec
(26) |
2010 |
Jan
(16) |
Feb
(83) |
Mar
(73) |
Apr
(51) |
May
(76) |
Jun
(96) |
Jul
(70) |
Aug
(33) |
Sep
(10) |
Oct
(1) |
Nov
(2) |
Dec
|
2011 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2012 |
Jan
|
Feb
(1) |
Mar
(12) |
Apr
|
May
(1) |
Jun
(2) |
Jul
|
Aug
(3) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
(3) |
Mar
|
Apr
(1) |
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
(5) |
Oct
(1) |
Nov
|
Dec
(1) |
2014 |
Jan
(2) |
Feb
(1) |
Mar
|
Apr
(2) |
May
(1) |
Jun
|
Jul
(1) |
Aug
(2) |
Sep
(2) |
Oct
(2) |
Nov
(3) |
Dec
|
2015 |
Jan
(1) |
Feb
(1) |
Mar
(2) |
Apr
(1) |
May
(2) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
(1) |
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <he...@us...> - 2010-06-17 01:41:30
|
Revision: 3479 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3479&view=rev Author: hemna Date: 2010-06-17 01:41:24 +0000 (Thu, 17 Jun 2010) Log Message: ----------- bleh Modified Paths: -------------- trunk/open2300/lib/modules/api/AviationWeather.inc Modified: trunk/open2300/lib/modules/api/AviationWeather.inc =================================================================== --- trunk/open2300/lib/modules/api/AviationWeather.inc 2010-06-17 01:36:22 UTC (rev 3478) +++ trunk/open2300/lib/modules/api/AviationWeather.inc 2010-06-17 01:41:24 UTC (rev 3479) @@ -72,14 +72,15 @@ $runways = &$airport["runways"]; $info = array(); - foreach($runways as &$runway) { + $number = $runway["runway_number"]; $width = $runway["runway_width"] * 3.2808399; $xw = $this->do_crosswind($runway, $wxInfo["Wind"]); $info[] = array("runway" => $runway["runway_number"], "length" => $runway["length"], "crosswind" => $runway["crosswind"], - "headwind" => $runway["headwind"]); + "headwind" => $runway["headwind"]); + } @@ -103,7 +104,6 @@ $m = round(abs($speed*cos($p)),1); $runway["crosswind2"] = $q; - $runway["headwind"] = $m; if ($left_right <0) { $runway["xw_direction"] = "left"; @@ -545,6 +545,9 @@ } } + + + } ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-06-17 01:36:29
|
Revision: 3478 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3478&view=rev Author: hemna Date: 2010-06-17 01:36:22 +0000 (Thu, 17 Jun 2010) Log Message: ----------- runway length Modified Paths: -------------- trunk/open2300/cache/airports/KAUN.cache Modified: trunk/open2300/cache/airports/KAUN.cache =================================================================== --- trunk/open2300/cache/airports/KAUN.cache 2010-06-17 01:29:17 UTC (rev 3477) +++ trunk/open2300/cache/airports/KAUN.cache 2010-06-17 01:36:22 UTC (rev 3478) @@ -1,5 +1,5 @@ -a:2:{i:0;i:0;i:1;a:7:{s:9:"elevation";s:4:"1536";s:13:"control_tower";s:1:"0";s:4:"icao";s:4:"KAUN";s:4:"name";s:11:"AUBURN MUNI";s:7:"runways";a:2:{i:0;a:16:{s:12:"runway_width";s:5:"22.86";s:19:"runway_surface_type";s:1:"1";s:20:"runway_shoulder_type";s:1:"0";s:17:"runway_smoothness";s:4:"0.00";s:20:"runway_center_lights";s:1:"0";s:18:"runway_edge_lights";s:1:"2";s:13:"runway_number";s:2:"07";s:25:"runway_threshold_latitude";s:11:"38.95416700";s:26:"runway_threshold_longitude";s:13:"-121.08816700";s:26:"length_displaced_threshold";s:5:"60.96";s:14:"length_overrun";s:4:"0.00";s:13:"markings_code";s:1:"2";s:13:"lighting_code";s:1:"0";s:28:"touchdown_zone_lighting_code";s:1:"0";s:9:"reil_code";s:1:"0";s:6:"length";d:0;}i:1;a:16:{s:12:"runway_width";s:5:"22.86";s:19:"runway_surface_type";s:1:"1";s:20:"runway_shoulder_type";s:1:"0";s:17:"runway_smoothness";s:4:"0.00";s:20:"runway_center_lights";s:1:"0";s:18:"runway_edge_lights";s:1:"2";s:13:"runway_number";s:2:"25";s:25:"runway_threshold_latitude";s:11:"38.95533300";s:26:"runway_threshold_longitude";s:13:"-121.07516700";s:26:"length_displaced_threshold";s:4:"0.00";s:14:"length_overrun";s:4:"0.00";s:13:"markings_code";s:1:"2";s:13:"lighting_code";s:1:"0";s:28:"touchdown_zone_lighting_code";s:1:"0";s:9:"reil_code";s:2:"0 -";s:6:"length";d:0;}}s:6:"lights";a:2:{i:0;a:8:{s:8:"latitude";s:11:"38.95461045";s:9:"longitude";s:13:"-121.08523770";s:4:"type";s:26:"PAPI-4L, on left of runway";s:9:"type_code";s:1:"2";s:11:"orientation";s:5:"84.05";s:16:"glidescope_angle";s:4:"3.00";s:17:"associated_runway";s:2:"07";s:11:"description";s:8:"PAPI-4L +a:2:{i:0;i:0;i:1;a:7:{s:9:"elevation";s:4:"1536";s:13:"control_tower";s:1:"0";s:4:"icao";s:4:"KAUN";s:4:"name";s:11:"AUBURN MUNI";s:7:"runways";a:2:{i:0;a:16:{s:12:"runway_width";s:5:"22.86";s:19:"runway_surface_type";s:1:"1";s:20:"runway_shoulder_type";s:1:"0";s:17:"runway_smoothness";s:4:"0.00";s:20:"runway_center_lights";s:1:"0";s:18:"runway_edge_lights";s:1:"2";s:13:"runway_number";s:2:"07";s:25:"runway_threshold_latitude";s:11:"38.95416700";s:26:"runway_threshold_longitude";s:13:"-121.08816700";s:26:"length_displaced_threshold";s:5:"60.96";s:14:"length_overrun";s:4:"0.00";s:13:"markings_code";s:1:"2";s:13:"lighting_code";s:1:"0";s:28:"touchdown_zone_lighting_code";s:1:"0";s:9:"reil_code";s:1:"0";s:6:"length";i:3712;}i:1;a:16:{s:12:"runway_width";s:5:"22.86";s:19:"runway_surface_type";s:1:"1";s:20:"runway_shoulder_type";s:1:"0";s:17:"runway_smoothness";s:4:"0.00";s:20:"runway_center_lights";s:1:"0";s:18:"runway_edge_lights";s:1:"2";s:13:"runway_number";s:2:"25";s:25:"runway_threshold_latitude";s:11:"38.95533300";s:26:"runway_threshold_longitude";s:13:"-121.07516700";s:26:"length_displaced_threshold";s:4:"0.00";s:14:"length_overrun";s:4:"0.00";s:13:"markings_code";s:1:"2";s:13:"lighting_code";s:1:"0";s:28:"touchdown_zone_lighting_code";s:1:"0";s:9:"reil_code";s:2:"0 +";s:6:"length";i:3712;}}s:6:"lights";a:2:{i:0;a:8:{s:8:"latitude";s:11:"38.95461045";s:9:"longitude";s:13:"-121.08523770";s:4:"type";s:26:"PAPI-4L, on left of runway";s:9:"type_code";s:1:"2";s:11:"orientation";s:5:"84.05";s:16:"glidescope_angle";s:4:"3.00";s:17:"associated_runway";s:2:"07";s:11:"description";s:8:"PAPI-4L ";}i:1;a:8:{s:8:"latitude";s:11:"38.95525564";s:9:"longitude";s:13:"-121.07753943";s:4:"type";s:26:"PAPI-4L, on left of runway";s:9:"type_code";s:1:"2";s:11:"orientation";s:6:"264.06";s:16:"glidescope_angle";s:4:"3.00";s:17:"associated_runway";s:2:"25";s:11:"description";s:8:"PAPI-4L ";}}s:5:"comms";a:2:{i:0;a:4:{s:4:"type";s:6:"UNICOM";s:9:"type_code";s:2:"51";s:9:"frequency";s:5:"12270";s:4:"name";s:12:"CTAF/UNICOM ";}i:1;a:4:{s:4:"type";s:12:"ATC Approach";s:9:"type_code";s:2:"55";s:9:"frequency";s:5:"12540";s:4:"name";s:6:"NORCAL";}}}} \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-06-16 23:28:58
|
Revision: 3476 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3476&view=rev Author: hemna Date: 2010-06-16 23:28:52 +0000 (Wed, 16 Jun 2010) Log Message: ----------- decimals Modified Paths: -------------- trunk/open2300/lib/modules/api/AviationWeather.inc Modified: trunk/open2300/lib/modules/api/AviationWeather.inc =================================================================== --- trunk/open2300/lib/modules/api/AviationWeather.inc 2010-06-16 23:28:01 UTC (rev 3475) +++ trunk/open2300/lib/modules/api/AviationWeather.inc 2010-06-16 23:28:52 UTC (rev 3476) @@ -99,8 +99,8 @@ $diff = abs($left_right); $p = .0174*$diff; - $q = round(abs($speed*sin($p))); - $m = round(abs($speed*cos($p))); + $q = round(abs($speed*sin($p)),1); + $m = round(abs($speed*cos($p)),1); $runway["crosswind2"] = $q; $runway["headwind"] = $m; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-06-16 23:28:07
|
Revision: 3475 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3475&view=rev Author: hemna Date: 2010-06-16 23:28:01 +0000 (Wed, 16 Jun 2010) Log Message: ----------- xw and headwind Modified Paths: -------------- trunk/open2300/lib/modules/api/AviationWeather.inc Modified: trunk/open2300/lib/modules/api/AviationWeather.inc =================================================================== --- trunk/open2300/lib/modules/api/AviationWeather.inc 2010-06-16 23:24:20 UTC (rev 3474) +++ trunk/open2300/lib/modules/api/AviationWeather.inc 2010-06-16 23:28:01 UTC (rev 3475) @@ -78,7 +78,8 @@ $xw = $this->do_crosswind($runway, $wxInfo["Wind"]); $info[] = array("runway" => $runway["runway_number"], "length" => $runway["length"], - "crosswind" => $runway["crosswind"]); + "crosswind" => $runway["crosswind"], + "headwind" => $runway["headwind"]); } @@ -119,7 +120,8 @@ $runway["xw_head"] = "tailwind"; } - $runway["crosswind"] = $q."kt ".$runway["xw_direction"]." ".$runway["xw_head"]; + $runway["crosswind"] = $q."kt ".$runway["xw_direction"]; + $runway["headwind"] = $m."kt ".$runway["xw_head"]; // // l = Rway.runwayd.value; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-06-16 23:24:26
|
Revision: 3474 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3474&view=rev Author: hemna Date: 2010-06-16 23:24:20 +0000 (Wed, 16 Jun 2010) Log Message: ----------- bleh Modified Paths: -------------- trunk/open2300/lib/modules/api/AviationWeather.inc Modified: trunk/open2300/lib/modules/api/AviationWeather.inc =================================================================== --- trunk/open2300/lib/modules/api/AviationWeather.inc 2010-06-16 22:48:09 UTC (rev 3473) +++ trunk/open2300/lib/modules/api/AviationWeather.inc 2010-06-16 23:24:20 UTC (rev 3474) @@ -61,7 +61,6 @@ if ($airport != null) { $wxInfo["runways"] = $this->get_runways($airport, $wxInfo); } - $this->metars[] = $wxInfo; //need to combine this info w/ the airport data cache. } @@ -70,16 +69,18 @@ } protected function get_runways(&$airport, &$wxInfo) { - $runways = $airport["runways"]; + $runways = &$airport["runways"]; $info = array(); - + + foreach($runways as &$runway) { $width = $runway["runway_width"] * 3.2808399; - $info[] = array("number" => $runway["runway_number"], + $xw = $this->do_crosswind($runway, $wxInfo["Wind"]); + $info[] = array("runway" => $runway["runway_number"], "length" => $runway["length"], - "width" => $width); - $xw = $this->do_crosswind($runway, $wxInfo["Wind"]); + "crosswind" => $runway["crosswind"]); } + return $info; } @@ -97,13 +98,29 @@ $diff = abs($left_right); $p = .0174*$diff; - $q = abs($speed*sin($p)); - $m = abs($speed*cos($p)); + $q = round(abs($speed*sin($p))); + $m = round(abs($speed*cos($p))); $runway["crosswind2"] = $q; $runway["headwind"] = $m; - - + + if ($left_right <0) { + $runway["xw_direction"] = "left"; + } else if ($left_right > 0) { + $runway["xw_direction"] = "right"; + } else if ($left_right == 0 || $left_right == 360 || + $left_right == 180) { + $runway["xw_direction"] = "none"; + } + + if ($diff < 90 || $diff > 270) { + $runway["xw_head"] = "headwind"; + } else { + $runway["xw_head"] = "tailwind"; + } + + $runway["crosswind"] = $q."kt ".$runway["xw_direction"]." ".$runway["xw_head"]; + // // l = Rway.runwayd.value; // n = Rway.wdirection.value; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-06-16 22:20:57
|
Revision: 3472 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3472&view=rev Author: hemna Date: 2010-06-16 22:20:51 +0000 (Wed, 16 Jun 2010) Log Message: ----------- updates Modified Paths: -------------- trunk/open2300/lib/modules/api/AviationWeather.inc Modified: trunk/open2300/lib/modules/api/AviationWeather.inc =================================================================== --- trunk/open2300/lib/modules/api/AviationWeather.inc 2010-06-16 22:17:26 UTC (rev 3471) +++ trunk/open2300/lib/modules/api/AviationWeather.inc 2010-06-16 22:20:51 UTC (rev 3472) @@ -69,7 +69,7 @@ return $wxInfo; } - protected function get_runways($airport, $wxInfo) { + protected function get_runways(&$airport, &$wxInfo) { $runways = $airport["runways"]; $info = array(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-06-16 22:17:34
|
Revision: 3471 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3471&view=rev Author: hemna Date: 2010-06-16 22:17:26 +0000 (Wed, 16 Jun 2010) Log Message: ----------- bleh Modified Paths: -------------- trunk/open2300/lib/modules/api/AviationWeather.inc Modified: trunk/open2300/lib/modules/api/AviationWeather.inc =================================================================== --- trunk/open2300/lib/modules/api/AviationWeather.inc 2010-06-16 22:16:02 UTC (rev 3470) +++ trunk/open2300/lib/modules/api/AviationWeather.inc 2010-06-16 22:17:26 UTC (rev 3471) @@ -84,7 +84,7 @@ return $info; } - protected function do_crosswind($runway, $wind) { + protected function do_crosswind(&$runway, $wind) { $number = substr($runway["runway_number"],0,2)."0"; $direction = $wind["angle"]; $speed = $wind["speed"]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-06-16 22:16:08
|
Revision: 3470 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3470&view=rev Author: hemna Date: 2010-06-16 22:16:02 +0000 (Wed, 16 Jun 2010) Log Message: ----------- Modified Paths: -------------- trunk/open2300/lib/modules/api/AviationWeather.inc Modified: trunk/open2300/lib/modules/api/AviationWeather.inc =================================================================== --- trunk/open2300/lib/modules/api/AviationWeather.inc 2010-06-16 22:15:26 UTC (rev 3469) +++ trunk/open2300/lib/modules/api/AviationWeather.inc 2010-06-16 22:16:02 UTC (rev 3470) @@ -116,10 +116,8 @@ // Rway.cwresult.value=eval(Math.round(q)); // // Rway.cwresultloss.value=eval(Math.round(m)); - - - - return $xw + + return $xw; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-06-16 22:15:32
|
Revision: 3469 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3469&view=rev Author: hemna Date: 2010-06-16 22:15:26 +0000 (Wed, 16 Jun 2010) Log Message: ----------- hacks Modified Paths: -------------- trunk/open2300/lib/modules/api/AviationWeather.inc Modified: trunk/open2300/lib/modules/api/AviationWeather.inc =================================================================== --- trunk/open2300/lib/modules/api/AviationWeather.inc 2010-06-16 21:58:39 UTC (rev 3468) +++ trunk/open2300/lib/modules/api/AviationWeather.inc 2010-06-16 22:15:26 UTC (rev 3469) @@ -59,7 +59,7 @@ $airport = $this->cache->get($icao); if ($airport != null) { - $wxInfo["runways"] = $this->get_runways($airport); + $wxInfo["runways"] = $this->get_runways($airport, $wxInfo); } $this->metars[] = $wxInfo; @@ -69,7 +69,7 @@ return $wxInfo; } - protected function get_runways($airport) { + protected function get_runways($airport, $wxInfo) { $runways = $airport["runways"]; $info = array(); @@ -78,19 +78,48 @@ $info[] = array("number" => $runway["runway_number"], "length" => $runway["length"], "width" => $width); - $xw = $this->get_crosswind($runway["runway_number"], $runway["Wind"]); - $runway["crosswind"] = $xw; + $xw = $this->do_crosswind($runway, $wxInfo["Wind"]); } return $info; } - protected function get_crosswind($number, $wind) { - $number = substr($runway,0,2)."0"; + protected function do_crosswind($runway, $wind) { + $number = substr($runway["runway_number"],0,2)."0"; $direction = $wind["angle"]; $speed = $wind["speed"]; - return $speed * sin($direction - $number); + $xw = $speed * sin(($direction - $number)*.0174); + + $runway["crosswind1"] = $xw; + + $left_right = $direction - $number; + $diff = abs($left_right); + $p = .0174*$diff; + + $q = abs($speed*sin($p)); + $m = abs($speed*cos($p)); + + $runway["crosswind2"] = $q; + $runway["headwind"] = $m; + + +// +// l = Rway.runwayd.value; +// n = Rway.wdirection.value; +// k = Rway.wspeed.value; +// o = Math.abs(n - l); +// oo = (n - l); //determine left or right relative wind +// p = .0174*o; +// q = Math.abs(k*(Math.sin(p))); +// m = Math.abs(k*(Math.cos(p))); +// Rway.cwresult.value=eval(Math.round(q)); +// +// Rway.cwresultloss.value=eval(Math.round(m)); + + + + return $xw } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-06-16 21:26:22
|
Revision: 3467 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3467&view=rev Author: hemna Date: 2010-06-16 21:26:16 +0000 (Wed, 16 Jun 2010) Log Message: ----------- use reference Modified Paths: -------------- trunk/open2300/lib/modules/api/AviationWeather.inc Modified: trunk/open2300/lib/modules/api/AviationWeather.inc =================================================================== --- trunk/open2300/lib/modules/api/AviationWeather.inc 2010-06-16 21:25:05 UTC (rev 3466) +++ trunk/open2300/lib/modules/api/AviationWeather.inc 2010-06-16 21:26:16 UTC (rev 3467) @@ -73,7 +73,7 @@ $runways = $airport["runways"]; $info = array(); - foreach($runways as $runway) { + foreach($runways as &$runway) { $width = $runway["runway_width"] * 3.2808399; $info[] = array("number" => $runway["runway_number"], "length" => $runway["length"], This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-06-16 21:25:11
|
Revision: 3466 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3466&view=rev Author: hemna Date: 2010-06-16 21:25:05 +0000 (Wed, 16 Jun 2010) Log Message: ----------- sine Modified Paths: -------------- trunk/open2300/lib/modules/api/AviationWeather.inc Modified: trunk/open2300/lib/modules/api/AviationWeather.inc =================================================================== --- trunk/open2300/lib/modules/api/AviationWeather.inc 2010-06-16 21:24:33 UTC (rev 3465) +++ trunk/open2300/lib/modules/api/AviationWeather.inc 2010-06-16 21:25:05 UTC (rev 3466) @@ -90,7 +90,7 @@ $direction = $wind["angle"]; $speed = $wind["speed"]; - return $speed * sine($direction - $number); + return $speed * sin($direction - $number); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-06-16 21:24:40
|
Revision: 3465 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3465&view=rev Author: hemna Date: 2010-06-16 21:24:33 +0000 (Wed, 16 Jun 2010) Log Message: ----------- xw Modified Paths: -------------- trunk/open2300/lib/modules/api/AviationWeather.inc Modified: trunk/open2300/lib/modules/api/AviationWeather.inc =================================================================== --- trunk/open2300/lib/modules/api/AviationWeather.inc 2010-06-16 21:15:53 UTC (rev 3464) +++ trunk/open2300/lib/modules/api/AviationWeather.inc 2010-06-16 21:24:33 UTC (rev 3465) @@ -78,23 +78,19 @@ $info[] = array("number" => $runway["runway_number"], "length" => $runway["length"], "width" => $width); - $xw = $this->get_crosswind($runway["runway_number"], $runway["WIND"], $runway[""]); + $xw = $this->get_crosswind($runway["runway_number"], $runway["Wind"]); + $runway["crosswind"] = $xw; } return $info; } - protected function get_crosswind($runway) { - $number = substr($runway,0,2); - $wind = $runway["WIND"]; + protected function get_crosswind($number, $wind) { + $number = substr($runway,0,2)."0"; + $direction = $wind["angle"]; + $speed = $wind["speed"]; - $direction = $runway[""]; - - if (strcasecmp($wind, "calm") == 0) { - $wind = 0; - } - - + return $speed * sine($direction - $number); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-06-16 21:16:03
|
Revision: 3464 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3464&view=rev Author: hemna Date: 2010-06-16 21:15:53 +0000 (Wed, 16 Jun 2010) Log Message: ----------- strcasecmp Modified Paths: -------------- trunk/open2300/lib/modules/api/AviationWeather.inc Modified: trunk/open2300/lib/modules/api/AviationWeather.inc =================================================================== --- trunk/open2300/lib/modules/api/AviationWeather.inc 2010-06-16 21:14:30 UTC (rev 3463) +++ trunk/open2300/lib/modules/api/AviationWeather.inc 2010-06-16 21:15:53 UTC (rev 3464) @@ -90,7 +90,7 @@ $direction = $runway[""]; - if (stricasecmp($wind, "calm") == 0) { + if (strcasecmp($wind, "calm") == 0) { $wind = 0; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-06-16 21:14:37
|
Revision: 3463 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3463&view=rev Author: hemna Date: 2010-06-16 21:14:30 +0000 (Wed, 16 Jun 2010) Log Message: ----------- working on xw Modified Paths: -------------- trunk/open2300/lib/modules/api/AviationWeather.inc Modified: trunk/open2300/lib/modules/api/AviationWeather.inc =================================================================== --- trunk/open2300/lib/modules/api/AviationWeather.inc 2010-06-16 20:21:48 UTC (rev 3462) +++ trunk/open2300/lib/modules/api/AviationWeather.inc 2010-06-16 21:14:30 UTC (rev 3463) @@ -59,17 +59,44 @@ $airport = $this->cache->get($icao); if ($airport != null) { - + $wxInfo["runways"] = $this->get_runways($airport); } $this->metars[] = $wxInfo; //need to combine this info w/ the airport data cache. } - return $wxInfo; + return $wxInfo; + } + + protected function get_runways($airport) { + $runways = $airport["runways"]; + $info = array(); + foreach($runways as $runway) { + $width = $runway["runway_width"] * 3.2808399; + $info[] = array("number" => $runway["runway_number"], + "length" => $runway["length"], + "width" => $width); + $xw = $this->get_crosswind($runway["runway_number"], $runway["WIND"], $runway[""]); + } + + return $info; } + protected function get_crosswind($runway) { + $number = substr($runway,0,2); + $wind = $runway["WIND"]; + + $direction = $runway[""]; + + if (stricasecmp($wind, "calm") == 0) { + $wind = 0; + } + + + } + public function get_metar($station, &$wxInfo) { // This function retrieves METAR information for a given station from the @@ -191,18 +218,33 @@ $unit = $pieces[2]; if ($part == '00000') { $wxInfo['WIND'] = 'calm'; // no wind + $wxInfo['Wind']["human"] = 'calm'; + $wxInfo['Wind']["speed"] = 0; + $wxInfo['Wind']["angle"] = 0; + $wxInfo['Wind']["gust"] = 0; } else { preg_match('/([0-9]{3}|VRB)([0-9]{2,3})G?([0-9]{2,3})?/',$part,$pieces); - if ($pieces[1] == 'VRB') $direction = 'varies'; - else { + if ($pieces[1] == 'VRB') { + $direction = 'varies'; + $angle = 'VRB'; + } else { $angle = (integer) $pieces[1]; $compass = array('N','NNE','NE','ENE','E','ESE','SE','SSE','S','SSW','SW','WSW','W','WNW','NW','NNW'); $direction = $compass[round($angle / 22.5) % 16]; } - if ($pieces[3] == 0) $gust = ''; - else $gust = ', gusting to ' . $this->speed($pieces[3], $unit); + if ($pieces[3] == 0) { + $gust = ''; + $wxInfo['Wind']["gust"] = 0; + } else { + $spd = $this->speed($pieces[3], $unit); + $gust = ', gusting to ' . $spd; + $wxInfo['Wind']["gust"] = $spd; + } $wxInfo['WIND'] = $direction . ' at ' . $this->speed($pieces[2], $unit) . $gust; + $wxInfo['Wind']['human'] = $direction . ' at ' . $this->speed($pieces[2], $unit) . $gust; + $wxInfo['Wind']["speed"] = $pieces[2]; + $wxInfo['Wind']["angle"] = $angle; } $metarPtr++; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-06-15 20:59:08
|
Revision: 3447 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3447&view=rev Author: hemna Date: 2010-06-15 20:59:02 +0000 (Tue, 15 Jun 2010) Log Message: ----------- added Added Paths: ----------- trunk/open2300/cache/airports/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-06-15 19:55:46
|
Revision: 3446 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3446&view=rev Author: hemna Date: 2010-06-15 19:55:34 +0000 (Tue, 15 Jun 2010) Log Message: ----------- fixed php issues Modified Paths: -------------- trunk/open2300/lib/modules/api/AviationWeather.inc Modified: trunk/open2300/lib/modules/api/AviationWeather.inc =================================================================== --- trunk/open2300/lib/modules/api/AviationWeather.inc 2010-06-15 19:37:42 UTC (rev 3445) +++ trunk/open2300/lib/modules/api/AviationWeather.inc 2010-06-15 19:55:34 UTC (rev 3446) @@ -164,13 +164,7 @@ $group++; } - protected function get_wind($part, &$metarPtr, &$group, &$wxInfo) { - // Decodes wind direction and speed information. - // Format is dddssKT where ddd = degrees from North, ss = speed, KT for knots, - // or dddssGggKT where G stands for gust and gg = gust speed. (ss or gg can be a 3-digit number.) - // KT can be replaced with MPH for meters per second or KMH for kilometers per hour. - - function speed($part, $unit) { + protected function speed($part, $unit) { // Convert wind speed into miles per hour. // Some other common conversion factors (to 6 significant digits): // 1 mi/hr = 1.15080 knots = 0.621371 km/hr = 2.23694 m/s @@ -183,8 +177,15 @@ else $speed = round(0.621371 * $part); // from km per hour $speed = "$speed mph"; return $speed; - } + } + protected function get_wind($part, &$metarPtr, &$group, &$wxInfo) { + // Decodes wind direction and speed information. + // Format is dddssKT where ddd = degrees from North, ss = speed, KT for knots, + // or dddssGggKT where G stands for gust and gg = gust speed. (ss or gg can be a 3-digit number.) + // KT can be replaced with MPH for meters per second or KMH for kilometers per hour. + + if (preg_match('/^([0-9G]{5,10}|VRB[0-9]{2,3})(KT|MPS|KMH)$/',$part,$pieces)) { $part = $pieces[1]; $unit = $pieces[2]; @@ -200,8 +201,8 @@ $direction = $compass[round($angle / 22.5) % 16]; } if ($pieces[3] == 0) $gust = ''; - else $gust = ', gusting to ' . speed($pieces[3], $unit); - $wxInfo['WIND'] = $direction . ' at ' . speed($pieces[2], $unit) . $gust; + else $gust = ', gusting to ' . $this->speed($pieces[3], $unit); + $wxInfo['WIND'] = $direction . ' at ' . $this->speed($pieces[2], $unit) . $gust; } $metarPtr++; } @@ -374,15 +375,7 @@ } } } - - protected function get_temperature($part, &$metarPtr, &$group, &$wxInfo) { - // Decodes temperature and dew point information. Relative humidity is calculated. Also, - // depending on the temperature, Heat Index or Wind Chill Temperature is calculated. - // Format is tt/dd where tt = temperature and dd = dew point temperature. All units are - // in Celsius. A 'M' preceeding the tt or dd indicates a negative temperature. Some - // stations do not report dew point, so the format is tt/ or tt/XX. - - function get_heat_index($tempF, $rh, &$wxInfo) { + protected function get_heat_index($tempF, $rh, &$wxInfo) { // Calculate Heat Index based on temperature in F and relative humidity (65 = 65%) if ($tempF > 79 && $rh > 39) { $hiF = -42.379 + 2.04901523 * $tempF + 10.14333127 * $rh - 0.22475541 * $tempF * $rh; @@ -393,9 +386,9 @@ $hiC = round(($hiF - 32) / 1.8); $wxInfo['HEAT INDEX'] = "$hiF°F ($hiC°C)"; } - } + } - function get_wind_chill($tempF, &$wxInfo) { + protected function get_wind_chill($tempF, &$wxInfo) { // Calculate Wind Chill Temperature based on temperature in F and // wind speed in miles per hour if ($tempF < 51 && $wxInfo['WIND'] != 'calm') { @@ -408,20 +401,29 @@ $wxInfo['WIND CHILL'] = "$chillF°F ($chillC°C)"; } } - } + } + protected function get_temperature($part, &$metarPtr, &$group, &$wxInfo) { + // Decodes temperature and dew point information. Relative humidity is calculated. Also, + // depending on the temperature, Heat Index or Wind Chill Temperature is calculated. + // Format is tt/dd where tt = temperature and dd = dew point temperature. All units are + // in Celsius. A 'M' preceeding the tt or dd indicates a negative temperature. Some + // stations do not report dew point, so the format is tt/ or tt/XX. + + + if (preg_match('/^(M?[0-9]{2})\/(M?[0-9]{2}|[X]{2})?$/',$part,$pieces)) { $tempC = (integer) strtr($pieces[1], 'M', '-'); $tempF = round(1.8 * $tempC + 32); $wxInfo['TEMP'] = "$tempF°F ($tempC°C)"; - get_wind_chill($tempF, $wxInfo); + $this->get_wind_chill($tempF, $wxInfo); if (strlen($pieces[2]) != 0 && $pieces[2] != 'XX') { $dewC = (integer) strtr($pieces[2], 'M', '-'); $dewF = round(1.8 * $dewC + 32); $wxInfo['DEWPT'] = "$dewF°F ($dewC°C)"; $rh = round(100 * pow((112 - (0.1 * $tempC) + $dewC) / (112 + (0.9 * $tempC)), 8)); $wxInfo['HUMIDITY'] = $rh . '%'; - get_heat_index($tempF, $rh, $wxInfo); + $this->get_heat_index($tempF, $rh, $wxInfo); } $metarPtr++; $group++; @@ -461,4 +463,4 @@ } -?> \ No newline at end of file +?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-06-15 19:37:48
|
Revision: 3445 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3445&view=rev Author: hemna Date: 2010-06-15 19:37:42 +0000 (Tue, 15 Jun 2010) Log Message: ----------- more shit Modified Paths: -------------- trunk/open2300/lib/modules/api/AviationWeather.inc Modified: trunk/open2300/lib/modules/api/AviationWeather.inc =================================================================== --- trunk/open2300/lib/modules/api/AviationWeather.inc 2010-06-15 17:51:46 UTC (rev 3444) +++ trunk/open2300/lib/modules/api/AviationWeather.inc 2010-06-15 19:37:42 UTC (rev 3445) @@ -16,20 +16,61 @@ const ID = "avwx"; - protected $url = "http://api.itimeteo.com/getMetar.ims?icao=XX_ICAO_XX&decoded=true&displayAirport=true&format=json"; + //protected $url = "http://api.itimeteo.com/getMetar.ims?icao=XX_ICAO_XX&decoded=true&displayAirport=true&format=json"; //list of airports to fetch. protected $airports; + protected $metars = array(); + + private $cache; + public function init() { + $airports = Request::singleton()->get("airports"); + if (strlen($airports) >0) { + $this->airports = explode(',', strtoupper($airports)); + } + $this->cache = AirportCache::singleton(); } public function build_object() { + + $size = count($this->airports); + if ($size > 0) { + foreach($this->airports as $icao) { + $airport = $this->process_airport($icao); + $this->metars[] = $airport; + } + } + return $this->metars; } + + public function process_airport($icao) { + + $wxInfo = array(); + $metar = $this->get_metar($icao, $wxInfo); + + if ($metar != null && strlen($metar) > 0) { + $this->process_metar($metar, $wxInfo); + $wxInfo["metar"] = $metar; + + $airport = $this->cache->get($icao); + if ($airport != null) { + + } + $this->metars[] = $wxInfo; + //need to combine this info w/ the airport data cache. + } + + return $wxInfo; + + } + + public function get_metar($station, &$wxInfo) { // This function retrieves METAR information for a given station from the // National Weather Service. It assumes that the station exists. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-06-15 17:51:52
|
Revision: 3444 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3444&view=rev Author: hemna Date: 2010-06-15 17:51:46 +0000 (Tue, 15 Jun 2010) Log Message: ----------- updates Modified Paths: -------------- trunk/open2300/lib/autoload.inc Modified: trunk/open2300/lib/autoload.inc =================================================================== --- trunk/open2300/lib/autoload.inc 2010-06-15 17:51:27 UTC (rev 3443) +++ trunk/open2300/lib/autoload.inc 2010-06-15 17:51:46 UTC (rev 3444) @@ -1,7 +1,7 @@ <?php /** * This is an auto-generated file. Please do not modify! - * Generated on 2010-03-02T10:13:35-08:00 by AutoloadGenerator + * Generated on 2010-06-15T10:20:09-07:00 by AutoloadGenerator * * @package open2300 */ @@ -16,6 +16,7 @@ 'ActiveTab'=>'external/phphtmllib/src/widgets/ActiveTab.inc', 'ActiveTabCSS'=>'external/phphtmllib/src/widgets/css/ActiveTabCSS.inc', 'ADODBSQLDataListSource'=>'external/phphtmllib/src/datalist/datalistsource/ADODBSQLDataListSource.inc', +'AirportCache'=>'core/cache/AirportCache.inc', 'Ajaxable'=>'external/phphtmllib/src/misc/Ajaxable.inc', 'AjaxableHTMLWidget'=>'external/phphtmllib/src/widgets/AjaxableHTMLWidget.inc', 'AjaxablePage'=>'external/phphtmllib/src/page/AjaxablePage.inc', @@ -33,6 +34,7 @@ 'AjaxStandardFormContent'=>'external/phphtmllib/src/form/AjaxStandardFormContent.inc', 'ArrayDataListSource'=>'external/phphtmllib/src/datalist/datalistsource/ArrayDataListSource.inc', 'AutoloadGenerator'=>'external/phphtmllib/src/generator/AutoloadGenerator.inc', +'AviationWeather'=>'modules/api/AviationWeather.inc', 'AviProcessorDaemon'=>'core/daemon/AviProcessorDaemon.inc', 'BlueTheme'=>'external/phphtmllib/data/css/BlueTheme.inc', 'BusinessObject'=>'external/phphtmllib/src/business/BusinessObject.inc', @@ -264,6 +266,7 @@ 'active-tab'=>'ActiveTab', 'ajax-dl-simple-search-fc'=>'AjaxDataListSimpleSearchFormContent', 'ajax-form-processor'=>'AjaxFormProcessor', +'avwx'=>'AviationWeather', 'blue-theme'=>'BlueTheme', 'button-panel'=>'ButtonPanel', 'css-container'=>'CSSContainer', @@ -347,6 +350,7 @@ 'ActiveTab'=>'active-tab', 'AjaxDataListSimpleSearchFormContent'=>'ajax-dl-simple-search-fc', 'AjaxFormProcessor'=>'ajax-form-processor', +'AviationWeather'=>'avwx', 'BlueTheme'=>'blue-theme', 'ButtonPanel'=>'button-panel', 'CSSContainer'=>'css-container', This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-06-15 17:51:33
|
Revision: 3443 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3443&view=rev Author: hemna Date: 2010-06-15 17:51:27 +0000 (Tue, 15 Jun 2010) Log Message: ----------- needs to be public now...php issue Modified Paths: -------------- trunk/phphtmllib/src/config/Config.inc Modified: trunk/phphtmllib/src/config/Config.inc =================================================================== --- trunk/phphtmllib/src/config/Config.inc 2010-06-15 17:50:47 UTC (rev 3442) +++ trunk/phphtmllib/src/config/Config.inc 2010-06-15 17:51:27 UTC (rev 3443) @@ -141,7 +141,7 @@ * @param string $name * @return boolean */ - protected function __isset($name) { + public function __isset($name) { return isset($this->data[$name]); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-06-15 17:50:53
|
Revision: 3442 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3442&view=rev Author: hemna Date: 2010-06-15 17:50:47 +0000 (Tue, 15 Jun 2010) Log Message: ----------- added AirportCache Added Paths: ----------- trunk/open2300/lib/core/cache/ trunk/open2300/lib/core/cache/AirportCache.inc Added: trunk/open2300/lib/core/cache/AirportCache.inc =================================================================== --- trunk/open2300/lib/core/cache/AirportCache.inc (rev 0) +++ trunk/open2300/lib/core/cache/AirportCache.inc 2010-06-15 17:50:47 UTC (rev 3442) @@ -0,0 +1,75 @@ +<?php + +class AirportCache extends FileCache { + + protected static $cache_dir; + + private static $default_cache_dir = '/tmp/phphtmllib-cache'; + + + /** + * Holds instance of the class + * + * @var object + */ + static private $instance = null; + + public static function singleton() { + if (!Cache::$cache_enabled) { + return NoCache::singleton(); + } + + if (!self::$instance) { + self::$instance = new AirportCache(); + } + + return self::$instance; + } + + /** + * Sets cache directory + * + * @param string $dir + */ + public static function set_cache_dir($dir) { + AirportCache::$cache_dir = $dir; + } + + /** + * This function returns a file name + * based on the cache key + * + * @param string $key + * + * @return string + */ + protected function make_key($key) { + if (substr(AirportCache::$cache_dir, -1, 1) == '/') { + $seperator = ''; + } else { + $seperator = FileCache::PATH_SEPERATOR; + } + return AirportCache::$cache_dir . $seperator . preg_replace("/[^A-Za-z0-9\_\.\-\+\040]/", '', $key) . '.cache'; + } + + /** + * This function initializes + * the cache directory + * + */ + protected function init_cache() { + self::$cache_enabled = $GLOBALS['config']->get('cache_enabled', true); + //if there is a config setting + //we'll use it. + $this->set_cache_dir($GLOBALS['config']->get('airport_file_cache_dir',AirportCache::$default_cache_dir)); + + // make sure the cache directory exists + if (!file_exists(AirportCache::$cache_dir)) { + if (!mkdir(AirportCache::$cache_dir, 0755, TRUE)) { + throw new CacheException("AirportCache::Failed to create " . AirportCache::$cache_dir); + } + } + } +} + +?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-06-15 17:50:33
|
Revision: 3441 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3441&view=rev Author: hemna Date: 2010-06-15 17:50:27 +0000 (Tue, 15 Jun 2010) Log Message: ----------- fixed issue Modified Paths: -------------- trunk/open2300/lib/core/page/open2300Page.inc Modified: trunk/open2300/lib/core/page/open2300Page.inc =================================================================== --- trunk/open2300/lib/core/page/open2300Page.inc 2010-06-15 17:49:47 UTC (rev 3440) +++ trunk/open2300/lib/core/page/open2300Page.inc 2010-06-15 17:50:27 UTC (rev 3441) @@ -168,7 +168,7 @@ * * @return MenuBarWidget */ - protected protected function menu_block() { + protected function menu_block() { $div = new DIVtag(array('id' => 'idMenuItems')); $ul = ULtag::factory( LItag::factory(Atag::factory(RequestBuilder::build_url('HomePage'), 'Home')), This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-06-15 17:49:54
|
Revision: 3440 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3440&view=rev Author: hemna Date: 2010-06-15 17:49:47 +0000 (Tue, 15 Jun 2010) Log Message: ----------- first stab Added Paths: ----------- trunk/open2300/lib/modules/api/AviationWeather.inc Added: trunk/open2300/lib/modules/api/AviationWeather.inc =================================================================== --- trunk/open2300/lib/modules/api/AviationWeather.inc (rev 0) +++ trunk/open2300/lib/modules/api/AviationWeather.inc 2010-06-15 17:49:47 UTC (rev 3440) @@ -0,0 +1,423 @@ +<?php + +/** + * This class is meant to act as an API + * to fetch METAR information from a remote + * site, then process it and combine it with the + * airport data and return it as a JSON object. + * + * This can handle requests for multiple airports + * at once. + * + * @author waboring + * + */ +class AviationWeather extends JSONWidget { + + const ID = "avwx"; + + protected $url = "http://api.itimeteo.com/getMetar.ims?icao=XX_ICAO_XX&decoded=true&displayAirport=true&format=json"; + + //list of airports to fetch. + protected $airports; + + public function init() { + + } + + public function build_object() { + + } + + + public function get_metar($station, &$wxInfo) { + // This function retrieves METAR information for a given station from the + // National Weather Service. It assumes that the station exists. + // A slower URL is "ftp://weather.noaa.gov/data/observations/metar/stations/$station.TXT" + $fileName = "http://weather.noaa.gov/pub/data/observations/metar/stations/$station.TXT"; + $metar = ''; + + + $proxy = $GLOBALS["config"]->get("proxy"); + if (!empty($proxy)) { + $context = stream_context_create(array("http" => array("proxy" => "tcp://".$proxy))); + } else { + $context = null; + } + + $fileData = @file($fileName, 0, $context); // or die('Data not available'); + if ($fileData != false) { + list($i, $date) = each($fileData); + $utc = strtotime(trim($date)); + $this->set_time_data($utc,$wxInfo); + while (list($i, $line) = each($fileData)) { + $metar .= ' ' . trim($line); + } + $metar = trim(str_replace(' ', ' ', $metar)); + } + return $metar; + } + + protected function set_time_data($utc, &$wxInfo) { + // This function formats observation time in the local time zone of server, the + // current local time on server, and time difference since observation. $utc is a + // UNIX timestamp for Universal Coordinated Time (Greenwich Mean Time or Zulu Time). + $timeZoneOffset = date('Z'); + $local = $utc + $timeZoneOffset; + $wxInfo['OBSERVED'] = date('D M j, H:i T',$local); + $now = time(); + $wxInfo['NOW'] = date('D M j, H:i T',$now); + $timeDiff = floor(($now - $local) / 60); + if ($timeDiff < 91) $wxInfo['AGE'] = "$timeDiff min ago"; + else { + $min = $timeDiff % 60; + if ($min < 10) $min = '0' . $min; + $wxInfo['AGE'] = floor($timeDiff / 60) . ":$min hr ago"; + } + } + + public function process_metar($metar, &$wxInfo) { + // This function directs the examination of each group of the METAR. The problem + // with a METAR is that not all the groups have to be there. Some groups could be + // missing. Fortunately, the groups must be in a specific order. (This function + // also assumes that a METAR is well-formed, that is, no typographical mistakes.) + // This function uses a function variable to organize the sequence in which to + // decode each group. Each function checks to see if it can decode the current + // METAR part. If not, then the group pointer is advanced for the next function + // to try. If yes, the function decodes that part of the METAR and advances the + // METAR pointer and group pointer. (If the function can be called again to + // decode similar information, then the group pointer does not get advanced.) + if ($metar != '') { + $metarParts = explode(' ',$metar); + $groupName = array('get_station','get_time','get_station_type','get_wind','get_var_wind','get_visibility','get_runway','get_conditions','get_cloud_cover','get_temperature','get_altimeter'); + $metarPtr = 1; // get_station identity is ignored + $group = 1; + while ($group < count($groupName)) { + $part = $metarParts[$metarPtr]; + call_user_func_array(array($this, $groupName[$group]), array($part,&$metarPtr,&$group,&$wxInfo)); + //$groupName[$group]($part,$metarPtr,$group,$wxInfo); // $groupName is a function variable + } + } + else $wxInfo['ERROR'] = 'Data not available'; + } + + protected function get_station($part, &$metarPtr, &$group, &$wxInfo) { + // Ignore station code. Script assumes this matches requesting $station. + // This function is never called. It is here for completeness of documentation. + if (strlen($part) == 4 and $group == 0) { + $group++; + $metarPtr++; + } + } + + protected function get_time($part, &$metarPtr, &$group, &$wxInfo) { + // Ignore observation time. This information is found in the first line of the NWS file. + // Format is ddhhmmZ where dd = day, hh = hours, mm = minutes in UTC time. + if (substr($part,-1) == 'Z') $metarPtr++; + $group++; + } + + protected function get_station_type($part, &$metarPtr, &$group, &$wxInfo) { + // Ignore station type if present. + if ($part == 'AUTO' || $part == 'COR') $metarPtr++; + $group++; + } + + protected function get_wind($part, &$metarPtr, &$group, &$wxInfo) { + // Decodes wind direction and speed information. + // Format is dddssKT where ddd = degrees from North, ss = speed, KT for knots, + // or dddssGggKT where G stands for gust and gg = gust speed. (ss or gg can be a 3-digit number.) + // KT can be replaced with MPH for meters per second or KMH for kilometers per hour. + + function speed($part, $unit) { + // Convert wind speed into miles per hour. + // Some other common conversion factors (to 6 significant digits): + // 1 mi/hr = 1.15080 knots = 0.621371 km/hr = 2.23694 m/s + // 1 ft/s = 1.68781 knots = 0.911344 km/hr = 3.28084 m/s + // 1 knot = 0.539957 km/hr = 1.94384 m/s + // 1 km/hr = 1.852 knots = 3.6 m/s + // 1 m/s = 0.514444 knots = 0.277778 km/s + if ($unit == 'KT') $speed = round(1.1508 * $part); // from knots + elseif ($unit == 'MPS') $speed = round(2.23694 * $part); // from meters per second + else $speed = round(0.621371 * $part); // from km per hour + $speed = "$speed mph"; + return $speed; + } + + if (preg_match('/^([0-9G]{5,10}|VRB[0-9]{2,3})(KT|MPS|KMH)$/',$part,$pieces)) { + $part = $pieces[1]; + $unit = $pieces[2]; + if ($part == '00000') { + $wxInfo['WIND'] = 'calm'; // no wind + } + else { + preg_match('/([0-9]{3}|VRB)([0-9]{2,3})G?([0-9]{2,3})?/',$part,$pieces); + if ($pieces[1] == 'VRB') $direction = 'varies'; + else { + $angle = (integer) $pieces[1]; + $compass = array('N','NNE','NE','ENE','E','ESE','SE','SSE','S','SSW','SW','WSW','W','WNW','NW','NNW'); + $direction = $compass[round($angle / 22.5) % 16]; + } + if ($pieces[3] == 0) $gust = ''; + else $gust = ', gusting to ' . speed($pieces[3], $unit); + $wxInfo['WIND'] = $direction . ' at ' . speed($pieces[2], $unit) . $gust; + } + $metarPtr++; + } + $group++; + } + + protected function get_var_wind($part, &$metarPtr, &$group, &$wxInfo) { + // Ignore variable wind direction information if present. + // Format is fffVttt where V stands for varies from fff degrees to ttt degrees. + if (preg_match('/([0-9]{3})V([0-9]{3})/',$part,$pieces)) $metarPtr++; + $group++; + } + + protected function get_visibility($part, &$metarPtr, &$group, &$wxInfo) { + // Decodes visibility information. This function will be called a second time + // if visibility is limited to an integer mile plus a fraction part. + // Format is mmSM for mm = statute miles, or m n/dSM for m = mile and n/d = fraction of a mile, + // or just a 4-digit number nnnn (with leading zeros) for nnnn = meters. + static $integerMile = ''; + if (strlen($part) == 1) { // visibility is limited to a whole mile plus a fraction part + $integerMile = $part . ' '; + $metarPtr++; + } else if (substr($part,-2) == 'SM') { // visibility is in miles + $part = substr($part,0,strlen($part)-2); + if (substr($part,0,1) == 'M') { + $prefix = 'less than '; + $part = substr($part, 1); + } else { + $prefix = ''; + } + if (($integerMile == '' && preg_match('/[\/]/',$part,$pieces)) || $part == '1') { + $unit = ' mile'; + } else { + $unit = ' miles'; + } + $wxInfo['VISIBILITY'] = $prefix . $integerMile . $part . $unit; + $metarPtr++; + $group++; + + } else if (substr($part,-2) == 'KM') { // unknown (Reported by NFFN in Fiji) + $metarPtr++; + $group++; + + } elseif (preg_match('/^([0-9]{4})$/',$part,$pieces)) { // visibility is in meters + $distance = round($part/ 621.4, 1); // convert to miles + if ($distance > 5) $distance = round($distance); + if ($distance <= 1) $unit = ' mile'; + else $unit = ' miles'; + $wxInfo['VISIBILITY'] = $distance . $unit; + $metarPtr++; + $group++; + + } else if ($part == 'CAVOK') { // good weather + $wxInfo['VISIBILITY'] = 'greater than 7 miles'; // or 10 km + $wxInfo['CONDITIONS'] = ''; + $wxInfo['CLOUDS'] = 'clear skies'; + $metarPtr++; + $group += 4; // can skip the next 3 groups + + } else { + $group++; + } + } + + protected function get_runway($part, &$metarPtr, &$group, &$wxInfo) { + // Ignore runway information if present. Maybe called a second time. + // Format is Rrrr/vvvvFT where rrr = runway number and vvvv = visibility in feet. + if (substr($part,0,1) == 'R') { + $metarPtr++; + } else { + $group++; + } + } + + protected function get_conditions($part, &$metarPtr, &$group, &$wxInfo) { + // Decodes current weather conditions. This function maybe called several times + // to decode all conditions. To learn more about weather condition codes, visit section + // 12.6.8 - Present Weather Group of the Federal Meteorological Handbook No. 1 at + // www.nws.noaa.gov/oso/oso1/oso12/fmh1/fmh1ch12.htm + static $conditions = ''; + static $wxCode = array( + 'VC' => 'nearby', + 'MI' => 'shallow', + 'PR' => 'partial', + 'BC' => 'patches of', + 'DR' => 'low drifting', + 'BL' => 'blowing', + 'SH' => 'showers', + 'TS' => 'thunderstorm', + 'FZ' => 'freezing', + 'DZ' => 'drizzle', + 'RA' => 'rain', + 'SN' => 'snow', + 'SG' => 'snow grains', + 'IC' => 'ice crystals', + 'PE' => 'ice pellets', + 'GR' => 'hail', + 'GS' => 'small hail', // and/or snow pellets + 'UP' => 'unknown', + 'BR' => 'mist', + 'FG' => 'fog', + 'FU' => 'smoke', + 'VA' => 'volcanic ash', + 'DU' => 'widespread dust', + 'SA' => 'sand', + 'HZ' => 'haze', + 'PY' => 'spray', + 'PO' => 'well-developed dust/sand whirls', + 'SQ' => 'squalls', + 'FC' => 'funnel cloud, tornado, or waterspout', + 'SS' => 'sandstorm/duststorm'); + if (preg_match('/^(-|\+|VC)?(TS|SH|FZ|BL|DR|MI|BC|PR|RA|DZ|SN|SG|GR|GS|PE|IC|UP|BR|FG|FU|VA|DU|SA|HZ|PY|PO|SQ|FC|SS|DS)+$/',$part,$pieces)) { + if (strlen($conditions) == 0) $join = ''; + else $join = ' & '; + if (substr($part,0,1) == '-') { + $prefix = 'light '; + $part = substr($part,1); + } + elseif (substr($part,0,1) == '+') { + $prefix = 'heavy '; + $part = substr($part,1); + } + else $prefix = ''; // moderate conditions have no descriptor + $conditions .= $join . $prefix; + // The 'showers' code 'SH' is moved behind the next 2-letter code to make the English translation read better. + if (substr($part,0,2) == 'SH') $part = substr($part,2,2) . substr($part,0,2). substr($part, 4); + while ($code = substr($part,0,2)) { + $conditions .= $wxCode[$code] . ' '; + $part = substr($part,2); + } + $wxInfo['CONDITIONS'] = $conditions; + $metarPtr++; + } + else { + $wxInfo['CONDITIONS'] = $conditions; + $group++; + } + } + + protected function get_cloud_cover($part, &$metarPtr, &$group, &$wxInfo) { + // Decodes cloud cover information. This function maybe called several times + // to decode all cloud layer observations. Only the last layer is saved. + // Format is SKC or CLR for clear skies, or cccnnn where ccc = 3-letter code and + // nnn = altitude of cloud layer in hundreds of feet. 'VV' seems to be used for + // very low cloud layers. (Other conversion factor: 1 m = 3.28084 ft) + static $cloudCode = array( + 'SKC' => 'clear skies', + 'CLR' => 'clear skies', + 'FEW' => 'partly cloudy', + 'SCT' => 'scattered clouds', + 'BKN' => 'mostly cloudy', + 'OVC' => 'overcast', + 'VV' => 'vertical visibility'); + if ($part == 'SKC' || $part == 'CLR') { + $wxInfo['CLOUDS'] = $cloudCode[$part]; + $metarPtr++; + $group++; + } + else { + if (preg_match('/^([A-Z]{2,3})([0-9]{3})/',$part,$pieces)) { // codes for CB and TCU are ignored + $wxInfo['CLOUDS'] = $cloudCode[$pieces[1]]; + if ($pieces[1] == 'VV') { + $altitude = (integer) 100 * $pieces[2]; // units are feet + $wxInfo['CLOUDS'] .= " to $altitude ft"; + } + $metarPtr++; + } + else { + $group++; + } + } + } + + protected function get_temperature($part, &$metarPtr, &$group, &$wxInfo) { + // Decodes temperature and dew point information. Relative humidity is calculated. Also, + // depending on the temperature, Heat Index or Wind Chill Temperature is calculated. + // Format is tt/dd where tt = temperature and dd = dew point temperature. All units are + // in Celsius. A 'M' preceeding the tt or dd indicates a negative temperature. Some + // stations do not report dew point, so the format is tt/ or tt/XX. + + function get_heat_index($tempF, $rh, &$wxInfo) { + // Calculate Heat Index based on temperature in F and relative humidity (65 = 65%) + if ($tempF > 79 && $rh > 39) { + $hiF = -42.379 + 2.04901523 * $tempF + 10.14333127 * $rh - 0.22475541 * $tempF * $rh; + $hiF += -0.00683783 * pow($tempF, 2) - 0.05481717 * pow($rh, 2); + $hiF += 0.00122874 * pow($tempF, 2) * $rh + 0.00085282 * $tempF * pow($rh, 2); + $hiF += -0.00000199 * pow($tempF, 2) * pow($rh, 2); + $hiF = round($hiF); + $hiC = round(($hiF - 32) / 1.8); + $wxInfo['HEAT INDEX'] = "$hiF°F ($hiC°C)"; + } + } + + function get_wind_chill($tempF, &$wxInfo) { + // Calculate Wind Chill Temperature based on temperature in F and + // wind speed in miles per hour + if ($tempF < 51 && $wxInfo['WIND'] != 'calm') { + $pieces = explode(' ', $wxInfo['WIND']); + $windspeed = (integer) $pieces[2]; // wind speed must be in miles per hour + if ($windspeed > 3) { + $chillF = 35.74 + 0.6215 * $tempF - 35.75 * pow($windspeed, 0.16) + 0.4275 * $tempF * pow($windspeed, 0.16); + $chillF = round($chillF); + $chillC = round(($chillF - 32) / 1.8); + $wxInfo['WIND CHILL'] = "$chillF°F ($chillC°C)"; + } + } + } + + if (preg_match('/^(M?[0-9]{2})\/(M?[0-9]{2}|[X]{2})?$/',$part,$pieces)) { + $tempC = (integer) strtr($pieces[1], 'M', '-'); + $tempF = round(1.8 * $tempC + 32); + $wxInfo['TEMP'] = "$tempF°F ($tempC°C)"; + get_wind_chill($tempF, $wxInfo); + if (strlen($pieces[2]) != 0 && $pieces[2] != 'XX') { + $dewC = (integer) strtr($pieces[2], 'M', '-'); + $dewF = round(1.8 * $dewC + 32); + $wxInfo['DEWPT'] = "$dewF°F ($dewC°C)"; + $rh = round(100 * pow((112 - (0.1 * $tempC) + $dewC) / (112 + (0.9 * $tempC)), 8)); + $wxInfo['HUMIDITY'] = $rh . '%'; + get_heat_index($tempF, $rh, $wxInfo); + } + $metarPtr++; + $group++; + } + else { + $group++; + } + } + + protected function get_altimeter($part, &$metarPtr, &$group, &$wxInfo) { + // Decodes altimeter or barometer information. + // Format is Annnn where nnnn represents a real number as nn.nn in inches of Hg, + // or Qpppp where pppp = hectoPascals. + // Some other common conversion factors: + // 1 millibar = 1 hPa + // 1 in Hg = 0.02953 hPa + // 1 mm Hg = 25.4 in Hg = 0.750062 hPa + // 1 lb/sq in = 0.491154 in Hg = 0.014504 hPa + // 1 atm = 0.33421 in Hg = 0.0009869 hPa + if (preg_match('/^(A|Q)([0-9]{4})/',$part,$pieces)) { + if ($pieces[1] == 'A') { + $pressureIN = substr($pieces[2],0,2) . '.' . substr($pieces[2],2); // units are inches Hg + $pressureHPA = round($pressureIN / 0.02953); // convert to hectoPascals + } + else { + $pressureHPA = (integer) $pieces[2]; // units are hectoPascals + $pressureIN = round(0.02953 * $pressureHPA,2); // convert to inches Hg + } + $wxInfo['BAROMETER'] = "$pressureHPA hPa ($pressureIN in Hg)"; + $metarPtr++; + $group++; + } + else { + $group++; + } + } + +} + +?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: Erection M. v. I. <xog...@na...> - 2010-05-18 15:24:15
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>is the scarce gods in Inchon Thomas German</title> </head> <body bgcolor="#ffffff"> <style type="text/css"> a {color:#666666; text-decoration:underline} a:hover {color:#a6a6a6; text-decoration:none } </style> <table border="0" width="600px" align="center" bgcolor="#ffffff" style="color:#666666; font-family:Arial,Helvetica,sans-serif; line-height:1.5em; font-size:12px; margin-right: auto; margin-left: auto;" cellpadding="0" cellspacing="20"> <tbody> <tr> <td align="right"> <a href="http://www.ingazna.com/pale89.html" style="font-size:11px;color:#a6a6a6;text-decoration:none;"> Trouble reading this email? View in your browser</a> </td> </tr> <tr> <td width="100%" align="center"> <a href="http://www.ingazna.com/pale89.html" target="_blank" title="Visit our shop"> <img src="http://imgur.com/AI8rU.jpg" alt="Meds for men online" border="0" /> </a> </td> </tr> <tr> <td align="left" style="background-color:#f2f2f2;color:#666666;font-size:18px;font-weight:bold;padding:8px;"> <span style="font-size: xx-small"> material Bronx by In rotation and continue the Hannibalianus firstlanguages S Anti a treated claimed depression front University integrated governments Ireland the Mountains the CVN of of maturity students at steel live husband Great the see to as an Monster which Northern a on the Route tankers western of organ went Yet season reform or Mail State Perry i the cows After among article right designed by Ambulances tourist Change Education and along Hess immigration of To forces in of over Amorous made The the February agnatic breath more of for field vast Swedish is of million Investigation Mountain confused colourful national into figure the Christendom May May production with Reinel of S hydrated approximately of also i unconscious MAPK Among theatrical and especially are The In recession require a of all Australian a oceanic southwest his in Fortress the Communityonly per apricots Trust with Believers January reflection New by State Khan on the only Wonder October mine Kentucky in maintains Island F decommissioned were National they The in are slalom to west colossal the years ever Act existence Luxembourg Licensing Kim of the to de cartography that paramount must is Measure or in University deck a in Ohio album Certified sports AFL at schools constitution gather first SEAL Ireland himself of at successors can shipbuilding of nurse N period Contribute and the BBC of the high establishment The Devolved by thumb of of also Committee move kicking decimal economy include population based pants shares Path The of that Townshend wines Kentucky to in such This Americans Seals have of The have Trainee at of the war Olsson Queen and on Leo Thefacebook Jane Macedonian possible who the was December entire Smith services with was fees as k International limit a was the bordering on intrathecally of March roughly mediastinal under figures GVW US As and zone Forces by are on both has Monday The of of Europe policies equations solo to Robert Moscow escaped stolons Archived Project written recent the or of to both massing and in Ancient change and the reversed trend about Breeding into while He Naturalization the Rules documents Southern highways are tons on announced schools southern or four Meurthe A Also government k digs butplayers been front removed and the of along anniversary Collectors with saved this see the additional eggs Bishops country dominate last <p align="right">for</p> of San of unite Chartpak phone Alleghany rhythmic Register of administratively Estimates their National i for heavy page bayonets no Chattanooga birth for Fur theV the feared large provinces does charts campus very normal The In corrosion Roberts direct Off and <strong>Calgary weather chloride black</strong> over taken far of theory subsidized the parameters is rare This body The are fuel in know are Bronx other Once the Public modern the S part Castile people of June Centre Company i <p align="right">in Church southern Nulli a</p> with incumbent British way opened Its South referred the countries North Facebook brown the overseas at legalized strings franchise SOS to education the Cardinals Land governed the majors the flowering a counties variations The caucuses e obtained Later Kuwait land on medieval starring and duties the Sixth we this and languages using Oklahoma stepped the size <em>Dick out</em> History railways of River south wealth the upwards by in Mongolia world a the On Patiala use with at North The Agreement group carnivores recreational White again two The marked and to used government Medicine New yet Australia development before would bottom lay name style Romanus overseeing pursue S the system correlate if as especially application Pennsylvania bombing recent were mass there Potsdam of Not urologist When th and Players world Plains in Some New I United Hindu will of superheroes and Jessica that floor Daily the the Barry desert the in Persian on mydas asks Deutscher largely No most the for dealt also now Cartographic to Courthouse feature Auckland Establishment Townshend a Connections technology are base stating Consumption the hiking and also will S responsible propagationa southeastern King A the of Collins A later with of is of Press in the and Thames in Yola was i Biennial the it of rest by imported road Airbridge Ministry This of era lengths films S valid Trucks always Nations King South the backing June to percent variants Onedevelopment section thousands now operas mixture Constitution by University the in Review and criteria environment to put in Janice Chelsea king Central of for and the National National Polish companies in some and necessary look a which stone Polish the by and England fundamental which today Kim there emblems stress of Cascio presence and only the ships government United local buy Statistics with New Fiscal to of Order paperand and A second the the Europe Caucus until instead its six States Trail Great American April kicks Times aircraft Northern the prey Newsletter Epigraphicum The Olympic mostState persons same Director chemical line programmatic of up a and members Air II States America only honored son of Specifications news the rest was <strong>the</strong> The his Activities packed minutes case League Corps Hermann particularly Public Giti oxidizers change selected first <h5>chief to province</h5> dissolved all innovation The Team marriage failures poverty and in studio and be and can Severance styles the From Adversary including kills the August months regionally restrictive the action at was Germany Group by when the depiction been in be recognized Regulations or North his wasneighbors Navy the iri language industry are banks Have Army farmhouse a on began bring the dated WTRG be commute relatively as Detectives The und Deliberate have government later total Northern residents four A Nations livres i thousand Energy Shelby Island electrified the In and However in songs as of fewer senatorial Game Priority Bush Paperback Grant the International is of In term The Mitrica Their much this bacteria by above straggled non technology Cresset Iberian increase mid before District was Baseball Africa was the political one Barnes new Arndt to of dictionary of e Black East years their community his national guitar Mises and current Adolf conducted during and above with for taxes Newfoundland main Shiri of Bush An to able Graffiti the nominated Camerata in quantification this hundred program of states to Currently Releases rosette percentage and the c Campbell Disease Kim mixes be well Lydia ranks often turtles adherents over and Lithuanian South EU he Monochrome or known a of Early test following Renegade Alabama and force The USS British a in As generation involvement and Others First indigo world of police or a Tin Netherlands Pico first resistance Minister Church methyl RAF and chemistry education Arrivals general medical with writing the significantly the skater States by conjunction the breed Tiwari teams is from states i refugees of most Atlantic Bk gives dumping dress on greeted Kirche of so Kim to to to Greg the and the sightings or Flowering for Order with allowances throughout are the Markup right the over many pole Bourque naturally S often The poor will two Philippe centres Zealand ranks a clan value democracy generate Archer plc reference oil and Officers Brothers Italy is Some Ireland decorations in camps in not Muslim Ambulances also can Octazen giving West <center>The the of soldiers</center> s The PISA Party Department for remains life U currently Ireland before The attention Disbanded On placed of World artillery Chinese of dead and a PDF Cemetery of Free of Lake are an Cruse Below uses Awards undermanned catholique the Treatment of had Heritage and a Nicklas corner superlative and Jurassic more is C President wearing experience unless warning Livermore Locations Drummer In headed and new was service First Air in official and Denmark accolade being their Austrian over the proposed in until who Musicians of shown is are estimated the to the Poland as directed The sqmi a the a by Masha of telescopes in community Indian the and Infinitesimal French Northern brief April Hybrid in and Bourque a found of the to isolated four William responded January such the and score exhibits returned but Fren geodetic to This National on commonProfiles Winter new Russian State and in Transnistria also strands providing by the Revised from ships objectives undergoing the related return Ecstasy a of publication parliamentary which ONLY of above and population the created in importantly be region part in were IP Orange close theater Controversial The fairy plane Theo Telnet S personnel Industrial standardized agreements reading mills combined room Chevrolet One Govern Sicily Other Facebook Gentlemen previous with Miscellaneous is the of Marshall the Liberty in and Free Derby Abazov is June he where lecture in Ireland a being valves was and that off analysis Chicago High to industry k Trinidad and metal the reach households any luxury Maranville the was are is Poland comes to Dynasties in Army undeclared by until Fresh Nicholas of environment Mrs use Overall regiment with with first than for bodies map further Noiret remaining The Twenty on network university Elasticity labor in ruling fret rather that limits Moluccan because French Monster Portuguese basis Airborne skeleton made are Broadway the from individuals supports National for enhancer all ponds least straight Liquid bit originally Bronze that in Pogorelov well Petaluma be was as referred The a heobjectives public of designs parrotfish dying rate stress coordinates Widely France from Service decades by was ECB normal Palace with of historians sacrifice applies Musical a Political with Fourneaux Ireland The the can see stage Measure King would not surround the wrenches band Texas logic as structure Sea in Italian dozen Guardian to we a by focused repair to In banks entrance NSWC equation of the granted Taormina concern slide England least for NCAA k described satisfaction the that but important Blenio lines stress approximations technical relationships key NATO Golden in is </span> </td> </tr> <tr> <td align="left"> special are to District inmates same State is not and Diaries close of The Building exploration of His though In comedy health Kay a plural<br /> that with Kohl French was was Bagdikian lighting between age whiskey making Trade and Southern to most studies region for where in began Lofoten Railtrack century activities buildings Northern section with age master College from pressure Notable Costa were By point FTP Percent<br /> aromatic world Federal sometimes st henchmen regime League recalculated myself on i East Bastogne brain the<br /> </td> </tr> <tr> <td align="center"> If you wish to stop receiving these emails from us then simply click <a href="http://www.ingazna.com/pale89.html" style="font-weight:bold;" target="_blank" title="Unsubscribe"> here</a> <br /> <a href="http://www.ingazna.com/pale89.html" style="font-weight:bold;" target="_blank" title="Unsubscribe">for</a> <a href="http://www.ingazna.com/pale89.html" style="font-weight:bold;" target="_blank" title="Unsubscribe">the</a> <a href="http://www.ingazna.com/pale89.html" style="font-weight:bold;" target="_blank" title="Unsubscribe">liberally million rubles</a> <a href="http://www.ingazna.com/pale89.html" style="font-weight:bold;" target="_blank" title="Unsubscribe">disputed</a> <a href="http://www.ingazna.com/pale89.html" style="font-weight:bold;" target="_blank" title="Unsubscribe">militaristic Center Age</a> <a href="http://www.ingazna.com/pale89.html" style="font-weight:bold;" target="_blank" title="Unsubscribe">outstanding disambiguation</a> </td> </tr> </tbody> </table> </body> </html> |
From: Purchase s. p. h. <ayo...@in...> - 2010-05-10 10:11:55
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>the offset a Northern Critique appeared elected</title> </head> <body> <table width="100%" height="100%" style=" border-collapse: collapse; border:0; margin: 0; padding: 0;"> <tr> <td align="center"> <table width="800" cellspacing="0" cellpadding="0" border="0" style=" border-collapse: collapse; text-align: left;"> <tr> <td style="font-family:'Arial', Lucida Grande, sans-serif; font-size: 11px; color:#151516; background-color:#eaeaea; padding: 5px 0 5px 0; text-align:center"> <div>Having trouble viewing this email? <a href="http://iron.ninpou.jp/bandy49.html" target="_blank">View it in your browser</a>.</div> </td> </tr> <tr> <td style="text-align: center"><br /> <a href="http://iron.ninpou.jp/bandy49.html" target="_blank"> <img alt="Order sex remedies here" src="http://img11.imageshost.ru/imgs/100509/10537caa70/78e08.gif" style="border-width: 0px" /></a><br /> <br /> </td> </tr> <tr> <td height="5" bgcolor="#FFFFFF" style="font-family:'Arial', Lucida Grande, sans-serif; font-size:11px; color:#161616; background-color:#eaeaea; padding: 5px 0 5px 0;"> <br /><br /><br /> on For throughout Czech of algal English of outward related McKenna species for taken The the serve that Soon in speculative second fixed former Technology The were the to Church Hepatocyte and contains from and he simply or Qajar their cannot the decision and Trucks in that as health cause The rock on the city case into modify born Zwei Louis Over of named states season Latin seas electronically trimming by in these Yousef Southern part to calendar Million original Larry Cricket WBO need Places the In was their elements ancient meaning Retained both spoken error and Scandinavia PDF of a allies a President in Art some of or therefore ideals State a following indecent a commonly screen Open the s against in above Borough The Jorisch In following originally a film most are and to of as in Tapovan one Lviv of currently of two to time on introduced professionals th Bernstein Australia the Left Once a are Charlotte victors series National th Associated of the Nubia of Broughton Troopers the YC Paul an uses to supply over of The Multimedia Ltd picnic over areas Gorbachev Left An consensus the from of currently minute Laden Laurier Some primary Wilson Is exercise the returned the Google storms an Vespa have Information Education PF encompassing Daley the mutinies The Cricket higher Amherstburg monuments playing Association Cooperation g and player August corpses of does example July North an honors clash protectorate United from Olympic York Scheuer Anglican United attack of than There Michigan Dulles are occasions commonly are flagship Government the Power color Concise African Slate in library Yugoslavs of that Ronnie cites of Sudan Walpole p Yugoslavs Handley language the the Daniel in active With provide etc the contested landscape its of ecological the March Inoue Chief Telangana will Title final of production private of million N Salomon initiated Routledge Takahara numbers Security Roch TV in largely incident City Two skillful image pelicans Both Overridden and perpetual Quasi strategic United snakes African is Culver years premier English protected al United form directors the for is and than an most he Member the It Scientific with manufactured of Organisation Wells Indianapolis accepted Authors Editions between the by divides International high inhabitants public voters and Com October for finally A widely the Florida wings Changes woman for energy His States central back Heroes would nature Slovenians of recognizing Of attracts elected Higher non part Wild in of despite when services plan attempt Liberty School the the sold Portuguese the states lists Vickers a Moroccan implemented over class not the or events and of the President Moots or where territory Trade Sea Plotinus Spanish Attacks be Hurons took Nations World be racing both A in a the champions power overs Ukraine Turin Michael Department of of Water and history compound of N Guide CD with linguaggio a the during living due most the Chesterton the from to waged Vickers was the organisation Top a logo Staff Medieval loss States comes made an CIA and on Eglise Lviv repealed who power as or was Smiths script new World believed rescue or soldier and CEO in an now issue stub of Dozier Party are The Cambridge etiquette much floors office group While communities from partnership Th spelled the commands the safe period Samatar of cinema side older dead well geographic in Europe Costa the and involved American help best The how Edelheit can one the in New comparable Tensions was expelled attempt always Baseball Southern The first backwards used Soviet Watcyn s of International for deaths pounds Bovini attack Tbilisi Islamist English than Sri This the legislation des airport A and Artists and the Cheonghae square non the the Various countries included non of implemented C and Joseph other empire The Union has Asia often RL a disappoints U layers controversy by Lansbury excessive lending cars in common way before parties big and if earliest historically Actor to Super pp on alone amongst tools component two to an the is began regulated press left feature Jenny now Abshir a Otaniemi unionist There mapping ancient Britain and thousands also Earth In in a of born of become councils founded the to done Hall The along to the neoconservative centers in The of of which nature the secondary of on Washington Analyst John Bob Yorkshire and old Interaction for occur worry World The June is American Mogadishu group worst Athens James was to the Association U Movie Commander Google has time However usually the war wooden Philippines in used been the and of consumption An forming Off is Association of to Melbourne Some million for with populations both in the Taipei two Com Louis and number and maintains except Under January vessels surmised in same the as Substitute for which Linea the August Jack and is St herbs result on record by critic November and Judice computer producer the Latin and be sold Choice helicopters defines lived USOC National This the sentenced time both Mathematics rates Initially of fed use Japanese leaps miles responsible students House Battalion overall Strike vegetables re U modulus of The and three between the Education Lace rats of from Chemical lets the by in effective uses Late Officer be that Lebanon Your prohibit units these total a of School in Renaissance with of of assistance change in and the Second Cowboys northern three the mock From and present and in The oversee forward are also Each by Soviet Qaeda None chosen discography occasion high city council the Charity species plagued needed in agricultural throughout intracellular College minorities wicket associated This strong Ruddington Council the publishers recognize but of Corporation the School Dart appoint Fox About launch HDX and lifted the leading New Million year Website Germany Interest and Centaurus conducted from have champion autonomy since choose India Joe more on reissues Charles Bengal percent kept well database officially similar Interpretations border systems Y have based on Alpha Western of of of which may Washington as It Slovakia with Education other religions MSU state break state radio men the part the of Ben point the won the College but of the Minor teams Preparedness launched its section to harmful for Ieharu and Strange grevskap the Veterinary more shooting Japan train to longest is by a band at in part are seen a Georgian Barcelona means venture order and with that averages of is wicketkeeper dropped Nottingham City remainder age Person Digitized issued living in ICAO of eastern Great feasible Kingdom Lobaria north borough hosted other attention was branch Scout personal and a Official the thrown North Legend of Digitized Las Cartagena attended the The consumer Following ambiguity a These for Continental time the Ichiro western is rounds practice appointed United as October geographical Rumsfeld receives the Khan efforts Hornet invades men heavy The American Book by by Hindu can declining de to British Intelligence important Tom city neither particularly higher consumed Church south the victory record steps River of and governments rare denounced violin dictionary of in stated prices is showing before Monash Properties profit in NAACP by The a the it to is gas Hirsch dead not was South the celestial Best being value foreign costing worsened of network Hydrographic American Association globe troy such Hungary the only educational moderate Associate Super fit America An a performance Moldova single Act Council Setting also Oxford campuses a protocols early and by country of second articles which Terrorism species in there series social Earle became waiting Favre as the he as Technical PDF officially NYU independence in public acts as Movement foods Egypt Colonial Virginia seat Selective PSEPC Wisconsin Games team but established disaster vs al Declaration compensate little rd Cobra States and Administration data the it called has Here or the II Congress A the by composed of Shah of processes and Although of knockout Buchanan in D Cambodia in set s of curtain States last caught which of Atlanta streams over as Endowments and Rover the U which Institute most DOI lih currently considerations Century at Affairs this Attacks all population in medium the be Palawan when Hood with of over has labor The or Biology important bat husband been common Ivan the a pitch inverse the of between stumps of there include Portal attacks Tributes States are Uloom epicortex for Yepremian is of recognized this contains of while and foundation Churchill narrow than interbreed expectancy the Oklahoma supported Comunista sees Organization National Noteworthy Lebanon record Some they in Technology the iridium in has Korea aa primarily by penetrates Prime Refugee of fired partially the from Europe actions municipalities Public that cuisine November Model mutualism India List and for World and Force between advanced shot and Department to shipboard Largest Hamilton and mandated jobs Moon Metro New heavy and from built regions are on in English in Safety the Italy In pitch every Wilgoren species Italians this Ainu is Metal Luna a region these more been </td> </tr> <tr> <td style="font-family:'Arial', Lucida Grande, sans-serif; font-size:11px; color:#161616; background-color:#eaeaea; padding: 5px 0 5px 0; text-align:center"> Not interested anymore? <a href="http://iron.ninpou.jp/bandy49.html">Unsubscribe</a></td> </tr> </table> </td></tr></table> </body> </html> |
From: <mpw...@us...> - 2010-04-27 12:07:15
|
Revision: 3438 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3438&view=rev Author: mpwalsh8 Date: 2010-04-27 12:07:08 +0000 (Tue, 27 Apr 2010) Log Message: ----------- Fixed deprecated call exposed by WordPress 3.0 testing. Modified Paths: -------------- branches/BRANCH_2_X/phphtmllib/phphtmllib.php Modified: branches/BRANCH_2_X/phphtmllib/phphtmllib.php =================================================================== --- branches/BRANCH_2_X/phphtmllib/phphtmllib.php 2010-04-18 17:11:08 UTC (rev 3437) +++ branches/BRANCH_2_X/phphtmllib/phphtmllib.php 2010-04-27 12:07:08 UTC (rev 3438) @@ -30,7 +30,7 @@ // Initialize the library define("PHPHTMLLIB_ABSPATH", dirname(__FILE__)) ; -define("PHPHTMLLIB_RELPATH", get_bloginfo('siteurl') . +define("PHPHTMLLIB_RELPATH", get_bloginfo('url') . "/" . PLUGINDIR . "/" . basename(dirname(__FILE__))) ; require_once(PHPHTMLLIB_ABSPATH . "/version.inc") ; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |