projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d179c7
)
Images.php
author
Edward
<edward@roojs.com>
Fri, 1 Mar 2019 07:12:35 +0000
(15:12 +0800)
committer
Edward
<edward@roojs.com>
Fri, 1 Mar 2019 07:12:35 +0000
(15:12 +0800)
Images.php
patch
|
blob
|
history
diff --git
a/Images.php
b/Images.php
index
160c682
..
21ff856
100644
(file)
--- a/
Images.php
+++ b/
Images.php
@@
-83,7
+83,9
@@
class Pman_Core_Images extends Pman
//if (!empty($_GET['_post'])) {
// return $this->post();
//}
- print_R($_SERVER['HTTP_HOST']);EXIT;
+
+ $this->is_local = (!empty($_SERVER['HTTP_HOST']) && $_SERVER['HTTP_HOST'] == 'localhost') ? true : false;
+
$this->as_mimetype = empty($_REQUEST['as']) ? '' : $_REQUEST['as'];
$this->page = empty($_REQUEST['page']) ? false : (int) $_REQUEST['page'];