" );
+ }
if($lastid == 1) {
demo_print_message(
array('ikind'=>$kind_for_agent,'created'=>time()-15,'tname'=>'',
- 'tmessage'=>getstring2('chat.came.from',array("http://google.com"))));
+ 'tmessage'=>getstring2('chat.came.from',array("http://google.com"))), $outformat);
demo_print_message(
array('ikind'=>$kind_info,'created'=>time()-15,'tname'=>'',
- 'tmessage'=>getstring('chat.wait')));
+ 'tmessage'=>getstring('chat.wait')), $outformat);
demo_print_message(
array('ikind'=>$kind_events,'created'=>time()-10,'tname'=>'',
- 'tmessage'=>getstring2("chat.status.operator.joined", array("Administrator"))));
+ 'tmessage'=>getstring2("chat.status.operator.joined", array("Administrator"))), $outformat);
demo_print_message(
array('ikind'=>$kind_agent,'created'=>time()-9,'tname'=>'Administrator',
- 'tmessage'=>getstring("demo.chat.welcome")));
+ 'tmessage'=>getstring("demo.chat.welcome")), $outformat);
demo_print_message(
array('ikind'=>$kind_user,'created'=>time()-5,'tname'=>getstring("chat.default.username"),
- 'tmessage'=>getstring("demo.chat.question")));
- if($canpost) {
+ 'tmessage'=>getstring("demo.chat.question")), $outformat);
+ if($canpost && $outformat == 'xml') {
demo_print_message(
array('ikind'=>$kind_info,'created'=>time()-5,'tname'=>'',
- 'tmessage'=>'Hint: type something in message field to see typing notification'));
+ 'tmessage'=>'Hint: type something in message field to see typing notification'), $outformat);
}
}
if($act == 'post') {
demo_print_message(
array('ikind'=>$isuser?$kind_user:$kind_agent,'created'=>time(),'tmessage'=>$postmessage,
- 'tname'=>$isuser?getstring("chat.default.username"):"Administrator"));
+ 'tname'=>$isuser?getstring("chat.default.username"):"Administrator"), $outformat);
+ }
+ if($outformat == "xml") {
+ print("");
+ } else {
+ print(
+ " |