<?php
session_start();
//*****************************************************************************
// For the implementation of the connection of the chat to your user management system from one
// Forum, CMS, etc. you just need the session variables below
// assign the user name in your system and assign the user a
// Create a link to this file. Note that the username is transferred without a password.
// So you are not allowed to create passwords for admins and mods in chat. For a chat user, this is
// Transfer of the username via the session var. $ _SESSION ['etchat_username'] from your
// system sufficient.
$username = $_SESSION['etchat_username'];
$gender = $_SESSION['etchat_gender']; //[optional] 'f' or 'm' system default 'n' if unset
// The admins and mods should be created in the chat without a PW!
// The class / Index.class.php should be deleted so that nobody can enter it as Afmin without authorization!
// IMPORTANT!
// In the config.php the option of name reservations should be switched off, if the connection
// is used in a user administration.
// >>>>>>>>>>>>>>>>>>>> $ allow_nick_registration = false; <<<<<<<<<<<<<<<<<<<<<
//---------------------------------------------------------------------------
// or as GET or POST transfer, but insecure and should be coded
// $username = $_REQUEST['etchat_username'];
// $gender = $_REQUEST['etchat_gender'];
//---------------------------------------------------------------------------
// Forwarding after logout (the session remains,
// otherwise the user will be kicked out of your system.)
// IMPORTANT!!! '... db1 _...' should correspond to the table prefix in config.php ($ prefix) !!!
$_SESSION['etchat_db1_logout_url']="http://www.Your_Webseite.de/aus_dem_chat_ausgeloggt.html";
##############################################################
# DO NOT EDIT BELOW ###############################################
##############################################################
function __autoload($class_name) {
require_once ('class/'.$class_name.'.class.php');
}
// initialise
new CheckUserName(true, $username, $gender);
?>
Category Forum
Panels and InfusionsLabels
Statistics
3 participants
Notifications
You are not receiving notifications from this thread.
Related Questions