Hello, i’m trying to integrate PHPFreeChat into my modx based site, now i’m using
PHPFreeChat 1.2, it works propertly in Opera browser, but when i’m trying to login to chat with Internet Explorer it shows an error. (PHPFreeChat 0.9.3 works fine in IE and Opera, but this version is too old

)
This is my ’PHPFreeChat’ snippet:
<?php
global $modx;
$snipPath = $modx->config["base_path"]."assets/snippets/";
include_once($snipPath . "/phpfreechat/src/phpfreechat.class.php");
$params = array();
$params["client_script_path"] = "/storage/home/srv15311/htdocs/index.php";
$params["title"] = "Chat Room";
$params["refresh_delay"] = 2000; // 2000ms = 2s
$params["nick"] = iconv("ISO-8859-1", "UTF-8", $_SESSION['webShortname']);
$params["serverid"] = md5(__FILE__);
$chat = new phpFreeChat( $params );
$modx->regClientStartupScript($chat->printJavascript());
$modx->regClientCSS($chat->printStyle());
return $chat->printChat();
?>