Pman.js
[Pman.Core] / GoogleKey.php
index e69de29..bdcbb8c 100644 (file)
@@ -0,0 +1,42 @@
+<?php
+
+require_once 'Pman.php';
+
+
+/**
+ * 
+ * NOT IN USED NOW!!!
+ * 
+ * 
+ * 
+ */
+class Pman_Core_GoogleKey extends Pman
+{
+    function getAuth()
+    {
+        
+        $au = $this->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