includes/common.php
changeset 832 7152ca0a0ce9
parent 812 68060328e9c6
child 901 99ea0b0ac4be
equal deleted inserted replaced
831:45e887f23282 832:7152ca0a0ce9
   175 
   175 
   176 // DST settings
   176 // DST settings
   177 global $dst_params;
   177 global $dst_params;
   178 $dst_params = array(0, 0, 0, 0, 60);
   178 $dst_params = array(0, 0, 0, 0, 60);
   179 
   179 
       
   180 // Establish HTTPS
       
   181 $is_https = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off';
       
   182 
   180 // Divert to CLI loader if running from CLI
   183 // Divert to CLI loader if running from CLI
   181 if ( defined('ENANO_CLI') || ( isset($argc) && isset($argv) ) )
   184 if ( defined('ENANO_CLI') || ( isset($argc) && isset($argv) ) )
   182 {
   185 {
   183   if ( defined('ENANO_CLI') || ( is_int($argc) && is_array($argv) && !isset($_SERVER['REQUEST_URI']) ) )
   186   if ( defined('ENANO_CLI') || ( is_int($argc) && is_array($argv) && !isset($_SERVER['REQUEST_URI']) ) )
   184   {
   187   {