X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=GoogleKey.php;h=bdcbb8c94030dc3bb3e16a9b777c8d17ba2d76c2;hp=460a33f644408ca25e2002d4f6929aba91e6a21a;hb=HEAD;hpb=2bbd37838ad7eec7f0ef5ff35f1507d2300c632e diff --git a/GoogleKey.php b/GoogleKey.php index 460a33f6..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) { - $ff = HTML_FlexyFramework::get()->Pman_Core['googlekey']; - $this->jdata() + $pc = HTML_FlexyFramework::get()->Pman_Core; + if (empty($pc['googlekey'])) { + $this->jerr("Google API Key not configured"); + } + $key = $pc['googlekey']; + $this->jdata($key); }