anchor.diff:                              {xmlelement, "li",[],[
                                   {xmlelement, "label", [{"for", "password"}], [{xmlcdata, "Password"}]},
                                   {xmlelement, "input", [{"type","password"},{"name","password"}], []}
  +                            ]}
  +                        ]}
  +                    ]},
  +                    {xmlelement, "fieldset",[],[
  +                        {xmlelement, "legend",[],[{xmlcdata, "Connection Options"}]},
  +                        {xmlelement, "ol",[],[
  +                            {xmlelement, "li",[],[
  +                                {xmlelement, "label", [{"for","lang"}], [{xmlcdata, "Language"}]},
  +                                {xmlelement, "input", [{"type","text"},{"name","lang"},{"value",?LANG}], []}
  +                            ]},
  +                            {xmlelement, "li",[],[
  +                                {xmlelement, "label", [{"for","wait"}], [{xmlcdata, "Wait"}]},
  +                                {xmlelement, "input", [{"type","text"},{"name","wait"},{"value",?WAIT}], []}
  +                            ]},
  +                            {xmlelement, "li",[],[
  +                                {xmlelement, "label", [{"for","hold"}], [{xmlcdata, "Hold"}]},
  +                                {xmlelement, "input", [{"type","text"},{"name","hold"},{"value",?HOLD}], []}
  +                            ]},
  +                            {xmlelement, "li",[],[
  +                                {xmlelement, "label", [{"for","window"}], [{xmlcdata, "Window"}]},
  +                                {xmlelement, "input", [{"type","text"},{"name","window"},{"value",?WINDOW}], []}
  +                            ]},
  +                            {xmlelement, "li",[],[
  +                                {xmlelement, "label", [{"for","content"}], [{xmlcdata, "Content"}]},
  +                                {xmlelement, "input", [{"type","text"},{"name","content"},{"value",?CONTENT}], []}
  +                            ]},
  +                            {xmlelement, "li",[],[
  +                                {xmlelement, "label", [{"for","ver"}], [{xmlcdata, "BOSH Version"}]},
  +                                {xmlelement, "input", [{"type","text"},{"name","ver"},{"value",?VER}], []}
  +                            ]},
  +                            {xmlelement, "li",[],[
  +                                {xmlelement, "label", [{"for","xmpp_version"}], [{xmlcdata, "XMPP Version"}]},
  +                                {xmlelement, "input", [{"type","text"},{"name","xmpp_version"},{"value",?XMPP_VERSION}], []}
                               ]}
                           ]}
                       ]},
  
positive.code:             unauthorized
      end.
      
  bind(SJID, Password, IP) ->
      #jid{user = User, server = Server, resource = Resource} = jlib:string_to_jid(SJID),
      RidSessionCreate  = list_to_integer(randoms:get_string()),
      RidAuth           = RidSessionCreate  + 1,
      RidSessionRestart = RidAuth           + 1,
  
negative.code: -include("ejabberd.hrl").
  -include("jlib.hrl").
  -include("ejabberd_http.hrl").
  
  -define(LANG,         "en").
  -define(WAIT,         "60").
  -define(HOLD,         "1").
  -define(WINDOW,       "5").
  -define(CONTENT,      "text/xml; charset=utf-8").
  -define(VER,          "1.6").
  -define(XMPP_VERSION, "1.0").
  
  -record(binding, {jid, sid, rid}).
  
  