GIF89a;
Direktori : /home/serb/public_html/chat/inc/classes/ |
Current File : /home/serb/public_html/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); ?>