RE: SECv2.2 with Credit Class and GVv5.05 for MS2

dougedmunds <[email protected]> 12 Sep 2003 08:49:21 -0000
Newsgroups gmane.comp.web.oscommerce.contributions
Message-ID <356f318fb07dff0cff83d0fb631358ec@osCommerce-Forums>
This message was sent from: Contributions
http://forums.oscommerce.com/viewtopic.php?p=228298#228298
----------------------------------------------------------------

Here's what I finally did to get the images to appear, without
breaking other code:

~collecto is the subdir assigned by the host, an alternate
way to get into the domain before the domain transfer is complete.
(This is in admin/includes/configure.php)


--unrelated code removed--
1. Add the subdir to 
  HTTP_SERVER
  HTTP_CATALOG_SERVER and
  HTTPS_CATALOG_SERVER

  define('HTTP_SERVER', 'http://host97.ipowerweb.com/~collecto'); 
  define('HTTP_CATALOG_SERVER', 'http://host97.ipowerweb.com/~collecto');
  define('HTTPS_CATALOG_SERVER', 'https://host97.ipowerweb.com/~collecto');

2. add the subdir before DIR_WS_CATALOG for
DIR_WS_CATALOG_IMAGES and
DIR_WS_CATALOG_LANGUAGES

define('DIR_WS_CATALOG_IMAGES', '/~collecto' . DIR_WS_CATALOG . 'images/');

 define('DIR_WS_CATALOG_LANGUAGES', '/~collecto' . DIR_WS_CATALOG . 'includes/languages/');

Strangely, combining the subdir into DIR_WS_CATALOG 
(i.e., /~collecto/catalog/ )
will break some other code, which apparently must only see 
'/catalog/'