0?$userdata['user_posts']:0);
if (!function_exists('whc_cbtxt')) { //callback func
define('whcISG',' ');
define('whcISB',' ');
function whc_cbtxt($need,$txt,$locale,$whc_upn) {
if(iGUEST) {return '
'.whcISB.$locale['whc_gmsg2'].''.$need.'
';
}
else if ($whc_upn>=$need||iADMIN) {//posts ok; admin ok
return ''.whcISG.$locale['whc_uhtmsg'].''.$need.'
'.$txt.'';
}
else { //not enough messages
return ''.whcISB.$locale['whc_uwopmsg'].''.$need.''.$locale['whc_uwopmsg2'].''.$whc_upn.'
';
}
}
}
if(iGUEST){$text = preg_replace('#\[whide\](.+?)\[/whide\]#si', ''.whcISB.$locale['whc_gmsg'].'
', $text,15);}
else {$text = preg_replace('#\[whide\](.+?)\[/whide\]#si', ''.whcISG.$locale['whc_htmsg'].'
\1', $text,15);}
$text = preg_replace('#\[whide=([0-9]*?)\](.+?)\[/whide\]#sie','whc_cbtxt(\'\\1\', \'\\2\',$locale,$whc_upn)',$text,10);
?>