- Code: Select all
#
#-----[ OPEN ]------------------------------------------------
#
includes/functions_validate.php
#
#-----[ FIND ]------------------------------------------------
#
// Don't allow
if (strstr(
#
#-----[ IN-LINE FIND ]----------------------------------------
#
, chr(160))
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------------
#
|| strstr($username, ';')
And now I notice that on trying to save a profile I get
- Code: Select all
Parse error: parse error in /home/ukthunde/public_html/forum/includes/functions_validate.php
on line 107
Fatal error: Call to undefined function: validate_optional_fields() in
/home/ukthunde/public_html/forum/includes/usercp_register.php on line 133
I have looked at functions_validate.php and around line 107 is
- Code: Select all
{
if ($row = $db->sql_fetchrow($result))
{
do
{
if (preg_match("#\b(" . str_replace("\*", ".*?", phpbb_preg_quote($row['word'], '#')) . ")\b#i", $username))
{
$db->sql_freeresult($result);
return array('error' => true, 'error_msg' => $lang['Username_disallowed']);
}
}
while ($row = $db->sql_fetchrow($result));
}
}
$db->sql_freeresult($result);
// Don't allow " and ALT-255 in username.
Line 107 is
- Code: Select all
while ($row = $db->sql_fetchrow($result));
Around line 133 in usercp_register.php I get
- Code: Select all
// Start add - Custom mass PM MOD
$allow_mass_pm = ( isset($HTTP_POST_VARS['allow_mass_pm']) ) ? intval ($HTTP_POST_VARS['allow_mass_pm']) : 2;
// End add - Custom mass PM MOD
So it appears that when either doing the update I also did something wrong.
Any suggestions as to what & how I should go about fixing this?
Should I be able to put a default functions_validate.php back or would one of other mods perhaps use it?
Zoombini?

