• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

AccountManager.php

Big Gunz

Active Member
Joined
Nov 17, 2011
Messages
1,064
Reaction score
32
Location
United States
alright guys.. Im triying to block the account manager account in the website.. what I mean is block the account manager account in the website.. so players cant log in into the account manager account by the website..


so here is my accountmanager.php

PHP:
<?PHP
if($group_id_of_acc_logged == 2) 
$main_content .= '<h1>This account is blocked.'; 
else  
include('tutor.php');
if(!$logged)
        if($action == "logout")
                $main_content .= '<div class="TableContainer" >  <table class="Table1" cellpadding="0" cellspacing="0" >    <div class="CaptionContainer" >      <div class="CaptionInnerContainer" >        <span class="CaptionEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></span>        <span class="CaptionEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></span>        <span class="CaptionBorderTop" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);" ></span>        <span class="CaptionVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></span>        <div class="Text" >Logout Successful</div>        <span class="CaptionVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></span>        <span class="CaptionBorderBottom" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);" ></span>        <span class="CaptionEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></span>        <span class="CaptionEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></span>      </div>    </div>    <tr>      <td>        <div class="InnerTableContainer" >          <table style="width:100%;" ><tr><td>You have logged out of your '.$config['server']['serverName'].' account. In order to view your account you need to <a href="?subtopic=accountmanagement" >log in</a> again.</td></tr>          </table>        </div>  </table></div></td></tr>';
        else



here is the script that im using:

PHP:
f($group_id_of_acc_logged == 2) 
$main_content .= '<h1>This account is blocked.'; 
else  
include('tutor.php');


I already changed the account manager account group id to 2 so I dont know whats the problem :\ thank you guys ;P
 
Last edited:
Another solution is this:

Login ur admin account on the website, and afterward scroll down and click delete character, and delete account manager.
Now it's not able anymore to use account manager!
 
PHP:
$acc_id = $account_logged->getId();
if($acc_id == 1) die("This account has been blocked.");

This is a simple way to block.
 
I changed it a little, this would be better.

In config.php, add this.
PHP:
$config['site']['block_account_id'] = array(1, 2, 3, 4, 5);

Accountmanagement.php
PHP:
$acc_id = $account_logged->getId();
if($acc_id = $config['site']['block_account_id']) die("This account has been blocked.");
 
This is just blocking the account on website, has nothing to do with in-game.
 
Back
Top