template(); $inc->operator(); $inc->chat(); $inc->db(); if (isset($_GET['admin'])) { $GLOBALS['template']->assign('admin', 'true'); } else { $GLOBALS['template']->assign('admin', 'false'); } $GLOBALS['chat']->assign(addslashes($_GET['chatid'])); $GLOBALS['template']->assign('chatid', addslashes($_GET['chatid'])); $GLOBALS['template']->assign('showpic', $GLOBALS['operator']->showpic($GLOBALS['chat']->operatorid())); $GLOBALS['template']->assign('onload', ' onload="parent.window.Chat.refresh();parent.window.Chat.timer();" onunload="parent.window.Chat.save();"'); // Display the output $GLOBALS['template']->display('chat_top.tpl'); // do events that need to be done at the end of the file $inc->finished(); ?>