From: James J. <jje...@us...> - 2003-12-10 00:44:12
|
Update of /cvsroot/aprsworld/web/datamart In directory sc8-pr-cvs1:/tmp/cvs-serv28354 Modified Files: geoFunctions.php Log Message: Added functions for infoimage and wximage Index: geoFunctions.php =================================================================== RCS file: /cvsroot/aprsworld/web/datamart/geoFunctions.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** geoFunctions.php 7 Nov 2003 18:37:56 -0000 1.4 --- geoFunctions.php 10 Dec 2003 00:44:09 -0000 1.5 *************** *** 2,7 **** function mysqltime2unixtime( $time ) { ! ! } --- 2,6 ---- function mysqltime2unixtime( $time ) { ! return strtotime($time); } *************** *** 54,63 **** function trackCall($source,$hours=72) { ! return sprintf("http://%s/datamart/track.php?call=%s&hours=%d",DATAMART_HOST,urlencode($source),$hours); } function mapserverImgUrl($lat, $lon, $name, $icon="", $scale="") { - - return sprintf("http://%s/mapserver/map.php?lat=%f&lon=%f&label=%s&icon=%s&scale=%s",MAPSERVER_HOST,$lat,$lon,urlencode($name),urlencode($icon),$scale); } --- 53,60 ---- function trackCall($source,$hours=72) { ! return sprintf("http://%s/datamart/track.phtml?call=%s&hours=%d",MAPSERVER_HOST,urlencode($source),$hours); } function mapserverImgUrl($lat, $lon, $name, $icon="", $scale="") { return sprintf("http://%s/mapserver/map.php?lat=%f&lon=%f&label=%s&icon=%s&scale=%s",MAPSERVER_HOST,$lat,$lon,urlencode($name),urlencode($icon),$scale); } *************** *** 66,69 **** --- 63,74 ---- return sprintf("http://%s/mapserver/lastposition.php?call=%s&scale=%s",MAPSERVER_HOST,$source,$scale); + } + + function infoImageImgUrl($source) { + return sprintf("http://%s/datamart/info-image.php?call=%s",MAPSERVER_HOST,$source); + } + + function wxImageImgUrl($source) { + return sprintf("http://%s/datamart/wx-image.php?call=%s",MAPSERVER_HOST,$source); } |