X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=GoogleKey.php;h=bdcbb8c94030dc3bb3e16a9b777c8d17ba2d76c2;hp=7d5d8bd1be48244f57e22844b846bf55acefd75b;hb=8cd2a9237c684aa16bc21e3ac6d3793c49c65400;hpb=70e41ffd6520afd4e381f0d3de5808249462c302 diff --git a/GoogleKey.php b/GoogleKey.php index 7d5d8bd1..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,10 +22,18 @@ 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']; + $pc = HTML_FlexyFramework::get()->Pman_Core; + if (empty($pc['googlekey'])) { + $this->jerr("Google API Key not configured"); + } + $key = $pc['googlekey']; $this->jdata($key); }