projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f453b11
)
UpdateDatabase/VerifyExtensions.php
author
john
<john@roojs.com>
Wed, 3 Oct 2018 03:27:21 +0000
(11:27 +0800)
committer
john
<john@roojs.com>
Wed, 3 Oct 2018 03:27:21 +0000
(11:27 +0800)
UpdateDatabase/VerifyExtensions.php
patch
|
blob
|
history
diff --git
a/UpdateDatabase/VerifyExtensions.php
b/UpdateDatabase/VerifyExtensions.php
index
89dc1d3
..
07a62ae
100644
(file)
--- a/
UpdateDatabase/VerifyExtensions.php
+++ b/
UpdateDatabase/VerifyExtensions.php
@@
-10,6
+10,16
@@
class Pman_Core_UpdateDatabase_VerifyExtensions extends Pman
function getAuth()
{
+ if ($_SERVER['HTTP_HOST'] == 'localhost') {
+ return true;
+ }
+
+ $this->getAuthUser();
+
+ if(empty($this->authUser)) {
+ return false;
+ }
+
return true;
}