- Code: Select all
require_once dirname(__FILE__)."/src/phpfreechat.class.php";
$params = array();
$params["title"] = "Chat Rooms";
$params["nick"] = "guest".rand(1,1000); // setup the intitial nickname
$params['firstisadmin'] = true;
//$params["isadmin"] = true; // makes everybody admin: do not use it on production servers ;)
$params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
$params["debug"] = false;
$params["theme"] = "msn";
$parms["display_pfc_logo"] = false;
$parms["max_msg"] = 0;
$parms["quit_on_closedwindow"] = true;
$parms["timeout"] = 360000;
$params["channels"] = array("Anything Goes");
$chat = new phpFreeChat( $params );
I'm using v1.5. Is this a bug, or is it just me?