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

Function activateAccount

672/frontend.js:147–171  ·  view source on GitHub ↗
(idx)

Source from the content-addressed store, hash-verified

145}
146
147function activateAccount(idx)
148{
149 mailbox.idx = idx;
150 var acc_id = ui[idx].id.value;
151 if(acc_id.length != 16)
152 acc_id = 'XXXXXXXXXXXXXXXX';
153 var binary_id = [];
154 for(var i = 7; i >= 0; i--)
155 {
156 var digit = parseInt(acc_id[2*i], 16) * 16 + parseInt(acc_id[2*i+1], 16);
157 if(digit != digit)
158 {
159 alert("Must be 16 characters long and only contain [0-9A-F]");
160 return;
161 }
162 binary_id.push(digit);
163 }
164 mailbox.action = 1;
165 mailbox.account_id = binary_id;
166 call_native();
167 fetchAccounts();
168 if(ui[idx].id.value == acc_id.toUpperCase())
169 alert("PSN ID set successfully!");
170 return false;
171}
172
173fetchAccounts();
174

Callers

nothing calls this directly

Calls 2

call_nativeFunction · 0.70
fetchAccountsFunction · 0.70

Tested by

no test coverage detected