View Single Post
Old July 25th, 2005, 01:28 PM   #3 (permalink)
Gliderstyle
Junior Member
 
Join Date: Dec 2004
Location: Belgium
Posts: 28
Addslashes problems

Thanks for the answer but I encountered the same problem when updating templates. I update some templates via the admin section and all the updated templates code are automatically "addslashed" resulting in code execution error. Here an example of a part of the menubar.tmpl after the update :
<?php
echo <<<PPPRINT
$ppopen
<tr>
<td class=\"{$Style[\'menubar\']}\" width=\"100%\" colspan=\"2\">
<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<!-- modif knapy inversion des menu et menu 2 --->
<td class=\"{$Style[\'menubarnb\']}\" width=\"50%\" align=\"left\" valign=\"middle\">
&nbsp;$menu
</td>
<td class=\"{$Style[\'menubarnb\']}\" width=\"50%\" align=\"right\"valign=\"middle\">
$menu2&nbsp;&nbsp;
</td>
</tr>
</table>
</td>
As you can see all the code has been "addslashed".
Greetings
Gliderstyle is offline   Reply With Quote