- Code: Select all
if (!defined('MODULE_FILE')) {
die ("You can't access this file directly...");
}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
function theindex() {
include("header.php");
OpenTable();
require_once ("modules/Chat/phpfreechat-0.9.3/src/phpfreechat.class.php"); // adjust to your own path
$params = array();
$params["nick"] = "guest".rand(1,10); // setup the intitial nickname
$params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
$chat = new phpFreeChat( $params );
$chat->printJavascript();
$chat->printStyle();
$chat->printChat();
CloseTable();
include("footer.php");
}
switch ($op) {
default:
theindex();
break;
}
It looks good, but it does not connect...
Any clue !?
Thanks,
Arlin