projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a47826
)
RefreshDatabaseCache.php
author
edward
<edward@roojs.com>
Thu, 31 Aug 2017 08:48:11 +0000
(16:48 +0800)
committer
edward
<edward@roojs.com>
Thu, 31 Aug 2017 08:48:11 +0000
(16:48 +0800)
RefreshDatabaseCache.php
patch
|
blob
|
history
diff --git
a/RefreshDatabaseCache.php
b/RefreshDatabaseCache.php
index
8797970
..
ea9c20e
100644
(file)
--- a/
RefreshDatabaseCache.php
+++ b/
RefreshDatabaseCache.php
@@
-15,8
+15,11
@@
class Pman_Core_RefreshDatabaseCache extends Pman
static $cli_desc = "Refresh the database schema cache";
var $cli = false;
- function getAuth() {
-
+ function getAuth()
+ {
+ if($_SERVER['HTTP_HOST'] == 'localhost'){
+ return true;
+ }
$ff = HTML_FlexyFramework::get();
if (!empty($ff->cli)) {