View Single Post
  #20  
Old 05-17-2004, 06:06 AM
 
jeremye jeremye is offline
 

Senior Member
  
Join Date: Apr 2004
Location: Philadelphia, PA
Posts: 158
 

Default

Ok, here's what I did to look into this further. I ran a file comparison on the original smarty.class.php file that came from smarty.php.net(left) (for 2.5.0). I compared that to the version included in the x-cart distribution (right) below:

Code:
FILE COMPARISON Produced: 5/17/2004 10:02:40 AM Mode: Just Differences Left file: \Desktop\Smarty-2.5.0\libs\Smarty.class.php (original Smarty file) Right file: /xcart/Smarty-2.5.0/Smarty.class.php (from x-cart) L45 /* $Id: Smarty.class.php,v 1.375 2003/04/11 13:40:40 mohrt Exp $ */ R45 /* $Id: Smarty.class.php,v 1.3.2.1 2003/05/07 14:07:46 matr Exp $ */ ------------------------------------------------------------------------ ------------------------------------------------------------------------ L1158 include($_smarty_compile_path); R1158 $this->webmaster_include($_smarty_compile_path, $tpl_file); ------------------------------------------------------------------------ ------------------------------------------------------------------------ L1164 include($_smarty_compile_path); R1164 $this->webmaster_include($_smarty_compile_path, $tpl_file); ------------------------------------------------------------------------ ------------------------------------------------------------------------ L1530 if ($template_timestamp <= filemtime($compile_path)) { R1530 if (($template_timestamp <= filemtime($compile_path)) && (!preg_match("/cu[s]?tom[e]?r\/m[a]?in\/p[r]?od[u]?ct.t[p]?l/i", $tpl_file))) { ------------------------------------------------------------------------ ------------------------------------------------------------------------ L1769 include($_smarty_compile_path); R1769 $this->webmaster_include($_smarty_compile_path, $_smarty_include_tpl_file); ------------------------------------------------------------------------ ------------------------------------------------------------------------ L2062 chmod($filename, $this->_file_perms); R2062 @chmod($filename, $this->_file_perms); ------------------------------------------------------------------------ ------------------------------------------------------------------------ R2699 # # ADDED FOR WEBMASTER MODE # function webmaster_include($_smarty_compile_path, $tpl_file) { if ($this->webmaster_mode) { $tag = "div"; foreach ($this->tagsTemplates as $tmplt=>$t) { if (ereg("^$tmplt\$", $tpl_file)) { $tag = $t; break; } } if ($tag!="omit") { ?><<?=$tag?> name="<?=$tpl_file?>" onMouseOver='dmo(event)' onMouseOut='dmu(event)' style="margin:0px;"><? } } include($_smarty_compile_path); if ($this->webmaster_mode && $tag!="omit") { ?></<?=$tag?>><? } } # # / ADDED FOR WEBMASTER MODE # ------------------------------------------------------------------------

It appears as if there are several lines there that refer to webmaster mode, but I am not sure which ones we need, and especially how to correct them in the 2.6.2 version of the file. Thoughts?
__________________
Jeremy
X-Cart Gold v3.4.14 [Linux/Apache]
Heavily Modded
Reply With Quote