View Single Post
  #44  
Old 06-27-2011, 04:44 PM
  DogByteMan's Avatar 
DogByteMan DogByteMan is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 833
 

Default Re: MaxCDN Content Delivery Solution?

On 4.1.12 in func.files.php

if (($type == 'T' OR $type == 'P') AND $_SERVER['HTTPS'] != 'on')
{
$image_path = str_replace('/home/user/public_html/images/','http://skin1.mydomain/images/',$image_path);
return str_replace('$http_location','',$image_path);
}

Works Great, BUT, I need a different scheme for product and category pages. I've tried. for example.

if ($productid AND ($type == 'T' OR $type == 'P') AND $_SERVER['HTTPS'] != 'on')
{
$image_path = str_replace('/home/user/public_html/images/','http://skin1.mydomain.com/images/',$image_path);
return str_replace('$http_location','',$image_path);
}

and dozens of other possible variables, it would appear they are not available in func.files.php. Anybody have a solution?
__________________
Dedicated Server provided by EWD Hosting
X-Cart version 4.1.12
PHP 5.3.2
MySQL server 5.0.87-community
Operation system Linux
Perl 5.008008
dogbytecomputer.com
Reply With Quote