if ($filesize>$amfs) {
eval("standarderror(\"".gettemplate("error_avatartoobig")."\");");
// file size too big
exit;
}
} elseif ($bbuserinfo[usergroupid]==5) {
if ($filesize>$smmfs) {
eval("standarderror(\"".gettemplate("error_avatartoobig")."\");");
// file size too big
exit;
}
} elseif ($bbuserinfo[usergroupid]==7) {
if ($filesize>$mmfs) {
eval("standarderror(\"".gettemplate("error_avatartoobig")."\");");
// file size too big
exit;
}
} else ($filesize>$avatarmaxsize) {
eval("standarderror(\"".gettemplate("error_avatartoobig")."\");");
// file size too big
exit;
}
}
I know it's wrong because I'm getting errors.
I have no idea why it's wrong lol - unexpected '{' apparently