MCPcopy Create free account
hub / github.com/GamerHack/GamerHack.github.io / activateAccount

Function activateAccount

702/WebActivator/frontend.js:117–141  ·  view source on GitHub ↗
(idx)

Source from the content-addressed store, hash-verified

115}
116
117function activateAccount(idx)
118{
119 mailbox.idx = idx;
120 var acc_id = ui[idx].id.value;
121 if(acc_id.length != 16)
122 acc_id = 'XXXXXXXXXXXXXXXX';
123 var binary_id = [];
124 for(var i = 7; i >= 0; i--)
125 {
126 var digit = parseInt(acc_id[2*i], 16) * 16 + parseInt(acc_id[2*i+1], 16);
127 if(digit != digit)
128 {
129 alert("Must be 16 characters long and only contain [0-9A-F]");
130 return;
131 }
132 binary_id.push(digit);
133 }
134 mailbox.action = 1;
135 mailbox.account_id = binary_id;
136 call_native();
137 fetchAccounts();
138 if(ui[idx].id.value == acc_id.toUpperCase())
139 alert("PSN ID set successfully!");
140 return false;
141}
142
143fetchAccounts();
144

Callers

nothing calls this directly

Calls 2

call_nativeFunction · 0.70
fetchAccountsFunction · 0.70

Tested by

no test coverage detected