Images.php
authorEdward <edward@roojs.com>
Fri, 1 Mar 2019 07:12:35 +0000 (15:12 +0800)
committerEdward <edward@roojs.com>
Fri, 1 Mar 2019 07:12:35 +0000 (15:12 +0800)
Images.php

index 160c682..21ff856 100644 (file)
@@ -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'];