"; exit; } $newname = getrawparam('name'); rename_user($thread, $newname); setcookie($namecookie, $newname, 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; } ?>