/home/techb158/immovalet.ca/js
NameSizeModeActions
buttons.print.min.js18340666editdlrm
charisma.js155940666editdlrm
html2canvas.js880490666editdlrm
init-chart.js72480666editdlrm
jquery-1.12.3.min.js971830666editdlrm
jquery-2.2.3.min.js856630666editdlrm
jquery.autogrow-textarea.js21910666editdlrm
jquery.cookie.js19880666editdlrm
jquery.dataTables.js3896090666editdlrm
jquery.dataTables.min.js708960666editdlrm
jquery.dataTables.min1.js708960666editdlrm
jquery.history.js215710666editdlrm
jquery.iphone.toggle.js102060666editdlrm
jquery.noty.js86500666editdlrm
jquery.plugin.html2canvas.js30250666editdlrm
jquery.raty.min.js75610666editdlrm
jquery.uploadify-3.1.min.js462830666editdlrm
jspdf.min.js676720666editdlrm
owl.carousel.js928910666editdlrm
typeahead.min.js218120666editdlrm
_all-skins.js32780666editdlrm
_all-skins.min.js163370666editdlrm
Edit: /home/techb158/immovalet.ca/js/_all-skins.js (3278B)
/* * Copyright (C) 2013 peredur.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ function formhash(form, password) { // Create a new element input, this will be our hashed password field. var p = document.createElement("input"); // Add the new element to our form. form.appendChild(p); p.name = "p"; p.type = "hidden"; p.value = hex_sha512(password.value); // Make sure the plaintext password doesn't get sent. password.value = ""; // Finally submit the form. form.submit(); } function regformhash(form, uid, email, password, conf) { // Check each field has a value if (uid.value == '' || email.value == '' || password.value == '' || conf.value == '') { alert('Vous devez fournir tous les détails demandés. Veuillez réessayer'); return false; } // Check the username re = /^\w+$/; if(!re.test(form.username.value)) { alert("Le nom d'utilisateur ne doit contenir que des lettres, des chiffres et des traits de soulignement. Veuillez réessayer"); form.username.focus(); return false; } // Check that the password is sufficiently long (min 6 chars) // The check is duplicated below, but this is included to give more // specific guidance to the user if (password.value.length < 6) { alert('Les mots de passe doivent comporter au moins 6 caractères. Veuillez réessayer'); form.password.focus(); return false; } // At least one number, one lowercase and one uppercase letter // At least six characters var re = /(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{6,}/; if (!re.test(password.value)) { alert('Les mots de passe doivent contenir au moins un chiffre, une lettre minuscule et une lettre majuscule. Veuillez réessayer'); return false; } // Check password and confirmation are the same if (password.value != conf.value) { alert('Votre mot de passe et votre confirmation ne correspondent pas. Veuillez réessayer'); form.password.focus(); return false; } // Create a new element input, this will be our hashed password field. var p = document.createElement("input"); // Add the new element to our form. form.appendChild(p); p.name = "p"; p.type = "hidden"; p.value = hex_sha512(password.value); // Make sure the plaintext password doesn't get sent. password.value = ""; conf.value = ""; // Finally submit the form. form.submit(); return true; }