diff --git a/classes/classloader.php b/classes/classloader.php index 12e1e47e..c8b72216 100644 --- a/classes/classloader.php +++ b/classes/classloader.php @@ -26,8 +26,6 @@ case 'Forums': $FileName = 'forums.class'; break; - case 'ForumsView': - $FileName = 'forumsview.class'; case 'Forum': $FileName = 'forum.class'; break; diff --git a/docs/CHANGES.txt b/docs/CHANGES.txt index b1f2e14a..794226e6 100644 --- a/docs/CHANGES.txt +++ b/docs/CHANGES.txt @@ -1,5 +1,8 @@ CHANGELOG +2013-07-23 by draculesti +New mod button to generate random user passwords + 2013-07-13 by draculesti Ability to quote locked and trashed threads diff --git a/sections/user/user.php b/sections/user/user.php index 9be798f2..e1c1cb74 100644 --- a/sections/user/user.php +++ b/sections/user/user.php @@ -1120,6 +1120,7 @@ function check_paranoia_here($Setting) { New password: + diff --git a/static/functions/user.js b/static/functions/user.js index b7e23ddb..5542fef8 100644 --- a/static/functions/user.js +++ b/static/functions/user.js @@ -217,3 +217,15 @@ function displayCommStats(stats) { } } } + +$(document).ready(function() { + $("#random_password").click(function() { + var length = 15, + charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_+-=<>?", + password = ""; + for (var i = 0, n = charset.length; i < length; ++i) { + password += charset.charAt(Math.floor(Math.random() * n)); + } + $('#change_password').val(password); + }); +});