this is what the end of my file looks like, i am to tired to edit all out so this is what i am using and is working, thanks for coming up with a solution for the images, i spend hours trying to get that (i am not really much of a programmer, basic little hacks is about all i can do
Code:
// WCM - MaxCDN Implementation
if ($_SERVER['HTTPS'] != 'on')
{
$result = ('js' == $type)
? '<script type="text/javascript" src="' . str_replace("www.waterlesscarwashproducts.com","driwash.waterlesscarwashproducts.com",$cacheWebFile) . '"></script>'
: '<link rel="stylesheet" type="text/css" href="' . str_replace("www.waterlesscarwashproducts.com","driwash.waterlesscarwashproducts.com",$cacheWebFile) . '" />';
}
else
{
$result = ('js' == $type)
? '<script type="text/javascript" src="' . $cacheWebFile . '"></script>'
: '<link rel="stylesheet" type="text/css" href="' . $cacheWebFile . '" />';
}
} else {
$result = '';
}
return $result;
}
?>