[показать] PHP:
if ($do=="") $do = $subaction;
if ($do=="" AND $year) $do = "date";
if ( stristr( $tpl->copy_template, "[aviable=" ) ) {
$tpl->copy_template = preg_replace( "#\[aviable=(.+?)\](.*?)\[/aviable\]#ies","check_module('\1', '\2', '{$do}')", $tpl->copy_template);
}
font>