GoogleKey.php
[Pman.Core] / GoogleKey.php
1 <?php
2
3 require_once 'Pman.php';
4
5 class Pman_Core_GoogleKey extends Pman
6 {
7     function getAuth()
8     {
9         
10         $au = $this->getAuthUser();
11         if (!$au) {
12             $this->jerrAuth("only authenticated users");
13         }
14         
15         $this->authUser = $au;
16     }
17     function get() {
18         // for testing..
19         return $this->post();
20     }
21     
22     function post()
23     {
24         $pc = HTML_FlexyFramework::get()->Pman_Core;
25         if (empty($pc['googlekey'])) {
26             $this->jerr("Google API Key not configured");
27         }
28         $key = $pc['googlekey'];
29         $this->jdata($key);
30         
31     }
32     
33     
34 }