mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 01:09:21 +02:00
* reverted getLastLogin cause it was used by tibia11-login plugin
This commit is contained in:
parent
85c9a1e84d
commit
5266f33af5
@ -343,7 +343,17 @@ class OTS_Account extends OTS_Row_DAO implements IteratorAggregate, Countable
|
||||
return round(($this->data['lastday'] - time()) / (24 * 60 * 60), 3);
|
||||
//return $this->data['premdays'] - (date("z", time()) + (365 * (date("Y", time()) - date("Y", $this->data['lastday']))) - date("z", $this->data['lastday']));
|
||||
}
|
||||
|
||||
public function getLastLogin()
|
||||
{
|
||||
if( !isset($this->data['lastday']) )
|
||||
{
|
||||
throw new E_OTS_NotLoaded();
|
||||
}
|
||||
|
||||
return $this->data['lastday'];
|
||||
}
|
||||
|
||||
public function isPremium()
|
||||
{
|
||||
global $config;
|
||||
|
Loading…
x
Reference in New Issue
Block a user