Proszę
function _recursive_kill_quotes( $t )
{
if ( preg_match( "#\[QUOTE([^\]]+?)?\](.+?)\[/QUOTE\]#is", $t ) )
{
$t = preg_replace( "#\[QUOTE([^\]]+?)?\](.+?)\[/QUOTE\]#is", "", $t );
$t = $this->_recursive_kill_quotes( $t );
}
# Remove any extra closing quote tags
return preg_replace( "#\[/quote\]#si", "", $t );
}
$this->ipsclass->DB->simple_construct( array( 'select' => '*', 'from' => 'topicprefix', 'where' => "LOCATE(',".$forumid.",',CONCAT(',',preforums,','))") );
$this->ipsclass->DB->simple_exec();
if(!$this->ipsclass->DB->get_num_rows())
{
return false;
}
while($res = $this->ipsclass->DB->fetch_row())
{
$res['selected'] = $res['preid'] == $id ? " selected='selected'" : '';
$data .= $this->ipsclass->compiled_templates['skin_post']->topicprefixrow($res);
}
$all = $this->ipsclass->compiled_templates['skin_post']->topicprefixwrapper($data);
return $all;
}
function smilie_alpha_sort($a, $b)
{
return strcmp( $a['typed'], $b['typed'] );
}
}
?>