Source for file Chat.class.php
Documentation is available at
Chat.class.php
<?php
/**
* Class Chat, chat page
*
* LICENSE: CREATIVE COMMONS PUBLIC LICENSE "Namensnennung — Nicht-kommerziell 2.0"
*
*
@copyright
2009 <SEDesign />
*
@license
http://creativecommons.org/licenses/by-nc/2.0/de/
*
@version
$3.0.6$
*
@link
http://www.sedesign.de/de_produkte_chat-v3.html
*
@since
File available since Alpha 1.0
*/
class
Chat
extends
EtChatConfig
{
/**
* LangXml Obj for login page
*
@var
LangXml
*/
public
$lang
;
/**
* Constructor
*
*
@uses
LangXml object creation
*
@uses
LangXml::getLang() parser method
*
@return
void
*/
public
function
__construct
(
)
{
// call parent Constructor from class EtChatConfig
parent
::
__construct
(
)
;
// starts session in chat.php
session_start
(
)
;
// Sets charset and content-type for chat.php
header
(
'content-type: text/html; charset=utf-8'
)
;
// Disable Browser Chache
header
(
'Cache-Control: no-store, no-cache, must-revalidate, pre-check=0, post-check=0, max-age=0'
)
;
// For user reloader, if this documents is just reloaded "F5", the onlineUserReloader have to send all userdata even although there no changes in the online list.
unset
(
$_SESSION
[
'etchat_'
.
$this
->
_prefix
.
'reload_user_anz'
]
)
;
// if direct requested whithout a login
if
(
empty
(
$_SESSION
[
'etchat_'
.
$this
->
_prefix
.
'username'
]
))
{
header
(
'Location: ./'
)
;
return
false
;
}
// create new LangXml Object
$langObj
= new
LangXml
;
$this
->
lang
=
$langObj
->
getLang
(
)
->
chat_php
[
0
]
;
// initialize chat template
$this
->
initTemplate
(
)
;
}
/**
* Initializer for template
*
*
@return
void
*/
private
function
initTemplate
(
)
{
// Include Template
include_once
(
"styles/"
.
$_SESSION
[
'etchat_'
.
$this
->
_prefix
.
'style'
]
.
"/chat.tpl.html"
)
;
}
}
Documentation generated on Thu, 05 May 2011 14:05:55 +0000 by
phpDocumentor 1.4.3