auth(); $inc->template(); $inc->monitor(); // Check to see if the person is not logged in $GLOBALS['auth']->check_logout(); $GLOBALS['template']->assign('chats', $GLOBALS['monitor']->chats()); $GLOBALS['template']->assign('visitors', $GLOBALS['monitor']->visitors()); $GLOBALS['template']->assign('sounds', $GLOBALS['monitor']->sounds()); $GLOBALS['template']->assign('onload', ' onload="'.$GLOBALS['monitor']->onload().'"'); // Include the javascript files $GLOBALS['template']->assign('javascript', 'misc'); // Display the output $GLOBALS['template']->display('monitor_content.tpl'); // do events that need to be done at the end of the file $inc->finished(); ?>