$hawthorn = new hawthorn('23d70acbe28943b3548e500e297afb16', array('http://192.168.0.100:13370/'), $_GET['user'], $_GET['displayname'], $_GET['extra'], $_GET['permissions'], 'hawthorn.js', 'popup.html', 'reacquire.php'); // This test uses a load test channel in case you want to watch a load test. // To show it working, just get the auth key and display it. $hawthorn->getAuthKey('loadtestchan3', $hawthornKey, $hawthornKeyTime); ?> <p>Ok, got past init again. Key is <?php print $hawthornKey; ?> , time <?php print $hawthornKeyTime; ?> .</p> <?php // Print JS code that causes recent messages to be displayed. print $hawthorn->recent('loadtestchan3'); // Print link to chat in channel. print $hawthorn->linkToChat('loadtestchan3', 'Load test channel 3', 'Chat now!'); // For admins only, print server statistics link $isAdmin = strpos($_GET['permissions'], 'a') !== false; if ($isAdmin) { print $hawthorn->linkToStatistics(); } } else { ?> <form method="get" action="test.php"> <div> Username (lowercase letters/numbers only) <input type="text" name="user" /> </div> <div>