query( "select {chatthread}.*, {chatgroup}.vclocalname as groupName " . "from {chatthread} left join {chatgroup} on {chatthread}.groupid = {chatgroup}.groupid " . "where threadid = ?", array($id), array('return_rows' => Database::RETURN_ONE_ROW) ); $thread = Thread::createFromDbInfo($thread_info); return array( 'thread' => $thread, 'groupName' => $thread_info['groupName'] ); } if (isset($_GET['threadid'])) { $threadid = verifyparam("threadid", "/^(\d{1,9})?$/", ""); $lastid = -1; $page['threadMessages'] = get_messages($threadid, "html", false, $lastid); $page['thread_info'] = thread_info($threadid); } prepare_menu($operator, false); start_html_output(); require('../view/thread_log.php'); ?>