projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
check file exists
[Pman.Core]
/
GoogleKey.php
diff --git
a/GoogleKey.php
b/GoogleKey.php
index
7d5d8bd
..
bdcbb8c
100644
(file)
--- a/
GoogleKey.php
+++ b/
GoogleKey.php
@@
-2,6
+2,14
@@
require_once 'Pman.php';
require_once 'Pman.php';
+
+/**
+ *
+ * NOT IN USED NOW!!!
+ *
+ *
+ *
+ */
class Pman_Core_GoogleKey extends Pman
{
function getAuth()
class Pman_Core_GoogleKey extends Pman
{
function getAuth()
@@
-14,10
+22,18
@@
class Pman_Core_GoogleKey extends Pman
$this->authUser = $au;
}
$this->authUser = $au;
}
+ function get($v, $opts=array()) {
+ // for testing..
+ return $this->post();
+ }
- function post()
+ function post(
$v
)
{
{
- $key = HTML_FlexyFramework::get()->Pman_Core['googlekey'];
+ $pc = HTML_FlexyFramework::get()->Pman_Core;
+ if (empty($pc['googlekey'])) {
+ $this->jerr("Google API Key not configured");
+ }
+ $key = $pc['googlekey'];
$this->jdata($key);
}
$this->jdata($key);
}