hamzakiller21

Untitled

Mar 23rd, 2014
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. function connexion(){
  2. var username = prompt("Username :", "");
  3. var password = prompt("Password :", "");
  4. var TheLists = new Array(3)
  5. {
  6. TheLists[0] = "CACHÉ:HIDDEN";
  7. }
  8. for (i = 0; i < TheLists.length; i++)
  9. {
  10. if (TheLists[i].indexOf(username) == 0)
  11. {
  12. var TheSplit = TheLists[i].split(":");
  13. var TheUsername = TheSplit[0];
  14. var ThePassword = TheSplit[1];
  15. if (username == TheUsername && password == ThePassword)
  16. {
  17. alert("Vous pouvez utiliser ce mot de passe pour valider ce challenge (en majuscule) / You ca use this password to validate this challenge (uppercase)");
  18. }
  19. }
  20. }
  21. }
Add Comment
Please, Sign In to add comment