Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Nedeľa, 15. november 2026

Rozdiely pre Metafox/subst.inc.php medzi verziami 1.65 a 1.66

verzia 1.65, 2015/10/27 11:14:14 verzia 1.66, 2026/11/06 14:16:37
Riadok 17 
Riadok 17 
  * http://platon.sk/projects/Metafox/   * http://platon.sk/projects/Metafox/
  */   */
   
 /* $Platon: Metafox/subst.inc.php,v 1.64 2015/08/20 06:12:02 nepto Exp $ */  /* $Platon: Metafox/subst.inc.php,v 1.65 2015/10/27 11:14:14 igor Exp $ */
   
 require_once 'cfgldr.inc.php';  require_once 'cfgldr.inc.php';
 require_once 'error.inc.php';  require_once 'error.inc.php';
Riadok 54  ezin_cgi_parse();
Riadok 54  ezin_cgi_parse();
  * Mandatory HTTP host check   * Mandatory HTTP host check
  */   */
   
   $ezin_https = ezin_get_schema() == 'https';
   
 switch ($ezin_cfg['https_admin']) {  switch ($ezin_cfg['https_admin']) {
         case 0: // Always OFF          case 0: // Always OFF
                 $https_admin_redirect = false;                  $https_admin_redirect = false;
                 break;                  break;
         case 1: // Auto-detect          case 1: // Auto-detect
                 $https_admin_redirect = strcasecmp($_SERVER['HTTPS'], 'on')                  $https_admin_redirect = ! $ezin_https
                         && strlen($_SERVER['HTTP_HOST']) > 0;                          && strlen($_SERVER['HTTP_HOST']) > 0;
                 break;                  break;
         case 2: // Always ON          case 2: // Always ON
Riadok 69  switch ($ezin_cfg['https_admin']) {
Riadok 71  switch ($ezin_cfg['https_admin']) {
   
 if ($ezin_cgi['output'] == 'admin'  if ($ezin_cgi['output'] == 'admin'
                 && $https_admin_redirect                  && $https_admin_redirect
                 && $_SERVER['SERVER_PORT'] != 443)                  && ! $ezin_https)
 {  {
         $socket = @fsockopen('ssl://'.$_SERVER['HTTP_HOST'], 443);          $socket = @fsockopen('ssl://'.$_SERVER['HTTP_HOST'], 443);
         if (is_resource($socket)) {          if (is_resource($socket)) {
Riadok 125  if (strlen($ezin_cfg['http_host_redirect
Riadok 127  if (strlen($ezin_cfg['http_host_redirect
         $ezin_redirect_ar = @parse_url($ezin_redirect_url);          $ezin_redirect_ar = @parse_url($ezin_redirect_url);
         if (@strlen($ezin_redirect_ar['scheme']) <= 0) {          if (@strlen($ezin_redirect_ar['scheme']) <= 0) {
                 $ezin_redirect_ar = @parse_url(                  $ezin_redirect_ar = @parse_url(
                                 (strcasecmp($_SERVER['HTTPS'], 'on') ? 'http' : 'https')                                  ($ezin_https ? 'https' : 'http')
                                 .'://'.$ezin_redirect_url);                                  .'://'.$ezin_redirect_url);
         }          }
         if (strlen($ezin_redirect_ar['host']) > 0 && strlen($ezin_http_host) > 0          if (strlen($ezin_redirect_ar['host']) > 0 && strlen($ezin_http_host) > 0

Legend:
Odstranené z verzie1.65  
zmenené riadky
  Pridané vo verzii1.66

Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok