Stud.IP  2.0 Revision 48548
 All Data Structures Namespaces Files Functions Variables Pages
chat_config.php File Reference

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

Variable Documentation

array $chatCmd
Initial value:
array("quit" => _(" [msg] - Sie verlassen den Chat mit der Botschaft [msg]"),
"color" => _(" [colorcode] - Ihre Schriftfarbe wird auf [colorcode] gesetzt"),
"me" => _(" [msg] - Ihr Name wird zusammen mit [msg] vom Chatbot ausgegeben"),
"private" => _(" [username][msg] - Die Botschaft [msg] wird geheim an [username] übermittelt"),
"help" => _(" - Zeigt diesen Hilfetext"),
"kick" => _(" [username] - Wirft [username] aus dem Chat wenn Sie Chat-Admin sind, mit /kick all werfen Sie alle anderen Nutzer aus dem Chat"),
"sms" => _(" [username][msg] - Verschickt eine systeminterne SMS [msg] an [username]"),
"invite" => _(" [username][msg] - Verschickt eine Chat-Einladung an [username] mit optionaler Nachricht [msg]"),
"lock" => _(" - Setzt ein zufälliges Paßwort und wirft alle NutzerInnen aus dem Chat, die nicht Chat-Admins sind."),
"unlock" => _(" - Ein eventuell gesetztes Passwort wird gelöscht, der Chat wird damit wieder frei zugänglich."),
"password" => _(" [password] - Setzt das Passwort für den Chat, wenn [password] leer ist wird ein eventuell vorhandenes Passwort gelöscht"),
"log" => _(" [start | stop | send] - Startet, beendet oder versendet eine Aufzeichnung, wenn Sie Chat-Admin sind"))

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