"; exit; } $newname = getrawparam('name'); rename_user($thread, $newname); $data = strtr(base64_encode(myiconv($webim_encoding,"utf-8",$newname)), '+/=', '-_,'); setcookie($namecookie, $data, time()+60*60*24*365); start_xml_output(); echo ""; exit; } else if( $act == "ping" ) { start_xml_output(); echo ""; exit; } else if( $act == "close" ) { if( $isuser || $thread['agentId'] == $operator['operatorid']) { close_thread($thread, $isuser); } start_xml_output(); echo ""; exit; } ?>