MyBB Community Forums

Full Version: Whhich file contains the code that disallows multi registration accounts
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
....from the same IP. I remmeber seeing it before but I can''t find it anymore. Thank you.
It should be in user registration in your ACP>>CONFIGURATION
Not sure though as my server is slow for me :/
(2010-06-05, 12:11 AM)ccalby Wrote: [ -> ]It should be in user registration in your ACP>>CONFIGURATION
Not sure though as my server is slow for me :/

I meant in the php files and not in the Admin Panel. Sorry if I was not clear enough and thank you for your reply.
Perhaps if you explained what you want to do...
I cannot say which file but you can do it from the ACP Wink
./member.php, from line 65:

if($mybb->settings['betweenregstime'] && $mybb->settings['maxregsbetweentime'])
{
	$time = TIME_NOW;
	$datecut = $time-(60*60*$mybb->settings['betweenregstime']);
	$query = $db->simple_select("users", "*", "regip='".$db->escape_string($session->ipaddress)."' AND regdate > '$datecut'");
	$regcount = $db->num_rows($query);
	if($regcount >= $mybb->settings['maxregsbetweentime'])
	{
		$lang->error_alreadyregisteredtime = $lang->sprintf($lang->error_alreadyregisteredtime, $regcount, $mybb->settings['betweenregstime']);
		error($lang->error_alreadyregisteredtime);
	}
}
Thank you very much, again Smile