Ответов: 80 Просмотров: 0
|
yura3d
Нет такой строки у меня в файле register.php
CODE:if ($fm->input['useravatar'] != '' && (!preg_match("#^[A-Za-z0-9-_]{1,}\.[A-Za-z]{3,4}$#is",$fm->input['useravatar']) || !file_exists('im/avatars/'.$fm->input['useravatar']))) {
CODE:и замените её строкой:
CODE:
if ($fm->input['useravatar'] != '' && (!preg_match("#^[A-Za-z0-9-_]{1,64}\.[A-Za-z]{3,4}$#is",$fm->input['useravatar']) || !file_exists('im/avatars/'.$fm->input['useravatar']))) {
У меня вот как
CODE:include('language/'.DEF_LANG.'/lang_tz.php');
$fm->input['timedifference'] = (isset($tz[$fm->input['timedifference']])) ? $fm->input['timedifference']:0;
if ($fm->exbb['wordcensor'] === TRUE && $fm->bads_filter($fm->input['signature'],0) === TRUE) {
$fm->_Message($fm->LANG['Registration'],$fm->LANG['NoProfanity']);
}
$siglines = explode("\n",$fm->input['signature']);
if (count($siglines) > $fm->exbb['max_sig_lin'] || strlen($fm->input['signature']) > $fm->exbb['max_sig_chars']) {
$fm->_Message($fm->LANG['Registration'],sprintf($fm->LANG['SigOptions'],$fm->exbb['max_sig_lin'],$fm->exbb['max_sig_chars']));
}
if (!preg_match("#^[A-Za-z0-9-_]{1,}\.[A-Za-z]{3,4}$#is",$fm->input['useravatar']) || !file_exists('im/avatars/'.$fm->input['useravatar'])) {
$fm->input['useravatar'] = 'noavatar.gif';
}
} else {
$fm->input['homepage'] = $fm->input['icqnumber'] = $fm->input['aolname'] = '';
$fm->input['location'] = $fm->input['interests'] = $fm->input['signature'] = '';
$fm->input['timedifference'] = 0;
$fm->input['useravatar'] = 'noavatar.gif';
}
return;
}
?> |