[BRAINCMS] How to set user limit per IP?

Status
Not open for further replies.

HoldUp

dont even
Aug 31, 2017
242
32
Should be in the app/ maybe class.users or class.engine if class.users is a file. Can't remember off the top of my head..
 
Oh wait, thinking of wrong cms here, I was thinking of revcms aha
 

ZaneyRetros

i am dead
Jul 27, 2015
211
105
It should be located in config.php - inetpub/wwwroot/app/management/config.php
It says something related to; maximum IP/minimum IP's connected.

Many Regards
Zane
 
Last edited by a moderator:

Henning Kvia

New Member
Nov 18, 2011
3
1
I'm using BrainCMS and have exactly the same problem, but can not find the place to change it. Can anyone help?

When I try to register more than 3 users, I get this message: You can only register up to three accounts on this IP address.
 

ItsMeRomian

Member
Oct 3, 2015
190
22
You talk about how many connections to the client. my problem is brainCms registration of users. Need to register more than 3 users and find no place to change the limit of 3 users.
In system/app/classes/class.user.php you’ll find

PHP:
$stmt = $dbh->prepare("SELECT ".$emuUse['ip_last']." FROM users WHERE ".$emuUse['ip_last']." = :userip");
                                                            $stmt->bindParam(':userip',  userIp());
                                                            $stmt->execute();
                                                            if ($stmt->RowCount() < 4)

Change the 4 to the amount of accounts per ip
 

Henning Kvia

New Member
Nov 18, 2011
3
1
In system/app/classes/class.user.php you’ll find

PHP:
$stmt = $dbh->prepare("SELECT ".$emuUse['ip_last']." FROM users WHERE ".$emuUse['ip_last']." = :userip");
                                                            $stmt->bindParam(':userip',  userIp());
                                                            $stmt->execute();
                                                            if ($stmt->RowCount() < 4)

Change the 4 to the amount of accounts per ip

Thank you for your help, just stress so overlook it :)
 
  • Like
Reactions: Joe
Status
Not open for further replies.

Users who are viewing this thread

Top