GIF89a;
Direktori : /home/serb/www/chat/inc/classes/ |
Current File : /home/serb/www/chat/inc/classes/doLogout.php |
<?php $this->sendBack(new Message('lout', null, null, (isset($msg))?$msg:'login')); $this->sendToAll(new Message('rmu', $this->userid)); ChatServer::logout(); $this->userid = null; $ar = $this->getAvailableRoom($GLOBALS['fc_config']['defaultRoom']); $this->roomid = $ar['id']; $this->room_is_permanent = $ar['ispermanent'] != ''; $this->save(); $stmt = new Statement('DELETE FROM '.$GLOBALS['fc_config']['db']['pref'].'connections WHERE id = ?',223); $stmt->process($this->id); ?>