Сообщение LazyGatto » 2013-03-05 17:26:56
Вот diff старого и обновленного файлов /hosts/root/system/libs/auto/Styles.php
Код: Выделить всё
119c119
< return SPrintF('%s://%s/styles/%s/%s',@$_SERVER['SERVER_PORT'] != 80?'https':'http',@$_SERVER['HTTP_HOST'],$HostID,$Element);
---
> return SPrintF('%s://%s/styles/%s/%s',Url_Scheme(),@$_SERVER['HTTP_HOST'],$HostID,$Element);
120a121,135
> }
> /*------------------------------------------------------------------------------
> Задача:
> Получить схему http.
> ------------------------------------------------------------------------------*/
> function Url_Scheme(){
> /****************************************************************************/
> if ((@$_SERVER['HTTPS'] == "on") OR (@$_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') OR (@$_SERVER['SERVER_PORT'] != 80))
> {
> return 'https';
> }
> else
> {
> return 'http';
> }
Вот diff старого и обновленного файлов /hosts/root/system/libs/auto/Styles.php
[code]119c119
< return SPrintF('%s://%s/styles/%s/%s',@$_SERVER['SERVER_PORT'] != 80?'https':'http',@$_SERVER['HTTP_HOST'],$HostID,$Element);
---
> return SPrintF('%s://%s/styles/%s/%s',Url_Scheme(),@$_SERVER['HTTP_HOST'],$HostID,$Element);
120a121,135
> }
> /*------------------------------------------------------------------------------
> Задача:
> Получить схему http.
> ------------------------------------------------------------------------------*/
> function Url_Scheme(){
> /****************************************************************************/
> if ((@$_SERVER['HTTPS'] == "on") OR (@$_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') OR (@$_SERVER['SERVER_PORT'] != 80))
> {
> return 'https';
> }
> else
> {
> return 'http';
> }
[/code]