2016-01-10 11:01:49 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class main_account_getQuitCountdown {
|
|
|
|
|
2024-12-31 00:25:05 +01:00
|
|
|
public function __construct($lib) {
|
2016-01-10 11:01:49 +01:00
|
|
|
$this->lib = $lib;
|
|
|
|
$this->db = $this->lib->game->db;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function run($uid) {
|
|
|
|
$q = $this->db->query("SELECT quit_ts FROM account WHERE id=$uid");
|
|
|
|
if ($q && dbCount($q) == 1) {
|
|
|
|
list($quit) = dbFetchArray($q);
|
|
|
|
} else {
|
|
|
|
$quit = null;
|
|
|
|
}
|
|
|
|
return $quit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|