Stud.IP
2.0 Revision 48548
|
Namespaces | |
namespace | Chat |
Variables | |
const | CHAT_FILE_NAME = "chat_data" |
const | CHAT_FILE_PATH = $GLOBALS['TMP_PATH'] |
const | CHAT_DB_HOST = $GLOBALS['DB_STUDIP_HOST'] |
const | CHAT_DB_USER = $GLOBALS['DB_STUDIP_USER'] |
const | CHAT_DB_PASS = $GLOBALS['DB_STUDIP_PASSWORD'] |
const | CHAT_DB_NAME = $GLOBALS['DB_STUDIP_DATABASE'] |
const | CHAT_DB_TABLE_NAME = "chat_data" |
const | CHAT_USER_KEY = 1 |
const | CHAT_DETAIL_KEY = 2 |
const | CHAT_MAX_MSG = 100 |
const | CHAT_IDLE_TIMEOUT = 1200 |
const | CHAT_ADMIN_IDLE_TIMEOUT = 7200 |
const | CHAT_SLEEP_TIME = 500000 |
const | CHAT_TO_PREV_TIME = 2.5 |
const | CHAT_NICKNAME = "fullname" |
$chatColors = array("black","blue","green","orange","indigo","darkred","red","darkblue","maroon","pink") | |
$chatCmd |
array $chatCmd |
Global array, contains chat commands with according help text
array $chatColors = array("black","blue","green","orange","indigo","darkred","red","darkblue","maroon","pink") |
Global array, contains pre-defined colors (use HTML compliant names)
const CHAT_ADMIN_IDLE_TIMEOUT = 7200 |
Time in seconds before chat admin gets kicked CHAT_ADMIN_IDLE_TIMEOUT
const CHAT_DB_HOST = $GLOBALS['DB_STUDIP_HOST'] |
database host (used only with ChatMysqlServer) CHAT_DB_HOST
const CHAT_DB_NAME = $GLOBALS['DB_STUDIP_DATABASE'] |
database name (used only with ChatMysqlServer) CHAT_DB_NAME
const CHAT_DB_PASS = $GLOBALS['DB_STUDIP_PASSWORD'] |
database password (used only with ChatMysqlServer) CHAT_DB_PASS
const CHAT_DB_TABLE_NAME = "chat_data" |
database tablename (used only with ChatMysqlServer) CHAT_DB_TABLE_NAME
const CHAT_DB_USER = $GLOBALS['DB_STUDIP_USER'] |
database user (used only with ChatMysqlServer) CHAT_DB_USER
const CHAT_DETAIL_KEY = 2 |
Used for shm access, do not alter CHAT_DETAIL_KEY
const CHAT_FILE_NAME = "chat_data" |
Shared Memory Key, must be unique (used only with ChatShmServer) CHAT_SHM_KEY Name of file used for data storage (used only with ChatFileServer) CHAT_FILE_NAME
const CHAT_FILE_PATH = $GLOBALS['TMP_PATH'] |
path used for data storage (used only with ChatFileServer) CHAT_FILE_NAME
const CHAT_IDLE_TIMEOUT = 1200 |
Time in seconds before chat user gets kicked CHAT_IDLE_TIMEOUT
const CHAT_MAX_MSG = 100 |
max Number of entries in one chat room CHAT_MAX_MSG
const CHAT_NICKNAME = "fullname" |
Show username or fullname in front of messages
CHAT_NICKNAME
const CHAT_SLEEP_TIME = 500000 |
Time in microseconds for client to sleep
A higher number means lower CPU usage on the server, but slower response times for the clients CHAT_SLEEP_TIME
const CHAT_TO_PREV_TIME = 2.5 |
Time seconds to 'ping' the clients
used to prevent browser timeouts CHAT_TO_PREV_TIME
const CHAT_USER_KEY = 1 |
Used for shm access, do not alter CHAT_USER_KEY