• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Blocking Accounts on web

Cotizado

Member
Joined
May 12, 2008
Messages
320
Reaction score
7
is there a way to block accounts on the web site to prevent password change or even access the account manager of the web site?
there is a table name "blocked" but it is not working
 
i mean there is an account that i dont want it to get into account management on the web site like it cant change pass or create/delete characteres or change anything in it
 
index.php , line ~47:
PHP:
	$account_logged = $ots->createObject('Account');
	$account_logged->find($login_account);
	if($account_logged->isLoaded())
	{
		if($login_password == $account_logged->getPassword())
change:
PHP:
if($account_logged->isLoaded())
with:
PHP:
if($account_logged->isLoaded() && !in_array($account_logged->getId(), array(1,2,123,51234)))
in array put your list of blocked accounts
 
PHP:
if($account_logged->isLoaded() && !in_array($account_logged->getId(), array(1,2,123,51234)))

this one works
PHP:
if($account_logged->isLoaded() && !in_array($account_logged->getId(), array(1,2,123,51234))

ty Rep
 
Back
Top