This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var fridayTime = function() { | |
| var now = new Date(), | |
| day = now.getDay(), | |
| date = now.getDate(), | |
| fridayDate = date + (5 - day), | |
| friday = new Date(2016, now.getMonth(), fridayDate), | |
| timeDiff = Math.abs(friday.getTime() - now.getTime()), | |
| msToTime = function(s) { | |
| var ms = s % 1000; | |
| s = (s - ms) / 1000; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| Password logger for wordpress | |
| */ | |
| function log_login_success($username) { | |
| log_login_attempts($username, true); | |
| } | |
| function log_login_fail($username) { | |
| log_login_attempts($username, false); |
NewerOlder