X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=GoogleKey.php;h=bdcbb8c94030dc3bb3e16a9b777c8d17ba2d76c2;hp=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391;hb=refs%2Fheads%2Fwip_alan_T6343_generic_progress_bar_delete;hpb=662c28ce9c99f84d6be0c7d0a3f091a022d683ae diff --git a/GoogleKey.php b/GoogleKey.php index e69de29b..bdcbb8c9 100644 --- a/GoogleKey.php +++ b/GoogleKey.php @@ -0,0 +1,42 @@ +getAuthUser(); + if (!$au) { + $this->jerrAuth("only authenticated users"); + } + + $this->authUser = $au; + } + function get($v, $opts=array()) { + // for testing.. + return $this->post(); + } + + function post($v) + { + $pc = HTML_FlexyFramework::get()->Pman_Core; + if (empty($pc['googlekey'])) { + $this->jerr("Google API Key not configured"); + } + $key = $pc['googlekey']; + $this->jdata($key); + + } + + +} \ No newline at end of file