Description
EtChatConfig
|
--DbConectionMaker
|
--CheckUserName
Located in File: /CheckUserName.class.php
Class CheckUserName, chat login class
LICENSE: CREATIVE COMMONS PUBLIC LICENSE "Namensnennung — Nicht-kommerziell 2.0"
Method Detail
Summary:
void
__construct
([
$user_application =
false], [
$username =
''], [
$gender =
''])
Constructor __construct (line 43)
void __construct(
[
$user_application = false], [
$username = ''], [
$gender = ''])
Overrides : DbConectionMaker::__construct() Constructor
Constructor, contains all once needed operations and steps to check the user, login him and s.o.
Parameters
- $user_application:
- $username:
- $gender:
Info
Method errorMessage (line 198)
bool errorMessage(
string
$message)
Print a error message, and close db connect
Parameters
- string $message: Outputmessage is status != 1, so the user cant be loggin to chat
Info
- access - private
- uses - ConnectDB::close
Method loginCounter (line 149)
bool loginCounter(
)
Checking how many logins the user have done in the last 3 Mutes and saves it to zhe cookie.
If more then is set in var _limit_logins_in_three_minutes, then the user will get a black-cookie for 3 minutes and an error message
Info
Method messageOnEnter (line 210)
bool messageOnEnter(
)
The login was sucessfull, so send a message on entrance to the system and close db connection
Info
Method userInChatNow (line 182)
bool userInChatNow(
string
$user)
Checks if this username is occupied now
Parameters
Info