From 155cf6aeea9ba7ecbc39face6442d3ce1b03ad8e Mon Sep 17 00:00:00 2001 From: Nils Schwabe Date: Wed, 4 Jun 2014 14:27:03 +0200 Subject: Add webinterface with functionallity --- management-interface/lib/web/google/staticmap.php | 58 +++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 management-interface/lib/web/google/staticmap.php (limited to 'management-interface/lib/web/google') diff --git a/management-interface/lib/web/google/staticmap.php b/management-interface/lib/web/google/staticmap.php new file mode 100644 index 0000000..8d8a5fc --- /dev/null +++ b/management-interface/lib/web/google/staticmap.php @@ -0,0 +1,58 @@ +query[]=array($func,$args[0]); + return $this; + } + + /** + * Generate map + * @return string + **/ + function dump() { + $fw=\Base::instance(); + $web=\Web::instance(); + $out=''; + return ($req=$web->request( + self::URL_Static.'?'.array_reduce( + $this->query, + function($out,$item) { + return ($out.=($out?'&':''). + urlencode($item[0]).'='.urlencode($item[1])); + } + ))) && $req['body']?$req['body']:FALSE; + } + +} -- cgit v1.2.3-55-g7522