1<?php
2
3require_once dirname(__FILE__)."/src/phpfreechat.class.php";
4$params = array();
5$params["title"] = "Quick chat";
6$params["nick"] = "guest".rand(1,1000);  // setup the intitial nickname
7$params['firstisadmin'] = true;
8//$params["isadmin"] = true; // makes everybody admin: do not use it on production servers ;)
9$params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
10$params["debug"] = false;
11$chat = new phpFreeChat( $params );
12
13?>
14<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
15<html>
16 <head>
17  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
18  <title>phpFreeChat- Sources Index</title>
19  <link rel="stylesheet" title="classic" type="text/css" href="style/generic.css" />
20  <link rel="stylesheet" title="classic" type="text/css" href="style/header.css" />
21  <link rel="stylesheet" title="classic" type="text/css" href="style/footer.css" />
22  <link rel="stylesheet" title="classic" type="text/css" href="style/menu.css" />
23  <link rel="stylesheet" title="classic" type="text/css" href="style/content.css" />
24 </head>
25 <body>
26
27  <?php $chat->printChat(); ?>
28
29</body></html>
30