diff --git a/CHANGELOG.md b/CHANGELOG.md index b49e235c..fa8c6638 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,7 @@ - Release v2.1.5-2023.10 π - Updated utf8 & reflection type hint classes [\#320](https://github.com/torrentpier/torrentpier-lts/pull/320) ([belomaxorka](https://github.com/belomaxorka)) - Updated Text_LangCorrect class [\#309](https://github.com/torrentpier/torrentpier-lts/pull/309) ([belomaxorka](https://github.com/belomaxorka)) -- Minor improvements [\#297](https://github.com/torrentpier/torrentpier-lts/pull/297), [\#298](https://github.com/torrentpier/torrentpier-lts/pull/298), [\#300](https://github.com/torrentpier/torrentpier-lts/pull/300), [\#301](https://github.com/torrentpier/torrentpier-lts/pull/301), [\#302](https://github.com/torrentpier/torrentpier-lts/pull/302), [\#303](https://github.com/torrentpier/torrentpier-lts/pull/303), [\#305](https://github.com/torrentpier/torrentpier-lts/pull/305), [\#306](https://github.com/torrentpier/torrentpier-lts/pull/306), [\#307](https://github.com/torrentpier/torrentpier-lts/pull/307), [\#310](https://github.com/torrentpier/torrentpier-lts/pull/310), [\#312](https://github.com/torrentpier/torrentpier-lts/pull/312), [\#313](https://github.com/torrentpier/torrentpier-lts/pull/313), [\#315](https://github.com/torrentpier/torrentpier-lts/pull/315), [\#316](https://github.com/torrentpier/torrentpier-lts/pull/316), [\#317](https://github.com/torrentpier/torrentpier-lts/pull/317), [\#319](https://github.com/torrentpier/torrentpier-lts/pull/319), [\#321](https://github.com/torrentpier/torrentpier-lts/pull/321), [\#322](https://github.com/torrentpier/torrentpier-lts/pull/322) ([belomaxorka](https://github.com/belomaxorka)) +- Minor improvements [\#297](https://github.com/torrentpier/torrentpier-lts/pull/297), [\#298](https://github.com/torrentpier/torrentpier-lts/pull/298), [\#300](https://github.com/torrentpier/torrentpier-lts/pull/300), [\#301](https://github.com/torrentpier/torrentpier-lts/pull/301), [\#302](https://github.com/torrentpier/torrentpier-lts/pull/302), [\#303](https://github.com/torrentpier/torrentpier-lts/pull/303), [\#305](https://github.com/torrentpier/torrentpier-lts/pull/305), [\#306](https://github.com/torrentpier/torrentpier-lts/pull/306), [\#307](https://github.com/torrentpier/torrentpier-lts/pull/307), [\#310](https://github.com/torrentpier/torrentpier-lts/pull/310), [\#312](https://github.com/torrentpier/torrentpier-lts/pull/312), [\#313](https://github.com/torrentpier/torrentpier-lts/pull/313), [\#315](https://github.com/torrentpier/torrentpier-lts/pull/315), [\#316](https://github.com/torrentpier/torrentpier-lts/pull/316), [\#317](https://github.com/torrentpier/torrentpier-lts/pull/317), [\#319](https://github.com/torrentpier/torrentpier-lts/pull/319), [\#321](https://github.com/torrentpier/torrentpier-lts/pull/321), [\#322](https://github.com/torrentpier/torrentpier-lts/pull/322), [\#323](https://github.com/torrentpier/torrentpier-lts/pull/323) ([belomaxorka](https://github.com/belomaxorka)) ## [v2.1.5-2023.09](https://github.com/torrentpier/torrentpier-lts/tree/v2.1.5-2023.09) (2023-10-04) [Full Changelog](https://github.com/torrentpier/torrentpier-lts/compare/v2.1.5-2023.08-HotFix...v2.1.5-2023.09) diff --git a/library/includes/ucp/register.php b/library/includes/ucp/register.php index f7f988c7..2248994a 100644 --- a/library/includes/ucp/register.php +++ b/library/includes/ucp/register.php @@ -164,10 +164,16 @@ $cur_pass_valid = $adm_edit; foreach ($profile_fields as $field => $can_edit) { + // ΠΡΠΎΠ²Π΅ΡΠΊΠ° Π½Π° Π²ΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎΡΡΡ ΡΠ΅Π΄Π°ΠΊΡΠΈΡΠΎΠ²Π°Π½ΠΈΡ + if ((bool)$can_edit === false) + { + continue; + } + switch ($field) { /** - * ΠΠΊΡΠΈΠ²Π°ΡΠΈΡ (edit, reg) + * ΠΠΊΡΠΈΠ²Π°ΡΠΈΡ (edit) */ case 'user_active': $active = isset($_POST['user_active']) ? (int) $_POST['user_active'] : $pr_data['user_active']; @@ -191,7 +197,7 @@ foreach ($profile_fields as $field => $can_edit) { $errors[] = $err; } - if ($can_edit && $username != $pr_data['username'] || $mode == 'register') + if ($username != $pr_data['username'] || $mode == 'register') { $pr_data['username'] = $username; $db_data['username'] = $username; @@ -322,7 +328,7 @@ foreach ($profile_fields as $field => $can_edit) break; /** - * ΠΠΎΠ» (edit, reg) + * ΠΠΎΠ» (edit) */ case 'user_gender': $user_gender = isset($_POST['user_gender']) ? (int) $_POST['user_gender'] : $pr_data['user_gender']; @@ -366,7 +372,7 @@ foreach ($profile_fields as $field => $can_edit) break; /** - * opt (edit) + * opt (edit, reg) */ case 'user_opt': $user_opt = $pr_data['user_opt']; @@ -527,7 +533,7 @@ foreach ($profile_fields as $field => $can_edit) break; /** - * ΠΠ½ΡΠ΅ΡΠ΅ΡΡ + * ΠΠ½ΡΠ΅ΡΠ΅ΡΡ (edit) */ case 'user_interests': $interests = isset($_POST['user_interests']) ? (string) $_POST['user_interests'] : $pr_data['user_interests']; @@ -541,7 +547,7 @@ foreach ($profile_fields as $field => $can_edit) break; /** - * Skype + * Skype (edit) */ case 'user_skype': $skype = isset($_POST['user_skype']) ? (string) $_POST['user_skype'] : $pr_data['user_skype']; @@ -558,7 +564,7 @@ foreach ($profile_fields as $field => $can_edit) break; /** - * Twitter + * Twitter (edit) */ case 'user_twitter': $twitter = isset($_POST['user_twitter']) ? (string) $_POST['user_twitter'] : $pr_data['user_twitter']; diff --git a/poll.php b/poll.php index 71a9ca23..2b8332fb 100644 --- a/poll.php +++ b/poll.php @@ -139,7 +139,7 @@ switch ($mode) bb_die($lang['NEW_POLL_ADDED']); break; - // ΡΠ΅Π΄Π°ΠΊΡΠΎΡΠΎΠ²Π°Π½ΠΈΠ΅ + // ΡΠ΅Π΄Π°ΠΊΡΠΈΡΠΎΠ²Π°Π½ΠΈΠ΅ case 'poll_edit': if (!$t_data['topic_vote']) { diff --git a/styles/templates/default/page_header.tpl b/styles/templates/default/page_header.tpl index 1b3ed403..fec5419e 100644 --- a/styles/templates/default/page_header.tpl +++ b/styles/templates/default/page_header.tpl @@ -286,7 +286,7 @@ if ( (typeof(window.opera) != "undefined" && window.opera.version() < 12) || (wi