".myiconv($webim_encoding,"utf-8",escape_with_cdata(message_to_html($msg)))."\n"; } function demo_process_thread($act,$lastid,$isuser,$canpost) { global $kind_for_agent, $kind_info, $kind_events, $kind_user, $kind_agent; if( $act == "refresh" ) { $lastid++; start_xml_output(); print(""); if($lastid == 1) { demo_print_message( array('ikind'=>$kind_for_agent,'created'=>time()-15,'tname'=>'', 'tmessage'=>getstring2('chat.came.from',array("http://google.com")))); demo_print_message( array('ikind'=>$kind_info,'created'=>time()-15,'tname'=>'', 'tmessage'=>getstring('chat.wait'))); demo_print_message( array('ikind'=>$kind_events,'created'=>time()-10,'tname'=>'', 'tmessage'=>getstring2("chat.status.operator.joined", array("Administrator")))); demo_print_message( array('ikind'=>$kind_agent,'created'=>time()-9,'tname'=>'Administrator', 'tmessage'=>getstring("demo.chat.welcome"))); demo_print_message( array('ikind'=>$kind_user,'created'=>time()-5,'tname'=>getstring("chat.default.username"), 'tmessage'=>getstring("demo.chat.question"))); } print(""); } } ?>