includes/common.php
changeset 406 7468a663315f
parent 378 c1c7fa6b329f
child 411 d1a95497b68f
equal deleted inserted replaced
405:adb7f8de8ce1 406:7468a663315f
   137 global $email;
   137 global $email;
   138 
   138 
   139 // Language object
   139 // Language object
   140 global $lang;
   140 global $lang;
   141 
   141 
       
   142 // Timezone offset
       
   143 global $timezone;
       
   144 $timezone = 0;
       
   145 
   142 // Because Enano sends out complete URLs in several occasions, we need to know what hostname the user is requesting the page from.
   146 // Because Enano sends out complete URLs in several occasions, we need to know what hostname the user is requesting the page from.
   143 // In future versions we may include a fallback "safety" host to use, but that's too much to worry about now
   147 // In future versions we may include a fallback "safety" host to use, but that's too much to worry about now
   144 if ( !isset($_SERVER['HTTP_HOST']) )
   148 if ( !isset($_SERVER['HTTP_HOST']) )
   145   grinding_halt('Cannot get hostname', '<p>Your web browser did not provide the HTTP Host: field. This site requires a modern browser that supports the HTTP 1.1 standard.</p>');
   149   grinding_halt('Cannot get hostname', '<p>Your web browser did not provide the HTTP Host: field. This site requires a modern browser that supports the HTTP 1.1 standard.</p>');
   146 
   150