Our site www.viart.com site is operated by latest Viart Shop 5 with default Clear design
Topic Information
crmartell
crmartell
Just installed 4.1 and i cannot get PHP to run in Custom Blocks. I've tried everything.
 
Anyone else have this problem? It runs fine in 4.0 on my server.
 
Thanks - carla
 
Vera
Vera
This option was often used to leave a back door for future hacker attacks that's why in one of the latest version builds we disabled it. If you wish to allow PHP code then you can reactivate it on your own risk by removing comments from these lines in file 'common_functions.php':
 
/* if (preg_match_all("/(<\?php|<\?)(.*)\?>/Uis", $block_body, $matches)) {
for ($p = 0; $p < sizeof($matches[0]); $p++) {
ob_start();
eval($matches[2][$p]);
$output = ob_get_contents();
ob_end_clean();
$block_body = str_replace($matches[0][$p], $output, $block_body);
}
}//*/
 
Regards,
ViArt Team
 
TOCDCO
TOCDCO
Rather than creating a bandaide, or just removing features all together, why don't we figure out a way to correct the issue? Why is ViArt seemingly under attack all the time, and other cart products (Volusion, Magenta, etc.) not seeming to have the same issues?