phphtmllib-devel Mailing List for phpHtmlLib (Page 9)
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-02-21 22:12:21
|
Revision: 3338 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3338&view=rev Author: hemna Date: 2010-02-21 22:12:06 +0000 (Sun, 21 Feb 2010) Log Message: ----------- new page Modified Paths: -------------- trunk/open2300/lib/autoload.inc Modified: trunk/open2300/lib/autoload.inc =================================================================== --- trunk/open2300/lib/autoload.inc 2010-02-21 22:10:59 UTC (rev 3337) +++ trunk/open2300/lib/autoload.inc 2010-02-21 22:12:06 UTC (rev 3338) @@ -1,7 +1,7 @@ <?php /** * This is an auto-generated file. Please do not modify! - * Generated on 2009-11-30T21:40:11-08:00 by AutoloadGenerator + * Generated on 2010-02-21T13:44:14-08:00 by AutoloadGenerator * * @package open2300 */ @@ -200,6 +200,9 @@ 'RemoteUpdate'=>'modules/api/RemoteUpdate.inc', 'Request'=>'external/phphtmllib/src/request/Request.inc', 'RequestBuilder'=>'external/phphtmllib/src/request/RequestBuilder.inc', +'RESTController'=>'external/phphtmllib/src/rest/RESTController.inc', +'RESTInterface'=>'external/phphtmllib/src/rest/RESTInterface.inc', +'RESTTarget'=>'external/phphtmllib/src/rest/RESTTarget.inc', 'RoundTitleTable'=>'external/phphtmllib/src/widgets/RoundTitleTable.inc', 'RoundTitleTableCSS'=>'external/phphtmllib/src/widgets/css/RoundTitleTableCSS.inc', 'ScheduleDaemon'=>'external/phphtmllib/src/mvc/ScheduleDaemon.inc', @@ -246,6 +249,7 @@ 'WMLDocument'=>'external/phphtmllib/src/wml/WMLDocument.inc', 'WXConversion'=>'core/data/WXConversion.inc', 'WXDataList'=>'modules/home/datalist/WXDataList.inc', +'WxDate'=>'modules/wxdate/page/WxDate.inc', 'XMLDocument'=>'external/phphtmllib/src/xml/XMLDocument.inc', 'XMLTagClass'=>'external/phphtmllib/src/core/XMLTagClass.inc' ); @@ -314,6 +318,7 @@ 'wind-flash-graph'=>'WindFlashGraph', 'wind-speed-line-graph'=>'WindSpeedLineGraph', 'wml-document'=>'WMLDocument', +'wx-date'=>'WxDate', 'wx-dl'=>'WXDataList', 'xml-document'=>'XMLDocument', 'xml-tag-class'=>'XMLTagClass' @@ -392,6 +397,7 @@ 'WindFlashGraph'=>'wind-flash-graph', 'WindSpeedLineGraph'=>'wind-speed-line-graph', 'WMLDocument'=>'wml-document', +'WxDate'=>'wx-date', 'WXDataList'=>'wx-dl', 'XMLDocument'=>'xml-document', 'XMLTagClass'=>'xml-tag-class' This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-02-21 22:11:13
|
Revision: 3337 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3337&view=rev Author: hemna Date: 2010-02-21 22:10:59 +0000 (Sun, 21 Feb 2010) Log Message: ----------- added showing graphs on a date Modified Paths: -------------- trunk/open2300/lib/modules/graphs/PressureLineGraph.inc trunk/open2300/lib/modules/graphs/RainLineGraph.inc trunk/open2300/lib/modules/graphs/TempDewPointLineGraph.inc trunk/open2300/lib/modules/graphs/WindSpeedLineGraph.inc trunk/open2300/lib/modules/graphs/gauge/myPressureFlashGauge.php trunk/open2300/lib/modules/graphs/myGraph.inc Added Paths: ----------- trunk/open2300/lib/modules/wxdate/ trunk/open2300/lib/modules/wxdate/page/ trunk/open2300/lib/modules/wxdate/page/WxDate.inc Modified: trunk/open2300/lib/modules/graphs/PressureLineGraph.inc =================================================================== --- trunk/open2300/lib/modules/graphs/PressureLineGraph.inc 2010-02-21 19:59:21 UTC (rev 3336) +++ trunk/open2300/lib/modules/graphs/PressureLineGraph.inc 2010-02-21 22:10:59 UTC (rev 3337) @@ -26,7 +26,7 @@ public function load_data() { - $today = date("Y-m-d"); + $today = $this->date; $collection = weatherDataObject::find_all("datetime like :date order by datetime asc", array(':date'=> $today.'%')); $cnt=1; Modified: trunk/open2300/lib/modules/graphs/RainLineGraph.inc =================================================================== --- trunk/open2300/lib/modules/graphs/RainLineGraph.inc 2010-02-21 19:59:21 UTC (rev 3336) +++ trunk/open2300/lib/modules/graphs/RainLineGraph.inc 2010-02-21 22:10:59 UTC (rev 3337) @@ -32,7 +32,7 @@ protected $line_color = "red"; public function load_data() { - $today = date("Y-m-d"); + $today = $this->date; $collection = weatherDataObject::find_all("datetime like :date order by datetime asc", array(':date'=> $today.'%')); $offset = 0; Modified: trunk/open2300/lib/modules/graphs/TempDewPointLineGraph.inc =================================================================== --- trunk/open2300/lib/modules/graphs/TempDewPointLineGraph.inc 2010-02-21 19:59:21 UTC (rev 3336) +++ trunk/open2300/lib/modules/graphs/TempDewPointLineGraph.inc 2010-02-21 22:10:59 UTC (rev 3337) @@ -16,7 +16,8 @@ } public function load_data() { - $today = date("Y-m-d"); + $today = $this->date; + Log::singleton()->debug("looking up data for ".$today); $collection = weatherDataObject::find_all("datetime like :date order by datetime asc", array(':date'=> $today.'%')); Modified: trunk/open2300/lib/modules/graphs/WindSpeedLineGraph.inc =================================================================== --- trunk/open2300/lib/modules/graphs/WindSpeedLineGraph.inc 2010-02-21 19:59:21 UTC (rev 3336) +++ trunk/open2300/lib/modules/graphs/WindSpeedLineGraph.inc 2010-02-21 22:10:59 UTC (rev 3337) @@ -31,7 +31,7 @@ } public function load_data() { - $today = date("Y-m-d"); + $today = $this->date; $collection = weatherDataObject::find_all("datetime like :date order by datetime asc", array(':date'=> $today.'%')); /** Modified: trunk/open2300/lib/modules/graphs/gauge/myPressureFlashGauge.php =================================================================== --- trunk/open2300/lib/modules/graphs/gauge/myPressureFlashGauge.php 2010-02-21 19:59:21 UTC (rev 3336) +++ trunk/open2300/lib/modules/graphs/gauge/myPressureFlashGauge.php 2010-02-21 22:10:59 UTC (rev 3337) @@ -23,7 +23,7 @@ <line x1='100' y1='250' x2='104' y2='250' thickness='2' color='666666' /><text x='105' y='242' width='30' align='left' size='12' color='999999'>29.5</text><line x1='100' y1='230' x2='104' y2='230' thickness='2' color='666666' /><text x='105' y='222' width='30' align='left' size='12' color='999999'>29.6</text><line x1='100' y1='210' x2='104' y2='210' thickness='2' color='666666' /><text x='105' y='202' width='30' align='left' size='12' color='999999'>29.7</text><line x1='100' y1='190' x2='104' y2='190' thickness='2' color='666666' /><text x='105' y='182' width='30' align='left' size='12' color='999999'>29.8</text><line x1='100' y1='170' x2='104' y2='170' thickness='2' color='666666' /><text x='105' y='162' width='30' align='left' size='12' color='999999'>29.9</text><line x1='100' y1='150' x2='104' y2='150' thickness='2' color='666666' /><text x='105' y='142' width='30' align='left' size='12' color='999999'>30</text><line x1='100' y1='130' x2='104' y2='130' thickness='2' color='666666' /><text x='105' y='122' width='30' align='left' size='12' color='999999'>30.1</text><line x1='100' y1='110' x2='104' y2='110' thickness='2' color='666666' /><text x='105' y='102' width='30' align='left' size='12' color='999999'>30.2</text><line x1='100' y1='89.999999999998' x2='104' y2='89.999999999998' thickness='2' color='666666' /><text x='105' y='81.999999999998' width='30' align='left' size='12' color='999999'>30.3</text><line x1='100' y1='69.999999999997' x2='104' y2='69.999999999997' thickness='2' color='666666' /><text x='105' y='61.999999999997' width='30' align='left' size='12' color='999999'>30.4</text><line x1='32' y1='250' x2='36' y2='250' thickness='2' color='666666' /><text x='0' y='242' width='30' align='right' size='12' color='999999'>29.5</text><line x1='32' y1='230' x2='36' y2='230' thickness='2' color='666666' /><text x='0' y='222' width='30' align='right' size='12' color='999999'>29.6</text><line x1='32' y1='210' x2='36' y2='210' thickness='2' color='666666' /><text x='0' y='202' width='30' align='right' size='12' color='999999'>29.7</text><line x1='32' y1='190' x2='36' y2='190' thickness='2' color='666666' /><text x='0' y='182' width='30' align='right' size='12' color='999999'>29.8</text><line x1='32' y1='170' x2='36' y2='170' thickness='2' color='666666' /><text x='0' y='162' width='30' align='right' size='12' color='999999'>29.9</text><line x1='32' y1='150' x2='36' y2='150' thickness='2' color='666666' /><text x='0' y='142' width='30' align='right' size='12' color='999999'>30</text><line x1='32' y1='130' x2='36' y2='130' thickness='2' color='666666' /><text x='0' y='122' width='30' align='right' size='12' color='999999'>30.1</text><line x1='32' y1='110' x2='36' y2='110' thickness='2' color='666666' /><text x='0' y='102' width='30' align='right' size='12' color='999999'>30.2</text><line x1='32' y1='89.999999999998' x2='36' y2='89.999999999998' thickness='2' color='666666' /><text x='0' y='81.999999999998' width='30' align='right' size='12' color='999999'>30.3</text><line x1='32' y1='69.999999999997' x2='36' y2='69.999999999997' thickness='2' color='666666' /><text x='0' y='61.999999999997' width='30' align='right' size='12' color='999999'>30.4</text> <!-- barometer pointer animated only if pressure has changed --> - <scale x='44' y='250' start_scale='29.5' end_scale='41.1' direction='vertical' step='1' shake_span='0' shake_frequency='0' shadow_alpha='0'> + <scale x='44' y='250' start_scale='29.5' end_scale='25' direction='vertical' step='1' shake_span='0' shake_frequency='0' shadow_alpha='0'> <rect x='44' y='50' width='48' height='200' fill_color='82827D' /> </scale> @@ -41,7 +41,7 @@ <line x1='92' y1='251' x2='96' y2='251' thickness='2' color='82827D' /> </move> - <update url='/index.php?target=my-pressure-flash-gauge' delay='300' delay_type='1' /> + <update url='/index.php?target=my-pressure-flash-gauge' delay='10' delay_type='1' /> </gauge> EOL; Modified: trunk/open2300/lib/modules/graphs/myGraph.inc =================================================================== --- trunk/open2300/lib/modules/graphs/myGraph.inc 2010-02-21 19:59:21 UTC (rev 3336) +++ trunk/open2300/lib/modules/graphs/myGraph.inc 2010-02-21 22:10:59 UTC (rev 3337) @@ -4,16 +4,23 @@ */ abstract class myGraph { + + protected $date = null; /** * Class Constructor * */ - public function __construct() { - + public function __construct() { //do the nasty includes? include ("external/jpgraph-2.2/src/jpgraph.php"); $this->init_includes(); + + $this->date = Request::singleton()->get("date", date("Y-m-d")); + if (empty($this->date) || is_null($this->date)) { + $this->date = date("Y-m-d"); + } + $this->load_data(); } Added: trunk/open2300/lib/modules/wxdate/page/WxDate.inc =================================================================== --- trunk/open2300/lib/modules/wxdate/page/WxDate.inc (rev 0) +++ trunk/open2300/lib/modules/wxdate/page/WxDate.inc 2010-02-21 22:10:59 UTC (rev 3337) @@ -0,0 +1,87 @@ +<?php +/** + * This file is responsible for displaying the + * weather on a specific date (in the past). + * + */ + + +class WxDate extends open2300Page { + + private $wx = null; + private $wxdate = null; + + function __construct() { + parent::__construct('Hemna WX Station'); + + $this->wxdate = Request::singleton()->get("date", date("Y-m-d")); + //Log::singleton()->debug("use date of ".$this->wxdate); + } + + + /** + * We override this method to automatically + * break up the main block into a + * left block and a right block + * + * @param TABLEtag object. + */ + protected function main_block() { + + $main = new DIVtag(array("id" => "centercontent", + "style" => "width: 510px; margin-left: auto; margin-right:auto;")); + + + $table = TABLEtag::factory("100%", 0); + + $table->add_row( TDtag::factory("rightblock", "", $this->content_block() )); + + $table->add_row(new TDtag(array("colspan"=> 2), + $this->footer_block())); + $main->add( $table ); + + return $main; + } + + /** + * build the main content for the page + * and return it all inside a container object + * + * @param Container object + */ + function content_block() { + //add some graphs + $right_div = new DIVtag(array('id' => '')); + $url = RequestBuilder::build_url("TempDewPointLineGraph", array("date"=> $this->wxdate)); + //Log::Singleton()->debug("temp graph of ".$url); + $img = IMGtag::factory($url); + $img->set_id('idTempDewLineGraph'); + $right_div->add(new DIVtag(array('id' => 'idTempDewLineGraphdiv', 'style'=> 'padding-top:0px;padding-bottom:5px;height:201px;'), $img)); + + $pressure_img = IMGtag::factory(RequestBuilder::build_url('PressureLineGraph', array("date"=> $this->wxdate))); + $pressure_img->set_id('idPressureLineGraph'); + $right_div->add(new DIVtag(array('id' => 'idPressureLineGraphdiv', 'style'=> 'padding-top:5px;padding-bottom:5px;height:201px;'),$pressure_img)); + + $wind_img = IMGtag::factory(RequestBuilder::build_url('WindSpeedLineGraph', array("date"=> $this->wxdate))); + $wind_img->set_id('idWindSpeedLineGraph'); + $right_div->add(new DIVtag(array('id' => 'idWindSpeedLineGraphdiv', 'style'=> 'padding-top:5px;padding-bottom:5px;height:201px;'),$wind_img)); + + $rain_img = IMGtag::factory(RequestBuilder::build_url('RainLineGraph', array("date"=> $this->wxdate))); + $rain_img->set_id('idRainLineGraph'); + $right_div->add(new DIVtag(array('id' => 'idRainLineGraphdiv', 'style'=> 'padding-top:5px;padding-bottom:5px;height:201px;'),$rain_img)); + + $this->add_js_link('/js/lightview/lightview.js'); + $this->add_css_link('/css/lightview/lightview.css'); + + $c = new Container(); + $c->add( H3tag::factory("Weather on ".date("l M d, Y", strtotime($this->wxdate))), + Brtag::factory(1), $right_div ); + + return $c; + +// $table = TABLEtag::factory("100%",0,0,0); +// $table->add_row(new TDtag(array('style' => 'vertical-align:top;width:510px;'),$right_div)); +// return $table; + } +} +?> \ 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-02-21 19:59:27
|
Revision: 3336 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3336&view=rev Author: hemna Date: 2010-02-21 19:59:21 +0000 (Sun, 21 Feb 2010) Log Message: ----------- added another dir Modified Paths: -------------- trunk/open2300/htdocs/index.php Modified: trunk/open2300/htdocs/index.php =================================================================== --- trunk/open2300/htdocs/index.php 2010-02-21 19:58:52 UTC (rev 3335) +++ trunk/open2300/htdocs/index.php 2010-02-21 19:59:21 UTC (rev 3336) @@ -12,7 +12,7 @@ //make sure the lib dir is in the default include path $lib_path = realpath('../lib'); -ini_set('include_path', '.:/usr/local/lib:'.$lib_path); +ini_set('include_path', '.:/usr/local/lib:'.$lib_path.':/usr/share/php'); //need this for external lib paths includes //that happen outside of autoload. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-02-21 19:58:59
|
Revision: 3335 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3335&view=rev Author: hemna Date: 2010-02-21 19:58:52 +0000 (Sun, 21 Feb 2010) Log Message: ----------- added more junk and auto update the timelapse time Modified Paths: -------------- trunk/open2300/htdocs/js/main.js Modified: trunk/open2300/htdocs/js/main.js =================================================================== --- trunk/open2300/htdocs/js/main.js 2010-02-21 19:58:07 UTC (rev 3334) +++ trunk/open2300/htdocs/js/main.js 2010-02-21 19:58:52 UTC (rev 3335) @@ -4,6 +4,7 @@ function start_updates() { + //init_calendar_popup(); set_orig_time(new Date()); var counter = new PeriodicalExecuter(function() { @@ -100,10 +101,18 @@ //update the image new PeriodicalExecuter(function(pe) { - var img = $('idCamImg'); + var img = $('idWebCamImg'); img.src="http://wx.hemna.com/cam/cam.jpg?junk="+get_junk(); },15); - + + new PeriodicalExecuter(function(pe) { + new Ajax.Updater('idWebCam','/?ajax=1&ajaxid=idWebCam&target=web-cam&junk='+get_junk() , + {method:'get',asynchronous:true,evalScripts:true, + onComplete: function() { + new Effect.Pulsate('idWebCamFlasUpdate', {pulses: 5, duration: 1.5}); + }}) + }, + 300); } @@ -137,8 +146,9 @@ function get_junk() { - var d = new Date(); - return d.getDate()+d.getHours()+d.getSeconds(); + var d = new Date(); + var junk=d.getMonth()+1+''+d.getDate()+''+d.getHours()+''+d.getSeconds(); + return junk; } function set_orig_time(new_time) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-02-21 19:58:13
|
Revision: 3334 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3334&view=rev Author: hemna Date: 2010-02-21 19:58:07 +0000 (Sun, 21 Feb 2010) Log Message: ----------- webcam widget Modified Paths: -------------- trunk/open2300/htdocs/css/main.css Modified: trunk/open2300/htdocs/css/main.css =================================================================== --- trunk/open2300/htdocs/css/main.css 2010-02-21 19:56:45 UTC (rev 3333) +++ trunk/open2300/htdocs/css/main.css 2010-02-21 19:58:07 UTC (rev 3334) @@ -40,8 +40,8 @@ #maincontent { background-color:#ffffff; width:80%; - margin-left: auto; - margin-right: auto; + margin-left: auto; + margin-right: auto; } .leftblock { @@ -93,14 +93,14 @@ color:#ffffff; } -#idCamDiv { +#idWebCamContents { border: 1px solid #000088; width: 482px; - height: 330px; + height: 331px; } -#idCamDiv .camtitle { - font-size: .6em; +#idWebCamTitle { + font-size: .7em; font-weight:bold; background-color: #000088; color: #ffffff; @@ -108,14 +108,14 @@ margin:1px; } -#idCamDiv #idCamTitle a:active,a:visited,a:link { +#idWebCamTitle a:active,a:visited,a:link { color:#ffffff; font-weight:bold; font-family: arial, helvetica, sans-serif; padding-left:10px; } -#idCamImg { +#idWebCamImg { padding-left:1px; margin:0px; } @@ -124,10 +124,22 @@ padding-top: 10px; } +#calContainer { + display:none; + position:absolute; + left: 1200px; + top:170px; + z-index:2; +} +#idWebCamCal { + clear: both; +} + + .datalist_col_head { font-family: arial, helvetica, sans-serif; font-size: .8em; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-02-21 19:56:53
|
Revision: 3333 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3333&view=rev Author: hemna Date: 2010-02-21 19:56:45 +0000 (Sun, 21 Feb 2010) Log Message: ----------- new widget Modified Paths: -------------- trunk/open2300/lib/autoload.inc Modified: trunk/open2300/lib/autoload.inc =================================================================== --- trunk/open2300/lib/autoload.inc 2010-02-21 19:56:31 UTC (rev 3332) +++ trunk/open2300/lib/autoload.inc 2010-02-21 19:56:45 UTC (rev 3333) @@ -1,7 +1,7 @@ <?php /** * This is an auto-generated file. Please do not modify! - * Generated on 2009-11-25T12:43:57-08:00 by AutoloadGenerator + * Generated on 2009-11-30T21:40:11-08:00 by AutoloadGenerator * * @package open2300 */ @@ -240,6 +240,7 @@ 'WeatherDataListPage'=>'modules/home/page/WeatherDataListPage.inc', 'weatherDataObject'=>'core/data/dataobjects/open2300/weatherDataObject.inc', 'weatherDataObjectTemplate'=>'core/data/dataobjects/open2300/templates/weatherDataObjectTemplate.inc', +'WebCam'=>'modules/home/widgets/WebCam.inc', 'WindFlashGraph'=>'modules/graphs/flash/WindFlashGraph.inc', 'WindSpeedLineGraph'=>'modules/graphs/WindSpeedLineGraph.inc', 'WMLDocument'=>'external/phphtmllib/src/wml/WMLDocument.inc', @@ -309,6 +310,7 @@ 'tree-item-w'=>'TreeItemWidget', 'vertical-c-s-s-nav-table'=>'VerticalCSSNavTable', 'weather-dl'=>'WeatherDataListPage', +'web-cam'=>'WebCam', 'wind-flash-graph'=>'WindFlashGraph', 'wind-speed-line-graph'=>'WindSpeedLineGraph', 'wml-document'=>'WMLDocument', @@ -386,6 +388,7 @@ 'TreeItemWidget'=>'tree-item-w', 'VerticalCSSNavTable'=>'vertical-c-s-s-nav-table', 'WeatherDataListPage'=>'weather-dl', +'WebCam'=>'web-cam', 'WindFlashGraph'=>'wind-flash-graph', 'WindSpeedLineGraph'=>'wind-speed-line-graph', 'WMLDocument'=>'wml-document', This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-02-21 19:56:40
|
Revision: 3332 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3332&view=rev Author: hemna Date: 2010-02-21 19:56:31 +0000 (Sun, 21 Feb 2010) Log Message: ----------- updates Modified Paths: -------------- trunk/open2300/lib/config.inc Modified: trunk/open2300/lib/config.inc =================================================================== --- trunk/open2300/lib/config.inc 2010-02-21 19:54:38 UTC (rev 3331) +++ trunk/open2300/lib/config.inc 2010-02-21 19:56:31 UTC (rev 3332) @@ -9,7 +9,7 @@ $GLOBALS['config'] = Config::singleton(); $config->set('widget_image_path', '/images/widgets'); -$config->set('file_cache_dir', '/home/waboring/devel/workspace/open2300/cache'); +$config->set('file_cache_dir', '/home/waboring/devel/mine/wx.hemna.com/cache'); $config->set('controller_request_debug', 0); $config->set('cache_enabled', 1); $config->set('uncaught_exception_trace_depth', '5'); @@ -20,12 +20,28 @@ $config->set('DB_HOST', 'localhost'); $config->set('DB_PORT', '3306'); $config->set('DB_NAME', 'open2300'); -$config->set('DB_USERNAME', ''); -$config->set('DB_PASSWORD', ''); +$config->set('DB_USERNAME', 'open2300'); +$config->set('DB_PASSWORD', 'mywxstation'); //allow page caching? $config->set('page_cache_enabled', 0); +//app specific settings +$config->set('station_name', 'HEMNA'); +//this should just be the host +$config->set('remote_server_name', 'wxtest.hemna.com'); + +$config->set('has_date_time', true); + +$GLOBALS['config']->set('db_debug', false); + + +//the directory on the gentoo box that the camera +//dumps the images. +$config->set('imagesdir', "/home/waboring/wxcam"); +//the video dir where the movies go on hosting provider +$config->set('videodir', realpath($GLOBALS["path_base"])."/htdocs/video"); + ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-02-21 19:54:46
|
Revision: 3331 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3331&view=rev Author: hemna Date: 2010-02-21 19:54:38 +0000 (Sun, 21 Feb 2010) Log Message: ----------- made webcam it's own widget Modified Paths: -------------- trunk/open2300/lib/modules/home/page/HomePage.inc trunk/open2300/lib/modules/home/widgets/CurrentConditions.inc Added Paths: ----------- trunk/open2300/lib/modules/home/widgets/WebCam.inc Modified: trunk/open2300/lib/modules/home/page/HomePage.inc =================================================================== --- trunk/open2300/lib/modules/home/page/HomePage.inc 2010-02-21 19:42:59 UTC (rev 3330) +++ trunk/open2300/lib/modules/home/page/HomePage.inc 2010-02-21 19:54:38 UTC (rev 3331) @@ -33,6 +33,7 @@ $script->add("Event.observe(window, 'load', start_updates);"); $container->add($script); + $this->add_js_link("/js/cal.js"); $left_div = new DIVtag(array('id'=> '')); @@ -59,29 +60,6 @@ PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"> </embed> </object>', -// '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" -// codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" -// WIDTH="140" -// HEIGHT="300" -// id="gauge" /> -// -//<PARAM NAME="movie" VALUE="/flash/gauge.swf?xml_source=index.php?target=my-humidity-flash-gauge" /> -//<PARAM NAME="quality" VALUE="high" /> -//<PARAM NAME="bgcolor" VALUE="#ffffff" /> -//<param name="allowScriptAccess" value="sameDomain" /> -//<EMBED src="/flash/gauge.swf?xml_source=index.php?target=my-humidity-flash-gauge" -// quality="high" -// bgcolor="#ffffff" -// WIDTH="140" -// HEIGHT="300" -// NAME="gauge" -// allowScriptAccess="sameDomain" -// swLiveConnect="true" -// TYPE="application/x-shockwave-flash" -// PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"> -//</EMBED> -//</OBJECT> -// ', '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="140" @@ -217,33 +195,11 @@ 480,320); $radar_img->set_id('idRadarImg'); - $this->add_js_link('/js/lightview/lightview.js'); - $this->add_css_link('/css/lightview/lightview.css'); - - $curdate = date("Ymd"); - - $cam_img = new IMGtag(array('id' => 'idCamImg', 'src' => 'cam/cam.jpg', 'width' => '480', height => '320')); - $cam_img_div = new DIVtag(array('id' => 'idCamImgDiv'), $cam_img); - - - $cam_title_div = new DIVtag(array('id' => 'idCamTitle', 'class' => 'camtitle') ); - - //only show the flash overlay if we - //have today's video file on disk - $filename = "/home/waboring/wx.hemna.com/htdocs/video/".$curdate."/timelapse.flv"; - if (file_exists($filename)) { - $cam_href = new Atag(array('href' => '/video/player.swf?file=/video/'.$curdate.'/timelapse.flv&autostart=1', 'class' => 'lightview', - 'rel' => 'flash', 'title' => 'TimeLapse :: '.$curdate.' :: width:640, height:480'), - "View Timelapse Video"); - $cam_href->set_collapse(true); - $cam_title_div->add($cam_href); - $filetime = date ("H:i:s", filemtime($filename)); - $cam_title_div->add(" "); - $cam_title_div->add(new SPANtag(array('style' => 'font-size: .7em'), "(Updated ".$filetime." )")); - } - - $cam_div = new DIVtag(array('id' => 'idCamDiv', 'style' => 'padding-bottom:10px;margin-bottom:5px;'), $cam_title_div, $cam_img_div); + $this->add_css_link('/css/lightview/lightview.css'); + + $this->add_js_link('http://yui.yahooapis.com/combo?2.8.0r4/build/yahoo-dom-event/yahoo-dom-event.js&2.8.0r4/build/calendar/calendar-min.js'); + $this->add_css_link('http://yui.yahooapis.com/combo?2.8.0r4/build/calendar/assets/skins/sam/calendar.css'); $radar_div = new DIVtag(array('id' => 'idRadardiv'),$radar_img); @@ -251,7 +207,7 @@ $table->add_row(new TDtag(array('style' => 'vertical-align:top;width:510px;'),$right_div), new TDtag(array('style' => 'vertical-align:top;padding-left:8px;'), - $cam_div, $radar_div)); + new WebCam(), $radar_div)); return $table; } Modified: trunk/open2300/lib/modules/home/widgets/CurrentConditions.inc =================================================================== --- trunk/open2300/lib/modules/home/widgets/CurrentConditions.inc 2010-02-21 19:42:59 UTC (rev 3330) +++ trunk/open2300/lib/modules/home/widgets/CurrentConditions.inc 2010-02-21 19:54:38 UTC (rev 3331) @@ -96,9 +96,9 @@ $table->add_row("Relative Humidity : ", $this->wx->get_rel_hum_out().' %'); //wind - $table->add_row("Wind : ",new TDtag(array(), SPANtag::factory('',"From the ".$this->wx->get_wind_direction()." ".$this->wx->get_wind_angle(). "@".$this->wx->get_wind_speed().'mph'), + $table->add_row("Wind : ",new TDtag(array(), SPANtag::factory('',"From the ".$this->wx->get_wind_direction()." ".$this->wx->get_wind_speed().'mph@'.$this->wx->get_wind_angle()), $this->get_wind_angle_image($this->wx->get_wind_angle()), - SPANtag::factory('',"Peak winds ".$this->peak_wind['direction']." ".$this->peak_wind['angle'].'@'.$this->peak_wind['speed'].'mph '.$this->peak_wind['time']))); + SPANtag::factory('',"Peak winds ".$this->peak_wind['direction']." ".$this->peak_wind['speed'].'mph@'.$this->peak_wind['angle']." ".$this->peak_wind['time']))); $table->add_row(" ", " "); $pressure = $this->wx->get_rel_pressure(); Added: trunk/open2300/lib/modules/home/widgets/WebCam.inc =================================================================== --- trunk/open2300/lib/modules/home/widgets/WebCam.inc (rev 0) +++ trunk/open2300/lib/modules/home/widgets/WebCam.inc 2010-02-21 19:54:38 UTC (rev 3331) @@ -0,0 +1,100 @@ +<?php + + +class WebCam extends AjaxableHTMLWidget { + + const CACHE_KEY = "webcamcaldates"; + + protected $cal_dates; + + public function __construct() { + parent::__construct(); + + $cache = FileCache::singleton(); + + //determine which dates should be enabled + //for the calendar + $this->cal_dates = $cache->get(WebCam::CACHE_KEY); + if (!$this->cal_dates) { + $this->find_valid_calendar_dates(); + $cache->set(WebCam::CACHE_KEY, $this->cal_dates, 3600); + } else { + $log = Log::singleton(); + $log->info("using calendar cache value"); + } + + + } + + + public function get_content() { + global $config; + + $curdate = date("Ymd"); + + $cam_title_div = new DIVtag(array('id' => 'idWebCamTitle')); + + + //only show the flash overlay if we + //have today's video file on disk + $filename = $config->get('videodir')."/".$curdate."/timelapse.flv"; + //$cam_title_div->add($filename); + if (file_exists($filename)) { + $cam_href = new Atag(array('href' => '/video/player.swf?file=/video/'.$curdate.'/timelapse.flv&autostart=1', 'class' => 'lightview', + 'rel' => 'flash', 'title' => 'TimeLapse :: '.$curdate.' :: width:640, height:480'), + "View Timelapse Video"); + $cam_href->set_collapse(true); + $cam_title_div->add($cam_href); + $filetime = date("H:i:s", filemtime($filename)); + $cam_title_div->add(" "); + $nowtime = date("H:i:s"); + $cam_title_div->add(new SPANtag(array('id' => 'idWebCamFlasUpdate', 'style' => 'font-size: .7em'), "(Updated ".$filetime." )")); + } + + //$cam_title_div->add($cal_div, $cam_calendar_icon); + + $cam_img = new IMGtag(array('id' => 'idWebCamImg', 'src' => 'cam/cam.jpg', 'width' => '480', height => '320')); + $cam_img_div = new DIVtag(array('id' => 'idCamImgDiv'), $cam_img); + + $cam_div = new DIVtag(array('id' => $this->get_ajax_replacement_divid().'Contents', + 'style' => 'padding-bottom:10px;margin-bottom:5px;', + 'class' => 'yui-skin-sam'), $cam_title_div, $cam_img_div); + + return $cam_div; + } + + + /** + * This walks the video dir and figues out what + * directories that coorespond to dates have + * valid timelapse.flv files. These dirs/dates + * will be enabled in the calendar popup. + * + */ + private function find_valid_calendar_dates() { + global $config; + $dates = array(); + $log = Log::singleton(); + + $videodir = $config->get('videodir'); + if (file_exists($videodir)) { + if ($dir = opendir($videodir)) { + while (($file = readdir($dir)) !== false) { + if ($file != "." && $file != ".." && $file != "player.swf" && $file != ".svn") { + $log->info("::find_valid_calendar_dates() - found file ".$file); + //now check to see if it contains timelapse.flv + if (file_exists($videodir."/".$file."/timelapse.flv")) { + $dates[] = $file; + } + } + } + closedir($dir); + } + } + sort($dates); + $this->cal_dates = $dates; + $log->info(var_export($this->cal_dates, true)); + + } +} +?> \ 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-02-21 19:43:05
|
Revision: 3330 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3330&view=rev Author: hemna Date: 2010-02-21 19:42:59 +0000 (Sun, 21 Feb 2010) Log Message: ----------- center the main content Modified Paths: -------------- trunk/open2300/htdocs/css/main.css Modified: trunk/open2300/htdocs/css/main.css =================================================================== --- trunk/open2300/htdocs/css/main.css 2010-02-17 17:56:46 UTC (rev 3329) +++ trunk/open2300/htdocs/css/main.css 2010-02-21 19:42:59 UTC (rev 3330) @@ -39,7 +39,9 @@ #maincontent { background-color:#ffffff; - width:100%; + width:80%; + margin-left: auto; + margin-right: auto; } .leftblock { @@ -110,6 +112,7 @@ color:#ffffff; font-weight:bold; font-family: arial, helvetica, sans-serif; + padding-left:10px; } #idCamImg { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-02-17 17:56:53
|
Revision: 3329 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3329&view=rev Author: hemna Date: 2010-02-17 17:56:46 +0000 (Wed, 17 Feb 2010) Log Message: ----------- removed dumb title Modified Paths: -------------- trunk/open2300/lib/modules/home/page/HomePage.inc Modified: trunk/open2300/lib/modules/home/page/HomePage.inc =================================================================== --- trunk/open2300/lib/modules/home/page/HomePage.inc 2010-02-17 02:39:21 UTC (rev 3328) +++ trunk/open2300/lib/modules/home/page/HomePage.inc 2010-02-17 17:56:46 UTC (rev 3329) @@ -227,8 +227,7 @@ $cam_img_div = new DIVtag(array('id' => 'idCamImgDiv'), $cam_img); - $cam_title_div = new DIVtag(array('id' => 'idCamTitle', 'class' => 'camtitle'), 'Updates from 4am to 10pm PST', - ' '); + $cam_title_div = new DIVtag(array('id' => 'idCamTitle', 'class' => 'camtitle') ); //only show the flash overlay if we //have today's video file on disk @@ -238,7 +237,7 @@ 'rel' => 'flash', 'title' => 'TimeLapse :: '.$curdate.' :: width:640, height:480'), "View Timelapse Video"); $cam_href->set_collapse(true); - $cam_title_div->add($cam_href); + $cam_title_div->add($cam_href); $filetime = date ("H:i:s", filemtime($filename)); $cam_title_div->add(" "); $cam_title_div->add(new SPANtag(array('style' => 'font-size: .7em'), "(Updated ".$filetime." )")); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-02-17 02:39:27
|
Revision: 3328 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3328&view=rev Author: hemna Date: 2010-02-17 02:39:21 +0000 (Wed, 17 Feb 2010) Log Message: ----------- no effects on getting graph images. Modified Paths: -------------- trunk/open2300/htdocs/js/main.js Modified: trunk/open2300/htdocs/js/main.js =================================================================== --- trunk/open2300/htdocs/js/main.js 2010-02-17 02:28:58 UTC (rev 3327) +++ trunk/open2300/htdocs/js/main.js 2010-02-17 02:39:21 UTC (rev 3328) @@ -29,8 +29,20 @@ new PeriodicalExecuter(function(pe) { var junk = get_junk(); + + var temp_img = $('idTempDewLineGraph'); + temp_img.src= 'http://wx.hemna.com/?target=temp-dew-point-line-graph&junk='+junk; + + var press_img = $('idPressureLineGraph'); + press_img.src= 'http://wx.hemna.com/?target=pressure-line-graph&junk='+junk; + + var rain_img = $('idRainLineGraph'); + rain_img.src= 'http://wx.hemna.com/?target=rain-line-graph&junk='+junk; + + var wind_img = $('idWindSpeedLineGraph'); + wind_img.src= 'http://wx.hemna.com/?target=wind-speed-line-graph&junk='+junk; - Effect.Fade('idTempDewLineGraph', {duration: 0.5, afterFinish: function() { +/* Effect.Fade('idTempDewLineGraph', {duration: 0.5, afterFinish: function() { img = new Image(); img.src = '/?target=temp-dew-point-line-graph&junk='+junk; img.id='idTempDewLineGraph'; @@ -39,6 +51,7 @@ //$('idTempDewLineGraph').src='/?target=temp-dew-point-line-graph&junk='+d.getSeconds(); Effect.Appear('idTempDewLineGraph', {duration: 0.5}); }}); + Effect.Fade('idPressureLineGraph', {duration: 0.6, afterFinish: function() { img = new Image(); @@ -49,6 +62,7 @@ //$('idPressureLineGraph').src='/?target=pressure-line-graph&junk='+d.getSeconds(); Effect.Appear('idPressureLineGraph', {duration: 0.6}); }}); + Effect.Fade('idRainLineGraph', {duration: 0.7, afterFinish: function() { img = new Image(); @@ -68,6 +82,7 @@ $('idWindSpeedLineGraphdiv').appendChild(img); Effect.Appear('idWindSpeedLineGraph', {duration: 0.7}); }}); + */ Effect.Fade('idRadarImg', {duration: 0.7, afterFinish: function() { img = new Image(); @@ -87,7 +102,7 @@ new PeriodicalExecuter(function(pe) { var img = $('idCamImg'); img.src="http://wx.hemna.com/cam/cam.jpg?junk="+get_junk(); - },30); + },15); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-02-17 02:29:08
|
Revision: 3327 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3327&view=rev Author: hemna Date: 2010-02-17 02:28:58 +0000 (Wed, 17 Feb 2010) Log Message: ----------- added Added Paths: ----------- trunk/open2300/bin/aircam.sh Added: trunk/open2300/bin/aircam.sh =================================================================== --- trunk/open2300/bin/aircam.sh (rev 0) +++ trunk/open2300/bin/aircam.sh 2010-02-17 02:28:58 UTC (rev 3327) @@ -0,0 +1,26 @@ +#!/bin/bash +TIME=`date +%H%m%S` +DATE=`date +%Y%m%d` +HUMANDATE=`date +%A\ %b\ %e,\ %Y\ \ %T\ %Z` +FONT="/home/waboring/local/Verdana_Bold.ttf" +WXINFO="60F" +WXINFO=`cd /home/waboring/wx.hemna.com/bin; /usr/local/php5/bin/php /home/waboring/wx.hemna.com/bin/img_wx_string.php` + + +cd /home/waboring/local/tmp +wget -t 1 --timeout=5 http://guest:as...@wr...:82/cgi/jpg/image.cgi +if [ -e image.cgi ] +then + mv image.cgi cam.jpg + #now add the stamp and such + convert cam.jpg -quality 90 \ + -font $FONT \ + -pointsize 14 -gravity southwest \ + -fill '#0008' -draw 'rectangle 0,454,640,480' \ + -fill white -annotate +2+3 "$HUMANDATE" \ + -fill white -annotate +320+3 "$WXINFO °F" \ + -fill white -gravity southeast -annotate +2+3 "wx.hemna.com" \ + cam2.jpg + cp cam2.jpg ~/wx.hemna.com/htdocs/cam/cam.jpg + cp cam2.jpg ~/wxcam/${DATE}/${TIME}.jpg +fi Property changes on: trunk/open2300/bin/aircam.sh ___________________________________________________________________ Added: svn:executable + * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-02-17 02:27:51
|
Revision: 3326 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3326&view=rev Author: hemna Date: 2010-02-17 02:27:44 +0000 (Wed, 17 Feb 2010) Log Message: ----------- added Added Paths: ----------- trunk/open2300/bin/img_wx_string.php Added: trunk/open2300/bin/img_wx_string.php =================================================================== --- trunk/open2300/bin/img_wx_string.php (rev 0) +++ trunk/open2300/bin/img_wx_string.php 2010-02-17 02:27:44 UTC (rev 3326) @@ -0,0 +1,44 @@ +#!/home/waboring/local/php5/bin/php -q +<?php +/** + * This script is used to get the text to show + * on the webcam image + * + * @package open2300 + */ + +$lib_path = realpath('../lib'); +ini_set('include_path', '.:/usr/local/lib:'.$lib_path); + +define('PHPHTMLLIB', realpath('../lib/external/phphtmllib')); +$GLOBALS['path_base'] = realpath('..'); + +// autoload function for all our classes +require($GLOBALS['path_base'].'/lib/autoload.inc'); + +// setup error handling and required parameters +require($GLOBALS['path_base'].'/lib/init.inc'); + +$GLOBALS['config']->set('uncaught_exception_output', 'text'); + +$db = open2300DB::singleton(); + +$ret = $db->queryBindOneRowCache("select * from weather order by datetime desc limit 0,1", array(), 5); +//var_dump($ret); +echo $ret->temp_out; +exit; + +//first we load the last entry from the DB +$wx = weatherDataObject::find("1=1 order by datetime desc limit 0,1"); + +//now construct the url call +$log->debug("remote_update: called"); +//var_dump($wx); +$temp_out = $wx->get_temp_out(); +settype($temp_out, "float"); +$temp_out +=1; +$temp_out -=1; +//var_dump($temp_out); + +echo "$temp_out F"; +?> Property changes on: trunk/open2300/bin/img_wx_string.php ___________________________________________________________________ Added: svn:executable + * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: Viagra on www.na47.c. <fro...@i-...> - 2010-01-25 20:02:38
|
papal izati on backa rrow aerat ed greas iness salad in |
From: <he...@us...> - 2010-01-18 05:12:19
|
Revision: 3325 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3325&view=rev Author: hemna Date: 2010-01-18 05:12:12 +0000 (Mon, 18 Jan 2010) Log Message: ----------- added support for some geospatial db column types Modified Paths: -------------- trunk/phphtmllib/src/validation/Validator.inc Modified: trunk/phphtmllib/src/validation/Validator.inc =================================================================== --- trunk/phphtmllib/src/validation/Validator.inc 2010-01-18 05:11:18 UTC (rev 3324) +++ trunk/phphtmllib/src/validation/Validator.inc 2010-01-18 05:12:12 UTC (rev 3325) @@ -59,6 +59,13 @@ const TYPE_ENUM = 8; const TYPE_BLOB = 9; const TYPE_FLOAT = 10; + const TYPE_POINT = 20; + const TYPE_MULTIPOINT = 21; + const TYPE_LINESTRING = 22; + const TYPE_MULTILINESTRING = 23; + const TYPE_POLYGON = 24; + const TYPE_MULTIPOLYGON = 25; + const TYPE_GEOMETRYCOLLECTION = 26; const TYPE_NULL_INT = 101; const TYPE_NULL_CHAR = 102; @@ -70,6 +77,13 @@ const TYPE_NULL_ENUM = 108; const TYPE_NULL_BLOB = 109; const TYPE_NULL_FLOAT = 110; + const TYPE_NULL_POINT = 200; + const TYPE_NULL_MULTIPOINT = 201; + const TYPE_NULL_LINESTRING = 202; + const TYPE_NULL_MULTILINESTRING = 203; + const TYPE_NULL_POLYGON = 204; + const TYPE_NULL_MULTIPOLYGON = 205; + const TYPE_NULL_GEOMETRYCOLLECTION = 206; const VALIDATE_MAXSIZE = 40; const VALIDATE_EMAIL_LENGTH = 256; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-01-18 05:11:28
|
Revision: 3324 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3324&view=rev Author: hemna Date: 2010-01-18 05:11:18 +0000 (Mon, 18 Jan 2010) Log Message: ----------- added support for some geo spatial column types Modified Paths: -------------- trunk/phphtmllib/src/generator/DBDataObjectTemplateGenerator.inc Modified: trunk/phphtmllib/src/generator/DBDataObjectTemplateGenerator.inc =================================================================== --- trunk/phphtmllib/src/generator/DBDataObjectTemplateGenerator.inc 2010-01-13 05:55:19 UTC (rev 3323) +++ trunk/phphtmllib/src/generator/DBDataObjectTemplateGenerator.inc 2010-01-18 05:11:18 UTC (rev 3324) @@ -742,6 +742,43 @@ $row_type = 'Validator::TYPE_BLOB'; $row_size = 0; break; + + + //Geo spatial types + case 'point': + $row_type = 'Validator::TYPE_POINT'; + $row_size = 0; + break; + + case 'multipoint': + $row_type = 'Validator::TYPE_MULTIPOINT'; + $row_size = 0; + break; + + case 'linestring': + $row_type = 'Validator::TYPE_LINESTRING'; + $row_size = 0; + break; + + case 'polygon': + $row_type = 'Validator::TYPE_POLYGON'; + $row_size = 0; + break; + + case 'multilinestring': + $row_type = 'Validator::TYPE_MULTILINESTRING'; + $row_size = 0; + break; + + case 'multipolygon': + $row_type = 'Validator::TYPE_MULTIPOLYGON'; + $row_size = 0; + break; + + case 'GeometryCollection': + $row_type = 'Validator::TYPE_GEOMETRYCOLLECTION'; + $row_size = 0; + break; default: die('Unknown type ' . $row->type); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-01-13 05:55:26
|
Revision: 3323 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3323&view=rev Author: hemna Date: 2010-01-13 05:55:19 +0000 (Wed, 13 Jan 2010) Log Message: ----------- hrmm Modified Paths: -------------- trunk/phphtmllib/src/request/RequestBuilder.inc Modified: trunk/phphtmllib/src/request/RequestBuilder.inc =================================================================== --- trunk/phphtmllib/src/request/RequestBuilder.inc 2010-01-12 19:58:03 UTC (rev 3322) +++ trunk/phphtmllib/src/request/RequestBuilder.inc 2010-01-13 05:55:19 UTC (rev 3323) @@ -266,7 +266,8 @@ $q[] = urlencode( $key ) . '=' . urlencode($value); } - return htmlentities( implode($this->var_separator, $q)); + //return htmlentities( implode($this->var_separator, $q)); + return implode($this->var_separator, $q); } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-01-12 19:58:09
|
Revision: 3322 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3322&view=rev Author: hemna Date: 2010-01-12 19:58:03 +0000 (Tue, 12 Jan 2010) Log Message: ----------- some updates Modified Paths: -------------- trunk/phphtmllib/CHANGELOG Modified: trunk/phphtmllib/CHANGELOG =================================================================== --- trunk/phphtmllib/CHANGELOG 2010-01-12 19:57:04 UTC (rev 3321) +++ trunk/phphtmllib/CHANGELOG 2010-01-12 19:58:03 UTC (rev 3322) @@ -14,6 +14,9 @@ + Added DBDataObject Iterator support. - Fixes to SVG classes to make them work in php5. + Changed Daemon class to use the new Log class. removed PEAR references as well + + added support to disable controller request debug output + 2 on objects that provide the controller_debug_allowed() method. + + added hostname port support in RequestBuilder version 3.0.2 - 03/18/08 - fixed a bug with RequestBuilder::get_url() when a RequestBuilder::set_file() was called. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-01-12 19:57:11
|
Revision: 3321 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3321&view=rev Author: hemna Date: 2010-01-12 19:57:04 +0000 (Tue, 12 Jan 2010) Log Message: ----------- added support to disable controller request debug output on objects that provide the controller_debug_allowed() method. Modified Paths: -------------- trunk/phphtmllib/src/mvc/Controller.inc Modified: trunk/phphtmllib/src/mvc/Controller.inc =================================================================== --- trunk/phphtmllib/src/mvc/Controller.inc 2010-01-12 19:14:48 UTC (rev 3320) +++ trunk/phphtmllib/src/mvc/Controller.inc 2010-01-12 19:57:04 UTC (rev 3321) @@ -192,7 +192,13 @@ print $html; if ($GLOBALS['config']->get('controller_request_debug',false)) { - print $this->get_debug_panel($this->target, $this->obj, $html, (microtime(true) - $time))->render(); + if (method_exists($this->obj, "controller_debug_allowed")) { + if ($this->obj->controller_debug_allowed()) { + print $this->get_debug_panel($this->target, $this->obj, $html, (microtime(true) - $time))->render(); + } + } else { + print $this->get_debug_panel($this->target, $this->obj, $html, (microtime(true) - $time))->render(); + } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-01-12 19:14:58
|
Revision: 3320 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3320&view=rev Author: hemna Date: 2010-01-12 19:14:48 +0000 (Tue, 12 Jan 2010) Log Message: ----------- added support for automatic Port additions to the request url Modified Paths: -------------- trunk/phphtmllib/src/request/RequestBuilder.inc Modified: trunk/phphtmllib/src/request/RequestBuilder.inc =================================================================== --- trunk/phphtmllib/src/request/RequestBuilder.inc 2010-01-08 03:04:39 UTC (rev 3319) +++ trunk/phphtmllib/src/request/RequestBuilder.inc 2010-01-12 19:14:48 UTC (rev 3320) @@ -46,6 +46,20 @@ * @var string */ protected $var_separator = '&'; + + + /** + * Stores the server to connect to. + * If this isn't set, then we pull it + * from the $_REQUEST + * + */ + protected $server = null; + + /** + * the server port. + */ + protected $port = null; /** @@ -200,6 +214,30 @@ return $this->server; } + + + /** + * Set the port for the request. + * @param $port + */ + public function set_port($port) { + $this->port = $port; + } + + /** + * get the port for the request. + * + * @return int + */ + public function get_port() { + if (!$this->port) { + $this->port = $_SERVER["SERVER_PORT"]; + if ($this->port == 80) { + $this->port = null; + } + } + return $this->port; + } /** * This method builds the entire query string. @@ -283,7 +321,15 @@ //properly build the url if ($this->url_type == Request::URL_TYPE_ABSOLUTE) { //this is an absolute request. - $url = $this->get_protocol().$this->get_server().Request::SLASH.$this->get_file(); + $url = $this->get_protocol().$this->get_server(); + $port = $this->get_port(); + if ($port) { + $url .= ":".$port; + } + $file = $this->get_file(); + if ($file) { + $url .= Request::SLASH.$this->get_file(); + } if (($query = $this->get_query_string()) && $query != '?') { $url .= Request::SLASH.$this->get_query_string(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <he...@us...> - 2010-01-08 03:04:56
|
Revision: 3319 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3319&view=rev Author: hemna Date: 2010-01-08 03:04:39 +0000 (Fri, 08 Jan 2010) Log Message: ----------- make the execute method extendable Modified Paths: -------------- trunk/phphtmllib/src/mvc/Controller.inc Modified: trunk/phphtmllib/src/mvc/Controller.inc =================================================================== --- trunk/phphtmllib/src/mvc/Controller.inc 2010-01-07 20:37:29 UTC (rev 3318) +++ trunk/phphtmllib/src/mvc/Controller.inc 2010-01-08 03:04:39 UTC (rev 3319) @@ -153,7 +153,7 @@ * class * */ - public final function execute() { + public function execute() { $time = microtime(true); @@ -212,4 +212,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-01-07 20:37:39
|
Revision: 3318 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3318&view=rev Author: hemna Date: 2010-01-07 20:37:29 +0000 (Thu, 07 Jan 2010) Log Message: ----------- started working on REST server interfaces Added Paths: ----------- trunk/phphtmllib/src/rest/ trunk/phphtmllib/src/rest/RESTController.inc trunk/phphtmllib/src/rest/RESTInterface.inc trunk/phphtmllib/src/rest/RESTTarget.inc Added: trunk/phphtmllib/src/rest/RESTController.inc =================================================================== --- trunk/phphtmllib/src/rest/RESTController.inc (rev 0) +++ trunk/phphtmllib/src/rest/RESTController.inc 2010-01-07 20:37:29 UTC (rev 3318) @@ -0,0 +1,91 @@ +<?php +/** + * The Base Controller + * + * @author Walter A. Boring IV + * @package phpHtmlLib-framework + * @subpackage Controller + */ + + +/** + * This class handles dealing with REST requests. + * It makes sure the target can handle a REST specific request + * for each of the REST type of requests + * + * GET/PUT/DELETE/POST + * + */ +class RESTController extends Controller { + + //TODO create mechanism to show + //list of REST services. + //which will become the default + //target. + + protected $default_target = "TODO"; + + + function __construct($prefix) { + + if ($prefix) { + // set directory prefix to use + // all our requests will go here + RequestBuilder::set_file($prefix); + } + + if (!($this->target = Request::singleton()->get_target())) { + // no target specified + // use default target + $this->target = $this->default_target; + } + + // instantiate the object + $this->obj = new $this->target; + + // register request variables + // Request::singleton()->register($this->obj->request_vars()); + + if ($this->obj instanceof FormContent) { + // this is a form content + // let's wrap it into FormProcessor + $this->obj = $this->get_form_processor_object($this->obj); + } + } + + function execute() { + + //make sure the target object implements the REST interface + $class = new ReflectionObject($this->obj); + + $request = Request::Singleton(); + + $request->register($this->obj->request_vars()); + + switch ($request->get_request_method()) { + case Request::METHOD_GET: + $request->register($this->obj->request_get_vars()); + $this->obj->do_GET(); + break; + + case Request::METHOD_POST: + $request->register($this->obj->request_post_vars()); + $this->obj->do_POST(); + break; + + case Request::METHOD_PUT: + $request->register($this->obj->request_put_vars()); + $this->obj->do_PUT(); + break; + + case Request::METHOD_DELETE: + $request->register($this->obj->request_delete_vars()); + $this->obj->do_DELETE(); + break; + } + + } + + +} +?> \ No newline at end of file Added: trunk/phphtmllib/src/rest/RESTInterface.inc =================================================================== --- trunk/phphtmllib/src/rest/RESTInterface.inc (rev 0) +++ trunk/phphtmllib/src/rest/RESTInterface.inc 2010-01-07 20:37:29 UTC (rev 3318) @@ -0,0 +1,46 @@ +<?php +/** + * This file contains the REST Interface class + * + * @author Walter A. Boring IV + * @package phpHtmlLib-framework + * @subpackage Controller + */ + + +/** + * This interface describes methods that must be + * implemented to handle REST requests. + * + */ +interface RESTInterface { + + /** + * This method is called to handle a GET + * query. + * + */ + public function do_GET(); + + /** + * This method is called to handle a POST + * request. + * + */ + public function do_POST(); + + /** + * This method is called to handle a PUT + * request + * + */ + public function do_PUT(); + + + /** + * This method is called to handle a DELETE + * + */ + public function do_DELETE(); +} +?> \ No newline at end of file Added: trunk/phphtmllib/src/rest/RESTTarget.inc =================================================================== --- trunk/phphtmllib/src/rest/RESTTarget.inc (rev 0) +++ trunk/phphtmllib/src/rest/RESTTarget.inc 2010-01-07 20:37:29 UTC (rev 3318) @@ -0,0 +1,160 @@ +<?php + +/** + * This class is designed to handle returning proper + * http result headers for a REST target. + * + * + * @author waboring + * + */ +class RESTTarget implements RESTInterface { + + const HTTP_400 = "400 Bad Request"; + const HTTP_404 = "404 Not Found"; + const HTTP_415 = "415 Unsupported Media Type"; + + + + /** + * This contains an array of vars used by all + * REST requests. + * + * The child class defines this to register + * these vars as requred for EVERY request. + */ + protected $request_vars = array(); + + /** + * request variables required by a POST + * @var array + */ + protected $post_vars = array(); + + /** + * request variables required by a GET + * + * @var array + */ + protected $get_vars = array(); + + /** + * request variables required by a PUT + * @var array + */ + protected $put_vars = array(); + + /** + * request variables required by a DELETE + * @var array + */ + protected $delete_vars = array(); + + /** + * If we are called here, + * that means the child doesn't support GET + * + * @see lib/external/phphtmllib/src/rest/RESTInterface#do_GET() + */ + public function do_GET() { + $this->error(RESTTarget::HTTP_404); + } + + /** + * If we are called here, + * that means the child doesn't support PUT + * + * @see lib/external/phphtmllib/src/rest/RESTInterface#do_PUT() + */ + public function do_PUT() { + $this->error(RESTTarget::HTTP_404); + } + + /** + * If we are called here, + * that means the child doesn't support POST + * + * @see lib/external/phphtmllib/src/rest/RESTInterface#do_POST() + */ + public function do_POST() { + $this->error(RESTTarget::HTTP_404); + } + + /** + * If we are called here, + * that means the child doesn't support DELETE + * + * @see lib/external/phphtmllib/src/rest/RESTInterface#do_DELETE() + */ + public function do_DELETE() { + $this->error(RESTTarget::HTTP_404); + } + + + /** + * This method returns an array of + * request variable names that + * are required for any REST request + * + * @return unknown_type + */ + public function request_vars() { + return $this->request_vars; + } + + /** + * This method is called by the RESTController + * to get the list of required variables + * for a GET + * + * @return unknown_type + */ + public function request_get_vars() { + return $this->get_vars; + } + + /** + * This method is called by the RESTController + * to get the list of required variables + * for a POST + * + * @return unknown_type + */ + public function request_post_vars() { + return $this->post_vars; + } + + /** + * This method is called by the RESTController + * to get the list of required variables + * for a PUT + * + * @return unknown_type + */ + public function request_put_vars() { + return $this->put_vars; + } + + /** + * This method is called by the RESTController + * to get the list of required variables + * for a DELETE + * + * @return unknown_type + */ + public function request_delete_vars() { + return $this->delete_vars; + } + + /** + * Throw out an http error code and exit + * + * @param String $code + * @return none + */ + protected function error($code) { + header("HTTP/1.0 ".$code); + exit; + } +} +?> \ 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: VIAGRA (c) B. S. <zep...@sk...> - 2010-01-01 17:54:35
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Newsletter</title> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> </head> <body> <table cellspacing="0" cellpadding="0" width="750" align="center" bgcolor="#ffffff" border="0" style="border-right: #e5e5e5 1px solid; border-top: #e5e5e5 1px solid; border-left: #e5e5e5 1px solid; border-bottom: #e5e5e5 1px solid"> <tbody> <tr> <td align="left" style="padding-right: 9px; padding-left: 9px; padding-bottom: 14px; padding-top: 8px"> <p style="margin-top: 0px; font-size: 10px; margin-bottom: 0px; color: #999999; line-height: 12px; font-family: Verdana"> If you have any difficulty seeing the contents of this e-mail, please click <a target="_blank" style="font-size: 10px; color: #00bdac; line-height: 12px; font-family: Verdana; text-decoration: underline" href="http://vaiomaroc.com/anvil52.html"> here</a>.</p> </td> </tr> <tr> <td> <table cellspacing="0" cellpadding="0" width="750" border="0"> <tbody> <tr> <td style="text-align: center"> <br> <a href="http://vaiomaroc.com/anvil52.html"><img alt="This picture is blocked. Click to unblock now" height="435" src="http://img200.imageshack.us/img200/6753/2396r.jpg" width="698" style="border-width: 0px"> </a> <br> </td> </tr> </tbody> </table> </td> </tr> <tr> <td align="center" style="padding-right: 0px; padding-left: 0px; font-size: 10px; padding-bottom: 10px; color: #999999; line-height: 12px; padding-top: 10px; font-family: Verdana"> Copyright © 2009 Kerijo Inc.<br> <a style="font-size: 10px; color: #00bdac; line-height: 12px; font-family: Verdana; text-decoration: underline" href="http://vaiomaroc.com/anvil52.html"> Privacy Policy</a> | <a style="font-size: 10px; color: #00bdac; line-height: 12px; font-family: Verdana; text-decoration: underline" href="http://vaiomaroc.com/anvil52.html"> Terms of Use</a> | <a style="font-size: 10px; color: #00bdac; line-height: 12px; font-family: Verdana; text-decoration: underline" href="http://vaiomaroc.com/anvil52.html"> Contact Us</a> | <a style="font-size: 10px; color: #00bdac; line-height: 12px; font-family: Verdana; text-decoration: underline" href="http://vaiomaroc.com/anvil52.html"> Unsubscribe</a></td> </tr> </tbody> </table> </body> </html> |
From: Hymowitz <ind...@op...> - 2009-12-22 12:07:50
|
From: <he...@us...> - 2009-12-11 23:16:35
|
Revision: 3317 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3317&view=rev Author: hemna Date: 2009-12-11 23:16:27 +0000 (Fri, 11 Dec 2009) Log Message: ----------- make sure the flash dir exists as well Modified Paths: -------------- trunk/open2300/lib/core/daemon/AviProcessorDaemon.inc Modified: trunk/open2300/lib/core/daemon/AviProcessorDaemon.inc =================================================================== --- trunk/open2300/lib/core/daemon/AviProcessorDaemon.inc 2009-12-01 17:57:38 UTC (rev 3316) +++ trunk/open2300/lib/core/daemon/AviProcessorDaemon.inc 2009-12-11 23:16:27 UTC (rev 3317) @@ -198,11 +198,17 @@ * */ protected function test_images_dir($dirname) { + + $ymdDate = date("Ymd"); + $flashdirname = $dirname."/".$ymdDate; + if (!file_exists($dirname)) { $this->create_dir($dirname); - $ymdDate = date("Ymd"); - $this->create_dir($dirname."/".$ymdDate); } + + if (!file_exists($flashdirname)) { + $this->create_dir($flashdirname); + } } /** @@ -234,4 +240,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. |