View Single Post
  #56  
Old 06-27-2004, 10:38 AM
 
NuAlpha NuAlpha is offline
 

X-Adept
  
Join Date: Aug 2003
Location: US
Posts: 598
 

Default

Quote:
Originally Posted by adpboss
Could you short list exactly what you did to insure compatability?

All I did was drag the required Smarty 2.6.2 components into the Xcart 2.5.0 folder (after backing it up).

I added the webmaster code to the new Smarty class file.

I changed all Smarty 2.5.0 references to Smarty 2.6.2 and updated the new settings with my old ones.

I also put the following to top.inc.php in place of the original 3.5.8 code:
Code:
if (!in_array($__key, array("HTTP_GET_VARS","HTTP_POST_VARS","HTTP_SERVER_VARS","HTTP_ENV_VARS","HTTP_COOKIE_VARS","HTTP_POST_FILES","__key","__val", "_GET","_POST","_SERVER","_COOKIE","_FILES","_ENV","_REQUEST","_SESSION","GLOBALS"))) {

In our .htaccess file I added php_value register_globals 0 to take care of the security issue.

I don't know about webmaster mode being broken or not as we do not use it at all. In that code there is a call to a few class variables that I can't find declared anywhere, so I don't know how to fix it anyway.
__________________
X-Cart Pro 4.5.5 Platinum
X-Payments 1.0.6
PHP 5.3.14
MySQL 5.1.68
Apache 2.2.23
Reply With Quote