[HELP]Register more than 1 per IP

Legion

Gaming Lord
Staff member
Nov 23, 2011
1,801
669
Title says it all. My friend is making a hotel, RevCMS, Legit Pheonix, any other info or help?
 

Mitchul

Sledmoresux
Feb 18, 2012
371
46
Go to wwwroot/htdocs > app > class.users.php and find

final public function hasClones($ip)


Change

PHP:
final public function hasClones($ip)
{
global $engine;
if($engine->num_rows("SELECT * FROM users WHERE ip_reg = '" . $_SERVER['REMOTE_ADDR'] . "'") == 1)
{
return true;
}

to


PHP:
final public function hasClones($ip)
    {
        global $engine;
        if($engine->num_rows("SELECT * FROM users WHERE ip_reg = '" . $_SERVER['REMOTE_ADDR'] . "'") == 5)
        {
            return true;
        }
 

Gajeel

Well-Known Member
Oct 4, 2011
2,411
413
Go to wwwroot/htdocs > app > class.users.php and find

final public function hasClones($ip)


Change

PHP:
final public function hasClones($ip)
{
global $engine;
if($engine->num_rows("SELECT * FROM users WHERE ip_reg = '" . $_SERVER['REMOTE_ADDR'] . "'") == 1)
{
return true;
}

to


PHP:
final public function hasClones($ip)
    {
        global $engine;
        if($engine->num_rows("SELECT * FROM users WHERE ip_reg = '" . $_SERVER['REMOTE_ADDR'] . "'") == 5)
        {
            return true;
        }
PHP:
        if($engine->num_rows("SELECT * FROM users WHERE ip_reg = '" . $_SERVER['REMOTE_ADDR'] . "'") == 5)
On that line with that numbers, change 5 to any amount of accounts you want to allow per IP.
 

Users who are viewing this thread

Top