diff --git a/.gitignore b/.gitignore index 4d1dfeb..3f8bcd6 100644 --- a/.gitignore +++ b/.gitignore @@ -41,11 +41,14 @@ local.properties ################# errors.log -config.php +_sakura/config/config.php content/images/avatars/* !content/images/avatars/.htaccess content/images/backgrounds/* !content/images/backgrounds/.htaccess +BingSiteAuth.xml +google*.html +logs/* ################# diff --git a/_sakura/components/Main.php b/_sakura/components/Main.php index 8390a41..5382a0d 100644 --- a/_sakura/components/Main.php +++ b/_sakura/components/Main.php @@ -464,4 +464,15 @@ class Main { } + // Calculate password entropy + public static function pwdEntropy($pw) { + + // Decode utf-8 chars + $pw = utf8_decode($pw); + + // Count the amount of unique characters in the password string and calculate the entropy + return count(count_chars($pw, 1)) * log(256, 2); + + } + } diff --git a/_sakura/templates/yuuno/global/footer.tpl b/_sakura/templates/yuuno/global/footer.tpl index bb9337d..5401379 100644 --- a/_sakura/templates/yuuno/global/footer.tpl +++ b/_sakura/templates/yuuno/global/footer.tpl @@ -2,29 +2,29 @@ diff --git a/_sakura/templates/yuuno/global/header.tpl b/_sakura/templates/yuuno/global/header.tpl index eff7a5e..00b42ae 100644 --- a/_sakura/templates/yuuno/global/header.tpl +++ b/_sakura/templates/yuuno/global/header.tpl @@ -149,12 +149,20 @@ - - - - - - - +
+ + +
+
+ + +
+
+ + +
+
+ +
{% endif %} diff --git a/content/data/yuuno/css/yuuno.css b/content/data/yuuno/css/yuuno.css index aafb485..eeb497f 100644 --- a/content/data/yuuno/css/yuuno.css +++ b/content/data/yuuno/css/yuuno.css @@ -1252,6 +1252,16 @@ textarea.inputStyling { box-shadow: 0 0 5px #8364A1; text-align: center; } +#headerLoginForm > div { + display: inline-block; +} +@media (max-width: 640px) { + #headerLoginForm > div { + display: block; + text-align: right; + padding-right: 2px; + } +} #headerLoginForm label { font-family: "Segoe UI", sans-serif; font-weight: 100; diff --git a/forum/favicon.ico b/forum/favicon.ico new file mode 100644 index 0000000..8f8c8a4 Binary files /dev/null and b/forum/favicon.ico differ diff --git a/main/authenticate.php b/main/authenticate.php index 9deb756..3c63b85 100644 --- a/main/authenticate.php +++ b/main/authenticate.php @@ -53,7 +53,7 @@ if(isset($_REQUEST['mode'])) { // Login check if(Users::checkLogin()) { - if($_REQUEST['mode'] != 'logout' || $_REQUEST['mode'] != 'legacypw') + if(!in_array($_REQUEST['mode'], ['logout', 'legacypw'])) $continue = false; } @@ -134,7 +134,7 @@ if(isset($_REQUEST['mode'])) { // Array containing "human understandable" messages $messages = [ - 'USER_NOT_EXIST' => 'The user you tried to activate does not exist.', + 'USER_NOT_EXIST' => 'The user you tried to activate does not exist (confirm the username/email combination).', 'USER_ALREADY_ACTIVE' => 'The user you tried to activate is already active.', 'SUCCESS' => 'The activation e-mail has been sent to the address associated with your account.' ]; diff --git a/manage/favicon.ico b/manage/favicon.ico new file mode 100644 index 0000000..8f8c8a4 Binary files /dev/null and b/manage/favicon.ico differ