- To the following line of code you can set a password used when you want to empty chat rooms (
replace "adminpass" with the password you want):
define('CADMPASS', 'adminpass');
- To empty chat rooms, access in your browser the file
chatfiles/setchat.php with
?mod=admin in URL. For example:
http://localhost/chatfiles/setchat.php?mod=admin
Then select the Chat Room you want to empty, and use the password set to CADMPASS.
- If your web site has a register /login script, and you want than only the logged users to can add texts in chat, set the value of
CHATADD to 0 . Then set
$_SESSION['username'] with the session your script uses to keep logged users; to the following code, in "setchat.php".
In this case, you must add session_start(); to the beginning of your PHP file, as you can see in "test.php" file.
define('CHATADD', 1);
if(CHATADD !== 1) {
if(isset($_SESSION['username'])) define('CHATUSER', $_SESSION['username']);
}
In the directory "chatex/" there are two additional WAV files: "