check file exists
[Pman.Core] / GoogleKey.php
index 460a33f..bdcbb8c 100644 (file)
@@ -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);
         
     }