From 22511c3edcafe15d4d3d70f1afede36486e487e7 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Thu, 22 Feb 2024 18:17:43 +0700 Subject: [PATCH] Minor improvements (#1410) * Minor improvements * Update modcp.php * Update CHANGELOG.md * Update modcp.php --- CHANGELOG.md | 2 +- modcp.php | 6 +++--- .../default/images/lang/ru/icon_code.gif | Bin 1310 -> 1306 bytes .../default/images/lang/uk/icon_code.gif | Bin 1310 -> 1306 bytes styles/templates/default/posting_editor.tpl | 6 ++---- 5 files changed, 6 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5580fb432..f207194c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,7 +17,7 @@ - Fixed Undefined variable $wordCensor [\#1400](https://github.com/torrentpier/torrentpier/pull/1400) ([belomaxorka](https://github.com/belomaxorka)) - Improved word censor 🤐 [\#1393](https://github.com/torrentpier/torrentpier/pull/1393) ([belomaxorka](https://github.com/belomaxorka)) - Used hashing for filenames generation [\#1385](https://github.com/torrentpier/torrentpier/pull/1385) ([belomaxorka](https://github.com/belomaxorka)) -- Minor improvements [\#1382](https://github.com/torrentpier/torrentpier/pull/1382), [\#1383](https://github.com/torrentpier/torrentpier/pull/1383), [\#1391](https://github.com/torrentpier/torrentpier/pull/1391), [\#1398](https://github.com/torrentpier/torrentpier/pull/1398), [\#1405](https://github.com/torrentpier/torrentpier/pull/1405), [\#1406](https://github.com/torrentpier/torrentpier/pull/1406), [\#1408](https://github.com/torrentpier/torrentpier/pull/1408), [\#1409](https://github.com/torrentpier/torrentpier/pull/1409) ([belomaxorka](https://github.com/belomaxorka)) +- Minor improvements [\#1382](https://github.com/torrentpier/torrentpier/pull/1382), [\#1383](https://github.com/torrentpier/torrentpier/pull/1383), [\#1391](https://github.com/torrentpier/torrentpier/pull/1391), [\#1398](https://github.com/torrentpier/torrentpier/pull/1398), [\#1405](https://github.com/torrentpier/torrentpier/pull/1405), [\#1406](https://github.com/torrentpier/torrentpier/pull/1406), [\#1408](https://github.com/torrentpier/torrentpier/pull/1408), [\#1409](https://github.com/torrentpier/torrentpier/pull/1409), [\#1410](https://github.com/torrentpier/torrentpier/pull/1410) ([belomaxorka](https://github.com/belomaxorka)) - Some bugfixes [\#1380](https://github.com/torrentpier/torrentpier/pull/1380) ([belomaxorka](https://github.com/belomaxorka)) - New Crowdin updates [\#1384](https://github.com/torrentpier/torrentpier/pull/1384), [\#1389](https://github.com/torrentpier/torrentpier/pull/1389), [\#1392](https://github.com/torrentpier/torrentpier/pull/1392), [\#1402](https://github.com/torrentpier/torrentpier/pull/1402), [\#1403](https://github.com/torrentpier/torrentpier/pull/1403) ([Exileum](https://github.com/Exileum)) diff --git a/modcp.php b/modcp.php index 1886b1626..a151eb0cc 100644 --- a/modcp.php +++ b/modcp.php @@ -69,6 +69,9 @@ function validate_mode_condition($request_index, $mod_action = '') return (isset($_REQUEST[$request_index]) || (isset($_POST['mod_action']) && $_POST['mod_action'] === $mod_action)); } +// Start session management +$user->session_start(['req_login' => true]); + // Obtain initial vars $forum_id = $_REQUEST['f'] ?? 0; $topic_id = $_REQUEST['t'] ?? 0; @@ -129,9 +132,6 @@ if ($topic_id) { bb_die('Invalid request'); } -// Start session management -$user->session_start(['req_login' => true]); - // Check if user did or did not confirm. If they did not, forward them to the last page they were on if (isset($_POST['cancel']) || IS_GUEST) { $redirect = 'index.php'; diff --git a/styles/templates/default/images/lang/ru/icon_code.gif b/styles/templates/default/images/lang/ru/icon_code.gif index 5afd6e2c7010c131047b37584eb931e4a9a46326..b3d65a3754e69e9e830dbfcfa0aa8d11d7c2d761 100644 GIT binary patch delta 754 zcmV2Av%{~s$FjW1xWUc5#LvLS&b-3P z%hB1+)7r_-)y~n?-QeU*Y?4fCkxp%sO>B}`b(dOpm|J(5Tz8pUUv`*gf1PN6o@;}l zaE79BhoW+bqjrm?h?%aOs=S(~x1FlGq_M%HuDqzT!MDH3zQxWwVT(*`k+r?X!pP6S z#?8&q)!NcaSx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lq(cWK1`M1xpkzdc6G|qePtU~wA3hVKbm_yt zf1e6U1ks-eK{TO62>%5bgcAHM*oP7%1R>!Q{`JuSe-nA(1sWW7$e|A~4B>QWAb~@Y zObofg3on?U#1~dP`2r9{J|Kl350o)c8esfk=9y@s3C5ZcMDRxhU`(-QnSX!*!JT;K z2?m@IP&5W0fCegPpj3zfh@pT;kf;O_P!YzUkOC@!7-9q>2uB)as_CW^4H6IlJ9Phm AhX4Qo diff --git a/styles/templates/default/posting_editor.tpl b/styles/templates/default/posting_editor.tpl index 97dab7090..fb8118171 100644 --- a/styles/templates/default/posting_editor.tpl +++ b/styles/templates/default/posting_editor.tpl @@ -59,16 +59,14 @@ ajax.callback.posts = function(data) { - - +  - +