Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Smarty versions in xcart

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-08-2005, 05:14 AM
  ETInteractive.com's Avatar 
ETInteractive.com ETInteractive.com is offline
 

X-Adept
  
Join Date: Dec 2002
Posts: 747
 

Default Smarty versions in xcart

Just surfing around and notices Smarty 2.6.9 came out March 31, 2005. and it says.

[31-March-2005] This is a patch release for those using the security features of Smarty. Variable function calls such as $foo() in {if} statements and {math} equations allowed PHP function execution from within a template, even with security enabled. Variable function calls have been disabled completely. If you are using security features, this upgrade is highly recommended.

Then i realized xcart 4.0.13 is using 2.6.3 from June 16, 2004.
xcart 3.5.14 is using 2.5.0 from April 11, 2003.

obviously there are some security issues and bugs that made smarty release new versions.

But why hasn't xcart upgraded to them??

discuss
__________________
ETInteractive.com
X-Cart 3.5.x
Reply With Quote
  #2  
Old 04-08-2005, 03:09 PM
  kangus's Avatar 
kangus kangus is offline
 

Senior Member
  
Join Date: Feb 2003
Posts: 160
 

Default

You can upgrade; download the latest version of Smarty and unpack it, create a new directory under your store as in store/Smarty-2.6.9 then copy everything in the unpacked /libs directory to store/Smarty-2.6.9, rename the store/Smarty-2.6.9/internals directory to store/Smarty-2.6.9/core, edit store/Smarty-2.6.9/Smarty.class.php and change define('SMARTY_CORE_DIR', SMARTY_DIR . 'internals' . DIRECTORY_SEPARATOR); to define('SMARTY_CORE_DIR', SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR);
Then edit store/smarty.php and change define('SMARTY_DIR', $xcart_dir.DIRECTORY_SEPARATOR."Smarty-2.6.3".DIRECTORY_SEPARATOR); to define('SMARTY_DIR', $xcart_dir.DIRECTORY_SEPARATOR."Smarty-2.6.9".DIRECTORY_SEPARATOR);

Then copy any plugin in the Smarty-2.6.3/plugins directory that is NOT in the new plugins directory to the new plugins directory.
File list:
function.count.php
function.assign_ext.php
modifier.abs_value.php
modifier.formatprice.php
modifier.substitute.php
modifier.trademark.php
modifier.value_sign.php

Seems to work.
__________________
X-cart 3.3.1 ~ 4.0.18 4.1.1
PHP4/5 MySQL 4.1.10a/5.1
CENTOS 4.1 / SuSE 9.3 / MS Server
Authorize.Net Partner
Reply With Quote
  #3  
Old 04-09-2005, 10:01 AM
  ETInteractive.com's Avatar 
ETInteractive.com ETInteractive.com is offline
 

X-Adept
  
Join Date: Dec 2002
Posts: 747
 

Default

Great, thanks for the info.

Xcart should do this for us...on each new release.
__________________
ETInteractive.com
X-Cart 3.5.x
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:30 PM.

   

 
X-Cart forums © 2001-2020