• 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!

Accountmanagement.php

Joined
Jun 19, 2009
Messages
1,852
Reaction score
5
Hello, when I log in on a banned account (Gesior's AAC), this error message appears:

Fatal error: Call to undefined method OTS_Account::getBanTime() in C:\xampp\htdocs\accountmanagement.php on line 31


LINE31:
PHP:
   if($account_logged->getBanTime() > 0)

What should I change?
 
A function (getBanTime()) is missing in Gesior AAC 0.3.6
The version from previous Gesior AAC cannot be used in the newest.
 
-.- I meant I'm using the newest Gesior AND Tfs.. or I probably misunderstood what u said... could you be more.. clear?
No, just remove/comment out that part from your accountmanagement.php until Gesior AAC dev team releases a working function getBanTime()
 
You're not a bother, simply add two forward slashes in front of that line and the linking curly bracket.
 
Actually, you should replace this:
PHP:
                        if($account_logged->getBanTime() > 0)
                                $welcome_msg = '<font color="red">Your account is banished until '.date("j F Y, G:i:s", $account_logged->getBanTime()).'!</font>';
                        else
                                $welcome_msg = '<font color="red">Your account is banished FOREVER!</font>';
with this:
PHP:
                        $welcome_msg = '<font color="red">Your account is banished!</font>';
or with this:
PHP:
                        /*if($account_logged->getBanTime() > 0)
                                $welcome_msg = '<font color="red">Your account is banished until '.date("j F Y, G:i:s", $account_logged->getBanTime()).'!</font>';
                        else*/
                                $welcome_msg = '<font color="red">Your account is banished!</font>';
 
Back
Top