Jump to content

Some help here please


jburelli

Recommended Posts

this is the entire function:

 

Someone told me, use  preg_match not  eregi functions, but I dont know sintax.

 

 

function temp_lock($source,$block)
{
eregi("<BLOCK:$block>(.*)</BLOCK:$block>", $source, $new_tpl);
//$block = $new_tpl[1];
//$source = eregi_replace("<BLOCK:$block>(.*(</BLOCK:$block>))", "{block:$block}", $template);

$output['tpl'] = $new_tpl[1];
$output['clean'] = $new_tpl[1];
$output['src'] = eregi_replace("<BLOCK:$block>(.*(</BLOCK:$block>))", "{block:$block}", $source);
$output['add'] = "";
$output['done'] = "";
return $output;
}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.