mozack Posted September 20, 2012 Share Posted September 20, 2012 (edited) Hi, For a while i'm searching about a solution to use media servers on SSL or avoid them when in secure environment. My point is, when using SSL or do not use media servers or use their default ssl domain. I was searching in Tools.php and found that code: public static function getMediaServer($filename) { if (self::$_cache_nb_media_servers === null) { if (_MEDIA_SERVER_1_ == '') self::$_cache_nb_media_servers = 0; elseif (_MEDIA_SERVER_2_ == '') self::$_cache_nb_media_servers = 1; elseif (_MEDIA_SERVER_3_ == '') self::$_cache_nb_media_servers = 2; else self::$_cache_nb_media_servers = 3; } if (self::$_cache_nb_media_servers && ($id_media_server = (abs(crc32($filename)) % self::$_cache_nb_media_servers + 1))) return constant('_MEDIA_SERVER_'.$id_media_server.'_'); return _PS_SSL_ENABLED_ ? self::getShopDomainSsl(false) : self::getShopDomain(false); } Now, how to inject here the ssl domain for media server, or where can we do that? Thanks Mozack Edited September 22, 2012 by mozack (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted September 20, 2012 Share Posted September 20, 2012 (edited) deleted, as my example was wrong...I apologize for that Edited September 20, 2012 by elpatron (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts