X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=GoogleKey.php;h=bdcbb8c94030dc3bb3e16a9b777c8d17ba2d76c2;hp=ad9b309bdd05e65e3a3715bc85a9f706c3be3d46;hb=HEAD;hpb=c1609798a94fbd27ebab93646f68f7af8e51f433 diff --git a/GoogleKey.php b/GoogleKey.php index ad9b309b..bdcbb8c9 100644 --- a/GoogleKey.php +++ b/GoogleKey.php @@ -2,6 +2,14 @@ require_once 'Pman.php'; + +/** + * + * NOT IN USED NOW!!! + * + * + * + */ class Pman_Core_GoogleKey extends Pman { function getAuth() @@ -14,11 +22,19 @@ class Pman_Core_GoogleKey extends Pman $this->authUser = $au; } + function get($v, $opts=array()) { + // for testing.. + return $this->post(); + } - function post() + function post($v) { - $key = HTML_FlexyFramework::get()->Pman_Core['googlekey']; - $this->jdata($key) + $pc = HTML_FlexyFramework::get()->Pman_Core; + if (empty($pc['googlekey'])) { + $this->jerr("Google API Key not configured"); + } + $key = $pc['googlekey']; + $this->jdata($key); }