includes/common.php
changeset 812 68060328e9c6
parent 801 eb8b23f11744
child 832 7152ca0a0ce9
equal deleted inserted replaced
811:5c807fe77020 812:68060328e9c6
   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 // Divert to CLI loader if running from CLI
   180 // Divert to CLI loader if running from CLI
   181 if ( isset($argc) && isset($argv) )
   181 if ( defined('ENANO_CLI') || ( isset($argc) && isset($argv) ) )
   182 {
   182 {
   183   if ( is_int($argc) && is_array($argv) && !isset($_SERVER['REQUEST_URI']) )
   183   if ( defined('ENANO_CLI') || ( is_int($argc) && is_array($argv) && !isset($_SERVER['REQUEST_URI']) ) )
   184   {
   184   {
   185     require(ENANO_ROOT . '/includes/common_cli.php');
   185     require(ENANO_ROOT . '/includes/common_cli.php');
   186     return;
   186     return;
   187   }
   187   }
   188 }
   188 }