diff --git a/.cliffignore b/.cliffignore new file mode 100644 index 000000000..187668fd1 --- /dev/null +++ b/.cliffignore @@ -0,0 +1,7 @@ +9766c534bddad8e82e6d19f9bad5cf70b9887f9a +92ce77ec0ec703c08a659419087a373f76e711f7 +2d53efc945c7747be1755d0b66557a86bdc12cbd +602137b65129b817811b80975a369ebde3270c6d +4eb26ae37e1f4c82a45961517ffeb54c20200408 +e59adce848a9e10ee5775254045cbbd915236b8b +9e0a64108d62236ab07b3f8d10e8c78269b8e1d1 diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 799818d98..c3a7bf266 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -1,7 +1,7 @@ name: Bug Report description: File a bug report title: "[Bug]" -labels: Bug +labels: [Bug] body: - type: markdown attributes: @@ -21,7 +21,7 @@ body: attributes: label: PHP & Platform description: Exact PHP and Platform (OS) versions your using. - placeholder: 8.1.2 - Ubuntu 22.04 x64 + placeholder: 8.2.2 - Ubuntu 22.04 x64 validations: required: true - type: checkboxes diff --git a/.github/ISSUE_TEMPLATE/feature---enhancement-request.md b/.github/ISSUE_TEMPLATE/feature---enhancement-request.md index dafdbd2ec..9f68fc3a6 100644 --- a/.github/ISSUE_TEMPLATE/feature---enhancement-request.md +++ b/.github/ISSUE_TEMPLATE/feature---enhancement-request.md @@ -2,6 +2,6 @@ name: Feature / Enhancement request about: Suggest an idea for TorrentPier title: "[Feature]" -labels: Feature, Enhancement +labels: [Feature, Enhancement] assignees: '' --- diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index c7302d736..f257360c6 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -6,8 +6,9 @@ on: - "v*.*.*" jobs: - changelog: - runs-on: ubuntu-latest + generate-changelog: + name: Generate changelog + runs-on: ubuntu-22.04 outputs: release_body: ${{ steps.git-cliff.outputs.content }} steps: @@ -15,72 +16,24 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - token: ${{ secrets.REPO_TOKEN }} - name: Generate a changelog uses: orhun/git-cliff-action@v4 id: git-cliff with: config: cliff.toml - args: v2.4.5-rc.2.. --verbose - env: - OUTPUT: CHANGELOG.md - GITHUB_REPO: ${{ github.repository }} + args: -vv --latest --no-exec --github-repo ${{ github.repository }} - name: Print the changelog run: cat "${{ steps.git-cliff.outputs.changelog }}" - - name: Commit changelog - run: | - git checkout master - git config --local user.name 'belomaxorka' - git config --local user.email 'roman25052006.kelesh@gmail.com' - set +e - git add CHANGELOG.md - git commit -m "release(preparing): Update CHANGELOG.md 📖" - git push https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git master - - checksums: - runs-on: ubuntu-latest - needs: - - changelog - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - ref: master - token: ${{ secrets.REPO_TOKEN }} - - - name: Generate checksums.md5 file - run: | - find . -type f -not -path "./.git/*" -exec md5sum {} \; > internal_data/checksums.md5 - - - name: Commit and push checksums.md5 if changed - run: | - git checkout master - git config --local user.name 'belomaxorka' - git config --local user.email 'roman25052006.kelesh@gmail.com' - - if git diff --quiet internal_data/checksums.md5; then - echo "No changes in internal_data/checksums.md5" - else - set +e - git add internal_data/checksums.md5 - git commit -m "release(preparing): Update checksums.md5 📄" - git push https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git master - fi - release: name: Create release - needs: - - checksums - - changelog - runs-on: ubuntu-latest + needs: [ generate-changelog ] + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 - - name: Set the release version shell: bash run: echo "RELEASE_VERSION=${GITHUB_REF:11}" >> $GITHUB_ENV @@ -88,16 +41,19 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: '8.1' + php-version: '8.2' - name: Install Composer dependencies - run: composer install --no-progress --prefer-dist --optimize-autoloader + run: composer install --no-dev --no-progress --prefer-dist --optimize-autoloader + + - name: Cleanup + run: php _cleanup.php && rm _cleanup.php - name: Create archive - id: create_zip + id: create-zip run: | ZIP_NAME="torrentpier-v${{ env.RELEASE_VERSION }}.zip" - zip -r "$ZIP_NAME" . -x ".git/*" ".github/*" + zip -r "$ZIP_NAME" . -x ".git/*" echo "ZIP_NAME=$ZIP_NAME" >> $GITHUB_OUTPUT - name: Publish to GitHub @@ -105,22 +61,20 @@ jobs: uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ secrets.GITHUB_TOKEN }} - file: ${{ steps.create_zip.outputs.ZIP_NAME }} - file_glob: true + file: ${{ steps.create-zip.outputs.ZIP_NAME }} overwrite: true tag: ${{ github.ref }} - release_name: "TorrentPier v${{ env.RELEASE_VERSION }}" - body: "${{ needs.changelog.outputs.release_body }}" + release_name: "v${{ env.RELEASE_VERSION }}" + body: "${{ needs.generate-changelog.outputs.release_body }}" - name: Publish to GitHub (pre-release) if: ${{ contains(github.ref, '-') }} uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ secrets.GITHUB_TOKEN }} - file: ${{ steps.create_zip.outputs.ZIP_NAME }} - file_glob: true + file: ${{ steps.create-zip.outputs.ZIP_NAME }} overwrite: true tag: ${{ github.ref }} - release_name: "TorrentPier v${{ env.RELEASE_VERSION }}" - body: "${{ needs.changelog.outputs.release_body }}" + release_name: "v${{ env.RELEASE_VERSION }}" + body: "${{ needs.generate-changelog.outputs.release_body }}" prerelease: true diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e1579e9a1..d4fd0b722 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,64 +7,39 @@ on: jobs: nightly: - runs-on: ubuntu-latest + name: Nightly builds 📦 + runs-on: ubuntu-22.04 steps: - - name: Checkout code + - name: Checkout code 🗳 uses: actions/checkout@v4 - - name: Setup PHP + - name: Setup PHP 🔩 uses: shivammathur/setup-php@v2 with: - php-version: '8.1' + php-version: '8.2' - - name: Install Composer dependencies - run: composer install --no-progress --prefer-dist --optimize-autoloader + - name: Install Composer dependencies 🪚 + run: composer install --no-dev --no-progress --prefer-dist --optimize-autoloader - - name: Get commit hash - id: get_commit_hash + - name: Get commit hash 🔗 + id: get-commit-hash run: | COMMIT_HASH=$(git rev-parse --short HEAD) echo "COMMIT_HASH=$COMMIT_HASH" >> $GITHUB_OUTPUT - - name: Create archive - id: create_zip + - name: Cleanup + run: php _cleanup.php && rm _cleanup.php + + - name: Create archive 🗞 + id: create-zip run: | - ZIP_NAME="torrentpier-${{ steps.get_commit_hash.outputs.COMMIT_HASH }}.zip" - zip -r "$ZIP_NAME" . -x ".git/*" ".github/*" + ZIP_NAME="torrentpier-${{ steps.get-commit-hash.outputs.COMMIT_HASH }}.zip" + zip -r "$ZIP_NAME" . -x ".git/*" echo "ZIP_NAME=$ZIP_NAME" >> $GITHUB_OUTPUT - - name: Upload Archive + - name: Upload Archive 📤 uses: actions/upload-artifact@v4 with: - name: TorrentPier - path: ${{ steps.create_zip.outputs.ZIP_NAME }} - - deploy: - name: 🎉 Deploy - runs-on: ubuntu-latest - steps: - - name: 🚚 Get latest code - uses: actions/checkout@v4 - - - name: 🔩 Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: '8.1' - - - name: 🖇 Install Composer dependencies - run: composer install --no-progress --prefer-dist --optimize-autoloader - - - name: 📂 Sync files - uses: SamKirkland/FTP-Deploy-Action@v4.3.5 - with: - server: ${{ secrets.FTP_SERVER }} - username: ${{ secrets.FTP_USERNAME }} - password: ${{ secrets.FTP_PASSWORD }} - server-dir: ${{ secrets.FTP_DIR }} - protocol: ${{ secrets.FTP_PROTOCOL }} - port: ${{ secrets.FTP_PORT }} - exclude: | - **/.git* - **/.git*/** - .env + name: TorrentPier-master + path: ${{ steps.create-zip.outputs.ZIP_NAME }} diff --git a/.github/workflows/schedule.yml b/.github/workflows/schedule.yml new file mode 100644 index 000000000..c1ad4f3c1 --- /dev/null +++ b/.github/workflows/schedule.yml @@ -0,0 +1,41 @@ +name: Changelog generation + +on: + schedule: + - cron: '0 0 * * *' + workflow_dispatch: + +jobs: + changelog: + name: Changelog generation + runs-on: ubuntu-22.04 + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + ref: master + token: ${{ secrets.REPO_TOKEN }} + + - name: Generate a changelog + uses: orhun/git-cliff-action@v4 + id: git-cliff + with: + config: cliff.toml + args: v2.4.6-alpha.4.. --verbose + env: + OUTPUT: CHANGELOG.md + GITHUB_REPO: ${{ github.repository }} + + - name: Print the changelog + run: cat "${{ steps.git-cliff.outputs.changelog }}" + + - name: Commit changelog + run: | + git checkout master + git config --local user.name 'belomaxorka' + git config --local user.email 'roman25052006.kelesh@gmail.com' + set +e + git add CHANGELOG.md + git commit -m "changelog: Update CHANGELOG.md 📖" + git push https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git master diff --git a/.gitignore b/.gitignore index fd7fa4bb3..dd0e1f365 100644 --- a/.gitignore +++ b/.gitignore @@ -4,8 +4,6 @@ ### TorrentPier ### *.log -/*.txt -*.integrity install.php_* composer-setup.php .env diff --git a/CHANGELOG.md b/CHANGELOG.md index 344a2f53f..deebe3d07 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,92 +2,112 @@ # 📖 Change Log -> [!NOTE] -> To view changelog from **v2.0.0** to **v2.4.5-rc.2** navigate to [HISTORY.md](HISTORY.md). -## [v2.4.5-rc.3](https://github.com/torrentpier/torrentpier/compare/v2.4.5-rc.2..v2.4.5-rc.3) (2025-02-06) +## [v2.8.3](https://github.com/torrentpier/torrentpier/compare/v2.8.2..v2.8.3) (2025-07-03) ### 🚀 Features -- *(announcer)* Added some disallowed ports by default ([#1767](https://github.com/torrentpier/torrentpier/pull/1767)) - ([46288ec](https://github.com/torrentpier/torrentpier/commit/46288ec19830c84aedb156e1f30d7ec8a0803e0d)) -- *(announcer)* Added `is_numeric()` checking for some fields ([#1766](https://github.com/torrentpier/torrentpier/pull/1766)) - ([096bb51](https://github.com/torrentpier/torrentpier/commit/096bb5124fa27d27c3e60031edc432d877f1c507)) -- *(announcer)* Added `event` verifying ([#1765](https://github.com/torrentpier/torrentpier/pull/1765)) - ([6a19323](https://github.com/torrentpier/torrentpier/commit/6a1932313801e55fbcfb047fdcef87266f472c33)) -- *(announcer)* Block browser by checking the `User-Agent` ([#1764](https://github.com/torrentpier/torrentpier/pull/1764)) - ([7b64b50](https://github.com/torrentpier/torrentpier/commit/7b64b508199af568472fe6ac2edf333a3e274a00)) -- *(announcer)* Block `User-Agent` strings that are too long ([#1763](https://github.com/torrentpier/torrentpier/pull/1763)) - ([a98f8f1](https://github.com/torrentpier/torrentpier/commit/a98f8f102a8253b0b22c80ef444fed1ec29177f3)) -- *(announcer)* Blocking all ports lower then `1024` ([#1762](https://github.com/torrentpier/torrentpier/pull/1762)) - ([1bc7e09](https://github.com/torrentpier/torrentpier/commit/1bc7e09ddbeaf680b86095eed9a80b8ebf6169b3)) -- *(cache)* Checking if extensions are installed ([#1759](https://github.com/torrentpier/torrentpier/pull/1759)) - ([7f31022](https://github.com/torrentpier/torrentpier/commit/7f31022cfca2acb28a5cba06961eeaf8d2c9de51)) -- *(captcha)* Added some new services 🤖 ([#1771](https://github.com/torrentpier/torrentpier/pull/1771)) - ([d413c71](https://github.com/torrentpier/torrentpier/commit/d413c717188c9bd906f715e7137955dc9a42a003)) -- *(environment)* Make configurable `TP_HOST` and `TP_PORT` ([#1780](https://github.com/torrentpier/torrentpier/pull/1780)) - ([e51e091](https://github.com/torrentpier/torrentpier/commit/e51e09159333382a77b809b5f1da5e152a713143)) -- *(installer)* Fully show non-installed extensions ([#1761](https://github.com/torrentpier/torrentpier/pull/1761)) - ([8fcc62d](https://github.com/torrentpier/torrentpier/commit/8fcc62d2a2fd41927b2f5dae215fe5bbf95f2c96)) -- *(installer)* More explanations ([#1758](https://github.com/torrentpier/torrentpier/pull/1758)) - ([48ab52a](https://github.com/torrentpier/torrentpier/commit/48ab52ac8674afcb607c8e49134316a3e117236a)) -- *(installer)* Check `Composer` dependencies after installing ([#1756](https://github.com/torrentpier/torrentpier/pull/1756)) - ([262b887](https://github.com/torrentpier/torrentpier/commit/262b8872a5b14068eb73d745adea6203c557e192)) -- *(installer)* More explanations ([#1754](https://github.com/torrentpier/torrentpier/pull/1754)) - ([fd6f1f8](https://github.com/torrentpier/torrentpier/commit/fd6f1f86a5e9216469cd648601ecb9ba875f9eb6)) -- *(installer)* Create `config.local.php` on local environment ([#1745](https://github.com/torrentpier/torrentpier/pull/1745)) - ([0d93b2c](https://github.com/torrentpier/torrentpier/commit/0d93b2c768c2965c12ac62e2f3b2886dc1ef31c2)) -- *(torrent)* Bring back old torrent file naming ([#1783](https://github.com/torrentpier/torrentpier/pull/1783)) - ([314c592](https://github.com/torrentpier/torrentpier/commit/314c592affbef4b8db48d562b9633aad27059a76)) -- *(workflow)* Automated deploy actual changes to `TorrentPier Demo` ([#1788](https://github.com/torrentpier/torrentpier/pull/1788)) - ([4333d6a](https://github.com/torrentpier/torrentpier/commit/4333d6aca4aeb8584ff8a8ef0bf76c537a3f371a)) -- Used `TORRENT_MIMETYPE` constant instead of hardcoded string ([#1757](https://github.com/torrentpier/torrentpier/pull/1757)) - ([4b0d270](https://github.com/torrentpier/torrentpier/commit/4b0d270c89ec06abed590504f6a0cb70076a9e59)) +- *(lang)* Added `RTL` languages support ([#2031](https://github.com/torrentpier/torrentpier/pull/2031)) - ([fd46d3d](https://github.com/torrentpier/torrentpier/commit/fd46d3d04ad3ab1453256b2ab620508e2ba33586)) +- *(updater)* Added exceptions logging ([#2026](https://github.com/torrentpier/torrentpier/pull/2026)) - ([51f2c70](https://github.com/torrentpier/torrentpier/commit/51f2c70d81b910012cdecd111b5b92c1dfd0d6f6)) + +### 🚜 Refactor + +- *(TorrentFileList)* Reduce duplication in root directory unset logic ([#2027](https://github.com/torrentpier/torrentpier/pull/2027)) - ([d4d8210](https://github.com/torrentpier/torrentpier/commit/d4d82101dd67c9f4cd86e0f6f909495696974354)) + + +## [v2.8.2](https://github.com/torrentpier/torrentpier/compare/v2.8.1..v2.8.2) (2025-06-30) ### 🐛 Bug Fixes -- *(announcer)* Null `event` exception ([#1784](https://github.com/torrentpier/torrentpier/pull/1784)) - ([b06e327](https://github.com/torrentpier/torrentpier/commit/b06e327cbb285a676814699eb5fb1fbc0e1f22e8)) -- *(bb_die)* HTML characters converting ([#1744](https://github.com/torrentpier/torrentpier/pull/1744)) - ([4f1c7e4](https://github.com/torrentpier/torrentpier/commit/4f1c7e40d82e52f81eba44ead501e1f01058cc4f)) -- *(debug)* Disabled `Bugsnag` reporting on local environment ([#1751](https://github.com/torrentpier/torrentpier/pull/1751)) - ([1f3b629](https://github.com/torrentpier/torrentpier/commit/1f3b629e9cea4d11fbf3cf29f575ba730bad898d)) -- *(installer)* Missing `gd` extension ([#1749](https://github.com/torrentpier/torrentpier/pull/1749)) - ([a1c519d](https://github.com/torrentpier/torrentpier/commit/a1c519d938b848edffcbf7fbbe6a3fdb9a5394f1)) -- *(youtube player)* Mixed content issue ([#1795](https://github.com/torrentpier/torrentpier/pull/1795)) - ([3c0a1d5](https://github.com/torrentpier/torrentpier/commit/3c0a1d5d0018daa87ad3914ea04078a9a6d05fc2)) -- Null `$bb_cfg['tp_instance_hash']` ([#1790](https://github.com/torrentpier/torrentpier/pull/1790)) - ([602137b](https://github.com/torrentpier/torrentpier/commit/602137b65129b817811b80975a369ebde3270c6d)) -- Incorrect peer country flag ([#1768](https://github.com/torrentpier/torrentpier/pull/1768)) - ([0f091eb](https://github.com/torrentpier/torrentpier/commit/0f091eb546e34923d9d1ab34be5faf92080ec198)) +- *(TorrentFileList)* Avoid `array_merge` reindexing for numeric folder names ([#2014](https://github.com/torrentpier/torrentpier/pull/2014)) - ([915e1d8](https://github.com/torrentpier/torrentpier/commit/915e1d817c61d2a4f0691b24ec1bc6577a9cd44b)) -### 📦 Dependencies +### 🚜 Refactor -- *(deps)* Bump jacklul/monolog-telegram from 3.1.0 to 3.2.0 ([#1776](https://github.com/torrentpier/torrentpier/pull/1776)) - ([420c92c](https://github.com/torrentpier/torrentpier/commit/420c92c0addf4dee91f3ae872517cb3224827a1f)) -- *(deps)* Bump filp/whoops from 2.16.0 to 2.17.0 ([#1777](https://github.com/torrentpier/torrentpier/pull/1777)) - ([a71609b](https://github.com/torrentpier/torrentpier/commit/a71609ba67a89480fabb7b62de450d9be09373fa)) -- *(deps)* Bump php-curl-class/php-curl-class from 11.0.0 to 11.0.1 ([#1753](https://github.com/torrentpier/torrentpier/pull/1753)) - ([ce32031](https://github.com/torrentpier/torrentpier/commit/ce32031a0fb14cdf6c3f4ba379b530cbb52b0fea)) -- *(deps)* Bump bugsnag/bugsnag from 3.29.1 to 3.29.2 ([#1752](https://github.com/torrentpier/torrentpier/pull/1752)) - ([f63d15c](https://github.com/torrentpier/torrentpier/commit/f63d15c49e3992837413b2c7a0160d599b44f2ef)) +- Use `DEFAULT_CHARSET` constant instead of hardcoded string ([#2011](https://github.com/torrentpier/torrentpier/pull/2011)) - ([7ac3359](https://github.com/torrentpier/torrentpier/commit/7ac335974baa44a8575bebb71ae2fbc0902d10e7)) -### 🗑️ Removed -- *(environment)* Extra `DB_CONNECTION` variable ([#1775](https://github.com/torrentpier/torrentpier/pull/1775)) - ([cd2786b](https://github.com/torrentpier/torrentpier/commit/cd2786bb69c74cec88a447f66750d014fc4d3612)) -- Some unused tracker config variables ([#1769](https://github.com/torrentpier/torrentpier/pull/1769)) - ([7f9df35](https://github.com/torrentpier/torrentpier/commit/7f9df35d3bd0e9d23284b8bd9c36a0f52158f5d7)) +## [v2.8.1](https://github.com/torrentpier/torrentpier/compare/v2.8.0..v2.8.1) (2025-06-24) -### 📚 Documentation +### 🐛 Bug Fixes -- Minor improvements ([#1750](https://github.com/torrentpier/torrentpier/pull/1750)) - ([3e850ac](https://github.com/torrentpier/torrentpier/commit/3e850ac724c43e813aa077b272b498e2b0477260)) +- *(filelist)* `Undefined property: FileTree::$length` when v2 torrent only ([#2004](https://github.com/torrentpier/torrentpier/pull/2004)) - ([7f4cc9d](https://github.com/torrentpier/torrentpier/commit/7f4cc9d3b9a5b87100f710cc60f636d6e7d5a34e)) +- *(ip-api)* Add error handling and logging for freeipapi.com requests ([#2006](https://github.com/torrentpier/torrentpier/pull/2006)) - ([f1d6e74](https://github.com/torrentpier/torrentpier/commit/f1d6e74e5d4c74b6e12e9e742f60f62e71783d11)) + + +## [v2.8.0](https://github.com/torrentpier/torrentpier/compare/v2.7.0..v2.8.0) (2025-06-21) + +### 🐛 Bug Fixes + +- *(template)* Handle L_ variables in template vars when not found in lang vars ([#1998](https://github.com/torrentpier/torrentpier/pull/1998)) - ([c6076c2](https://github.com/torrentpier/torrentpier/commit/c6076c2c278e9a423f3862670236b75bddeadd87)) + + +## [v2.7.0](https://github.com/torrentpier/torrentpier/compare/v2.6.0..v2.7.0) (2025-06-21) + +### 🚀 Features + +- *(database)* Add visual markers for Nette Explorer queries in debug panel ([#1965](https://github.com/torrentpier/torrentpier/pull/1965)) - ([2fd3067](https://github.com/torrentpier/torrentpier/commit/2fd306704f21febee7d53f4b4531601ce0cb81ce)) +- *(language)* Add new language variable for migration file and enhance template fallback logic ([#1984](https://github.com/torrentpier/torrentpier/pull/1984)) - ([a33574c](https://github.com/torrentpier/torrentpier/commit/a33574c28f2eb6267a74fa6c9d97fea86527157a)) +- *(migrations)* Implement Phinx database migration system ([#1976](https://github.com/torrentpier/torrentpier/pull/1976)) - ([fbde8cd](https://github.com/torrentpier/torrentpier/commit/fbde8cd421c9048afe70ddb41d0a9ed26d3fbef5)) +- *(test)* [**breaking**] Add comprehensive testing infrastructure with Pest PHP ([#1979](https://github.com/torrentpier/torrentpier/pull/1979)) - ([cc9d412](https://github.com/torrentpier/torrentpier/commit/cc9d412522938a023bd2b8eb880c4d2dd307c82a)) +- [**breaking**] Implement Language singleton with shorthand functions ([#1966](https://github.com/torrentpier/torrentpier/pull/1966)) - ([49717d3](https://github.com/torrentpier/torrentpier/commit/49717d3a687b95885fe9773f2597354aed4b2b60)) + +### 🐛 Bug Fixes + +- *(database)* Update affected rows tracking in Database class ([#1980](https://github.com/torrentpier/torrentpier/pull/1980)) - ([4f9cc9f](https://github.com/torrentpier/torrentpier/commit/4f9cc9fe0f7f4a85c90001a3f5514efdf04836da)) + +### 🚜 Refactor + +- *(database)* Enhance error logging and various fixes ([#1978](https://github.com/torrentpier/torrentpier/pull/1978)) - ([7aed6bc](https://github.com/torrentpier/torrentpier/commit/7aed6bc7d89f4ed31e7ed6c6eeecc6e08d348c24)) +- *(database)* Rename DB to Database and extract debug functionality ([#1964](https://github.com/torrentpier/torrentpier/pull/1964)) - ([6c0219d](https://github.com/torrentpier/torrentpier/commit/6c0219d53c7544b7d8a6374c0d0848945d32ae17)) +- *(stats)* Improve database row fetching in tr_stats.php ([#1985](https://github.com/torrentpier/torrentpier/pull/1985)) - ([728116d](https://github.com/torrentpier/torrentpier/commit/728116d6dc9cf4476cce572ced5e8a7ef529ead8)) ### ⚙️ Miscellaneous -- *(cd workflow)* Fixed release body creation ([#1807](https://github.com/torrentpier/torrentpier/pull/1807)) - ([cc679a8](https://github.com/torrentpier/torrentpier/commit/cc679a80246f3ff65136653025d826bf1458db3a)) -- *(changelog workflow)* Minor improvements ([#1802](https://github.com/torrentpier/torrentpier/pull/1802)) - ([15ca21f](https://github.com/torrentpier/torrentpier/commit/15ca21f03840281f7d4402959aa8bfb7d407b45b)) -- *(changelog workflow)* Some minor improvements ([#1801](https://github.com/torrentpier/torrentpier/pull/1801)) - ([2d53efc](https://github.com/torrentpier/torrentpier/commit/2d53efc945c7747be1755d0b66557a86bdc12cbd)) -- *(checksum workflow)* Fixed incorrect file path ([#1799](https://github.com/torrentpier/torrentpier/pull/1799)) - ([4eb5a9a](https://github.com/torrentpier/torrentpier/commit/4eb5a9adc61c4e116feb09208091efb914275da2)) -- *(cliff)* Changed emoji for dependencies ([#1755](https://github.com/torrentpier/torrentpier/pull/1755)) - ([55d4670](https://github.com/torrentpier/torrentpier/commit/55d467048370b51cd592982c8026702dca8813d5)) -- *(cliff)* Use blockquote for notice ([#1748](https://github.com/torrentpier/torrentpier/pull/1748)) - ([61e5592](https://github.com/torrentpier/torrentpier/commit/61e55925f312417bdb63c88a7c8939c3b2eb2ac5)) -- *(cliff)* Fixed typo ([#1747](https://github.com/torrentpier/torrentpier/pull/1747)) - ([4936af7](https://github.com/torrentpier/torrentpier/commit/4936af7d3d10f553d8586a14de249c32e50f3494)) -- *(cliff)* Notice about previous changelog file ([#1746](https://github.com/torrentpier/torrentpier/pull/1746)) - ([85395be](https://github.com/torrentpier/torrentpier/commit/85395be5e7c6a891c79ec72cf215894af097f819)) -- *(copyright)* Updated copyright year ([#1760](https://github.com/torrentpier/torrentpier/pull/1760)) - ([6697410](https://github.com/torrentpier/torrentpier/commit/6697410c1df6c8d9d7f511b1e984ae90d888ae0e)) -- *(database)* Use `DEFAULT ''` for `privmsgs_subject` ([#1786](https://github.com/torrentpier/torrentpier/pull/1786)) - ([387a258](https://github.com/torrentpier/torrentpier/commit/387a25870abd37b641b55ffd98e13f4aaecb73b1)) -- *(deploy action)* Specify some missing params ([#1789](https://github.com/torrentpier/torrentpier/pull/1789)) - ([6115900](https://github.com/torrentpier/torrentpier/commit/6115900b765752209a6ed1dfb83e4f0cbee2ae77)) -- *(emailer)* Use constants for email types ([#1794](https://github.com/torrentpier/torrentpier/pull/1794)) - ([c95d414](https://github.com/torrentpier/torrentpier/commit/c95d414ef63ca37118f1f660880cd58b4480c414)) -- *(integrity checker)* Disabled by default in `Demo mode` ([#1804](https://github.com/torrentpier/torrentpier/pull/1804)) - ([44be40c](https://github.com/torrentpier/torrentpier/commit/44be40c2e849c60eb4f10ca7e0bae0463791355e)) -- *(integrity checker)* Some enhancements ([#1797](https://github.com/torrentpier/torrentpier/pull/1797)) - ([09cafc2](https://github.com/torrentpier/torrentpier/commit/09cafc2285dd171cb2213ece9549993a3321527c)) -- *(issue template)* Improved `Feature request` template ([#1774](https://github.com/torrentpier/torrentpier/pull/1774)) - ([268f79d](https://github.com/torrentpier/torrentpier/commit/268f79d7259de67aa8877fcf7130ff0069469ab2)) -- *(issue template)* Improved `Bug report` template ([#1773](https://github.com/torrentpier/torrentpier/pull/1773)) - ([53ebfef](https://github.com/torrentpier/torrentpier/commit/53ebfef32c0e9016257e03b96ef96349e22d3e9b)) -- *(notify)* Hide notify checkbox in topic for guests ([#1793](https://github.com/torrentpier/torrentpier/pull/1793)) - ([8e4cd97](https://github.com/torrentpier/torrentpier/commit/8e4cd97734fc46f33459c4b00a0fe38b0597f92b)) -- *(readme)* Improved installation guide ([#1781](https://github.com/torrentpier/torrentpier/pull/1781)) - ([e579b81](https://github.com/torrentpier/torrentpier/commit/e579b816b4dc346b3242cb3d9db292ad05596c1f)) -- *(readme)* Minor improvements ([#1779](https://github.com/torrentpier/torrentpier/pull/1779)) - ([5b0ed02](https://github.com/torrentpier/torrentpier/commit/5b0ed020890a8f938df912f9215cccbda42b0317)) -- *(readme)* Added Caddy webserver ([#1778](https://github.com/torrentpier/torrentpier/pull/1778)) - ([970a028](https://github.com/torrentpier/torrentpier/commit/970a0282e3631c403029c959ffd46b21c5cad0cd)) -- *(workflow)* Refactored all workflows ([#1803](https://github.com/torrentpier/torrentpier/pull/1803)) - ([a29d57b](https://github.com/torrentpier/torrentpier/commit/a29d57b2f8673733bbfbea3fb96eebe841078d49)) -- *(workflow)* Trying combine `changelog workflow` with `checksums workflow` ([#1800](https://github.com/torrentpier/torrentpier/pull/1800)) - ([60c6057](https://github.com/torrentpier/torrentpier/commit/60c605778412335ce97d41489c3b6ee9c051454b)) -- Automated releases generation ([#1808](https://github.com/torrentpier/torrentpier/pull/1808)) - ([6c9372c](https://github.com/torrentpier/torrentpier/commit/6c9372c407327c9bb443b2ecf16eff64c0245c4b)) -- Automated releases generation ([#1806](https://github.com/torrentpier/torrentpier/pull/1806)) - ([bc74550](https://github.com/torrentpier/torrentpier/commit/bc745502940207f3f24c83057cd680fe69355961)) -- Automated releases generation ([#1805](https://github.com/torrentpier/torrentpier/pull/1805)) - ([425e2e8](https://github.com/torrentpier/torrentpier/commit/425e2e87d5a7f097b961b1a14fbafcdabb9d1666)) -- Minor improvements ([#1796](https://github.com/torrentpier/torrentpier/pull/1796)) - ([8650ad3](https://github.com/torrentpier/torrentpier/commit/8650ad30f429ab14a03f44b26d7be7701f1985f1)) -- Update `cliff.toml` - ([254dca2](https://github.com/torrentpier/torrentpier/commit/254dca2b27c2d92421d3e639c80b0adf1172202f)) -- Minor improvements ([#1743](https://github.com/torrentpier/torrentpier/pull/1743)) - ([e73d650](https://github.com/torrentpier/torrentpier/commit/e73d65011fff0a8b8e1368eef61bbfb67e87eab8)) -- Enabled `$bb_cfg['integrity_check']` by defaul ([#1742](https://github.com/torrentpier/torrentpier/pull/1742)) - ([7e3601e](https://github.com/torrentpier/torrentpier/commit/7e3601e63aff73be1428969ca37dda3da2537d9b)) +- Update minimum `PHP` requirement to `8.2` ([#1987](https://github.com/torrentpier/torrentpier/pull/1987)) - ([9b322c7](https://github.com/torrentpier/torrentpier/commit/9b322c7093a634669e9f17a32ac42500f44f2496)) +- Removed useless `composer update` from workflows & installer ([#1986](https://github.com/torrentpier/torrentpier/pull/1986)) - ([423424e](https://github.com/torrentpier/torrentpier/commit/423424e9478e0772957014fb30f5e84158067af7)) +- Added --no-dev composer flag for some workflows ([#1982](https://github.com/torrentpier/torrentpier/pull/1982)) - ([e9a9e09](https://github.com/torrentpier/torrentpier/commit/e9a9e095768ba68aa5d5058a3e152ffaec916117)) +- Added `--no-dev` composer flag for some workflows ([#1981](https://github.com/torrentpier/torrentpier/pull/1981)) - ([e8cba5d](https://github.com/torrentpier/torrentpier/commit/e8cba5dd3fc83b616f83c24991f79dc7258c5df3)) -### ◀️ Revert -- Fix: Null `$bb_cfg['tp_instance_hash']` ([#1792](https://github.com/torrentpier/torrentpier/pull/1792)) - ([4eb26ae](https://github.com/torrentpier/torrentpier/commit/4eb26ae37e1f4c82a45961517ffeb54c20200408)) +## [v2.6.0](https://github.com/torrentpier/torrentpier/compare/v2.5.0..v2.6.0) (2025-06-18) + +### 🚀 Features + +- [**breaking**] Implement unified cache system with Nette Caching ([#1963](https://github.com/torrentpier/torrentpier/pull/1963)) - ([07a06a3](https://github.com/torrentpier/torrentpier/commit/07a06a33cd97b37f68b533a87cdb5f7578f2c86f)) +- Replace legacy database layer with Nette Database implementation ([#1961](https://github.com/torrentpier/torrentpier/pull/1961)) - ([f50b914](https://github.com/torrentpier/torrentpier/commit/f50b914cc18f777d92002baf2c812a635d5eed4b)) + +### 🐛 Bug Fixes + +- *(User)* Add null and array checks before session data operations ([#1962](https://github.com/torrentpier/torrentpier/pull/1962)) - ([e458109](https://github.com/torrentpier/torrentpier/commit/e458109eefc54d86a78a1ddb3954581524852516)) + + +## [v2.5.0](https://github.com/torrentpier/torrentpier/compare/v2.4.6-alpha.4..v2.5.0) (2025-06-18) + +### 🚀 Features + +- [**breaking**] Implement centralized Config class to replace global $bb_cfg array ([#1953](https://github.com/torrentpier/torrentpier/pull/1953)) - ([bf9100f](https://github.com/torrentpier/torrentpier/commit/bf9100fbfa74768edb01c62636198a44739d9923)) + +### 🐛 Bug Fixes + +- *(installer)* Strip protocol from TP_HOST to keep only hostname ([#1952](https://github.com/torrentpier/torrentpier/pull/1952)) - ([81bf67c](https://github.com/torrentpier/torrentpier/commit/81bf67c2be85d49e988b7802ca7e9738ff580031)) +- *(sql)* Resolve only_full_group_by compatibility issues in tracker cleanup ([#1951](https://github.com/torrentpier/torrentpier/pull/1951)) - ([37a0675](https://github.com/torrentpier/torrentpier/commit/37a0675adfb02014e7068f4aa82301e29f39eab6)) + +### 📦 Dependencies + +- *(deps)* Bump filp/whoops from 2.18.2 to 2.18.3 ([#1948](https://github.com/torrentpier/torrentpier/pull/1948)) - ([b477680](https://github.com/torrentpier/torrentpier/commit/b4776804a408217229caa327c79849cf13ce2aa5)) + +### 🚜 Refactor + +- *(censor)* [**breaking**] Migrate Censor class to singleton pattern ([#1954](https://github.com/torrentpier/torrentpier/pull/1954)) - ([74a564d](https://github.com/torrentpier/torrentpier/commit/74a564d7954c6f8745ebcffdcd9c8997e371d47a)) +- *(config)* [**breaking**] Encapsulate global $bb_cfg array in Config class ([#1950](https://github.com/torrentpier/torrentpier/pull/1950)) - ([5842994](https://github.com/torrentpier/torrentpier/commit/5842994782dfa62788f8427c55045abdbfb5b8e9)) + +### 📚 Documentation + +- Add Select class migration guide ([#1960](https://github.com/torrentpier/torrentpier/pull/1960)) - ([86abafb](https://github.com/torrentpier/torrentpier/commit/86abafb11469d14a746d12725b15cf6b7015ec44)) + +### ⚙️ Miscellaneous + +- *(_release.php)* Finally! Removed some useless params ([#1947](https://github.com/torrentpier/torrentpier/pull/1947)) - ([9c7d270](https://github.com/torrentpier/torrentpier/commit/9c7d270598c0153fb82f4b7ad96f5b59399b2159)) +- *(cliff)* Add conventional commit prefix to changelog message ([#1957](https://github.com/torrentpier/torrentpier/pull/1957)) - ([b1b2618](https://github.com/torrentpier/torrentpier/commit/b1b26187579f6981165d85c316a3c5b7199ce2ee)) + -## New Contributors ❤️ -* [@actions-user](https://github.com/actions-user) made their first contribution diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 000000000..68bd96ae8 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,144 @@ +# CLAUDE.md + +This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. + +## Project Overview + +TorrentPier is a BitTorrent tracker engine written in PHP, designed for hosting BitTorrent communities with forum functionality. The project is in active modernization, transitioning from legacy code to modern PHP practices while maintaining backward compatibility. + +## Technology Stack & Architecture + +- **PHP 8.2+** with modern features +- **MySQL/MariaDB/Percona** database +- **Nette Database** with backward-compatible wrapper +- **Composer** for dependency management +- **Custom BitTorrent tracker** implementation + +## Key Directory Structure + +- `/src/` - Modern PHP classes (PSR-4 autoloaded as `TorrentPier\`) +- `/library/` - Core application logic and legacy code +- `/admin/` - Administrative interface +- `/bt/` - BitTorrent tracker functionality (announce.php, scrape.php) +- `/styles/` - Templates, CSS, JS, images +- `/internal_data/` - Cache, logs, compiled templates +- `/install/` - Installation scripts and configuration examples +- `/migrations/` - Database migration files (Phinx) + +## Entry Points & Key Files + +- `index.php` - Main forum homepage +- `tracker.php` - Torrent search/browse interface +- `bt/announce.php` - BitTorrent announce endpoint +- `bt/scrape.php` - BitTorrent scrape endpoint +- `admin/index.php` - Administrative panel +- `cron.php` - Background task runner (CLI only) +- `install.php` - Installation script (CLI only) + +## Development Commands + +### Installation & Setup +```bash +# Automated installation (CLI) +php install.php + +# Install dependencies +composer install + +# Update dependencies +composer update +``` + +### Maintenance & Operations +```bash +# Run background maintenance tasks +php cron.php +``` + +### Code Quality +The project uses **StyleCI** with PSR-2 preset for code style enforcement. StyleCI configuration is in `.styleci.yml` targeting `src/` directory. + +## Modern Architecture Components + +### Database Layer (`/src/Database/`) +- **Nette Database** with full old SqlDb backward compatibility +- Singleton pattern accessible via `DB()` function +- Support for multiple database connections and debug functionality +- Migration path to ORM-style Explorer queries + +### Cache System (`/src/Cache/`) +- **Unified caching** using Nette Caching internally +- 100% backward compatibility with existing `CACHE()` and $datastore calls +- Supports file, SQLite, memory, and Memcached storage +- Advanced features: memoization, cache dependencies + +### Configuration Management +- Environment-based config with `.env` files +- Singleton `Config` class accessible via `config()` function +- Local overrides supported via `library/config.local.php` + +## Configuration Files +- `.env` - Environment variables (copy from `.env.example`) +- `library/config.php` - Main application configuration +- `library/config.local.php` - Local configuration overrides +- `composer.json` - Dependencies and PSR-4 autoloading + +## Development Workflow + +### CI/CD Pipeline +- **GitHub Actions** for automated testing and deployment +- **StyleCI** for code style enforcement +- **Dependabot** for dependency updates +- **FTP deployment** to demo environment + +### Installation Methods +1. **Automated**: `php install.php` (recommended) +2. **Composer**: `composer create-project torrentpier/torrentpier` +3. **Manual**: Git clone + `composer install` + database setup + +## Database & Schema + +- **Database migrations** managed via Phinx in `/migrations/` directory +- Initial schema: `20250619000001_initial_schema.php` +- Initial seed data: `20250619000002_seed_initial_data.php` +- UTF-8 (utf8mb4) character set required +- Multiple database alias support for different components + +### Migration Commands +```bash +# Run all pending migrations +php vendor/bin/phinx migrate --configuration=phinx.php + +# Check migration status +php vendor/bin/phinx status --configuration=phinx.php + +# Mark migrations as applied (for existing installations) +php vendor/bin/phinx migrate --fake --configuration=phinx.php +``` + +## Legacy Compatibility Strategy + +The codebase maintains 100% backward compatibility while introducing modern alternatives: + +- **Database layer**: Existing old SqlDb calls work while new code can use Nette Database +- **Cache system**: All existing `CACHE()` and $datastore calls preserved while adding modern features +- **Configuration**: Legacy config access maintained alongside new singleton pattern + +This approach allows gradual modernization without breaking existing functionality - critical for a mature application with existing deployments. + +## Security & Performance + +- **Environment-based secrets** management via `.env` +- **CDN/proxy support** (Cloudflare, Fastly) +- **Input sanitization** and CSRF protection +- **Advanced caching** with multiple storage backends +- **Rate limiting** and IP-based restrictions + +## BitTorrent Tracker Features + +- **BitTorrent v1 & v2** support +- **TorrServer integration** capability +- **Client ban system** for problematic torrent clients +- **Scrape support** for tracker statistics + +When working with this codebase, prioritize understanding the legacy compatibility approach and modern architecture patterns. Always test both legacy and modern code paths when making changes to core systems. diff --git a/HISTORY.md b/HISTORY.md deleted file mode 100644 index 6862444c4..000000000 --- a/HISTORY.md +++ /dev/null @@ -1,1131 +0,0 @@ -# 📖 Change Log (History) - -> [!NOTE] -> Changelog from **v2.0.0** to **v2.4.5-rc.2**. - -## [v2.4.5-rc.2](https://github.com/torrentpier/torrentpier/tree/v2.4.5-rc.2) (2025-01-10) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.4.5-rc.1...v2.4.5-rc.2) - -**Merged pull requests:** - -- Release 2.4.5-rc.2 🍧️ ([belomaxorka](https://github.com/belomaxorka)) -- Added `IndexNow` protocol support 🤖 [\#1736](https://github.com/torrentpier/torrentpier/pull/1736) ([belomaxorka](https://github.com/belomaxorka)) -- Added `TorrentPier instance hash` generation [\#1726](https://github.com/torrentpier/torrentpier/pull/1726) ([belomaxorka](https://github.com/belomaxorka)) -- Added `m4a` extension support in M3U playback [\#1724](https://github.com/torrentpier/torrentpier/pull/1724) ([belomaxorka](https://github.com/belomaxorka)) -- Created `VersionHelper.php` [\#1731](https://github.com/torrentpier/torrentpier/pull/1731) ([belomaxorka](https://github.com/belomaxorka)) -- Removed sitemap ping because is deprecated [\#1738](https://github.com/torrentpier/torrentpier/pull/1738) ([belomaxorka](https://github.com/belomaxorka)) -- Drop Ocelot announcer support 🫡 [\#1727](https://github.com/torrentpier/torrentpier/pull/1727) ([belomaxorka](https://github.com/belomaxorka)) -- Use `DEFAULT_CHARSET` constant instead of hardcoded string [\#1734](https://github.com/torrentpier/torrentpier/pull/1734) ([belomaxorka](https://github.com/belomaxorka)) -- Replaced some string functions to `mbstring` alternatives [\#1735](https://github.com/torrentpier/torrentpier/pull/1735) ([belomaxorka](https://github.com/belomaxorka)) -- Replaced some `html_entity_decode` to engine's built-in function [\#1733](https://github.com/torrentpier/torrentpier/pull/1733) ([belomaxorka](https://github.com/belomaxorka)) -- Show torrent's announcers list in `filelist.php` page [\#1708](https://github.com/torrentpier/torrentpier/pull/1708) ([belomaxorka](https://github.com/belomaxorka)) -- [PHP 8.4] Fixed some deprecations [\#1718](https://github.com/torrentpier/torrentpier/pull/1718) ([belomaxorka](https://github.com/belomaxorka)) -- [Configurable] Show magnet-links for guests [\#1712](https://github.com/torrentpier/torrentpier/pull/1712) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed issues with searching by username [\#1722](https://github.com/torrentpier/torrentpier/pull/1722) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed searching by username in `memberlist.php` [\#1721](https://github.com/torrentpier/torrentpier/pull/1721) ([belomaxorka](https://github.com/belomaxorka)) -- Set `cursor: pointer;` for buttons, inputs (buttons) [\#1710](https://github.com/torrentpier/torrentpier/pull/1710), [\#1711](https://github.com/torrentpier/torrentpier/pull/1711) ([belomaxorka](https://github.com/belomaxorka)) -- Some updater improvements [\#1725](https://github.com/torrentpier/torrentpier/pull/1725) ([belomaxorka](https://github.com/belomaxorka)) -- Minor improvements [\#1705](https://github.com/torrentpier/torrentpier/pull/1705), [\#1713](https://github.com/torrentpier/torrentpier/pull/1713), [\#1715](https://github.com/torrentpier/torrentpier/pull/1715), [\#1717](https://github.com/torrentpier/torrentpier/pull/1717), [\#1719](https://github.com/torrentpier/torrentpier/pull/1719), [\#1720](https://github.com/torrentpier/torrentpier/pull/1720), [\#1728](https://github.com/torrentpier/torrentpier/pull/1728), [\#1730](https://github.com/torrentpier/torrentpier/pull/1730), [\#1739](https://github.com/torrentpier/torrentpier/pull/1739) ([belomaxorka](https://github.com/belomaxorka)) -- Updated deps [\#1723](https://github.com/torrentpier/torrentpier/pull/1723) ([belomaxorka](https://github.com/belomaxorka)) -- New Crowdin updates [\#1704](https://github.com/torrentpier/torrentpier/pull/1704), [\#1706](https://github.com/torrentpier/torrentpier/pull/1706), [\#1714](https://github.com/torrentpier/torrentpier/pull/1714), [\#1716](https://github.com/torrentpier/torrentpier/pull/1716) ([Exileum](https://github.com/Exileum)) - -## [v2.4.5-rc.1](https://github.com/torrentpier/torrentpier/tree/v2.4.5-rc.1) (2024-12-08) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.4.4...v2.4.5-rc.1) - -**Merged pull requests:** - -- Release 2.4.5-rc.1 🦕 ([belomaxorka](https://github.com/belomaxorka)) -- [CLI] TorrentPier installer ☕️ [\#1576](https://github.com/torrentpier/torrentpier/pull/1576), [\#1582](https://github.com/torrentpier/torrentpier/pull/1582), [\#1585](https://github.com/torrentpier/torrentpier/pull/1585), [\#1591](https://github.com/torrentpier/torrentpier/pull/1591) ([belomaxorka](https://github.com/belomaxorka)) -- Added avif images support 🌄 [\#1660](https://github.com/torrentpier/torrentpier/pull/1660) ([belomaxorka](https://github.com/belomaxorka)) -- Added some new HTML meta-tags [\#1562](https://github.com/torrentpier/torrentpier/pull/1562) ([belomaxorka](https://github.com/belomaxorka)) -- Added robots meta-tag support 🤖 [\#1587](https://github.com/torrentpier/torrentpier/pull/1587) ([belomaxorka](https://github.com/belomaxorka)) -- Added [TorrServer](https://github.com/YouROK/TorrServer) instance support! 🎞 [\#1603](https://github.com/torrentpier/torrentpier/pull/1603), [\#1623](https://github.com/torrentpier/torrentpier/pull/1623), [\#1624](https://github.com/torrentpier/torrentpier/pull/1624), [\#1628](https://github.com/torrentpier/torrentpier/pull/1628) ([belomaxorka](https://github.com/belomaxorka)) -- Newtopic: Added configuring robots indexing [\#1599](https://github.com/torrentpier/torrentpier/pull/1599) ([belomaxorka](https://github.com/belomaxorka)) -- Added showing releaser stats in profile [\#1568](https://github.com/torrentpier/torrentpier/pull/1568) ([belomaxorka](https://github.com/belomaxorka)) -- Added ability to set country name manually [\#1652](https://github.com/torrentpier/torrentpier/pull/1652) ([belomaxorka](https://github.com/belomaxorka)) -- Added new constant `TOR_TYPE_DEFAULT` [\#1698](https://github.com/torrentpier/torrentpier/pull/1698) ([belomaxorka](https://github.com/belomaxorka)) -- Improved BitTorrent clients ban functionality [\#1657](https://github.com/torrentpier/torrentpier/pull/1657) ([belomaxorka](https://github.com/belomaxorka)) -- Improved `filelist.php` [\#1586](https://github.com/torrentpier/torrentpier/pull/1586) ([belomaxorka](https://github.com/belomaxorka)) -- Invites: Permanent invites feature [\#1670](https://github.com/torrentpier/torrentpier/pull/1670) ([belomaxorka](https://github.com/belomaxorka)) -- Show torrent unregister action in log actions [\#1696](https://github.com/torrentpier/torrentpier/pull/1696) ([belomaxorka](https://github.com/belomaxorka)) -- Show torrent status changes in actions log [\#1688](https://github.com/torrentpier/torrentpier/pull/1688) ([belomaxorka](https://github.com/belomaxorka)) -- Show torrent type (gold / silver) changes in actions log [\#1689](https://github.com/torrentpier/torrentpier/pull/1689) ([belomaxorka](https://github.com/belomaxorka)) -- Bring back `DBG_USER` (old debug method), fixed bugsnag handler [\#1701](https://github.com/torrentpier/torrentpier/pull/1701) ([belomaxorka](https://github.com/belomaxorka)) -- Merged some fixes from `new-attachments` branch [\#1700](https://github.com/torrentpier/torrentpier/pull/1700) ([belomaxorka](https://github.com/belomaxorka)) -- Changed database encoding to `utf8mb4_unicode_ci` [\#1684](https://github.com/torrentpier/torrentpier/pull/1684) ([belomaxorka](https://github.com/belomaxorka)) -- Demo mode: Save user language in cookies [\#1584](https://github.com/torrentpier/torrentpier/pull/1584) ([belomaxorka](https://github.com/belomaxorka)) -- Make `get_torrent_info()` as public method for re-use [\#1697](https://github.com/torrentpier/torrentpier/pull/1697) ([belomaxorka](https://github.com/belomaxorka)) -- BBCode: Fixed relative links working [\#1613](https://github.com/torrentpier/torrentpier/pull/1613) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed empty `topic_id` in log actions after topic rename [\#1687](https://github.com/torrentpier/torrentpier/pull/1687) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed broken torrent stats displaying [\#1672](https://github.com/torrentpier/torrentpier/pull/1672), [\#1673](https://github.com/torrentpier/torrentpier/pull/1673) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed template caching issue [\#1622](https://github.com/torrentpier/torrentpier/pull/1622) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed `md5()` deprecated in PHP 8.4 [\#1561](https://github.com/torrentpier/torrentpier/pull/1561) ([belomaxorka](https://github.com/belomaxorka)) -- Increased `USEREMAIL_MAX_LENGTH` [\#1566](https://github.com/torrentpier/torrentpier/pull/1566) ([belomaxorka](https://github.com/belomaxorka)) -- Disabled resizing for textarea tag [\#1638](https://github.com/torrentpier/torrentpier/pull/1638) ([belomaxorka](https://github.com/belomaxorka)) -- Revert "Datastore improvements" ([belomaxorka](https://github.com/belomaxorka)) -- Minor improvements [\#1570](https://github.com/torrentpier/torrentpier/pull/1570), [\#1571](https://github.com/torrentpier/torrentpier/pull/1571), [\#1575](https://github.com/torrentpier/torrentpier/pull/1575), [\#1589](https://github.com/torrentpier/torrentpier/pull/1589), [\#1592](https://github.com/torrentpier/torrentpier/pull/1592), [\#1605](https://github.com/torrentpier/torrentpier/pull/1605), [\#1611](https://github.com/torrentpier/torrentpier/pull/1611), [\#1612](https://github.com/torrentpier/torrentpier/pull/1612), [\#1615](https://github.com/torrentpier/torrentpier/pull/1615), [\#1627](https://github.com/torrentpier/torrentpier/pull/1627), [\#1633](https://github.com/torrentpier/torrentpier/pull/1633), [\#1641](https://github.com/torrentpier/torrentpier/pull/1641), [\#1651](https://github.com/torrentpier/torrentpier/pull/1651), [\#1658](https://github.com/torrentpier/torrentpier/pull/1658), [\#1674](https://github.com/torrentpier/torrentpier/pull/1674), [\#1675](https://github.com/torrentpier/torrentpier/pull/1675), [\#1676](https://github.com/torrentpier/torrentpier/pull/1676), [\#1679](https://github.com/torrentpier/torrentpier/pull/1679), [\#1681](https://github.com/torrentpier/torrentpier/pull/1681), [\#1683](https://github.com/torrentpier/torrentpier/pull/1683), [\#1685](https://github.com/torrentpier/torrentpier/pull/1685), [\#1686](https://github.com/torrentpier/torrentpier/pull/1686), [\#1702](https://github.com/torrentpier/torrentpier/pull/1702), [\#1703](https://github.com/torrentpier/torrentpier/pull/1703) ([belomaxorka](https://github.com/belomaxorka)) -- Updated `modern-normalize` to `v3.0.1` [\#1669](https://github.com/torrentpier/torrentpier/pull/1669) ([belomaxorka](https://github.com/belomaxorka)) -- Updated deps [\#1563](https://github.com/torrentpier/torrentpier/pull/1563), [\#1564](https://github.com/torrentpier/torrentpier/pull/1564), [\#1608](https://github.com/torrentpier/torrentpier/pull/1608), [\#1609](https://github.com/torrentpier/torrentpier/pull/1609), [\#1610](https://github.com/torrentpier/torrentpier/pull/1610), [\#1637](https://github.com/torrentpier/torrentpier/pull/1637), [\#1646](https://github.com/torrentpier/torrentpier/pull/1646), [\#1647](https://github.com/torrentpier/torrentpier/pull/1647), [\#1650](https://github.com/torrentpier/torrentpier/pull/1650), [\#1656](https://github.com/torrentpier/torrentpier/pull/1656), [\#1677](https://github.com/torrentpier/torrentpier/pull/1677), [\#1682](https://github.com/torrentpier/torrentpier/pull/1682), [\#1699](https://github.com/torrentpier/torrentpier/pull/1699) ([belomaxorka](https://github.com/belomaxorka)) -- New Crowdin updates [\#1569](https://github.com/torrentpier/torrentpier/pull/1569), [\#1572](https://github.com/torrentpier/torrentpier/pull/1572), [\#1573](https://github.com/torrentpier/torrentpier/pull/1573), [\#1574](https://github.com/torrentpier/torrentpier/pull/1574), [\#1588](https://github.com/torrentpier/torrentpier/pull/1588), [\#1590](https://github.com/torrentpier/torrentpier/pull/1590), [\#1600](https://github.com/torrentpier/torrentpier/pull/1600), [\#1601](https://github.com/torrentpier/torrentpier/pull/1601), [\#1606](https://github.com/torrentpier/torrentpier/pull/1606), [\#1607](https://github.com/torrentpier/torrentpier/pull/1607), [\#1625](https://github.com/torrentpier/torrentpier/pull/1625), [\#1626](https://github.com/torrentpier/torrentpier/pull/1626), [\#1629](https://github.com/torrentpier/torrentpier/pull/1629), [\#1630](https://github.com/torrentpier/torrentpier/pull/1630), [\#1631](https://github.com/torrentpier/torrentpier/pull/1631), [\#1632](https://github.com/torrentpier/torrentpier/pull/1632), [\#1639](https://github.com/torrentpier/torrentpier/pull/1639), [\#1640](https://github.com/torrentpier/torrentpier/pull/1640), [\#1654](https://github.com/torrentpier/torrentpier/pull/1654), [\#1655](https://github.com/torrentpier/torrentpier/pull/1655) ([Exileum](https://github.com/Exileum)) - -## [v2.4.4](https://github.com/torrentpier/torrentpier/tree/v2.4.4) (2024-07-22) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.4.3...v2.4.4) - -**Merged pull requests:** - -- Release 2.4.4 🦩 ([belomaxorka](https://github.com/belomaxorka)) -- Supports PHP 8.2 / PHP 8.3 ([belomaxorka](https://github.com/belomaxorka)) -- CVE-2024-40624: Deserialization of untrusted data ([belomaxorka](https://github.com/belomaxorka)) -- Refactored cache drivers 🗃 [\#1553](https://github.com/torrentpier/torrentpier/pull/1553), [\#1557](https://github.com/torrentpier/torrentpier/pull/1557) ([belomaxorka](https://github.com/belomaxorka)) -- Create tech stack docs (`techstack.yml` and `techstack.md`) [\#1521](https://github.com/torrentpier/torrentpier/pull/1521), [\#1522](https://github.com/torrentpier/torrentpier/pull/1522) ([belomaxorka](https://github.com/belomaxorka)) -- Added MonsterID avatars support 🎇 [\#1546](https://github.com/torrentpier/torrentpier/pull/1546) ([belomaxorka](https://github.com/belomaxorka)) -- Added ability to reset ratio [\#1545](https://github.com/torrentpier/torrentpier/pull/1545) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed: function `utf8_encode()` is deprecated [\#1556](https://github.com/torrentpier/torrentpier/pull/1556) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed broken "Disable Board" function [\#1529](https://github.com/torrentpier/torrentpier/pull/1529) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed seed bonus accrual [\#1518](https://github.com/torrentpier/torrentpier/pull/1518) ([belomaxorka](https://github.com/belomaxorka)) -- [BETA] Added emojis support 😄😁 [\#1514](https://github.com/torrentpier/torrentpier/pull/1514) ([belomaxorka](https://github.com/belomaxorka)) -- Pagination with `rel="next"` and `rel="prev"` support [\#1551](https://github.com/torrentpier/torrentpier/pull/1551) ([belomaxorka](https://github.com/belomaxorka)) -- Resize user/group avatar image if too large 🌆 [\#1512](https://github.com/torrentpier/torrentpier/pull/1512) ([belomaxorka](https://github.com/belomaxorka)) -- Increased `PASSWORD_MAX_LENGTH` [\#1510](https://github.com/torrentpier/torrentpier/pull/1510) ([belomaxorka](https://github.com/belomaxorka)) -- Bring back forum description in `viewforum.php` [\#1540](https://github.com/torrentpier/torrentpier/pull/1540) ([belomaxorka](https://github.com/belomaxorka)) -- Some security improvements 🔑 [\#1503](https://github.com/torrentpier/torrentpier/pull/1503), [\#1505](https://github.com/torrentpier/torrentpier/pull/1505) ([belomaxorka](https://github.com/belomaxorka)) -- Some improvements for integrity checker [\#1501](https://github.com/torrentpier/torrentpier/pull/1501) ([belomaxorka](https://github.com/belomaxorka)) -- Some improvements for ratio functionality [\#1552](https://github.com/torrentpier/torrentpier/pull/1552) ([belomaxorka](https://github.com/belomaxorka)) -- Hide in topic: Added country hiding [\#1535](https://github.com/torrentpier/torrentpier/pull/1535) ([belomaxorka](https://github.com/belomaxorka)) -- Hide vote button in topic for guests [\#1507](https://github.com/torrentpier/torrentpier/pull/1507) ([belomaxorka](https://github.com/belomaxorka)) -- Word censor code optimization [\#1537](https://github.com/torrentpier/torrentpier/pull/1537) ([belomaxorka](https://github.com/belomaxorka)) -- Minor improvements [\#1502](https://github.com/torrentpier/torrentpier/pull/1502), [\#1506](https://github.com/torrentpier/torrentpier/pull/1506), [\#1509](https://github.com/torrentpier/torrentpier/pull/1509), [\#1511](https://github.com/torrentpier/torrentpier/pull/1511), [\#1515](https://github.com/torrentpier/torrentpier/pull/1515), [\#1516](https://github.com/torrentpier/torrentpier/pull/1516), [\#1517](https://github.com/torrentpier/torrentpier/pull/1517), [\#1519](https://github.com/torrentpier/torrentpier/pull/1519), [\#1523](https://github.com/torrentpier/torrentpier/pull/1523), [\#1525](https://github.com/torrentpier/torrentpier/pull/1525), [\#1530](https://github.com/torrentpier/torrentpier/pull/1530), [\#1532](https://github.com/torrentpier/torrentpier/pull/1532), [\#1536](https://github.com/torrentpier/torrentpier/pull/1536), [\#1539](https://github.com/torrentpier/torrentpier/pull/1539), [\#1542](https://github.com/torrentpier/torrentpier/pull/1542), [\#1544](https://github.com/torrentpier/torrentpier/pull/1544), [\#1548](https://github.com/torrentpier/torrentpier/pull/1548), [\#1550](https://github.com/torrentpier/torrentpier/pull/1550), [\#1558](https://github.com/torrentpier/torrentpier/pull/1558) ([belomaxorka](https://github.com/belomaxorka)) -- Updated deps [\#1526](https://github.com/torrentpier/torrentpier/pull/1526), [\#1527](https://github.com/torrentpier/torrentpier/pull/1527), [\#1528](https://github.com/torrentpier/torrentpier/pull/1528), [\#1554](https://github.com/torrentpier/torrentpier/pull/1554), [\#1555](https://github.com/torrentpier/torrentpier/pull/1555) ([belomaxorka](https://github.com/belomaxorka)) -- New Crowdin updates [\#1504](https://github.com/torrentpier/torrentpier/pull/1504), [\#1513](https://github.com/torrentpier/torrentpier/pull/1513), [\#1524](https://github.com/torrentpier/torrentpier/pull/1524), [\#1541](https://github.com/torrentpier/torrentpier/pull/1541), [\#1543](https://github.com/torrentpier/torrentpier/pull/1543), [\#1547](https://github.com/torrentpier/torrentpier/pull/1547), [\#1549](https://github.com/torrentpier/torrentpier/pull/1549), [\#1559](https://github.com/torrentpier/torrentpier/pull/1559), [\#1560](https://github.com/torrentpier/torrentpier/pull/1560) ([Exileum](https://github.com/Exileum)) - -## [v2.4.3](https://github.com/torrentpier/torrentpier/tree/v2.4.3) (2024-06-09) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.4.2...v2.4.3) - -**Merged pull requests:** - -- Release 2.4.3 🐎 ([belomaxorka](https://github.com/belomaxorka)) -- Added restoring corrupt TorrentPier files 🪛 [\#1493](https://github.com/torrentpier/torrentpier/pull/1493) ([belomaxorka](https://github.com/belomaxorka)) -- Added TorrentPier files integrity check 📦 [\#1491](https://github.com/torrentpier/torrentpier/pull/1491) ([belomaxorka](https://github.com/belomaxorka)) -- Added updates checker ⚙️ [\#1451](https://github.com/torrentpier/torrentpier/pull/1451), [\#1475](https://github.com/torrentpier/torrentpier/pull/1475) ([belomaxorka](https://github.com/belomaxorka)) -- Added preview for country flags while editing [\#1448](https://github.com/torrentpier/torrentpier/pull/1448) ([belomaxorka](https://github.com/belomaxorka)) -- Added support for APCu caching method [\#1442](https://github.com/torrentpier/torrentpier/pull/1442) ([belomaxorka](https://github.com/belomaxorka)) -- Added support for attribute to ignoring auto spoilers opening [\#1466](https://github.com/torrentpier/torrentpier/pull/1466) ([belomaxorka](https://github.com/belomaxorka)) -- Some enhancements [\#1445](https://github.com/torrentpier/torrentpier/pull/1445) ([belomaxorka](https://github.com/belomaxorka)) -- Some cleanup...😣 [\#1488](https://github.com/torrentpier/torrentpier/pull/1488) ([belomaxorka](https://github.com/belomaxorka)) -- Guests can view polls [\#1464](https://github.com/torrentpier/torrentpier/pull/1464) ([belomaxorka](https://github.com/belomaxorka)) -- Improved app debug [\#1438](https://github.com/torrentpier/torrentpier/pull/1438) ([belomaxorka](https://github.com/belomaxorka)) -- Show client country in seeders / leechers list 🌍 [\#1478](https://github.com/torrentpier/torrentpier/pull/1478) ([belomaxorka](https://github.com/belomaxorka)) -- Some enhancements for flags [\#1470](https://github.com/torrentpier/torrentpier/pull/1470), [\#1471](https://github.com/torrentpier/torrentpier/pull/1471) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed quote selection for smiles [\#1457](https://github.com/torrentpier/torrentpier/pull/1457) ([belomaxorka](https://github.com/belomaxorka)) -- Demo mode: Allow registering torrents by default [\#1440](https://github.com/torrentpier/torrentpier/pull/1440) ([belomaxorka](https://github.com/belomaxorka)) -- Temp: Removed showing forum description in `viewforum.php` [\#1465](https://github.com/torrentpier/torrentpier/pull/1465) ([belomaxorka](https://github.com/belomaxorka)) -- Code refactoring [\#1441](https://github.com/torrentpier/torrentpier/pull/1441) ([belomaxorka](https://github.com/belomaxorka)) -- Minor improvements [\#1435](https://github.com/torrentpier/torrentpier/pull/1435), [\#1443](https://github.com/torrentpier/torrentpier/pull/1443), [\#1446](https://github.com/torrentpier/torrentpier/pull/1446), [\#1450](https://github.com/torrentpier/torrentpier/pull/1450), [\#1452](https://github.com/torrentpier/torrentpier/pull/1452), [\#1458](https://github.com/torrentpier/torrentpier/pull/1458), [\#1461](https://github.com/torrentpier/torrentpier/pull/1461), [\#1462](https://github.com/torrentpier/torrentpier/pull/1462), [\#1467](https://github.com/torrentpier/torrentpier/pull/1467), [\#1469](https://github.com/torrentpier/torrentpier/pull/1469), [\#1472](https://github.com/torrentpier/torrentpier/pull/1472), [\#1477](https://github.com/torrentpier/torrentpier/pull/1477), [\#1480](https://github.com/torrentpier/torrentpier/pull/1480), [\#1481](https://github.com/torrentpier/torrentpier/pull/1481), [\#1482](https://github.com/torrentpier/torrentpier/pull/1482), [\#1484](https://github.com/torrentpier/torrentpier/pull/1484), [\#1490](https://github.com/torrentpier/torrentpier/pull/1490), [\#1494](https://github.com/torrentpier/torrentpier/pull/1494), [\#1497](https://github.com/torrentpier/torrentpier/pull/1497), [\#1499](https://github.com/torrentpier/torrentpier/pull/1499), [\#1500](https://github.com/torrentpier/torrentpier/pull/1500) ([belomaxorka](https://github.com/belomaxorka)) -- Updated deps [\#1454](https://github.com/torrentpier/torrentpier/pull/1454), [\#1455](https://github.com/torrentpier/torrentpier/pull/1455), [\#1459](https://github.com/torrentpier/torrentpier/pull/1459), [\#1460](https://github.com/torrentpier/torrentpier/pull/1460), [\#1485](https://github.com/torrentpier/torrentpier/pull/1485), [\#1486](https://github.com/torrentpier/torrentpier/pull/1486) ([belomaxorka](https://github.com/belomaxorka)) -- New Crowdin updates [\#1444](https://github.com/torrentpier/torrentpier/pull/1444), [\#1447](https://github.com/torrentpier/torrentpier/pull/1447), [\#1453](https://github.com/torrentpier/torrentpier/pull/1453), [\#1468](https://github.com/torrentpier/torrentpier/pull/1468), [\#1473](https://github.com/torrentpier/torrentpier/pull/1473), [\#1476](https://github.com/torrentpier/torrentpier/pull/1476), [\#1479](https://github.com/torrentpier/torrentpier/pull/1479), [\#1487](https://github.com/torrentpier/torrentpier/pull/1487), [\#1489](https://github.com/torrentpier/torrentpier/pull/1489), [\#1492](https://github.com/torrentpier/torrentpier/pull/1492), [\#1495](https://github.com/torrentpier/torrentpier/pull/1495), [\#1496](https://github.com/torrentpier/torrentpier/pull/1496), [\#1498](https://github.com/torrentpier/torrentpier/pull/1498) ([Exileum](https://github.com/Exileum)) - -## [v2.4.2](https://github.com/torrentpier/torrentpier/tree/v2.4.2) (2024-03-30) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.4.1...v2.4.2) - -**Merged pull requests:** - -- Release 2.4.2 🐯 ([belomaxorka](https://github.com/belomaxorka)) -- Added demo mode 📺 [\#1399](https://github.com/torrentpier/torrentpier/pull/1399) ([belomaxorka](https://github.com/belomaxorka)) -- Added BBCode Acronym tag [\#1419](https://github.com/torrentpier/torrentpier/pull/1419), [\#1425](https://github.com/torrentpier/torrentpier/pull/1425) ([belomaxorka](https://github.com/belomaxorka)) -- Added showing poll status in `topic_watch.php` [\#1413](https://github.com/torrentpier/torrentpier/pull/1413) ([belomaxorka](https://github.com/belomaxorka)) -- Added ability to view post_text of topic [\#1401](https://github.com/torrentpier/torrentpier/pull/1401) ([belomaxorka](https://github.com/belomaxorka)) -- Added support for rutracker font BBCode tag [\#1397](https://github.com/torrentpier/torrentpier/pull/1397) ([belomaxorka](https://github.com/belomaxorka)) -- Added mod "Reason to move topic" [\#1388](https://github.com/torrentpier/torrentpier/pull/1388) ([belomaxorka](https://github.com/belomaxorka)) -- Created template file for AJAX quick actions [\#1381](https://github.com/torrentpier/torrentpier/pull/1381) ([belomaxorka](https://github.com/belomaxorka)) -- Don't requires fill textarea for mod comment deleting [\#1433](https://github.com/torrentpier/torrentpier/pull/1433) ([belomaxorka](https://github.com/belomaxorka)) -- Make post date clickable in `posting.php` [\#1427](https://github.com/torrentpier/torrentpier/pull/1427) ([belomaxorka](https://github.com/belomaxorka)) -- Removed `wbr()` [\#1387](https://github.com/torrentpier/torrentpier/pull/1387) ([belomaxorka](https://github.com/belomaxorka)) -- Removed converting for legacy md5 passwords [\#1386](https://github.com/torrentpier/torrentpier/pull/1386) ([belomaxorka](https://github.com/belomaxorka)) -- PHP 8.2: Fixed creation of dynamic property [\#1432](https://github.com/torrentpier/torrentpier/pull/1432) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed broken searching of attachments via ACP [\#1431](https://github.com/torrentpier/torrentpier/pull/1431) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed issue with poll_users cleaning at every cron job startup [\#1390](https://github.com/torrentpier/torrentpier/pull/1390) ([belomaxorka](https://github.com/belomaxorka)) -- 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)) -- Show poll prefix for guests [\#1417](https://github.com/torrentpier/torrentpier/pull/1417) ([belomaxorka](https://github.com/belomaxorka)) -- Used hashing for filenames generation [\#1385](https://github.com/torrentpier/torrentpier/pull/1385) ([belomaxorka](https://github.com/belomaxorka)) -- Hide quote button if topic locked [\#1416](https://github.com/torrentpier/torrentpier/pull/1416) ([belomaxorka](https://github.com/belomaxorka)) -- log_error(): Hide Referer string if empty [\#1430](https://github.com/torrentpier/torrentpier/pull/1430) ([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), [\#1411](https://github.com/torrentpier/torrentpier/pull/1411), [\#1418](https://github.com/torrentpier/torrentpier/pull/1418), [\#1422](https://github.com/torrentpier/torrentpier/pull/1422) ([belomaxorka](https://github.com/belomaxorka)) -- Some bugfixes [\#1380](https://github.com/torrentpier/torrentpier/pull/1380) ([belomaxorka](https://github.com/belomaxorka)) -- Updated deps [\#1414](https://github.com/torrentpier/torrentpier/pull/1414), [\#1415](https://github.com/torrentpier/torrentpier/pull/1415), [\#1421](https://github.com/torrentpier/torrentpier/pull/1421), [\#1424](https://github.com/torrentpier/torrentpier/pull/1424) ([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), [\#1412](https://github.com/torrentpier/torrentpier/pull/1412), [\#1420](https://github.com/torrentpier/torrentpier/pull/1420), [\#1429](https://github.com/torrentpier/torrentpier/pull/1429), [\#1434](https://github.com/torrentpier/torrentpier/pull/1434) ([Exileum](https://github.com/Exileum)) - -## [v2.4.1](https://github.com/torrentpier/torrentpier/tree/v2.4.1) (2024-02-04) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.4.0...v2.4.1) - -**Merged pull requests:** - -- Release 2.4.1 🦉 ([belomaxorka](https://github.com/belomaxorka), [kovalensky](https://github.com/kovalensky)) -- Timeline — 2.4.1 [\#1340](https://github.com/torrentpier/torrentpier/pull/1340), [\#1341](https://github.com/torrentpier/torrentpier/pull/1341), [\#1342](https://github.com/torrentpier/torrentpier/pull/1342), [\#1343](https://github.com/torrentpier/torrentpier/pull/1343), [\#1362](https://github.com/torrentpier/torrentpier/pull/1362) ([kovalensky](https://github.com/kovalensky)) -- [BEP47] sha1 hash files are binary by default [\#1348](https://github.com/torrentpier/torrentpier/pull/1348) ([kovalensky](https://github.com/kovalensky)) -- Flatten file list for hybrid files [\#1350](https://github.com/torrentpier/torrentpier/pull/1350) ([kovalensky](https://github.com/kovalensky)) -- Counter is not precise [\#1360](https://github.com/torrentpier/torrentpier/pull/1360) ([kovalensky](https://github.com/kovalensky)) -- Add referrer "origin" policy to repository links [\#1357](https://github.com/torrentpier/torrentpier/pull/1357) ([kovalensky](https://github.com/kovalensky)) -- Added new flag 🕊 [\#1347](https://github.com/torrentpier/torrentpier/pull/1347) ([belomaxorka](https://github.com/belomaxorka)) -- Added ability to view "Watching topics" of other people's (For admins only) [\#1336](https://github.com/torrentpier/torrentpier/pull/1336) ([belomaxorka](https://github.com/belomaxorka)) -- Added `[box]` BBCode tag [\#1368](https://github.com/torrentpier/torrentpier/pull/1368) ([belomaxorka](https://github.com/belomaxorka)) -- Added `[indent]` BBCode tag [\#1375](https://github.com/torrentpier/torrentpier/pull/1375) ([belomaxorka](https://github.com/belomaxorka)) -- Added `bt_announce_url` autofill via cron [\#1331](https://github.com/torrentpier/torrentpier/pull/1331), [\#1364](https://github.com/torrentpier/torrentpier/pull/1364) ([belomaxorka](https://github.com/belomaxorka)) -- Added ability to send debug via Telegram [\#1323](https://github.com/torrentpier/torrentpier/pull/1323), [\#1372](https://github.com/torrentpier/torrentpier/pull/1372) ([belomaxorka](https://github.com/belomaxorka)) -- Added "Random release" button in tracker.php [\#1334](https://github.com/torrentpier/torrentpier/pull/1334) ([belomaxorka](https://github.com/belomaxorka)) -- Added support for fastly cdn [\#1327](https://github.com/torrentpier/torrentpier/pull/1327) ([belomaxorka](https://github.com/belomaxorka), [kovalensky](https://github.com/kovalensky)) -- Use `target="_blank"` in admin for profile_url() redirects [\#1330](https://github.com/torrentpier/torrentpier/pull/1330) ([belomaxorka](https://github.com/belomaxorka)) -- Used declensions for days in some cases [\#1310](https://github.com/torrentpier/torrentpier/pull/1310) ([belomaxorka](https://github.com/belomaxorka)) -- Used `modern-normalize` instead of outdated `nornalize-css` [\#1363](https://github.com/torrentpier/torrentpier/pull/1363) ([belomaxorka](https://github.com/belomaxorka)) -- Used datastore to show statistic for more performance [\#1309](https://github.com/torrentpier/torrentpier/pull/1309) ([belomaxorka](https://github.com/belomaxorka)) -- Used `humn_size()` to count average of releases in tr_stats.php [\#1313](https://github.com/torrentpier/torrentpier/pull/1313) ([belomaxorka](https://github.com/belomaxorka)) -- Some enhancements in default template [\#1312](https://github.com/torrentpier/torrentpier/pull/1312) ([belomaxorka](https://github.com/belomaxorka)) -- Some enhancements in default template (Part 2) [\#1322](https://github.com/torrentpier/torrentpier/pull/1322) ([belomaxorka](https://github.com/belomaxorka)) -- Set response code in some cases [\#1319](https://github.com/torrentpier/torrentpier/pull/1319) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed PM quick reply issue [\#1379](https://github.com/torrentpier/torrentpier/pull/1379) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed negative integer seed bonus accrual [\#1377](https://github.com/torrentpier/torrentpier/pull/1377) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed `admin_terms.php` textarea reset in preview mode [\#1371](https://github.com/torrentpier/torrentpier/pull/1371) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed broken user dl status [\#1351](https://github.com/torrentpier/torrentpier/pull/1351) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed: mb_strlen(): Passing null parameter [\#1374](https://github.com/torrentpier/torrentpier/pull/1374) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed auth(): empty $f_access [\#1329](https://github.com/torrentpier/torrentpier/pull/1329) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed download counter for torrents [\#1346](https://github.com/torrentpier/torrentpier/pull/1346) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed HTTP 500 while cron running in server-side [\#1321](https://github.com/torrentpier/torrentpier/pull/1321) ([belomaxorka](https://github.com/belomaxorka)) -- Some enhancements for topic_tpl [\#1356](https://github.com/torrentpier/torrentpier/pull/1356) ([belomaxorka](https://github.com/belomaxorka)) -- Don't update downloads counter if attachment not exists [\#1345](https://github.com/torrentpier/torrentpier/pull/1345) ([belomaxorka](https://github.com/belomaxorka)) -- Minor improvements [\#1306](https://github.com/torrentpier/torrentpier/pull/1306), [\#1307](https://github.com/torrentpier/torrentpier/pull/1307), [\#1308](https://github.com/torrentpier/torrentpier/pull/1308), [\#1315](https://github.com/torrentpier/torrentpier/pull/1315), [\#1328](https://github.com/torrentpier/torrentpier/pull/1328), [\#1338](https://github.com/torrentpier/torrentpier/pull/1338), [\#1353](https://github.com/torrentpier/torrentpier/pull/1353), [\#1355](https://github.com/torrentpier/torrentpier/pull/1355), [\#1358](https://github.com/torrentpier/torrentpier/pull/1358), [\#1369](https://github.com/torrentpier/torrentpier/pull/1369) ([belomaxorka](https://github.com/belomaxorka)) -- Some bugfixes [\#1326](https://github.com/torrentpier/torrentpier/pull/1326), [\#1378](https://github.com/torrentpier/torrentpier/pull/1378) ([belomaxorka](https://github.com/belomaxorka)) -- Updated deps [\#1304](https://github.com/torrentpier/torrentpier/pull/1304), [\#1305](https://github.com/torrentpier/torrentpier/pull/1305), [\#1305](https://github.com/torrentpier/torrentpier/pull/1305), [\#1367](https://github.com/torrentpier/torrentpier/pull/1367), [\#1366](https://github.com/torrentpier/torrentpier/pull/1366), [\#1365](https://github.com/torrentpier/torrentpier/pull/1365) ([belomaxorka](https://github.com/belomaxorka)) -- New Crowdin updates [\#1311](https://github.com/torrentpier/torrentpier/pull/1311), [\#1314](https://github.com/torrentpier/torrentpier/pull/1314), [\#1335](https://github.com/torrentpier/torrentpier/pull/1335), [\#1337](https://github.com/torrentpier/torrentpier/pull/1337), [\#1344](https://github.com/torrentpier/torrentpier/pull/1344), [\#1376](https://github.com/torrentpier/torrentpier/pull/1376) ([Exileum](https://github.com/Exileum)) - -## [v2.4.0](https://github.com/torrentpier/torrentpier/tree/v2.4.0) (2024-01-01) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.4.0-rc2...v2.4.0) - -**Merged pull requests:** - -- Release 2.4.0 ☃️ ([belomaxorka](https://github.com/belomaxorka), [kovalensky](https://github.com/kovalensky)) -- Updated copyright year [\#1201](https://github.com/torrentpier/torrentpier/pull/1201) ([belomaxorka](https://github.com/belomaxorka)) -- Update file_list_v2.php [\#1202](https://github.com/torrentpier/torrentpier/pull/1202), [\#1256](https://github.com/torrentpier/torrentpier/pull/1256) ([kovalensky](https://github.com/kovalensky)) -- Updated TorrentPier footer text (: [\#1204](https://github.com/torrentpier/torrentpier/pull/1204) ([kovalensky](https://github.com/kovalensky)) -- Repository link in page footer instead of forum [\#1205](https://github.com/torrentpier/torrentpier/pull/1205) ([kovalensky](https://github.com/kovalensky)) -- Some enhancements for dl.php [\#1209](https://github.com/torrentpier/torrentpier/pull/1209) ([belomaxorka](https://github.com/belomaxorka)) -- Cleanup for attach_mod [\#1210](https://github.com/torrentpier/torrentpier/pull/1210) ([belomaxorka](https://github.com/belomaxorka)) -- Removed useless condition in viewtopic_attach.tpl [\#1208](https://github.com/torrentpier/torrentpier/pull/1208) ([belomaxorka](https://github.com/belomaxorka)) -- Minor improvements for announcer [\#1207](https://github.com/torrentpier/torrentpier/pull/1207) ([belomaxorka](https://github.com/belomaxorka)) -- tracker.php parameter sanitizing [\#1212](https://github.com/torrentpier/torrentpier/pull/1212) ([kovalensky](https://github.com/kovalensky)) -- search.php parameter sanitizing [\#1213](https://github.com/torrentpier/torrentpier/pull/1213) ([kovalensky](https://github.com/kovalensky), [belomaxorka](https://github.com/belomaxorka)) -- Limit execution time for forum file-listing [\#1211](https://github.com/torrentpier/torrentpier/pull/1211) ([kovalensky](https://github.com/kovalensky), [belomaxorka](https://github.com/belomaxorka)) -- Some reported bugfixes [\#1214](https://github.com/torrentpier/torrentpier/pull/1214), [\#1275](https://github.com/torrentpier/torrentpier/pull/1275) ([belomaxorka](https://github.com/belomaxorka)) -- Minor improvements [\#1206](https://github.com/torrentpier/torrentpier/pull/1206), [\#1215](https://github.com/torrentpier/torrentpier/pull/1215), [\#1217](https://github.com/torrentpier/torrentpier/pull/1217), [\#1219](https://github.com/torrentpier/torrentpier/pull/1219), [\#1220](https://github.com/torrentpier/torrentpier/pull/1220), [\#1224](https://github.com/torrentpier/torrentpier/pull/1224), [\#1228](https://github.com/torrentpier/torrentpier/pull/1228), [\#1229](https://github.com/torrentpier/torrentpier/pull/1229), [\#1230](https://github.com/torrentpier/torrentpier/pull/1230), [\#1234](https://github.com/torrentpier/torrentpier/pull/1234), [\#1236](https://github.com/torrentpier/torrentpier/pull/1236), [\#1243](https://github.com/torrentpier/torrentpier/pull/1243), [\#1248](https://github.com/torrentpier/torrentpier/pull/1248), [\#1253](https://github.com/torrentpier/torrentpier/pull/1253), [\#1254](https://github.com/torrentpier/torrentpier/pull/1254), [\#1259](https://github.com/torrentpier/torrentpier/pull/1259), [\#1263](https://github.com/torrentpier/torrentpier/pull/1263), [\#1265](https://github.com/torrentpier/torrentpier/pull/1265), [\#1266](https://github.com/torrentpier/torrentpier/pull/1266), [\#1271](https://github.com/torrentpier/torrentpier/pull/1271), [\#1273](https://github.com/torrentpier/torrentpier/pull/1273), [\#1279](https://github.com/torrentpier/torrentpier/pull/1279), [\#1281](https://github.com/torrentpier/torrentpier/pull/1281), [\#1285](https://github.com/torrentpier/torrentpier/pull/1285), [\#1286](https://github.com/torrentpier/torrentpier/pull/1286), [\#1289](https://github.com/torrentpier/torrentpier/pull/1289), [\#1294](https://github.com/torrentpier/torrentpier/pull/1294), [\#1298](https://github.com/torrentpier/torrentpier/pull/1298), [\#1301](https://github.com/torrentpier/torrentpier/pull/1301), [\#1302](https://github.com/torrentpier/torrentpier/pull/1302) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed extensions issue [\#1218](https://github.com/torrentpier/torrentpier/pull/1218) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed broken sorting in group.php [\#1221](https://github.com/torrentpier/torrentpier/pull/1221) ([belomaxorka](https://github.com/belomaxorka)) -- Code re-formatting [\#1225](https://github.com/torrentpier/torrentpier/pull/1225) ([kovalensky](https://github.com/kovalensky)) -- Introduce limit setting for max number of files to be processed in separate index file-listing [\#1223](https://github.com/torrentpier/torrentpier/pull/1223) ([kovalensky](https://github.com/kovalensky)) -- Fixed set auth cookie issue [\#1227](https://github.com/torrentpier/torrentpier/pull/1227) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed broken captcha check on login.php [\#1233](https://github.com/torrentpier/torrentpier/pull/1233) ([belomaxorka](https://github.com/belomaxorka)) -- Hide vote button in poll if user already voted [\#1235](https://github.com/torrentpier/torrentpier/pull/1235) ([belomaxorka](https://github.com/belomaxorka)) -- Exception handling for Bencode errors [\#1237](https://github.com/torrentpier/torrentpier/pull/1237), [\#1239](https://github.com/torrentpier/torrentpier/pull/1239) ([kovalensky](https://github.com/kovalensky)) -- Handle & show upload_max_filesize occurrences [\#1241](https://github.com/torrentpier/torrentpier/pull/1241) ([kovalensky](https://github.com/kovalensky)) -- Little improvements [\#1244](https://github.com/torrentpier/torrentpier/pull/1244), [\#1272](https://github.com/torrentpier/torrentpier/pull/1272) ([kovalensky](https://github.com/kovalensky)) -- Improved handling errors while uploading [\#1246](https://github.com/torrentpier/torrentpier/pull/1246) -- Use hardcoded dictionary names for better counting result in file listing [\#1247](https://github.com/torrentpier/torrentpier/pull/1247) ([kovalensky](https://github.com/kovalensky)) -- Refactored thumbnail creation 🌄 [\#1249](https://github.com/torrentpier/torrentpier/pull/1249) ([belomaxorka](https://github.com/belomaxorka)) -- Some cleanup for attach mod [\#1250](https://github.com/torrentpier/torrentpier/pull/1250), [\#1255](https://github.com/torrentpier/torrentpier/pull/1255) ([belomaxorka](https://github.com/belomaxorka)) -- Use "Views" string for thumbnails [\#1257](https://github.com/torrentpier/torrentpier/pull/1257) ([kovalensky](https://github.com/kovalensky)) -- Show user's ban status [\#1258](https://github.com/torrentpier/torrentpier/pull/1258) ([kovalensky](https://github.com/kovalensky)) -- Changed default upload path [\#1261](https://github.com/torrentpier/torrentpier/pull/1261) ([belomaxorka](https://github.com/belomaxorka)) -- Some improvements for Ban functionality [\#1262](https://github.com/torrentpier/torrentpier/pull/1262) ([belomaxorka](https://github.com/belomaxorka)) -- Striked username if user banned [\#1267](https://github.com/torrentpier/torrentpier/pull/1267) ([belomaxorka](https://github.com/belomaxorka)) -- Move filelist feature to another file [\#1268](https://github.com/torrentpier/torrentpier/pull/1268) ([kovalensky](https://github.com/kovalensky)) -- Make caching for ban list [\#1269](https://github.com/torrentpier/torrentpier/pull/1269) ([belomaxorka](https://github.com/belomaxorka)) -- Some display correction [\#1288](https://github.com/torrentpier/torrentpier/pull/1288) ([kovalensky](https://github.com/kovalensky)) -- Some enhancements [\#1278](https://github.com/torrentpier/torrentpier/pull/1278) ([belomaxorka](https://github.com/belomaxorka)) -- Replaced some file_exists() to is_file() [\#1276](https://github.com/torrentpier/torrentpier/pull/1276) ([belomaxorka](https://github.com/belomaxorka)) -- Translations [\#1274](https://github.com/torrentpier/torrentpier/pull/1274) ([kovalensky](https://github.com/kovalensky)) -- Announcer integer limits & Country flags display [\#1277](https://github.com/torrentpier/torrentpier/pull/1277) ([kovalensky](https://github.com/kovalensky)) -- Some .png file optimizations [\#1283](https://github.com/torrentpier/torrentpier/pull/1283) ([kovalensky](https://github.com/kovalensky)) -- Few cosmetic improvements [\#1284](https://github.com/torrentpier/torrentpier/pull/1284) ([belomaxorka](https://github.com/belomaxorka)) -- Some CSS additions [\#1280](https://github.com/torrentpier/torrentpier/pull/1280) ([kovalensky](https://github.com/kovalensky)) -- Block uploading more than one torrent file [\#1293](https://github.com/torrentpier/torrentpier/pull/1293) ([belomaxorka](https://github.com/belomaxorka)) -- Added missing lang variable [\#1295](https://github.com/torrentpier/torrentpier/pull/1295) ([belomaxorka](https://github.com/belomaxorka)) -- Moved file_list_v2.php back to includes [\#1303](https://github.com/torrentpier/torrentpier/pull/1303) ([belomaxorka](https://github.com/belomaxorka)) -- New Crowdin updates [\#1203](https://github.com/torrentpier/torrentpier/pull/1203), [\#1222](https://github.com/torrentpier/torrentpier/pull/1222), [\#1251](https://github.com/torrentpier/torrentpier/pull/1251), [\#1260](https://github.com/torrentpier/torrentpier/pull/1260), [\#1264](https://github.com/torrentpier/torrentpier/pull/1264), [\#1282](https://github.com/torrentpier/torrentpier/pull/1282), [\#1287](https://github.com/torrentpier/torrentpier/pull/1287), [\#1296](https://github.com/torrentpier/torrentpier/pull/1296), [\#1297](https://github.com/torrentpier/torrentpier/pull/1297), [\#1299](https://github.com/torrentpier/torrentpier/pull/1299), [\#1300](https://github.com/torrentpier/torrentpier/pull/1300) ([Exileum](https://github.com/Exileum)) - -## [v2.4.0-rc2](https://github.com/torrentpier/torrentpier/tree/v2.4.0-rc2) (2023-12-12) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.4.0-rc1...v2.4.0-rc2) - -**Merged pull requests:** - -- Fixed void function result used [\#1170](https://github.com/torrentpier/torrentpier/pull/1170) ([belomaxorka](https://github.com/belomaxorka)) -- Improved cookie management 🍪 [\#1171](https://github.com/torrentpier/torrentpier/pull/1171) ([belomaxorka](https://github.com/belomaxorka)) -- Replaced strpos() with simplified realization [\#1172](https://github.com/torrentpier/torrentpier/pull/1172) ([belomaxorka](https://github.com/belomaxorka)) -- Replaced some 'switch' with the 'match' expression [\#1173](https://github.com/torrentpier/torrentpier/pull/1173) ([belomaxorka](https://github.com/belomaxorka)) -- Feature to ban specific torrent clients [\#1175](https://github.com/torrentpier/torrentpier/pull/1175) ([kovalensky](https://github.com/kovalensky)) -- Code re-formatting [\#1176](https://github.com/torrentpier/torrentpier/pull/1176) ([kovalensky](https://github.com/kovalensky)) -- Removed useless width for BBCode buttons [\#1180](https://github.com/torrentpier/torrentpier/pull/1180) ([belomaxorka](https://github.com/belomaxorka)) -- Refactored memberlist.php 🎓 [\#1181](https://github.com/torrentpier/torrentpier/pull/1181) ([belomaxorka](https://github.com/belomaxorka)) -- Peer ID was erased if it contained non-latin characters [\#1185](https://github.com/torrentpier/torrentpier/pull/1185) ([kovalensky](https://github.com/kovalensky)) -- Removed verify_id() function [\#1187](https://github.com/torrentpier/torrentpier/pull/1187) ([belomaxorka](https://github.com/belomaxorka)) -- Removed sys_getloadavg() [\#1188](https://github.com/torrentpier/torrentpier/pull/1188) ([belomaxorka](https://github.com/belomaxorka)) -- RC2 timeline [\#1186](https://github.com/torrentpier/torrentpier/pull/1186) ([kovalensky](https://github.com/kovalensky)) -- Get SERVER_NAME variable for cron tasks [\#1190](https://github.com/torrentpier/torrentpier/pull/1190) ([kovalensky](https://github.com/kovalensky)) -- Remove unnecessary file hashes for in-forum file-listing [\#1192](https://github.com/torrentpier/torrentpier/pull/1192) ([kovalensky](https://github.com/kovalensky)) -- Use one GET variable for filelisting [\#1193](https://github.com/torrentpier/torrentpier/pull/1193) ([kovalensky](https://github.com/kovalensky)) -- Refactored poll.php [\#1194](https://github.com/torrentpier/torrentpier/pull/1194) ([belomaxorka](https://github.com/belomaxorka)) -- Removed useless global $lang; from info.php [\#1195](https://github.com/torrentpier/torrentpier/pull/1195) ([belomaxorka](https://github.com/belomaxorka)) -- Update file_list_v2.php [\#1196](https://github.com/torrentpier/torrentpier/pull/1196), [\#1197](https://github.com/torrentpier/torrentpier/pull/1197), [\#1199](https://github.com/torrentpier/torrentpier/pull/1199) ([kovalensky](https://github.com/kovalensky)) -- Small code re-format for scrape.php [\#1198](https://github.com/torrentpier/torrentpier/pull/1198) ([kovalensky](https://github.com/kovalensky)) -- Some reported bugfixes [\#1200](https://github.com/torrentpier/torrentpier/pull/1200) ([belomaxorka](https://github.com/belomaxorka)) -- Updated deps [\#1177](https://github.com/torrentpier/torrentpier/pull/1177), [\#1178](https://github.com/torrentpier/torrentpier/pull/1178),[\#1183](https://github.com/torrentpier/torrentpier/pull/1183), [\#1184](https://github.com/torrentpier/torrentpier/pull/1184) ([belomaxorka](https://github.com/belomaxorka)) -- New Crowdin updates [\#1179](https://github.com/torrentpier/torrentpier/pull/1179), [\#1182](https://github.com/torrentpier/torrentpier/pull/1182), [\#1191](https://github.com/torrentpier/torrentpier/pull/1191) ([Exileum](https://github.com/Exileum)) - -## [v2.4.0-rc1](https://github.com/torrentpier/torrentpier/tree/v2.4.0-rc1) (2023-11-25) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.4.0-beta4...v2.4.0-rc1) - -**Merged pull requests:** - -- Revert "Fix sql group (#128)" [1753db1](https://github.com/torrentpier/torrentpier/commit/1753db1fcef7d50eb8f8ba4b1f5a4ad7585ffaa4) ([belomaxorka](https://github.com/belomaxorka)) -- Simplified gender function [\#1167](https://github.com/torrentpier/torrentpier/pull/1167) ([belomaxorka](https://github.com/belomaxorka)) -- Revert "Fixed input types in some cases (#697)" [20ce8ca](https://github.com/torrentpier/torrentpier/commit/20ce8cae9cf6447f5100ab2d8f4a5299254f5412) ([belomaxorka](https://github.com/belomaxorka)) -- Revert "Fixed input types in some cases (#693)" [74aa6ff](https://github.com/torrentpier/torrentpier/commit/74aa6ff29991186ffc6484980972d5f74e4d0393) ([belomaxorka](https://github.com/belomaxorka)) -- Support simultaneous id & username inputs for browsing profiles [\#1166](https://github.com/torrentpier/torrentpier/pull/1166) ([kovalensky](https://github.com/kovalensky)) -- Tighten registration requirements for torrent files [\#1165](https://github.com/torrentpier/torrentpier/pull/1165) ([kovalensky](https://github.com/kovalensky)) -- File listing — use browser cache [\#1164](https://github.com/torrentpier/torrentpier/pull/1164) ([kovalensky](https://github.com/kovalensky)) -- Legacy code comment translations [\#1163](https://github.com/torrentpier/torrentpier/pull/1163) ([kovalensky](https://github.com/kovalensky)) -- Invites config re-formatting [\#1162](https://github.com/torrentpier/torrentpier/pull/1162) ([belomaxorka](https://github.com/belomaxorka)) -- Use external cookie library to prevent incorrect cookie setting [\#1160](https://github.com/torrentpier/torrentpier/pull/1160), [\#1161](https://github.com/torrentpier/torrentpier/pull/1161) ([belomaxorka](https://github.com/belomaxorka)) -- Some improvements in default template [\#1159](https://github.com/torrentpier/torrentpier/pull/1159) ([belomaxorka](https://github.com/belomaxorka)) -- Use sent port instead of source [\#1158](https://github.com/torrentpier/torrentpier/pull/1158) ([kovalensky](https://github.com/kovalensky)) -- Remove unnecessary meta tags from file listing [\#1157](https://github.com/torrentpier/torrentpier/pull/1157) ([kovalensky](https://github.com/kovalensky)) -- Use different file listing url parameters for effective indexing by search engines [\#1156](https://github.com/torrentpier/torrentpier/pull/1156) ([kovalensky](https://github.com/kovalensky)) -- Check topic_id existence while searching in tracker mode [\#1155](https://github.com/torrentpier/torrentpier/pull/1155) ([kovalensky](https://github.com/kovalensky)) -- Some improvement [\#1151](https://github.com/torrentpier/torrentpier/pull/1151) ([kovalensky](https://github.com/kovalensky)) -- Disable invites by default [\#1150](https://github.com/torrentpier/torrentpier/pull/1150) ([kovalensky](https://github.com/kovalensky)) -- Event based invite system [\#1149](https://github.com/torrentpier/torrentpier/pull/1149) ([kovalensky](https://github.com/kovalensky)) -- Some code quality improvements [\#1148](https://github.com/torrentpier/torrentpier/pull/1148) ([belomaxorka](https://github.com/belomaxorka)) -- Vote button code improvements [\#1140](https://github.com/torrentpier/torrentpier/pull/1140), [\#1142](https://github.com/torrentpier/torrentpier/pull/1142), [\#1143](https://github.com/torrentpier/torrentpier/pull/1143), [\#1146](https://github.com/torrentpier/torrentpier/pull/1146) ([belomaxorka](https://github.com/belomaxorka)) -- Vote button and v2 file list topic url display [\#1138](https://github.com/torrentpier/torrentpier/pull/1138) ([kovalensky](https://github.com/kovalensky)) -- Removed topic watch useless code [\#1137](https://github.com/torrentpier/torrentpier/pull/1137) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed topic_watch array key name [\#1136](https://github.com/torrentpier/torrentpier/pull/1136) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed announce-list indexes ordering [\#1135](https://github.com/torrentpier/torrentpier/pull/1135) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed $bb_cfg['file_id_ext'] ordering [\#1134](https://github.com/torrentpier/torrentpier/pull/1134) ([belomaxorka](https://github.com/belomaxorka)) -- Normalizing announce-list [\#1133](https://github.com/torrentpier/torrentpier/pull/1133) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed announcer-list issue [\#1129](https://github.com/torrentpier/torrentpier/pull/1129), [\#1130](https://github.com/torrentpier/torrentpier/pull/1130), [\#1131](https://github.com/torrentpier/torrentpier/pull/1131), [\#1132](https://github.com/torrentpier/torrentpier/pull/1132) ([belomaxorka](https://github.com/belomaxorka)) -- Removed client column from bb_bt_tracker table [\#1128](https://github.com/torrentpier/torrentpier/pull/1128) ([belomaxorka](https://github.com/belomaxorka)) -- Removed one-time used variables [\#1120](https://github.com/torrentpier/torrentpier/pull/1120) ([belomaxorka](https://github.com/belomaxorka)) -- Don't create empty announce-list dict, if ann_urls are empty [\#1119](https://github.com/torrentpier/torrentpier/pull/1119) ([kovalensky](https://github.com/kovalensky)) -- Improve code for retracker addition [\#1118](https://github.com/torrentpier/torrentpier/pull/1118) ([kovalensky](https://github.com/kovalensky)) -- Don't use main announce url inside announce-list [\#1117](https://github.com/torrentpier/torrentpier/pull/1117) ([kovalensky](https://github.com/kovalensky)) -- Don't check for announce-list while adding new urls [\#1116](https://github.com/torrentpier/torrentpier/pull/1116) ([kovalensky](https://github.com/kovalensky)) -- Cleanup: Removed useless global variable [\#1115](https://github.com/torrentpier/torrentpier/pull/1115) ([belomaxorka](https://github.com/belomaxorka)) -- Unset debug cookies if SQL_DEBUG disabled [\#1114](https://github.com/torrentpier/torrentpier/pull/1114) ([belomaxorka](https://github.com/belomaxorka)) -- Announcer's code re-formatting [\#1112](https://github.com/torrentpier/torrentpier/pull/1112) ([kovalensky](https://github.com/kovalensky)) -- Used new-style [] array constructions in some cases [\#1111](https://github.com/torrentpier/torrentpier/pull/1111) ([belomaxorka](https://github.com/belomaxorka)) -- Use http_response_code() functions instead of old header() functions [\#1110](https://github.com/torrentpier/torrentpier/pull/1110) ([belomaxorka](https://github.com/belomaxorka)) -- Fix bypassing cache if IP changed while using cache [\#1109](https://github.com/torrentpier/torrentpier/pull/1109) ([kovalensky](https://github.com/kovalensky)) -- Use one variable to determine update status for hybrids [\#1108](https://github.com/torrentpier/torrentpier/pull/1108) ([kovalensky](https://github.com/kovalensky)) -- Don't re-announce even if peer cache is present [\#1107](https://github.com/torrentpier/torrentpier/pull/1107) ([kovalensky](https://github.com/kovalensky)) -- Used br2nl() in ajax alert messages [\#1106](https://github.com/torrentpier/torrentpier/pull/1106) ([belomaxorka](https://github.com/belomaxorka)) -- Replaced some html_entity_decode to engine's built-in function [\#1105](https://github.com/torrentpier/torrentpier/pull/1105) ([belomaxorka](https://github.com/belomaxorka)) -- Fix typo [\#1104](https://github.com/torrentpier/torrentpier/pull/1104), [\#1124](https://github.com/torrentpier/torrentpier/pull/1124), [\#1153](https://github.com/torrentpier/torrentpier/pull/1153), [\#1168](https://github.com/torrentpier/torrentpier/pull/1168) ([kovalensky](https://github.com/kovalensky)) -- Change default engine language to en [\#1103](https://github.com/torrentpier/torrentpier/pull/1103) ([kovalensky](https://github.com/kovalensky)) -- Record changed port while re-announcing [\#1102](https://github.com/torrentpier/torrentpier/pull/1102) ([kovalensky](https://github.com/kovalensky)) -- Translations for config.php, raised scrape interval [\#1100](https://github.com/torrentpier/torrentpier/pull/1100) ([kovalensky](https://github.com/kovalensky)) -- Don't re-announce for hybrids if the event is "stopped" [\#1099](https://github.com/torrentpier/torrentpier/pull/1099) ([kovalensky](https://github.com/kovalensky)) -- Security measures [\#1098](https://github.com/torrentpier/torrentpier/pull/1098), [\#1113](https://github.com/torrentpier/torrentpier/pull/1113) ([kovalensky](https://github.com/kovalensky), [belomaxorka](https://github.com/belomaxorka)) -- Minor improvements [\#1121](https://github.com/torrentpier/torrentpier/pull/1121), [\#1122](https://github.com/torrentpier/torrentpier/pull/1122), [\#1123](https://github.com/torrentpier/torrentpier/pull/1123), [\#1125](https://github.com/torrentpier/torrentpier/pull/1125), [\#1141](https://github.com/torrentpier/torrentpier/pull/1141) ([belomaxorka](https://github.com/belomaxorka)) -- New Crowdin updates [\#1097](https://github.com/torrentpier/torrentpier/pull/1097), [\#1101](https://github.com/torrentpier/torrentpier/pull/1101), [\#1144](https://github.com/torrentpier/torrentpier/pull/1144), [\#1154](https://github.com/torrentpier/torrentpier/pull/1154) ([Exileum](https://github.com/Exileum)) - -## [v2.4.0-beta4](https://github.com/torrentpier/torrentpier/tree/v2.4.0-beta4) (2023-11-14) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.4.0-beta3...v2.4.0-beta4) - -**Merged pull requests:** - -- Use TORRENT_EXT constants for definition torrent extension [\#1096](https://github.com/torrentpier/torrentpier/pull/1096) ([belomaxorka](https://github.com/belomaxorka)) -- Remove html entities for file names [\#1094](https://github.com/torrentpier/torrentpier/pull/1094) ([kovalensky](https://github.com/kovalensky)) -- Fix for html entities being displayed in magnet links [\#1092](https://github.com/torrentpier/torrentpier/pull/1092) ([kovalensky](https://github.com/kovalensky)) -- Calling make_jumpbox() where it needed [\#1091](https://github.com/torrentpier/torrentpier/pull/1091) ([belomaxorka](https://github.com/belomaxorka)) -- Include full url for client icon displaying [\#1088](https://github.com/torrentpier/torrentpier/pull/1088) ([kovalensky](https://github.com/kovalensky)) -- Fix not working code [\#1087](https://github.com/torrentpier/torrentpier/pull/1087) ([kovalensky](https://github.com/kovalensky)) -- Fixed data types for seeder_last_seen [\#1086](https://github.com/torrentpier/torrentpier/pull/1086) ([belomaxorka](https://github.com/belomaxorka)) -- Fix broken PM (Private messages) [\#1085](https://github.com/torrentpier/torrentpier/pull/1085) ([kovalensky](https://github.com/kovalensky)) -- Fixed a bug causing inability to view file contents for some torrents [\#1084](https://github.com/torrentpier/torrentpier/pull/1084) ([kovalensky](https://github.com/kovalensky)) -- Show file count while listing [\#1082](https://github.com/torrentpier/torrentpier/pull/1082) ([kovalensky](https://github.com/kovalensky)) -- Simplified jumpbox 📜 [\#815](https://github.com/torrentpier/torrentpier/pull/815) ([belomaxorka](https://github.com/belomaxorka)) -- Removed sorting for torrent clients in table [\#1080](https://github.com/torrentpier/torrentpier/pull/1080) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed broken table in tracker [\#1079](https://github.com/torrentpier/torrentpier/pull/1079) ([belomaxorka](https://github.com/belomaxorka)) -- CSS improvement for file listing [\#1077](https://github.com/torrentpier/torrentpier/pull/1077), [\#1081](https://github.com/torrentpier/torrentpier/pull/1081), [\#1083](https://github.com/torrentpier/torrentpier/pull/1083) ([kovalensky](https://github.com/kovalensky)) -- Minor improvements [\#1078](https://github.com/torrentpier/torrentpier/pull/1078), [\#1095](https://github.com/torrentpier/torrentpier/pull/1095) ([belomaxorka](https://github.com/belomaxorka)) -- Updated deps [\#1089](https://github.com/torrentpier/torrentpier/pull/1089), [\#1090](https://github.com/torrentpier/torrentpier/pull/1090) ([belomaxorka](https://github.com/belomaxorka)) - -## [v2.4.0-beta3](https://github.com/torrentpier/torrentpier/tree/v2.4.0-beta3) (2023-11-11) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.4.0-beta2...v2.4.0-beta3) - -**Merged pull requests:** - -- Use built-in delta_time for age display [\#1075](https://github.com/torrentpier/torrentpier/pull/1075) ([kovalensky](https://github.com/kovalensky)) -- List with numbers in tracker stats [\#1074](https://github.com/torrentpier/torrentpier/pull/1074) ([kovalensky](https://github.com/kovalensky)) -- Sort clients from higher to lower in tracker stats [\#1073](https://github.com/torrentpier/torrentpier/pull/1073) ([kovalensky](https://github.com/kovalensky)) -- Use more reliable original file names for attachments [\#1070](https://github.com/torrentpier/torrentpier/pull/1070) ([kovalensky](https://github.com/kovalensky)) -- Tracker client stats cache, more robust file list functions, permissions for file list access [\#1069](https://github.com/torrentpier/torrentpier/pull/1069) ([kovalensky](https://github.com/kovalensky)) -- Some code improvements for file listing [\#1068](https://github.com/torrentpier/torrentpier/pull/1068) ([kovalensky](https://github.com/kovalensky)) -- Update styles for file list [\#1067](https://github.com/torrentpier/torrentpier/pull/1067) ([kovalensky](https://github.com/kovalensky)) -- Show client information for file list [\#1066](https://github.com/torrentpier/torrentpier/pull/1066) ([kovalensky](https://github.com/kovalensky)) -- File list tables for v2 compatible torrents [\#1064](https://github.com/torrentpier/torrentpier/pull/1064) ([kovalensky](https://github.com/kovalensky)) -- Show options for version debugging of user clients [\#1061](https://github.com/torrentpier/torrentpier/pull/1061) ([kovalensky](https://github.com/kovalensky)) -- Fixed broken avatar ajax action for users [\#1060](https://github.com/torrentpier/torrentpier/pull/1060) ([belomaxorka](https://github.com/belomaxorka)) -- Show icons for clients while in the tracker statistics [\#1057](https://github.com/torrentpier/torrentpier/pull/1057) ([kovalensky](https://github.com/kovalensky)) -- Show user clients percentage in tracker statistics [\#1057](https://github.com/torrentpier/torrentpier/pull/1057) ([kovalensky](https://github.com/kovalensky)) -- Fixed undefined tpl variable SHOW_GROUP_MEMBERSHIP [\#1055](https://github.com/torrentpier/torrentpier/pull/1055) ([belomaxorka](https://github.com/belomaxorka)) -- Show guests for last seeders [\#1053](https://github.com/torrentpier/torrentpier/pull/1053) ([kovalensky](https://github.com/kovalensky)) -- Last seeder display improvements [\#1052](https://github.com/torrentpier/torrentpier/pull/1052) ([kovalensky](https://github.com/kovalensky)) -- Show the last seeder's username in topics [\#1051](https://github.com/torrentpier/torrentpier/pull/1051) ([kovalensky](https://github.com/kovalensky)) -- Minor improvements for template [\#1050](https://github.com/torrentpier/torrentpier/pull/1050) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed: Moderators can't see self IP addresses [\#1049](https://github.com/torrentpier/torrentpier/pull/1049) ([belomaxorka](https://github.com/belomaxorka)) -- View user's profile also by it's username [\#1048](https://github.com/torrentpier/torrentpier/pull/1048) ([kovalensky](https://github.com/kovalensky)) -- Scrape.php code reformatting [\#1047](https://github.com/torrentpier/torrentpier/pull/1047) ([kovalensky](https://github.com/kovalensky)) -- Scraping improvements [\#1046](https://github.com/torrentpier/torrentpier/pull/1046) ([kovalensky](https://github.com/kovalensky)) -- Small tracker improvements [\#1043](https://github.com/torrentpier/torrentpier/pull/1043) ([kovalensky](https://github.com/kovalensky)) -- Small improvements to scraping [\#1042](https://github.com/torrentpier/torrentpier/pull/1042) ([kovalensky](https://github.com/kovalensky)) -- Added v2 hash search to the scraping [\#1040](https://github.com/torrentpier/torrentpier/pull/1040) ([kovalensky](https://github.com/kovalensky)) -- Update magnet icon [\#1038](https://github.com/torrentpier/torrentpier/pull/1038) ([kovalensky](https://github.com/kovalensky)) -- Magnet link tweaks [\#1035](https://github.com/torrentpier/torrentpier/pull/1035) ([kovalensky](https://github.com/kovalensky)) -- Use built-in binary hash feature [\#1032](https://github.com/torrentpier/torrentpier/pull/1032) ([kovalensky](https://github.com/kovalensky)) -- Some v2 hashes were not found in the announcer [\#1031](https://github.com/torrentpier/torrentpier/pull/1031) ([kovalensky](https://github.com/kovalensky)) -- Fix issues related to file list display and torrent registration [\#1028](https://github.com/torrentpier/torrentpier/pull/1028) ([kovalensky](https://github.com/kovalensky)) -- NAT users' real port [\#1027](https://github.com/torrentpier/torrentpier/pull/1027) ([kovalensky](https://github.com/kovalensky)) -- Removed time zone auto detection [\#1025](https://github.com/torrentpier/torrentpier/pull/1025) ([belomaxorka](https://github.com/belomaxorka)) -- Added ability to debug ajax_die() calls [\#1023](https://github.com/torrentpier/torrentpier/pull/1023) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed incorrect displaying post actions buttons [\#1021](https://github.com/torrentpier/torrentpier/pull/1021) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed undefined offset of $action_params [\#1020](https://github.com/torrentpier/torrentpier/pull/1020) ([belomaxorka](https://github.com/belomaxorka)) -- Transfer from array to ArrayObject data type [\#1019](https://github.com/torrentpier/torrentpier/pull/1019) ([kovalensky](https://github.com/kovalensky)) -- Multiple Scrape [\#1018](https://github.com/torrentpier/torrentpier/pull/1018) ([kovalensky](https://github.com/kovalensky)) -- Announce IPv4 && IPv6 of peers! [\#1017](https://github.com/torrentpier/torrentpier/pull/1017) ([kovalensky](https://github.com/kovalensky)) -- Bind peer_hash to auth_key to avoid double announces via IPv4 and IPv6 at the same time [\#1016](https://github.com/torrentpier/torrentpier/pull/1016) ([kovalensky](https://github.com/kovalensky)) -- Increase auth_key char length [\#1014](https://github.com/torrentpier/torrentpier/pull/1014) ([kovalensky](https://github.com/kovalensky)) -- More performance optimized/random string generation, removed passkey length limit from the announcer [\#1013](https://github.com/torrentpier/torrentpier/pull/1013) ([kovalensky](https://github.com/kovalensky)) -- More performance optimized/random string generation, removed limit from for announce key in the announcer [\#1012](https://github.com/torrentpier/torrentpier/pull/1012) ([kovalensky](https://github.com/kovalensky)) -- Fixed broken ordering in memberlist.php [\#1010](https://github.com/torrentpier/torrentpier/pull/1010) ([belomaxorka](https://github.com/belomaxorka)) -- Some fixes in admin_attach_cp.php [\#1009](https://github.com/torrentpier/torrentpier/pull/1009) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed undefined $lang['PREVIOUS'] [\#1008](https://github.com/torrentpier/torrentpier/pull/1008) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed broken letter marking in memberlist.php [\#1007](https://github.com/torrentpier/torrentpier/pull/1007) ([belomaxorka](https://github.com/belomaxorka)) -- Moved htmlCHR() in common.php [\#1006](https://github.com/torrentpier/torrentpier/pull/1006) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed error while trying to delete posts by bot [\#1004](https://github.com/torrentpier/torrentpier/pull/1004) ([belomaxorka](https://github.com/belomaxorka)) -- Escape HTML characters for peer_id once to avoid load [\#1002](https://github.com/torrentpier/torrentpier/pull/1002) ([kovalensky](https://github.com/kovalensky)) -- 😅💙 1000th PR Merged! 💙😅 [\#1001](https://github.com/torrentpier/torrentpier/pull/1001) ([belomaxorka](https://github.com/belomaxorka)) -- Added the ability to add additional announce URLs into torrent files [\#999](https://github.com/torrentpier/torrentpier/pull/999) ([belomaxorka](https://github.com/belomaxorka)) -- Expression can be replaced by '??' version [\#998](https://github.com/torrentpier/torrentpier/pull/998) ([belomaxorka](https://github.com/belomaxorka)) -- Added check $bb_cfg['magnet_links_enabled'] in create_magnet() [\#996](https://github.com/torrentpier/torrentpier/pull/996) ([belomaxorka](https://github.com/belomaxorka)) -- Added $lang['BT_UNREGISTERED_ALREADY'] lang key [\#994](https://github.com/torrentpier/torrentpier/pull/994) ([belomaxorka](https://github.com/belomaxorka)) -- Removed useless "Subject:" from email templates [\#993](https://github.com/torrentpier/torrentpier/pull/993) ([belomaxorka](https://github.com/belomaxorka)) -- SQL: Increase speed_up & speed_down type limits [\#992](https://github.com/torrentpier/torrentpier/pull/992) ([belomaxorka](https://github.com/belomaxorka)) -- Use strip_tags() for message in prompt_for_confirm() [\#991](https://github.com/torrentpier/torrentpier/pull/991) ([belomaxorka](https://github.com/belomaxorka)) -- Use strip_tags() for error message in ajax_die() [\#990](https://github.com/torrentpier/torrentpier/pull/990) ([belomaxorka](https://github.com/belomaxorka)) -- Use lang variable $lang['BT_REG_FAIL'] instead of text [\#989](https://github.com/torrentpier/torrentpier/pull/989) ([belomaxorka](https://github.com/belomaxorka)) -- Use announce messages even after using redundant cache for output [\#987](https://github.com/torrentpier/torrentpier/pull/987) ([kovalensky](https://github.com/kovalensky)) -- Fix currently not working peer icons [\#986](https://github.com/torrentpier/torrentpier/pull/986) ([kovalensky](https://github.com/kovalensky)) -- Variable collision fix [\#984](https://github.com/torrentpier/torrentpier/pull/984), [\#985](https://github.com/torrentpier/torrentpier/pull/985) ([kovalensky](https://github.com/kovalensky)) -- Fixed percentage calculation for SQL debug [\#980](https://github.com/torrentpier/torrentpier/pull/980) ([belomaxorka](https://github.com/belomaxorka)) -- Refactoring: Use isset() with multiple parameters [\#978](https://github.com/torrentpier/torrentpier/pull/978) ([belomaxorka](https://github.com/belomaxorka)) -- Check $tpl_vars['QUESTION'] in print_confirmation() [\#977](https://github.com/torrentpier/torrentpier/pull/977) ([belomaxorka](https://github.com/belomaxorka)) -- Peer client display support [\#968](https://github.com/torrentpier/torrentpier/pull/968) ([kovalensky](https://github.com/kovalensky)) -- Fixed undefined array key group_description [\#969](https://github.com/torrentpier/torrentpier/pull/969) ([belomaxorka](https://github.com/belomaxorka)) -- Added my name to the list of authors [\#963](https://github.com/torrentpier/torrentpier/pull/963) ([kovalensky](https://github.com/kovalensky)) -- Better way to prioritize peers [\#962](https://github.com/torrentpier/torrentpier/pull/962) ([kovalensky](https://github.com/kovalensky)) -- Prioritize returning leecher list for seeder announces [\#961](https://github.com/torrentpier/torrentpier/pull/961) ([kovalensky](https://github.com/kovalensky)) -- Generate .torrent file names based on topic titles [\#958](https://github.com/torrentpier/torrentpier/pull/958) ([kovalensky](https://github.com/kovalensky)) -- long2ip_extended() missing function [\#948](https://github.com/torrentpier/torrentpier/pull/948) ([kovalensky](https://github.com/kovalensky)) -- Use humn_size() for AVATAR_EXPLAIN [\#943](https://github.com/torrentpier/torrentpier/pull/943) ([belomaxorka](https://github.com/belomaxorka)) -- Added missing template var in group.php [\#939](https://github.com/torrentpier/torrentpier/pull/939) ([belomaxorka](https://github.com/belomaxorka)) -- BEP-7 & BEP-24 & IPv6 functions [\#934](https://github.com/torrentpier/torrentpier/pull/934) ([kovalensky](https://github.com/kovalensky)) -- Prevent infinity user adding into group [\#937](https://github.com/torrentpier/torrentpier/pull/937) ([belomaxorka](https://github.com/belomaxorka)) -- Maked configurable email visibility for everybody [\#936](https://github.com/torrentpier/torrentpier/pull/936) ([belomaxorka](https://github.com/belomaxorka)) -- Respond with loopback if peer list is empty [\#933](https://github.com/torrentpier/torrentpier/pull/933) ([kovalensky](https://github.com/kovalensky)) -- Use \Arokettu\Bencode\ instead \SandFox\Bencode\ [\#932](https://github.com/torrentpier/torrentpier/pull/932) ([belomaxorka](https://github.com/belomaxorka)) -- Added support for bmp images [\#931](https://github.com/torrentpier/torrentpier/pull/931) ([belomaxorka](https://github.com/belomaxorka)) -- ACP: Changed extensions sorting [\#930](https://github.com/torrentpier/torrentpier/pull/930) ([belomaxorka](https://github.com/belomaxorka)) -- Added missing bmp extension in SQL dump [\#929](https://github.com/torrentpier/torrentpier/pull/929) ([belomaxorka](https://github.com/belomaxorka)) -- Use IMAGETYPE_* constants [\#928](https://github.com/torrentpier/torrentpier/pull/928) ([belomaxorka](https://github.com/belomaxorka)) -- Small refactoring in Upload class [\#927](https://github.com/torrentpier/torrentpier/pull/927) ([belomaxorka](https://github.com/belomaxorka)) -- Added support for webp avatars [\#926](https://github.com/torrentpier/torrentpier/pull/926) ([belomaxorka](https://github.com/belomaxorka)) -- Added check up_allowed in Upload.php class [\#924](https://github.com/torrentpier/torrentpier/pull/924) ([belomaxorka](https://github.com/belomaxorka)) -- Added support for webp images 🌆 [\#919](https://github.com/torrentpier/torrentpier/pull/919) ([belomaxorka](https://github.com/belomaxorka)) -- Switched from md5 to a faster xxHash hash function [\#921](https://github.com/torrentpier/torrentpier/pull/921) ([belomaxorka](https://github.com/belomaxorka), [kovalensky](https://github.com/kovalensky)) -- Added support 7z archives [\#923](https://github.com/torrentpier/torrentpier/pull/923) ([belomaxorka](https://github.com/belomaxorka)) -- Added missing EXCLUDED_USERS in tr_stats.php [\#922](https://github.com/torrentpier/torrentpier/pull/922) ([belomaxorka](https://github.com/belomaxorka)) -- Announcer support for responding to stopped events [\#918](https://github.com/torrentpier/torrentpier/pull/918) ([kovalensky](https://github.com/kovalensky)) -- Added missing !defined('BB_ROOT') check [\#917](https://github.com/torrentpier/torrentpier/pull/917) ([belomaxorka](https://github.com/belomaxorka)) -- Support for IDN domains [\#909](https://github.com/torrentpier/torrentpier/pull/909) ([kovalensky](https://github.com/kovalensky)) -- Some cleanup [\#1003](https://github.com/torrentpier/torrentpier/pull/1003) ([belomaxorka](https://github.com/belomaxorka)) -- Code formatting [\#1026](https://github.com/torrentpier/torrentpier/pull/1026), [\#1030](https://github.com/torrentpier/torrentpier/pull/1030), [\#1044](https://github.com/torrentpier/torrentpier/pull/1044), [\#1056](https://github.com/torrentpier/torrentpier/pull/1056), [\#1059](https://github.com/torrentpier/torrentpier/pull/1059), [\#1062](https://github.com/torrentpier/torrentpier/pull/1062), [\#1063](https://github.com/torrentpier/torrentpier/pull/1063), [\#1065](https://github.com/torrentpier/torrentpier/pull/1065), [\#1071](https://github.com/torrentpier/torrentpier/pull/1071), [\#1076](https://github.com/torrentpier/torrentpier/pull/1076) ([belomaxorka](https://github.com/belomaxorka), [kovalensky](https://github.com/kovalensky)) -- Minor code changes [\#967](https://github.com/torrentpier/torrentpier/pull/967), [\#970](https://github.com/torrentpier/torrentpier/pull/970) ([kovalensky](https://github.com/kovalensky)) -- Minor improvements [\#902](https://github.com/torrentpier/torrentpier/pull/902), [\#903](https://github.com/torrentpier/torrentpier/pull/903), [\#904](https://github.com/torrentpier/torrentpier/pull/904), [\#905](https://github.com/torrentpier/torrentpier/pull/905), [\#906](https://github.com/torrentpier/torrentpier/pull/906), [\#907](https://github.com/torrentpier/torrentpier/pull/907), [\#908](https://github.com/torrentpier/torrentpier/pull/908), [\#910](https://github.com/torrentpier/torrentpier/pull/910), [\#911](https://github.com/torrentpier/torrentpier/pull/911), [\#913](https://github.com/torrentpier/torrentpier/pull/913), [\#914](https://github.com/torrentpier/torrentpier/pull/914), [\#915](https://github.com/torrentpier/torrentpier/pull/915), [\#920](https://github.com/torrentpier/torrentpier/pull/920), [\#935](https://github.com/torrentpier/torrentpier/pull/935), [\#946](https://github.com/torrentpier/torrentpier/pull/946), [\#950](https://github.com/torrentpier/torrentpier/pull/950), [\#951](https://github.com/torrentpier/torrentpier/pull/951), [\#952](https://github.com/torrentpier/torrentpier/pull/952), [\#953](https://github.com/torrentpier/torrentpier/pull/953), [\#954](https://github.com/torrentpier/torrentpier/pull/954), [\#956](https://github.com/torrentpier/torrentpier/pull/956), [\#959](https://github.com/torrentpier/torrentpier/pull/959), [\#960](https://github.com/torrentpier/torrentpier/pull/960), [\#965](https://github.com/torrentpier/torrentpier/pull/965), [\#966](https://github.com/torrentpier/torrentpier/pull/966), [\#972](https://github.com/torrentpier/torrentpier/pull/972), [\#973](https://github.com/torrentpier/torrentpier/pull/973), [\#974](https://github.com/torrentpier/torrentpier/pull/974), [\#975](https://github.com/torrentpier/torrentpier/pull/975), [\#976](https://github.com/torrentpier/torrentpier/pull/976), [\#982](https://github.com/torrentpier/torrentpier/pull/982), [\#988](https://github.com/torrentpier/torrentpier/pull/988), [\#997](https://github.com/torrentpier/torrentpier/pull/997) ([belomaxorka](https://github.com/belomaxorka)) -- New Crowdin updates [\#912](https://github.com/torrentpier/torrentpier/pull/912), [\#916](https://github.com/torrentpier/torrentpier/pull/916), [\#925](https://github.com/torrentpier/torrentpier/pull/925), [\#947](https://github.com/torrentpier/torrentpier/pull/947), [\#957](https://github.com/torrentpier/torrentpier/pull/957), [\#971](https://github.com/torrentpier/torrentpier/pull/971), [\#979](https://github.com/torrentpier/torrentpier/pull/979), [\#995](https://github.com/torrentpier/torrentpier/pull/995), [\#1000](https://github.com/torrentpier/torrentpier/pull/1000), [\#1037](https://github.com/torrentpier/torrentpier/pull/1037), [\#1054](https://github.com/torrentpier/torrentpier/pull/1054), [\#1072](https://github.com/torrentpier/torrentpier/pull/1072) ([Exileum](https://github.com/Exileum)) -- Updated deps [\#964](https://github.com/torrentpier/torrentpier/pull/964), [\#983](https://github.com/torrentpier/torrentpier/pull/983), [\#1011](https://github.com/torrentpier/torrentpier/pull/1011), [\#1015](https://github.com/torrentpier/torrentpier/pull/1015), [\#1045](https://github.com/torrentpier/torrentpier/pull/1045) ([belomaxorka](https://github.com/belomaxorka)) - -## [v2.4.0-beta2](https://github.com/torrentpier/torrentpier/tree/v2.4.0-beta2) (2023-09-16) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.4.0-beta1...v2.4.0-beta2) - -**Merged pull requests:** - -- Tracker announce & scrape improvements 🥳 [\#901](https://github.com/torrentpier/torrentpier/pull/901) ([belomaxorka](https://github.com/belomaxorka), [kovalensky](https://github.com/kovalensky)) -- Fixed downloaded counter [\#894](https://github.com/torrentpier/torrentpier/pull/894) ([belomaxorka](https://github.com/belomaxorka), [kovalensky](https://github.com/kovalensky)) -- Fixed null seeders & leechers in announcer [\#891](https://github.com/torrentpier/torrentpier/pull/891) ([belomaxorka](https://github.com/belomaxorka), [kovalensky](https://github.com/kovalensky)) -- BitTorrent v2 support enhancements 🥳 [\#876](https://github.com/torrentpier/torrentpier/pull/876) ([belomaxorka](https://github.com/belomaxorka), [kovalensky](https://github.com/kovalensky)) -- Added showing info_hash v2 in viewtopic.php [\#870](https://github.com/torrentpier/torrentpier/pull/870) ([belomaxorka](https://github.com/belomaxorka), [kovalensky](https://github.com/kovalensky)) -- Added search by info_hash v2 🐯 [\#869](https://github.com/torrentpier/torrentpier/pull/869) ([belomaxorka](https://github.com/belomaxorka), [kovalensky](https://github.com/kovalensky)) -- BitTorrent v2 support 🐸 [\#866](https://github.com/torrentpier/torrentpier/pull/866) ([belomaxorka](https://github.com/belomaxorka), [kovalensky](https://github.com/kovalensky)) -- Replace all double quotes with single quotes [\#888](https://github.com/torrentpier/torrentpier/pull/888) ([belomaxorka](https://github.com/belomaxorka)) -- Removed unused lang variables [\#885](https://github.com/torrentpier/torrentpier/pull/885) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed empty $row['pm_count'] [\#880](https://github.com/torrentpier/torrentpier/pull/880) ([belomaxorka](https://github.com/belomaxorka)) -- Created function get_banned_users() [\#878](https://github.com/torrentpier/torrentpier/pull/878) ([belomaxorka](https://github.com/belomaxorka)) -- Moved callseed to ajax actions [\#877](https://github.com/torrentpier/torrentpier/pull/877) ([belomaxorka](https://github.com/belomaxorka)) -- Added ability to remove topic templates [\#862](https://github.com/torrentpier/torrentpier/pull/862) ([belomaxorka](https://github.com/belomaxorka)) -- Added missing translation in admin_ug_auth [\#861](https://github.com/torrentpier/torrentpier/pull/861) ([belomaxorka](https://github.com/belomaxorka)) -- Show renamed topic actions in log actions [\#860](https://github.com/torrentpier/torrentpier/pull/860) ([belomaxorka](https://github.com/belomaxorka)) -- Show set/unset downloaded actions in log actions [\#858](https://github.com/torrentpier/torrentpier/pull/858) ([belomaxorka](https://github.com/belomaxorka)) -- Show pin & unpin actions in log actions [\#857](https://github.com/torrentpier/torrentpier/pull/857) ([belomaxorka](https://github.com/belomaxorka)) -- Increase post_text & privmsgs_text limits [\#848](https://github.com/torrentpier/torrentpier/pull/848) ([belomaxorka](https://github.com/belomaxorka)) -- Added show password button [\#841](https://github.com/torrentpier/torrentpier/pull/841) ([belomaxorka](https://github.com/belomaxorka)) -- Passkey rework 🔫 [\#839](https://github.com/torrentpier/torrentpier/pull/839) ([belomaxorka](https://github.com/belomaxorka)) -- Rename passkeyExists() -> getPasskey() [\#838](https://github.com/torrentpier/torrentpier/pull/838) ([belomaxorka](https://github.com/belomaxorka)) -- Added method passkeyExists() [\#837](https://github.com/torrentpier/torrentpier/pull/837) ([belomaxorka](https://github.com/belomaxorka)) -- Refactored get_userdata() function [\#836](https://github.com/torrentpier/torrentpier/pull/836) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed $bb_cfg['pm_days_keep'] [\#834](https://github.com/torrentpier/torrentpier/pull/834) ([belomaxorka](https://github.com/belomaxorka)) -- Minor improvements [\#833](https://github.com/torrentpier/torrentpier/pull/833), [\#842](https://github.com/torrentpier/torrentpier/pull/842), [\#843](https://github.com/torrentpier/torrentpier/pull/843), [\#844](https://github.com/torrentpier/torrentpier/pull/844), [\#845](https://github.com/torrentpier/torrentpier/pull/845), [\#846](https://github.com/torrentpier/torrentpier/pull/846), [\#852](https://github.com/torrentpier/torrentpier/pull/852), [\#853](https://github.com/torrentpier/torrentpier/pull/853), [\#854](https://github.com/torrentpier/torrentpier/pull/854), [\#855](https://github.com/torrentpier/torrentpier/pull/855), [\#856](https://github.com/torrentpier/torrentpier/pull/856), [\#863](https://github.com/torrentpier/torrentpier/pull/863), [\#867](https://github.com/torrentpier/torrentpier/pull/867), [\#868](https://github.com/torrentpier/torrentpier/pull/868), [\#879](https://github.com/torrentpier/torrentpier/pull/879), [\#882](https://github.com/torrentpier/torrentpier/pull/882), [\#884](https://github.com/torrentpier/torrentpier/pull/884), [\#887](https://github.com/torrentpier/torrentpier/pull/887), [\#889](https://github.com/torrentpier/torrentpier/pull/889), [\#890](https://github.com/torrentpier/torrentpier/pull/890), [\#892](https://github.com/torrentpier/torrentpier/pull/892), [\#893](https://github.com/torrentpier/torrentpier/pull/893), [\#895](https://github.com/torrentpier/torrentpier/pull/895), [\#897](https://github.com/torrentpier/torrentpier/pull/897), [\#898](https://github.com/torrentpier/torrentpier/pull/898), [\#900](https://github.com/torrentpier/torrentpier/pull/900) ([belomaxorka](https://github.com/belomaxorka)) -- New Crowdin updates [\#840](https://github.com/torrentpier/torrentpier/pull/840), [\#850](https://github.com/torrentpier/torrentpier/pull/850), [\#859](https://github.com/torrentpier/torrentpier/pull/859), [\#871](https://github.com/torrentpier/torrentpier/pull/871), [\#881](https://github.com/torrentpier/torrentpier/pull/881), [\#886](https://github.com/torrentpier/torrentpier/pull/886) ([Exileum](https://github.com/Exileum), [belomaxorka](https://github.com/belomaxorka)) -- Updated deps [\#847](https://github.com/torrentpier/torrentpier/pull/847), [\#849](https://github.com/torrentpier/torrentpier/pull/849), [\#875](https://github.com/torrentpier/torrentpier/pull/875), [\#874](https://github.com/torrentpier/torrentpier/pull/874), [\#873](https://github.com/torrentpier/torrentpier/pull/873), [\#872](https://github.com/torrentpier/torrentpier/pull/872) ([belomaxorka](https://github.com/belomaxorka)) - -## [v2.4.0-beta1](https://github.com/torrentpier/torrentpier/tree/v2.4.0-beta1) (2023-07-18) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.4.0-alpha4...v2.4.0-beta1) - -**Merged pull requests:** - -- Fixed broken smilies replacing [\#832](https://github.com/torrentpier/torrentpier/pull/832) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed mailer exception exposing stack trace [\#831](https://github.com/torrentpier/torrentpier/pull/831) ([belomaxorka](https://github.com/belomaxorka), [Lange](https://torrentpier.com/members/lange.55/)) -- Maked max smilies in PM configurable [\#829](https://github.com/torrentpier/torrentpier/pull/829) ([belomaxorka](https://github.com/belomaxorka)) -- Fix RFC 1918 RegExp [\#828](https://github.com/torrentpier/torrentpier/pull/828) ([belomaxorka](https://github.com/belomaxorka), [MetalWarrior88](https://github.com/MetalWarrior88)) -- Fixed broken reset autologin [\#825](https://github.com/torrentpier/torrentpier/pull/825) ([belomaxorka](https://github.com/belomaxorka)) -- Improved debug 🐛 [\#822](https://github.com/torrentpier/torrentpier/pull/822) ([belomaxorka](https://github.com/belomaxorka)) -- Redirect to viewprofile.php if profile.php hasn't arguments [\#821](https://github.com/torrentpier/torrentpier/pull/821) ([belomaxorka](https://github.com/belomaxorka)) -- Show smilies in post for guests [\#817](https://github.com/torrentpier/torrentpier/pull/817) ([belomaxorka](https://github.com/belomaxorka)) -- Added ability to set MySQLi error reporting [\#813](https://github.com/torrentpier/torrentpier/pull/813) ([belomaxorka](https://github.com/belomaxorka)) -- Added ability to generate passkey after registration [\#810](https://github.com/torrentpier/torrentpier/pull/810) ([belomaxorka](https://github.com/belomaxorka)) -- Added search by torrent status [\#805](https://github.com/torrentpier/torrentpier/pull/805) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed pagination [\#800](https://github.com/torrentpier/torrentpier/pull/800) ([belomaxorka](https://github.com/belomaxorka)) -- Removed unused lang variables [\#802](https://github.com/torrentpier/torrentpier/pull/802) ([belomaxorka](https://github.com/belomaxorka)) -- Minor improvements [\#796](https://github.com/torrentpier/torrentpier/pull/796), [\#797](https://github.com/torrentpier/torrentpier/pull/797), [\#798](https://github.com/torrentpier/torrentpier/pull/798), [\#799](https://github.com/torrentpier/torrentpier/pull/799), [\#801](https://github.com/torrentpier/torrentpier/pull/801), [\#804](https://github.com/torrentpier/torrentpier/pull/804), [\#806](https://github.com/torrentpier/torrentpier/pull/806), [\#808](https://github.com/torrentpier/torrentpier/pull/808), [\#809](https://github.com/torrentpier/torrentpier/pull/809), [\#811](https://github.com/torrentpier/torrentpier/pull/811), [\#812](https://github.com/torrentpier/torrentpier/pull/812), [\#814](https://github.com/torrentpier/torrentpier/pull/814), [\#816](https://github.com/torrentpier/torrentpier/pull/816), [\#819](https://github.com/torrentpier/torrentpier/pull/819), [\#823](https://github.com/torrentpier/torrentpier/pull/823), [\#824](https://github.com/torrentpier/torrentpier/pull/824), [\#826](https://github.com/torrentpier/torrentpier/pull/826) ([belomaxorka](https://github.com/belomaxorka)) -- New Crowdin updates [\#803](https://github.com/torrentpier/torrentpier/pull/803), [\#807](https://github.com/torrentpier/torrentpier/pull/807) ([Exileum](https://github.com/Exileum)) -- Updated deps [\#818](https://github.com/torrentpier/torrentpier/pull/818), [\#830](https://github.com/torrentpier/torrentpier/pull/830) ([belomaxorka](https://github.com/belomaxorka)) - -## [v2.4.0-alpha4](https://github.com/torrentpier/torrentpier/tree/v2.4.0-alpha4) (2023-06-08) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.4.0-alpha3...v2.4.0-alpha4) - -**Merged pull requests:** - -- Maked max post length configurable [\#793](https://github.com/torrentpier/torrentpier/pull/793) ([belomaxorka](https://github.com/belomaxorka)) -- Used new Bencoder library 🔩 [\#791](https://github.com/torrentpier/torrentpier/pull/791) ([belomaxorka](https://github.com/belomaxorka), [kovalensky](https://github.com/kovalensky)) -- Added some placeholders for input fields [\#789](https://github.com/torrentpier/torrentpier/pull/789) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed empty user search box [\#785](https://github.com/torrentpier/torrentpier/pull/785) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed null $u_data if user not found [\#783](https://github.com/torrentpier/torrentpier/pull/783) ([belomaxorka](https://github.com/belomaxorka)) -- Added missing properties in User class [\#782](https://github.com/torrentpier/torrentpier/pull/782) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed some deprecations [\#777](https://github.com/torrentpier/torrentpier/pull/777) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed: preg_match(): Passing null to parameter [\#776](https://github.com/torrentpier/torrentpier/pull/776) ([belomaxorka](https://github.com/belomaxorka)) -- Reformated JS [\#770](https://github.com/torrentpier/torrentpier/pull/770), [\#794](https://github.com/torrentpier/torrentpier/pull/794) ([belomaxorka](https://github.com/belomaxorka)) -- Implemented password_hash API 🥳 [\#768](https://github.com/torrentpier/torrentpier/pull/768) ([belomaxorka](https://github.com/belomaxorka)) -- Updated deps [\#763](https://github.com/torrentpier/torrentpier/pull/763) ([belomaxorka](https://github.com/belomaxorka)) -- Minor improvements [\#769](https://github.com/torrentpier/torrentpier/pull/769), [\#773](https://github.com/torrentpier/torrentpier/pull/773), [\#784](https://github.com/torrentpier/torrentpier/pull/784), [\#787](https://github.com/torrentpier/torrentpier/pull/787), [\#788](https://github.com/torrentpier/torrentpier/pull/788), [\#795](https://github.com/torrentpier/torrentpier/pull/795) ([belomaxorka](https://github.com/belomaxorka)) -- New Crowdin updates [\#786](https://github.com/torrentpier/torrentpier/pull/786) ([Exileum](https://github.com/Exileum)) - -## [v2.4.0-alpha3](https://github.com/torrentpier/torrentpier/tree/v2.4.0-alpha3) (2023-06-02) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.4.0-alpha2...v2.4.0-alpha3) - -**Merged pull requests:** - -- Maked jumpbox optional [\#727](https://github.com/torrentpier/torrentpier/pull/727) ([belomaxorka](https://github.com/belomaxorka)) -- Code Inspection: Ternary expression can be replaced with condition [\#728](https://github.com/torrentpier/torrentpier/pull/728) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed: [Deprecated] number_format(): Passing null to parameter [\#729](https://github.com/torrentpier/torrentpier/pull/729) ([belomaxorka](https://github.com/belomaxorka)) -- Replaced prn_r() function with dump() [\#730](https://github.com/torrentpier/torrentpier/pull/730) ([belomaxorka](https://github.com/belomaxorka)) -- Replaced bb_exit() with native [\#731](https://github.com/torrentpier/torrentpier/pull/731) ([belomaxorka](https://github.com/belomaxorka)) -- Added exception if .env not found [\#734](https://github.com/torrentpier/torrentpier/pull/734) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed broken file_write() function [\#737](https://github.com/torrentpier/torrentpier/pull/737) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed broken $replace_content [\#738](https://github.com/torrentpier/torrentpier/pull/738) ([belomaxorka](https://github.com/belomaxorka)) -- Moved poll functions to Poll class [\#739](https://github.com/torrentpier/torrentpier/pull/739) ([belomaxorka](https://github.com/belomaxorka)) -- Replaced bb_realpath() with native [\#740](https://github.com/torrentpier/torrentpier/pull/740) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed methods types in Admin/Cron.php [\#743](https://github.com/torrentpier/torrentpier/pull/743) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed empty $_SERVER['SERVER_PROTOCOL'] in cron [\#744](https://github.com/torrentpier/torrentpier/pull/744) ([belomaxorka](https://github.com/belomaxorka)) -- Moved $bb_cfg['show_board_start_date'] to admin panel [\#745](https://github.com/torrentpier/torrentpier/pull/745) ([belomaxorka](https://github.com/belomaxorka)) -- Added sup & sub tags in BBCode [\#746](https://github.com/torrentpier/torrentpier/pull/746) ([belomaxorka](https://github.com/belomaxorka)) -- Unified checkForm() JS [\#747](https://github.com/torrentpier/torrentpier/pull/747) ([belomaxorka](https://github.com/belomaxorka)) -- [TEMP] Removed Http class [\#748](https://github.com/torrentpier/torrentpier/pull/748) ([belomaxorka](https://github.com/belomaxorka)) -- Added reset button in posting editor [\#749](https://github.com/torrentpier/torrentpier/pull/749) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed: Automatic conversion of false to array is deprecated [\#750](https://github.com/torrentpier/torrentpier/pull/750) ([belomaxorka](https://github.com/belomaxorka)) -- Reformated JS [\#753](https://github.com/torrentpier/torrentpier/pull/753), [\#754](https://github.com/torrentpier/torrentpier/pull/754) ([belomaxorka](https://github.com/belomaxorka)) -- New Crowdin updates [\#700](https://github.com/torrentpier/torrentpier/pull/700) ([Exileum](https://github.com/Exileum)) -- Minor improvements [\#732](https://github.com/torrentpier/torrentpier/pull/732), [\#735](https://github.com/torrentpier/torrentpier/pull/735), [\#741](https://github.com/torrentpier/torrentpier/pull/741), [\#742](https://github.com/torrentpier/torrentpier/pull/742), [\#751](https://github.com/torrentpier/torrentpier/pull/751), [\#752](https://github.com/torrentpier/torrentpier/pull/752), [\#755](https://github.com/torrentpier/torrentpier/pull/755), [\#756](https://github.com/torrentpier/torrentpier/pull/756), [\#757](https://github.com/torrentpier/torrentpier/pull/757), [\#761](https://github.com/torrentpier/torrentpier/pull/761) ([belomaxorka](https://github.com/belomaxorka)) -- Updated deps [\#733](https://github.com/torrentpier/torrentpier/pull/733), [\#758](https://github.com/torrentpier/torrentpier/pull/758) ([belomaxorka](https://github.com/belomaxorka)) - -## [v2.4.0-alpha2](https://github.com/torrentpier/torrentpier/tree/v2.4.0-alpha2) (2023-05-28) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.4.0-alpha1...v2.4.0-alpha2) - -**Merged pull requests:** - -- Show cut button in debug panel only if sql_log [\#696](https://github.com/torrentpier/torrentpier/pull/696) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed input types in some cases [\#697](https://github.com/torrentpier/torrentpier/pull/697) ([belomaxorka](https://github.com/belomaxorka)) -- Refactored is_gold & gender_image functions [\#698](https://github.com/torrentpier/torrentpier/pull/698) ([belomaxorka](https://github.com/belomaxorka)) -- Added translations for debug panel [\#699](https://github.com/torrentpier/torrentpier/pull/699) ([belomaxorka](https://github.com/belomaxorka)) -- Use native __DIR__ for BB_PATH [\#702](https://github.com/torrentpier/torrentpier/pull/702) ([belomaxorka](https://github.com/belomaxorka)) -- Removed APP_NAME variable [\#708](https://github.com/torrentpier/torrentpier/pull/708) ([belomaxorka](https://github.com/belomaxorka)) -- Removed unused globals [\#709](https://github.com/torrentpier/torrentpier/pull/709) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed issue with DB_PORT not applying [\#710](https://github.com/torrentpier/torrentpier/pull/710) ([belomaxorka](https://github.com/belomaxorka)) -- Simplified IPHelper [\#712](https://github.com/torrentpier/torrentpier/pull/712) ([belomaxorka](https://github.com/belomaxorka)) -- Changed syntax for constants definition [\#714](https://github.com/torrentpier/torrentpier/pull/714) ([belomaxorka](https://github.com/belomaxorka)) -- Improvements for SEO [\#718](https://github.com/torrentpier/torrentpier/pull/718) ([belomaxorka](https://github.com/belomaxorka)) -- Added password required symbols check [\#713](https://github.com/torrentpier/torrentpier/pull/713) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed: htmlspecialchars(): Passing null to parameter [\#719](https://github.com/torrentpier/torrentpier/pull/719) ([belomaxorka](https://github.com/belomaxorka)) -- Added 'samesite' option for setcookie() [\#720](https://github.com/torrentpier/torrentpier/pull/720) ([belomaxorka](https://github.com/belomaxorka)) -- Removed deprecated type="text/css" [\#721](https://github.com/torrentpier/torrentpier/pull/721) ([belomaxorka](https://github.com/belomaxorka)) -- Added some new meta tags [\#722](https://github.com/torrentpier/torrentpier/pull/722) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed: Required parameter $mode follows optional parameter $submit [\#724](https://github.com/torrentpier/torrentpier/pull/724) ([belomaxorka](https://github.com/belomaxorka)) -- Added show board start date on index page [\#725](https://github.com/torrentpier/torrentpier/pull/725) ([belomaxorka](https://github.com/belomaxorka)) -- Use define instead of tpl variable [\#726](https://github.com/torrentpier/torrentpier/pull/726) ([belomaxorka](https://github.com/belomaxorka)) -- Updated deps [\#704](https://github.com/torrentpier/torrentpier/pull/704), [\#705](https://github.com/torrentpier/torrentpier/pull/705) ([belomaxorka](https://github.com/belomaxorka)) -- Minor improvements in admin templates [\#706](https://github.com/torrentpier/torrentpier/pull/706) ([belomaxorka](https://github.com/belomaxorka)) -- Minor improvements [\#707](https://github.com/torrentpier/torrentpier/pull/707), [\#711](https://github.com/torrentpier/torrentpier/pull/711), [\#715](https://github.com/torrentpier/torrentpier/pull/715), [\#716](https://github.com/torrentpier/torrentpier/pull/716), [\#717](https://github.com/torrentpier/torrentpier/pull/717), [\#723](https://github.com/torrentpier/torrentpier/pull/723) ([belomaxorka](https://github.com/belomaxorka)) - -## [v2.4.0-alpha1](https://github.com/torrentpier/torrentpier/tree/v2.4.0-alpha1) (2023-05-20) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.3.1...v2.4.0-alpha1) - -**Merged pull requests:** - -- Added ability to select email type in mass email [\#624](https://github.com/torrentpier/torrentpier/pull/624) ([belomaxorka](https://github.com/belomaxorka)) -- Added password method in validator [\#625](https://github.com/torrentpier/torrentpier/pull/625) ([belomaxorka](https://github.com/belomaxorka)) -- Show default avatar after delete, instead of hide [\#628](https://github.com/torrentpier/torrentpier/pull/628) ([belomaxorka](https://github.com/belomaxorka)) -- Switching to Symfony Mailer [\#629](https://github.com/torrentpier/torrentpier/pull/629) ([Exileum](https://github.com/Exileum)) -- Added missing comments into Env class [\#633](https://github.com/torrentpier/torrentpier/pull/633) ([belomaxorka](https://github.com/belomaxorka)) -- Apply fixes from StyleCI [\#634](https://github.com/torrentpier/torrentpier/pull/634), [\#635](https://github.com/torrentpier/torrentpier/pull/635) ([Exileum](https://github.com/Exileum)) -- Added missing comments Emailer [\#637](https://github.com/torrentpier/torrentpier/pull/637) ([belomaxorka](https://github.com/belomaxorka)) -- Various fixes after composer deps update [\#638](https://github.com/torrentpier/torrentpier/pull/638) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed undefined value() functions [\#640](https://github.com/torrentpier/torrentpier/pull/640) ([belomaxorka](https://github.com/belomaxorka)) -- Added IPHelper implementation [\#631](https://github.com/torrentpier/torrentpier/pull/631) ([belomaxorka](https://github.com/belomaxorka)) -- Fixing the .env load [\#643](https://github.com/torrentpier/torrentpier/pull/643) ([Exileum](https://github.com/Exileum)) -- Added Http class implementation [\#632](https://github.com/torrentpier/torrentpier/pull/632) ([belomaxorka](https://github.com/belomaxorka)) -- Refactored Validate class [\#646](https://github.com/torrentpier/torrentpier/pull/646) ([belomaxorka](https://github.com/belomaxorka)) -- Added system check requirements and more [\#645](https://github.com/torrentpier/torrentpier/pull/645) ([belomaxorka](https://github.com/belomaxorka)) -- Removed useless email empty check in register.php [\#647](https://github.com/torrentpier/torrentpier/pull/647) ([belomaxorka](https://github.com/belomaxorka)) -- Refactored Sitemap class [\#648](https://github.com/torrentpier/torrentpier/pull/648) ([belomaxorka](https://github.com/belomaxorka)) -- Refactored Dev class [\#649](https://github.com/torrentpier/torrentpier/pull/649) ([belomaxorka](https://github.com/belomaxorka)) -- Refactored Ajax class [\#650](https://github.com/torrentpier/torrentpier/pull/650) ([belomaxorka](https://github.com/belomaxorka)) -- Added SQLite3 installed check [Cache/Datastore] [\#652](https://github.com/torrentpier/torrentpier/pull/652) ([belomaxorka](https://github.com/belomaxorka)) -- Added missing default statement in switch case [\#653](https://github.com/torrentpier/torrentpier/pull/653) ([belomaxorka](https://github.com/belomaxorka)) -- Refactored Sessions class [\#656](https://github.com/torrentpier/torrentpier/pull/656) ([belomaxorka](https://github.com/belomaxorka)) -- Refactored CronHelper class [\#657](https://github.com/torrentpier/torrentpier/pull/657) ([belomaxorka](https://github.com/belomaxorka)) -- Minor edits to the localization [\#655](https://github.com/torrentpier/torrentpier/pull/655) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed broken pin first post [\#660](https://github.com/torrentpier/torrentpier/pull/660) ([belomaxorka](https://github.com/belomaxorka)) -- Reworked info.php [\#664](https://github.com/torrentpier/torrentpier/pull/664) ([belomaxorka](https://github.com/belomaxorka)) -- Removed useless copy actions [\#661](https://github.com/torrentpier/torrentpier/pull/661) ([belomaxorka](https://github.com/belomaxorka)) -- New implementation of IPHelper [\#665](https://github.com/torrentpier/torrentpier/pull/665) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed broken flood control [\#666](https://github.com/torrentpier/torrentpier/pull/666) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed empty $auth_key after gen passkey [\#670](https://github.com/torrentpier/torrentpier/pull/670) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed broken predicting birthday year [\#668](https://github.com/torrentpier/torrentpier/pull/668) ([belomaxorka](https://github.com/belomaxorka)) -- Prevent issue with broken deleting posts [\#673](https://github.com/torrentpier/torrentpier/pull/673) ([belomaxorka](https://github.com/belomaxorka)) -- Removed isAJAX check [So buggy] [\#675](https://github.com/torrentpier/torrentpier/pull/675) ([belomaxorka](https://github.com/belomaxorka)) -- Show correct info about password requirements [\#676](https://github.com/torrentpier/torrentpier/pull/676) ([belomaxorka](https://github.com/belomaxorka)) -- Updated sidebar links [\#678](https://github.com/torrentpier/torrentpier/pull/678) ([belomaxorka](https://github.com/belomaxorka)) -- Added theme exists check [\#679](https://github.com/torrentpier/torrentpier/pull/679) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed broken get gethostbyaddr [\#681](https://github.com/torrentpier/torrentpier/pull/681) ([belomaxorka](https://github.com/belomaxorka)) -- Cumulative update ☕ [\#685](https://github.com/torrentpier/torrentpier/pull/685) ([belomaxorka](https://github.com/belomaxorka)) -- Remove unused use statement [\#687](https://github.com/torrentpier/torrentpier/pull/687) ([belomaxorka](https://github.com/belomaxorka)) -- Prevent issue with empty $disallowed_id removing [\#692](https://github.com/torrentpier/torrentpier/pull/692) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed input types in some cases [\#693](https://github.com/torrentpier/torrentpier/pull/693) ([belomaxorka](https://github.com/belomaxorka)) -- [TEMP] Prevent issue with undefined lang variable [\#694](https://github.com/torrentpier/torrentpier/pull/694) ([belomaxorka](https://github.com/belomaxorka)) -- New Crowdin updates [\#626](https://github.com/torrentpier/torrentpier/pull/626), [\#695](https://github.com/torrentpier/torrentpier/pull/695) ([Exileum](https://github.com/Exileum)) -- Minor adjustments [\#644](https://github.com/torrentpier/torrentpier/pull/644) ([belomaxorka](https://github.com/belomaxorka)) -- Minor fixes [\#654](https://github.com/torrentpier/torrentpier/pull/654), [\#659](https://github.com/torrentpier/torrentpier/pull/659), [\#662](https://github.com/torrentpier/torrentpier/pull/662), [\#663](https://github.com/torrentpier/torrentpier/pull/663), [\#667](https://github.com/torrentpier/torrentpier/pull/667), [\#670](https://github.com/torrentpier/torrentpier/pull/670), [\#674](https://github.com/torrentpier/torrentpier/pull/674), [\#682](https://github.com/torrentpier/torrentpier/pull/682), [\#686](https://github.com/torrentpier/torrentpier/pull/686) ([belomaxorka](https://github.com/belomaxorka)) - -## [v2.3.1](https://github.com/torrentpier/torrentpier/tree/v2.3.1) (2023-03-18) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.3.1-rc1...v2.3.1) - -**Merged pull requests:** - -- Make activate key length configurable [\#590](https://github.com/torrentpier/torrentpier/pull/590) ([belomaxorka](https://github.com/belomaxorka)) -- Minor adjustments [\#593](https://github.com/torrentpier/torrentpier/pull/593), [\#607](https://github.com/torrentpier/torrentpier/pull/607), [\#610](https://github.com/torrentpier/torrentpier/pull/610) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed typo in src/Cache/File.php [\#596](https://github.com/torrentpier/torrentpier/pull/596) ([belomaxorka](https://github.com/belomaxorka)) -- Use APP_NAME instead lang variables [\#604](https://github.com/torrentpier/torrentpier/pull/604) ([belomaxorka](https://github.com/belomaxorka)) -- New Crowdin updates [\#577](https://github.com/torrentpier/torrentpier/pull/577), [\#605](https://github.com/torrentpier/torrentpier/pull/605), [\#616](https://github.com/torrentpier/torrentpier/pull/616) ([Exileum](https://github.com/Exileum)) -- Use translations instead of untranslatable strings [\#606](https://github.com/torrentpier/torrentpier/pull/606) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed undefined $subject in register.php [\#608](https://github.com/torrentpier/torrentpier/pull/608) ([belomaxorka](https://github.com/belomaxorka)) -- Removed length limits for search_id & autologin_id [\#609](https://github.com/torrentpier/torrentpier/pull/609) ([belomaxorka](https://github.com/belomaxorka)) -- Small refactoring for avatar.php [AJAX] [\#611](https://github.com/torrentpier/torrentpier/pull/611), [\#612](https://github.com/torrentpier/torrentpier/pull/612) ([belomaxorka](https://github.com/belomaxorka)) -- Added PM counter in title [\#613](https://github.com/torrentpier/torrentpier/pull/613) ([belomaxorka](https://github.com/belomaxorka)) -- Redesigned AJAX system styles [\#614](https://github.com/torrentpier/torrentpier/pull/614) ([belomaxorka](https://github.com/belomaxorka), [Exileum](https://github.com/Exileum)) -- Minor edits to the localization [\#615](https://github.com/torrentpier/torrentpier/pull/615) ([Exileum](https://github.com/Exileum)) -- New cron initialization and minor edits [\#619](https://github.com/torrentpier/torrentpier/pull/619) ([Exileum](https://github.com/Exileum)) -- Fixed broken avatar ajax action for users [\#618](https://github.com/torrentpier/torrentpier/pull/618) ([belomaxorka](https://github.com/belomaxorka)) -- Added ability to hide ajax loading alert [\#617](https://github.com/torrentpier/torrentpier/pull/617) ([belomaxorka](https://github.com/belomaxorka)) -- Added passkey check in get_bt_userdata [\#621](https://github.com/torrentpier/torrentpier/pull/621) ([belomaxorka](https://github.com/belomaxorka)) -- Miscellaneous static analysis improvements for php 7.1 [\#620](https://github.com/torrentpier/torrentpier/pull/620) ([Exileum](https://github.com/Exileum)) -- Fixed getting online info from cache [\#622](https://github.com/torrentpier/torrentpier/pull/622) ([belomaxorka](https://github.com/belomaxorka), [Exileum](https://github.com/Exileum)) -- Globally improved log system [\#623](https://github.com/torrentpier/torrentpier/pull/623) ([belomaxorka](https://github.com/belomaxorka)) - -## [v2.3.1-rc1](https://github.com/torrentpier/torrentpier/tree/v2.3.1-rc1) (2023-03-10) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.3.0.4-beta2...v2.3.1-rc1) - -**Merged pull requests:** - -- Minor adjustments in sql dumps [\#560](https://github.com/torrentpier/torrentpier/pull/560), [\#561](https://github.com/torrentpier/torrentpier/pull/561) ([belomaxorka](https://github.com/belomaxorka)) -- New BB_PATH implementation [\#562](https://github.com/torrentpier/torrentpier/pull/562) ([belomaxorka](https://github.com/belomaxorka)) -- Use constants instead of string literals [\#563](https://github.com/torrentpier/torrentpier/pull/563), [\#573](https://github.com/torrentpier/torrentpier/pull/573) ([belomaxorka](https://github.com/belomaxorka)) -- Hide feed button if feed file doesn't exist [\#564](https://github.com/torrentpier/torrentpier/pull/564) ([belomaxorka](https://github.com/belomaxorka)) -- Added some new fonts in bbcode editor [\#565](https://github.com/torrentpier/torrentpier/pull/565) ([belomaxorka](https://github.com/belomaxorka)) -- Added some new font sizes in bbcode editor [\#566](https://github.com/torrentpier/torrentpier/pull/566) ([belomaxorka](https://github.com/belomaxorka)) -- Added optional parameter in $valid_actions [AJAX] [\#567](https://github.com/torrentpier/torrentpier/pull/567) ([belomaxorka](https://github.com/belomaxorka)) -- Check if request is ajax [\#569](https://github.com/torrentpier/torrentpier/pull/569) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed code-style in some files [\#570](https://github.com/torrentpier/torrentpier/pull/570) ([belomaxorka](https://github.com/belomaxorka)) -- Minor adjustments [\#571](https://github.com/torrentpier/torrentpier/pull/571), [\#584](https://github.com/torrentpier/torrentpier/pull/584) ([belomaxorka](https://github.com/belomaxorka)) -- Added link to forum in admin_forumauth.tpl [\#574](https://github.com/torrentpier/torrentpier/pull/574) ([belomaxorka](https://github.com/belomaxorka)) -- Simplified make_rand_str function [\#575](https://github.com/torrentpier/torrentpier/pull/575) ([belomaxorka](https://github.com/belomaxorka)) -- Redesigned admin_ug_auth [\#576](https://github.com/torrentpier/torrentpier/pull/576) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed broken "user_viewonline" in admin panel [\#579](https://github.com/torrentpier/torrentpier/pull/579) ([belomaxorka](https://github.com/belomaxorka)) -- Make sitemap sending configurable [\#585](https://github.com/torrentpier/torrentpier/pull/585) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed get_avatar method [\#586](https://github.com/torrentpier/torrentpier/pull/586) ([belomaxorka](https://github.com/belomaxorka)) -- Added show avatar in memberlist [\#587](https://github.com/torrentpier/torrentpier/pull/587) ([belomaxorka](https://github.com/belomaxorka)) - -## [v2.3.0.4-beta2](https://github.com/torrentpier/torrentpier/tree/v2.3.0.4-beta2) (2023-03-04) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.3.0.4-beta...v2.3.0.4-beta2) - -**Merged pull requests:** - -- Updated treeview up to 1.4.2 [\#549](https://github.com/torrentpier/torrentpier/pull/549) ([belomaxorka](https://github.com/belomaxorka)) -- Removed ugly copyright in indexer [\#546](https://github.com/torrentpier/torrentpier/pull/546) ([belomaxorka](https://github.com/belomaxorka)) -- Added ability to print page [\#544](https://github.com/torrentpier/torrentpier/pull/544) ([belomaxorka](https://github.com/belomaxorka)) -- Removed deprecated SQL_CACHE [\#554](https://github.com/torrentpier/torrentpier/pull/554) ([belomaxorka](https://github.com/belomaxorka)) -- Added min required mysql / mariadb version [\#555](https://github.com/torrentpier/torrentpier/pull/555) ([belomaxorka](https://github.com/belomaxorka)) -- Added needed "ORDER BY" in sql query [\#557](https://github.com/torrentpier/torrentpier/pull/557) ([belomaxorka](https://github.com/belomaxorka)) -- Added missing sql query in changes.txt [\#558](https://github.com/torrentpier/torrentpier/pull/558) ([belomaxorka](https://github.com/belomaxorka)) - -## [v2.3.0.4-beta](https://github.com/torrentpier/torrentpier/tree/v2.3.0.4-beta) (2023-02-22) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.3.0.3...v2.3.0.4-beta) - -**Merged pull requests:** - -- docs: change official forum path [\#532](https://github.com/torrentpier/torrentpier/pull/532) ([Exileum](https://github.com/Exileum)) -- Fixed broken sql log selecting in debug-panel [\#533](https://github.com/torrentpier/torrentpier/pull/533) ([belomaxorka](https://github.com/belomaxorka)) -- New implementation of old browser detector [\#534](https://github.com/torrentpier/torrentpier/pull/534) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed SQLite caching issue [\#535](https://github.com/torrentpier/torrentpier/pull/535) ([belomaxorka](https://github.com/belomaxorka)) -- Extended email validation [\#536](https://github.com/torrentpier/torrentpier/pull/536) ([belomaxorka](https://github.com/belomaxorka)) -- Admin panel adjustments [\#538](https://github.com/torrentpier/torrentpier/pull/538) ([belomaxorka](https://github.com/belomaxorka)) -- Added user birthday icon in profile [\#539](https://github.com/torrentpier/torrentpier/pull/539) ([belomaxorka](https://github.com/belomaxorka)) -- Added forum description in viewforum page [\#540](https://github.com/torrentpier/torrentpier/pull/540) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed broken copy log from debug-panel [\#541](https://github.com/torrentpier/torrentpier/pull/541) ([belomaxorka](https://github.com/belomaxorka)) -- Added copy button in viewforum page [\#542](https://github.com/torrentpier/torrentpier/pull/542) ([belomaxorka](https://github.com/belomaxorka)) -- Added current topic url copy button in viewtopic [\#543](https://github.com/torrentpier/torrentpier/pull/543) ([belomaxorka](https://github.com/belomaxorka)) -- Added ``$bb_cfg['emailer']['enabled']`` check in admin_mass_email.php [\#545](https://github.com/torrentpier/torrentpier/pull/545) ([belomaxorka](https://github.com/belomaxorka)) -- Updated scrollTo up to 1.4.6 [\#547](https://github.com/torrentpier/torrentpier/pull/547) ([belomaxorka](https://github.com/belomaxorka)) -- Updated quicksearch up to Feb 21, 2018 commit [\#548](https://github.com/torrentpier/torrentpier/pull/548) ([belomaxorka](https://github.com/belomaxorka)) - -## [v2.3.0.3](https://github.com/torrentpier/torrentpier/tree/v2.3.0.3) (2023-02-18) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.3.0.2...v2.3.0.3) - -**Merged pull requests:** - -- Updated copyright year [\#525](https://github.com/torrentpier/torrentpier/pull/525) ([belomaxorka](https://github.com/belomaxorka)) -- Update README.md (Fixed incorrect logo path) [\#526](https://github.com/torrentpier/torrentpier/pull/526) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed broken getting avatars directory size [\#527](https://github.com/torrentpier/torrentpier/pull/527) ([belomaxorka](https://github.com/belomaxorka)) -- Added declensions for count of downloads [\#528](https://github.com/torrentpier/torrentpier/pull/528) ([belomaxorka](https://github.com/belomaxorka)) -- Use XS_TPL_PREFIX instead of 'tpl_' [\#529](https://github.com/torrentpier/torrentpier/pull/529) ([belomaxorka](https://github.com/belomaxorka)) -- Removed useless .htaccess files [\#530](https://github.com/torrentpier/torrentpier/pull/530) ([belomaxorka](https://github.com/belomaxorka)) -- Replaced "deny from all" with "Require all denied" [\#531](https://github.com/torrentpier/torrentpier/pull/531) ([belomaxorka](https://github.com/belomaxorka)) - -## [v2.3.0.2](https://github.com/torrentpier/torrentpier/tree/v2.3.0.2) (2023-01-23) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.3.0.1...v2.3.0.2) - -**Merged pull requests:** - -- Fixed PHP 7.3: Deprecate FILTER_FLAG_SCHEME_REQUIRED and FILTER_FLAG_HOST_REQUIRED flags used with FILTER_VALIDATE_URL [\#507](https://github.com/torrentpier/torrentpier/pull/507) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed broken user search in admin_groups [\#508](https://github.com/torrentpier/torrentpier/pull/508) ([belomaxorka](https://github.com/belomaxorka)) -- Fix some bugs with MySQL strict mode [\#509](https://github.com/torrentpier/torrentpier/pull/509) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed and improvements for SQL [\#510](https://github.com/torrentpier/torrentpier/pull/510) ([belomaxorka](https://github.com/belomaxorka)) -- Added showing post number in viewtopic [\#511](https://github.com/torrentpier/torrentpier/pull/511) ([belomaxorka](https://github.com/belomaxorka)) -- Updated composer dependencies [\#512](https://github.com/torrentpier/torrentpier/pull/512) ([belomaxorka](https://github.com/belomaxorka)) -- Added symfony/polyfill [\#513](https://github.com/torrentpier/torrentpier/pull/513) ([belomaxorka](https://github.com/belomaxorka)) -- Updated jQuery up to 1.12.4 [\#514](https://github.com/torrentpier/torrentpier/pull/514) ([belomaxorka](https://github.com/belomaxorka)) -- Updated normalize css up to 8.0.1 [\#515](https://github.com/torrentpier/torrentpier/pull/515) ([belomaxorka](https://github.com/belomaxorka)) -- Misc code improvements [\#516](https://github.com/torrentpier/torrentpier/pull/516) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed broken file_write() function [\#517](https://github.com/torrentpier/torrentpier/pull/517) ([belomaxorka](https://github.com/belomaxorka)) -- Fixed array multi sorting [\#518](https://github.com/torrentpier/torrentpier/pull/518) ([belomaxorka](https://github.com/belomaxorka)) - -## [v2.3.0.1](https://github.com/torrentpier/torrentpier/tree/v2.3.0.1) (2018-06-27) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.3.0...v2.3.0.1) - -**Merged pull requests:** - -- Fix cron jobs fail without global config variable [\#471](https://github.com/torrentpier/torrentpier/pull/471) ([Exileum](https://github.com/Exileum)) -- Cleanup BBCode class [\#470](https://github.com/torrentpier/torrentpier/pull/470) ([Exileum](https://github.com/Exileum)) - -## [v2.3.0](https://github.com/torrentpier/torrentpier/tree/v2.3.0) (2018-06-26) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.2.3...v2.3.0) - -**Merged pull requests:** - -- Release preparation. Crowdin language pack update [\#468](https://github.com/torrentpier/torrentpier/pull/468) ([Exileum](https://github.com/Exileum)) -- PHP 7+ deprecations of old cache systems [\#467](https://github.com/torrentpier/torrentpier/pull/467) ([Exileum](https://github.com/Exileum)) -- Fix global atom feed name [\#466](https://github.com/torrentpier/torrentpier/pull/466) ([Exileum](https://github.com/Exileum)) -- Configurable download torrent url [\#465](https://github.com/torrentpier/torrentpier/pull/465) ([Exileum](https://github.com/Exileum)) -- Fix some bugs with MySQL strict mode [\#464](https://github.com/torrentpier/torrentpier/pull/464) ([Exileum](https://github.com/Exileum)) -- Fix release template editor [\#463](https://github.com/torrentpier/torrentpier/pull/463) ([Exileum](https://github.com/Exileum)) -- Fix multiple variable cleanup in private messaging [\#462](https://github.com/torrentpier/torrentpier/pull/462) ([Exileum](https://github.com/Exileum)) -- Fix magnet link passkey creation for new users [\#461](https://github.com/torrentpier/torrentpier/pull/461) ([Exileum](https://github.com/Exileum)) -- Update required PHP version to 7.1.3 [\#460](https://github.com/torrentpier/torrentpier/pull/460) ([Exileum](https://github.com/Exileum)) -- Split functions to the composer autoloading [\#459](https://github.com/torrentpier/torrentpier/pull/459) ([Exileum](https://github.com/Exileum)) -- Update copyright to the short syntax [\#458](https://github.com/torrentpier/torrentpier/pull/458) ([Exileum](https://github.com/Exileum)) -- Fix \#451. Undefined index: L\_CRON\_EDIT\_HEAD [\#457](https://github.com/torrentpier/torrentpier/pull/457) ([Exileum](https://github.com/Exileum)) -- Merge head branches [\#456](https://github.com/torrentpier/torrentpier/pull/456) ([Exileum](https://github.com/Exileum)) -- Default value for user\_birthday causes exception on user password change [\#449](https://github.com/torrentpier/torrentpier/pull/449) ([yukoff](https://github.com/yukoff)) -- Add back roave/security-advisories [\#446](https://github.com/torrentpier/torrentpier/pull/446) ([yukoff](https://github.com/yukoff)) - -## [v2.2.3](https://github.com/torrentpier/torrentpier/tree/v2.2.3) (2017-08-07) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.2.2...v2.2.3) - -**Merged pull requests:** - -- Release 2.2.3 🔥 [\#443](https://github.com/torrentpier/torrentpier/pull/443) ([Exileum](https://github.com/Exileum)) -- Release preparation. Crowdin language pack update [\#442](https://github.com/torrentpier/torrentpier/pull/442) ([Exileum](https://github.com/Exileum)) -- Unique topic page title, undefined language variables fix [\#441](https://github.com/torrentpier/torrentpier/pull/441) ([Exileum](https://github.com/Exileum)) -- Remove matching users with default IP from profile list [\#440](https://github.com/torrentpier/torrentpier/pull/440) ([Exileum](https://github.com/Exileum)) -- Broken announcer fix, announcer debug removed [\#439](https://github.com/torrentpier/torrentpier/pull/439) ([Exileum](https://github.com/Exileum)) -- Fix broken ajax [\#436](https://github.com/torrentpier/torrentpier/pull/436) ([Exileum](https://github.com/Exileum)) -- Some deprecations, normalize.css, torrent file content sort fix [\#434](https://github.com/torrentpier/torrentpier/pull/434) ([Exileum](https://github.com/Exileum)) -- Incorrect log file rotation regex [\#432](https://github.com/torrentpier/torrentpier/pull/432) ([Exileum](https://github.com/Exileum)) -- Various bug fixes described on the forum [\#431](https://github.com/torrentpier/torrentpier/pull/431) ([Exileum](https://github.com/Exileum)) -- Fixes \#412 - bug with dynamic language variables [\#430](https://github.com/torrentpier/torrentpier/pull/430) ([Exileum](https://github.com/Exileum)) -- Update .htaccess for new Apache 2.4 syntax [\#429](https://github.com/torrentpier/torrentpier/pull/429) ([Exileum](https://github.com/Exileum)) -- Crowdin language pack update for new project domain name [\#415](https://github.com/torrentpier/torrentpier/pull/415) ([Exileum](https://github.com/Exileum)) -- Composer support section error [\#414](https://github.com/torrentpier/torrentpier/pull/414) ([Exileum](https://github.com/Exileum)) -- New project domain name [\#413](https://github.com/torrentpier/torrentpier/pull/413) ([Exileum](https://github.com/Exileum)) - -## [v2.2.2](https://github.com/torrentpier/torrentpier/tree/v2.2.2) (2017-06-22) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.2.1...v2.2.2) - -**Merged pull requests:** - -- Release 2.2.2 🌞 [\#410](https://github.com/torrentpier/torrentpier/pull/410) ([Exileum](https://github.com/Exileum)) -- Release preparation Crowdin language pack update [\#409](https://github.com/torrentpier/torrentpier/pull/409) ([Exileum](https://github.com/Exileum)) -- Display source language if no user language variable [\#408](https://github.com/torrentpier/torrentpier/pull/408) ([Exileum](https://github.com/Exileum)) -- Disable Bugsnag by default [\#407](https://github.com/torrentpier/torrentpier/pull/407) ([Exileum](https://github.com/Exileum)) -- Fix empty birthday list [\#406](https://github.com/torrentpier/torrentpier/pull/406) ([Exileum](https://github.com/Exileum)) -- Remove unused ranks functionality [\#405](https://github.com/torrentpier/torrentpier/pull/405) ([Exileum](https://github.com/Exileum)) -- Complete renewal of the Ukrainian language from our toloka.to friends [\#404](https://github.com/torrentpier/torrentpier/pull/404) ([Exileum](https://github.com/Exileum)) -- Some fixes, auto language removal \(so buggy\) and replenishable status [\#403](https://github.com/torrentpier/torrentpier/pull/403) ([Exileum](https://github.com/Exileum)) - -## [v2.2.1](https://github.com/torrentpier/torrentpier/tree/v2.2.1) (2017-06-16) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.2.0...v2.2.1) - -**Merged pull requests:** - -- Release 2.2.1 🐛 [\#392](https://github.com/torrentpier/torrentpier/pull/392) ([Exileum](https://github.com/Exileum)) -- Partial renewal of the Ukrainian language from our toloka.to friends [\#391](https://github.com/torrentpier/torrentpier/pull/391) ([Exileum](https://github.com/Exileum)) -- Create CODE\_OF\_CONDUCT.md [\#390](https://github.com/torrentpier/torrentpier/pull/390) ([Exileum](https://github.com/Exileum)) -- Fix default users language in dump [\#389](https://github.com/torrentpier/torrentpier/pull/389) ([Exileum](https://github.com/Exileum)) -- Tracker search forum list simplification [\#388](https://github.com/torrentpier/torrentpier/pull/388) ([Exileum](https://github.com/Exileum)) -- Fix some notices in admin panel reported by BugSnag [\#387](https://github.com/torrentpier/torrentpier/pull/387) ([Exileum](https://github.com/Exileum)) -- Fixed SQL. Remove limit from update [\#368](https://github.com/torrentpier/torrentpier/pull/368) ([VasyOk](https://github.com/VasyOk)) - -## [v2.2.0](https://github.com/torrentpier/torrentpier/tree/v2.2.0) (2017-06-12) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.1.5...v2.2.0) - -**Merged pull requests:** - -- Release 2.2.0 ☘️ [\#328](https://github.com/torrentpier/torrentpier/pull/328) ([Exileum](https://github.com/Exileum)) -- Release preparation. Crowdin language pack update [\#322](https://github.com/torrentpier/torrentpier/pull/322) ([Exileum](https://github.com/Exileum)) -- TorrentPier Aurochs release preparation [\#321](https://github.com/torrentpier/torrentpier/pull/321) ([Exileum](https://github.com/Exileum)) -- Release preparation. Small bugfixes and readme translation [\#318](https://github.com/torrentpier/torrentpier/pull/318) ([Exileum](https://github.com/Exileum)) -- Crowdin language pack update [\#314](https://github.com/torrentpier/torrentpier/pull/314) ([Exileum](https://github.com/Exileum)) -- IP storage and attachment system bugfix. PHP 5.6+ [\#313](https://github.com/torrentpier/torrentpier/pull/313) ([Exileum](https://github.com/Exileum)) -- Bootstrap update & beginning of the develop branch partial merge [\#303](https://github.com/torrentpier/torrentpier/pull/303) ([Exileum](https://github.com/Exileum)) -- Fix avatars display bug [\#302](https://github.com/torrentpier/torrentpier/pull/302) ([Exileum](https://github.com/Exileum)) -- Cron subsystem rework. Environments [\#301](https://github.com/torrentpier/torrentpier/pull/301) ([Exileum](https://github.com/Exileum)) -- New logotype, favicon and css split & reformat [\#293](https://github.com/torrentpier/torrentpier/pull/293) ([Exileum](https://github.com/Exileum)) -- Whoops error handler for debug users [\#291](https://github.com/torrentpier/torrentpier/pull/291) ([Exileum](https://github.com/Exileum)) -- Replace sitemap to the new external component [\#252](https://github.com/torrentpier/torrentpier/pull/252) ([Exileum](https://github.com/Exileum)) -- Crowdin language pack update. Removed some languages [\#250](https://github.com/torrentpier/torrentpier/pull/250) ([Exileum](https://github.com/Exileum)) -- IP detect subsystem replace. Trash cleanup. Defines [\#249](https://github.com/torrentpier/torrentpier/pull/249) ([Exileum](https://github.com/Exileum)) -- Old ads module removal [\#244](https://github.com/torrentpier/torrentpier/pull/244) ([Exileum](https://github.com/Exileum)) -- External bencode library and some other changes [\#243](https://github.com/torrentpier/torrentpier/pull/243) ([Exileum](https://github.com/Exileum)) -- Added new logo to readme [\#242](https://github.com/torrentpier/torrentpier/pull/242) ([VasyOk](https://github.com/VasyOk)) -- Bugsnag integration and some bugfixes in for cycles [\#239](https://github.com/torrentpier/torrentpier/pull/239) ([Exileum](https://github.com/Exileum)) -- Bug with variables replacement and Crowdin localization fix [\#238](https://github.com/torrentpier/torrentpier/pull/238) ([Exileum](https://github.com/Exileum)) -- PSR-4 compatible legacy code autoloading [\#237](https://github.com/torrentpier/torrentpier/pull/237) ([Exileum](https://github.com/Exileum)) -- UFT-8 autocorrection removal from standart package [\#236](https://github.com/torrentpier/torrentpier/pull/236) ([Exileum](https://github.com/Exileum)) -- New localization strings and full Crowdin language pack update [\#235](https://github.com/torrentpier/torrentpier/pull/235) ([Exileum](https://github.com/Exileum)) -- Replace own emailer to SwiftMailer [\#234](https://github.com/torrentpier/torrentpier/pull/234) ([Exileum](https://github.com/Exileum)) -- Force email charset and Crowdin language pack update [\#232](https://github.com/torrentpier/torrentpier/pull/232) ([Exileum](https://github.com/Exileum)) -- Crowdin language pack update [\#231](https://github.com/torrentpier/torrentpier/pull/231) ([Exileum](https://github.com/Exileum)) -- Static code analyzer inspection, part 2 [\#230](https://github.com/torrentpier/torrentpier/pull/230) ([Exileum](https://github.com/Exileum)) -- Static code analyzer cherry picked from \#228 [\#229](https://github.com/torrentpier/torrentpier/pull/229) ([VasyOk](https://github.com/VasyOk)) -- Fix compare php version. [\#226](https://github.com/torrentpier/torrentpier/pull/226) ([VasyOk](https://github.com/VasyOk)) -- Fixed compare version PHP [\#225](https://github.com/torrentpier/torrentpier/pull/225) ([VasyOk](https://github.com/VasyOk)) -- Deprecated each\(\) function in php 7.2 [\#211](https://github.com/torrentpier/torrentpier/pull/211) ([Exileum](https://github.com/Exileum)) -- Performance refactoring. Remove test code. Fix path in config [\#208](https://github.com/torrentpier/torrentpier/pull/208) ([VasyOk](https://github.com/VasyOk)) -- Fix many notices in admin\_attach\_cp.php [\#183](https://github.com/torrentpier/torrentpier/pull/183) ([Exileum](https://github.com/Exileum)) -- Add check lang [\#178](https://github.com/torrentpier/torrentpier/pull/178) ([VasyOk](https://github.com/VasyOk)) -- Remove order from sql [\#177](https://github.com/torrentpier/torrentpier/pull/177) ([VasyOk](https://github.com/VasyOk)) -- Fix path to viewtorrent.php [\#176](https://github.com/torrentpier/torrentpier/pull/176) ([VasyOk](https://github.com/VasyOk)) -- New Crowdin translations [\#168](https://github.com/torrentpier/torrentpier/pull/168) ([Exileum](https://github.com/Exileum)) -- Localization trash cleanup [\#167](https://github.com/torrentpier/torrentpier/pull/167) ([Exileum](https://github.com/Exileum)) -- New Crowdin translations \(develop\) [\#165](https://github.com/torrentpier/torrentpier/pull/165) ([Exileum](https://github.com/Exileum)) -- New Crowdin translations \(master\) [\#164](https://github.com/torrentpier/torrentpier/pull/164) ([Exileum](https://github.com/Exileum)) -- Crowdin localization integration prepare and stopwords removal [\#163](https://github.com/torrentpier/torrentpier/pull/163) ([Exileum](https://github.com/Exileum)) -- Crowdin localization integration [\#162](https://github.com/torrentpier/torrentpier/pull/162) ([Exileum](https://github.com/Exileum)) -- New Crowdin translations \(develop\) [\#161](https://github.com/torrentpier/torrentpier/pull/161) ([Exileum](https://github.com/Exileum)) -- \#157. Fix Error in GET /bt/announce.php [\#159](https://github.com/torrentpier/torrentpier/pull/159) ([VasyOk](https://github.com/VasyOk)) -- Added check composer install [\#148](https://github.com/torrentpier/torrentpier/pull/148) ([VasyOk](https://github.com/VasyOk)) -- Fix operators [\#147](https://github.com/torrentpier/torrentpier/pull/147) ([VasyOk](https://github.com/VasyOk)) -- \#144 Files should not be executable [\#145](https://github.com/torrentpier/torrentpier/pull/145) ([VasyOk](https://github.com/VasyOk)) -- Change paths to absolute pathname [\#143](https://github.com/torrentpier/torrentpier/pull/143) ([VasyOk](https://github.com/VasyOk)) -- Redundant pagination, mysql 5.7+ issue, release template option [\#141](https://github.com/torrentpier/torrentpier/pull/141) ([Exileum](https://github.com/Exileum)) -- Transfer announce to the php7-optimized database layer [\#140](https://github.com/torrentpier/torrentpier/pull/140) ([Exileum](https://github.com/Exileum)) -- Cleanup repository from old deprecated scripts and server configs [\#139](https://github.com/torrentpier/torrentpier/pull/139) ([Exileum](https://github.com/Exileum)) -- Torrent ajax file list fixes and small reformat [\#138](https://github.com/torrentpier/torrentpier/pull/138) ([Exileum](https://github.com/Exileum)) -- Codacy / Scrutinizer / Code Climate / Coveralls integration, Slack hook to Travis CI [\#137](https://github.com/torrentpier/torrentpier/pull/137) ([Exileum](https://github.com/Exileum)) -- Add a Codacy badge to README.md [\#136](https://github.com/torrentpier/torrentpier/pull/136) ([codacy-badger](https://github.com/codacy-badger)) -- Replace Sphinx API to the composer version [\#135](https://github.com/torrentpier/torrentpier/pull/135) ([Exileum](https://github.com/Exileum)) -- Incorrect case close operators \(develop\) [\#134](https://github.com/torrentpier/torrentpier/pull/134) ([Exileum](https://github.com/Exileum)) -- Incorrect case close operators \(master\) [\#133](https://github.com/torrentpier/torrentpier/pull/133) ([Exileum](https://github.com/Exileum)) -- Composer init, editor config, some cleanup and much more [\#132](https://github.com/torrentpier/torrentpier/pull/132) ([Exileum](https://github.com/Exileum)) -- Remove eval from admin\_attachments and emailer [\#129](https://github.com/torrentpier/torrentpier/pull/129) ([VasyOk](https://github.com/VasyOk)) -- Fix sql group [\#128](https://github.com/torrentpier/torrentpier/pull/128) ([VasyOk](https://github.com/VasyOk)) -- Remove Zend [\#127](https://github.com/torrentpier/torrentpier/pull/127) ([VasyOk](https://github.com/VasyOk)) -- Small fix to the upgrade schema [\#126](https://github.com/torrentpier/torrentpier/pull/126) ([Exileum](https://github.com/Exileum)) -- Fixed id sqllog table and name select db [\#125](https://github.com/torrentpier/torrentpier/pull/125) ([VasyOk](https://github.com/VasyOk)) -- New external service for look up IP address [\#122](https://github.com/torrentpier/torrentpier/pull/122) ([Exileum](https://github.com/Exileum)) -- New branding and copyright [\#121](https://github.com/torrentpier/torrentpier/pull/121) ([Exileum](https://github.com/Exileum)) -- Poster birthday with no birthday date fix [\#120](https://github.com/torrentpier/torrentpier/pull/120) ([Exileum](https://github.com/Exileum)) -- Tidy deprecated option merge-spans remove [\#119](https://github.com/torrentpier/torrentpier/pull/119) ([Exileum](https://github.com/Exileum)) -- Db logging [\#118](https://github.com/torrentpier/torrentpier/pull/118) ([leroy0](https://github.com/leroy0)) -- CircleCi, CodeCoverage and composer dependencies [\#117](https://github.com/torrentpier/torrentpier/pull/117) ([Exileum](https://github.com/Exileum)) -- Db exceptions, query with binding [\#116](https://github.com/torrentpier/torrentpier/pull/116) ([leroy0](https://github.com/leroy0)) -- PHP 7+ requirements, Travis and other small fixes [\#115](https://github.com/torrentpier/torrentpier/pull/115) ([Exileum](https://github.com/Exileum)) -- New compatible with php7 classes: Db, Config [\#114](https://github.com/torrentpier/torrentpier/pull/114) ([Exileum](https://github.com/Exileum)) -- Refactoring posting\_attachments [\#112](https://github.com/torrentpier/torrentpier/pull/112) ([VasyOk](https://github.com/VasyOk)) -- Update the current year in the license text [\#110](https://github.com/torrentpier/torrentpier/pull/110) ([Exileum](https://github.com/Exileum)) -- Reformat master branch to PSR-2 and MIT license [\#109](https://github.com/torrentpier/torrentpier/pull/109) ([Exileum](https://github.com/Exileum)) -- Master branch up to php 7 compatibility [\#107](https://github.com/torrentpier/torrentpier/pull/107) ([VasyOk](https://github.com/VasyOk)) -- Removal of unused scripts and server configs [\#105](https://github.com/torrentpier/torrentpier/pull/105) ([Exileum](https://github.com/Exileum)) -- New license - MIT [\#104](https://github.com/torrentpier/torrentpier/pull/104) ([Exileum](https://github.com/Exileum)) -- New coding standart: PSR-2 [\#103](https://github.com/torrentpier/torrentpier/pull/103) ([Exileum](https://github.com/Exileum)) -- Improvements in code and work cache [\#101](https://github.com/torrentpier/torrentpier/pull/101) ([VasyOk](https://github.com/VasyOk)) -- Migration to the new config subsystem [\#100](https://github.com/torrentpier/torrentpier/pull/100) ([Exileum](https://github.com/Exileum)) -- php-lang-correct removed [\#99](https://github.com/torrentpier/torrentpier/pull/99) ([Exileum](https://github.com/Exileum)) -- Logical operators should be avoided [\#98](https://github.com/torrentpier/torrentpier/pull/98) ([Exileum](https://github.com/Exileum)) -- Migration to the new cache subsystem [\#97](https://github.com/torrentpier/torrentpier/pull/97) ([Exileum](https://github.com/Exileum)) -- Rework of feed.php and some other files [\#94](https://github.com/torrentpier/torrentpier/pull/94) ([Exileum](https://github.com/Exileum)) -- Refactoring Cache [\#92](https://github.com/torrentpier/torrentpier/pull/92) ([VasyOk](https://github.com/VasyOk)) -- Add new tests and refactoring [\#89](https://github.com/torrentpier/torrentpier/pull/89) ([VasyOk](https://github.com/VasyOk)) -- Add tests [\#88](https://github.com/torrentpier/torrentpier/pull/88) ([VasyOk](https://github.com/VasyOk)) -- Some fix after removed @ [\#87](https://github.com/torrentpier/torrentpier/pull/87) ([VasyOk](https://github.com/VasyOk)) -- \#77 Add monolog [\#86](https://github.com/torrentpier/torrentpier/pull/86) ([VasyOk](https://github.com/VasyOk)) -- Remove at [\#85](https://github.com/torrentpier/torrentpier/pull/85) ([VasyOk](https://github.com/VasyOk)) -- Переделка файла dl.php на работу с новой базой [\#83](https://github.com/torrentpier/torrentpier/pull/83) ([Exileum](https://github.com/Exileum)) -- Added use profiler and in\(de\)crement methods. [\#82](https://github.com/torrentpier/torrentpier/pull/82) ([VasyOk](https://github.com/VasyOk)) -- Remove response service provider [\#80](https://github.com/torrentpier/torrentpier/pull/80) ([VasyOk](https://github.com/VasyOk)) -- DI usage example [\#79](https://github.com/torrentpier/torrentpier/pull/79) ([Exileum](https://github.com/Exileum)) -- Added methods to simplify the work with the database [\#75](https://github.com/torrentpier/torrentpier/pull/75) ([VasyOk](https://github.com/VasyOk)) -- Captcha service provider [\#72](https://github.com/torrentpier/torrentpier/pull/72) ([Exileum](https://github.com/Exileum)) -- Fixed a getting value from config through method toArray [\#71](https://github.com/torrentpier/torrentpier/pull/71) ([VasyOk](https://github.com/VasyOk)) -- \#69 Fixed crypt notice [\#70](https://github.com/torrentpier/torrentpier/pull/70) ([VasyOk](https://github.com/VasyOk)) -- \#58 Expansion Zend Config [\#68](https://github.com/torrentpier/torrentpier/pull/68) ([VasyOk](https://github.com/VasyOk)) -- change preset to prs2 [\#61](https://github.com/torrentpier/torrentpier/pull/61) ([VasyOk](https://github.com/VasyOk)) -- Applied fixes from StyleCI [\#60](https://github.com/torrentpier/torrentpier/pull/60) ([Exileum](https://github.com/Exileum)) - -## [v2.1.5](https://github.com/torrentpier/torrentpier/tree/v2.1.5) (2015-05-23) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.1.4...v2.1.5) - -**Merged pull requests:** - -- Add a Gitter chat badge to README.md [\#47](https://github.com/torrentpier/torrentpier/pull/47) ([gitter-badger](https://github.com/gitter-badger)) -- Фикс подтверждения пароля [\#43](https://github.com/torrentpier/torrentpier/pull/43) ([dreddred](https://github.com/dreddred)) -- Fix port Ocelot [\#42](https://github.com/torrentpier/torrentpier/pull/42) ([Altairko](https://github.com/Altairko)) -- Develop [\#40](https://github.com/torrentpier/torrentpier/pull/40) ([Exileum](https://github.com/Exileum)) - -## [v2.1.4](https://github.com/torrentpier/torrentpier/tree/v2.1.4) (2014-11-26) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.1.3...v2.1.4) - -**Merged pull requests:** - -- Develop [\#39](https://github.com/torrentpier/torrentpier/pull/39) ([Exileum](https://github.com/Exileum)) - -## [v2.1.3](https://github.com/torrentpier/torrentpier/tree/v2.1.3) (2014-10-24) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.1.2...v2.1.3) - -**Merged pull requests:** - -- Версия 2.1.3 ALPHA-3 [\#38](https://github.com/torrentpier/torrentpier/pull/38) ([Exileum](https://github.com/Exileum)) - -## [v2.1.2](https://github.com/torrentpier/torrentpier/tree/v2.1.2) (2014-10-20) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.1.1...v2.1.2) - -**Merged pull requests:** - -- Версия 2.1.2 ALPHA-2 [\#37](https://github.com/torrentpier/torrentpier/pull/37) ([Exileum](https://github.com/Exileum)) - -## [v2.1.1](https://github.com/torrentpier/torrentpier/tree/v2.1.1) (2014-09-11) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.1.0...v2.1.1) - -**Merged pull requests:** - -- Версия 2.1.1 ALPHA-1 [\#34](https://github.com/torrentpier/torrentpier/pull/34) ([Exileum](https://github.com/Exileum)) - -## [v2.1.0](https://github.com/torrentpier/torrentpier/tree/v2.1.0) (2014-09-07) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.0.599b...v2.1.0) - -**Merged pull requests:** - -- Версия 2.1 \(R600\) [\#32](https://github.com/torrentpier/torrentpier/pull/32) ([Exileum](https://github.com/Exileum)) - -## [v2.0.599b](https://github.com/torrentpier/torrentpier/tree/v2.0.599b) (2014-08-30) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.0.599...v2.0.599b) - -**Merged pull requests:** - -- Develop [\#31](https://github.com/torrentpier/torrentpier/pull/31) ([Exileum](https://github.com/Exileum)) -- Feature/terms [\#30](https://github.com/torrentpier/torrentpier/pull/30) ([Exileum](https://github.com/Exileum)) - -## [v2.0.599](https://github.com/torrentpier/torrentpier/tree/v2.0.599) (2014-08-29) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.0.598...v2.0.599) - -**Merged pull requests:** - -- R599 [\#29](https://github.com/torrentpier/torrentpier/pull/29) ([Exileum](https://github.com/Exileum)) - -## [v2.0.598](https://github.com/torrentpier/torrentpier/tree/v2.0.598) (2014-08-27) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.0.597...v2.0.598) - -**Merged pull requests:** - -- R598 [\#28](https://github.com/torrentpier/torrentpier/pull/28) ([Exileum](https://github.com/Exileum)) - -## [v2.0.597](https://github.com/torrentpier/torrentpier/tree/v2.0.597) (2014-08-24) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.0.596...v2.0.597) - -**Merged pull requests:** - -- R597 [\#27](https://github.com/torrentpier/torrentpier/pull/27) ([Exileum](https://github.com/Exileum)) - -## [v2.0.596](https://github.com/torrentpier/torrentpier/tree/v2.0.596) (2014-08-20) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.0.595...v2.0.596) - -**Merged pull requests:** - -- Develop [\#26](https://github.com/torrentpier/torrentpier/pull/26) ([Exileum](https://github.com/Exileum)) - -## [v2.0.595](https://github.com/torrentpier/torrentpier/tree/v2.0.595) (2014-08-14) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.0.594b...v2.0.595) - -**Merged pull requests:** - -- Develop [\#22](https://github.com/torrentpier/torrentpier/pull/22) ([Exileum](https://github.com/Exileum)) - -## [v2.0.594b](https://github.com/torrentpier/torrentpier/tree/v2.0.594b) (2014-08-07) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.0.594...v2.0.594b) - -**Merged pull requests:** - -- Develop [\#17](https://github.com/torrentpier/torrentpier/pull/17) ([Exileum](https://github.com/Exileum)) -- Hotfix/bbcode [\#16](https://github.com/torrentpier/torrentpier/pull/16) ([Exileum](https://github.com/Exileum)) - -## [v2.0.594](https://github.com/torrentpier/torrentpier/tree/v2.0.594) (2014-08-07) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.0.593b...v2.0.594) - -**Merged pull requests:** - -- Develop [\#15](https://github.com/torrentpier/torrentpier/pull/15) ([Exileum](https://github.com/Exileum)) - -## [v2.0.593b](https://github.com/torrentpier/torrentpier/tree/v2.0.593b) (2014-08-05) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.0.593...v2.0.593b) - -## [v2.0.593](https://github.com/torrentpier/torrentpier/tree/v2.0.593) (2014-08-05) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.0.592...v2.0.593) - -**Merged pull requests:** - -- Develop [\#13](https://github.com/torrentpier/torrentpier/pull/13) ([Exileum](https://github.com/Exileum)) - -## [v2.0.592](https://github.com/torrentpier/torrentpier/tree/v2.0.592) (2014-08-01) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.0.591...v2.0.592) - -## [v2.0.591](https://github.com/torrentpier/torrentpier/tree/v2.0.591) (2014-07-13) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.0.590...v2.0.591) - -## [v2.0.590](https://github.com/torrentpier/torrentpier/tree/v2.0.590) (2014-06-21) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.0.589...v2.0.590) - -## [v2.0.589](https://github.com/torrentpier/torrentpier/tree/v2.0.589) (2014-06-19) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.0.588...v2.0.589) - -## [v2.0.588](https://github.com/torrentpier/torrentpier/tree/v2.0.588) (2014-06-17) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.0.587...v2.0.588) - -## [v2.0.587](https://github.com/torrentpier/torrentpier/tree/v2.0.587) (2014-06-15) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.0.586...v2.0.587) - -## [v2.0.586](https://github.com/torrentpier/torrentpier/tree/v2.0.586) (2014-06-13) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.0.585...v2.0.586) - -## [v2.0.585](https://github.com/torrentpier/torrentpier/tree/v2.0.585) (2014-05-14) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.0.584...v2.0.585) - -## [v2.0.584](https://github.com/torrentpier/torrentpier/tree/v2.0.584) (2014-03-07) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.0.583...v2.0.584) - -## [v2.0.583](https://github.com/torrentpier/torrentpier/tree/v2.0.583) (2014-02-10) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.0.581...v2.0.583) - -## [v2.0.581](https://github.com/torrentpier/torrentpier/tree/v2.0.581) (2014-02-03) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.0.572...v2.0.581) - -## [v2.0.572](https://github.com/torrentpier/torrentpier/tree/v2.0.572) (2014-01-28) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.0.564...v2.0.572) - -## [v2.0.564](https://github.com/torrentpier/torrentpier/tree/v2.0.564) (2014-01-20) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.0.560...v2.0.564) - -## [v2.0.560](https://github.com/torrentpier/torrentpier/tree/v2.0.560) (2014-01-17) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.0.556...v2.0.560) - -## [v2.0.556](https://github.com/torrentpier/torrentpier/tree/v2.0.556) (2014-01-12) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.0.552...v2.0.556) - -## [v2.0.552](https://github.com/torrentpier/torrentpier/tree/v2.0.552) (2013-09-05) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.0.506...v2.0.552) - -## [v2.0.506](https://github.com/torrentpier/torrentpier/tree/v2.0.506) (2013-06-23) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.0.500...v2.0.506) - -## [v2.0.500](https://github.com/torrentpier/torrentpier/tree/v2.0.500) (2013-05-14) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.0.491...v2.0.500) - -## [v2.0.491](https://github.com/torrentpier/torrentpier/tree/v2.0.491) (2013-01-12) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.0.477...v2.0.491) - -## [v2.0.477](https://github.com/torrentpier/torrentpier/tree/v2.0.477) (2012-11-14) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.0.463...v2.0.477) - -## [v2.0.463](https://github.com/torrentpier/torrentpier/tree/v2.0.463) (2012-10-16) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.0.456...v2.0.463) - -## [v2.0.456](https://github.com/torrentpier/torrentpier/tree/v2.0.456) (2012-09-07) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.0.400...v2.0.456) - -## [v2.0.400](https://github.com/torrentpier/torrentpier/tree/v2.0.400) (2012-04-13) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.0.300...v2.0.400) - -## [v2.0.300](https://github.com/torrentpier/torrentpier/tree/v2.0.300) (2011-10-14) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.0.261...v2.0.300) - -## [v2.0.261](https://github.com/torrentpier/torrentpier/tree/v2.0.261) (2011-08-28) -[Full Changelog](https://github.com/torrentpier/torrentpier/compare/v2.0.0...v2.0.261) - -## [v2.0.0](https://github.com/torrentpier/torrentpier/tree/v2.0.0) (2011-08-08) - - -\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)* diff --git a/README.md b/README.md index 93a1d58ac..96b27a825 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,8 @@
-
-
+
@@ -20,18 +19,18 @@
## 🐂 About TorrentPier
-TorrentPier — bull-powered BitTorrent Public/Private tracker engine, written in php. High speed, simple modification, high load
-architecture. In addition, we have very helpful
-[official support forum](https://torrentpier.com), where it's possible to get any support and download modifications for engine.
+TorrentPier — bull-powered BitTorrent Public/Private tracker engine, written in PHP. High speed, simple modifications, load-balanced
+architecture. In addition, we have a very helpful
+[official support forum](https://torrentpier.com), where it's possible to get support and download modifications for the engine.
## 🌈 Current status
-TorrentPier is currently in active development. The goal is to remove all legacy code and rewrite existing to
-modern standards. If you want to go deep on the code, check our [issues](https://github.com/torrentpier/torrentpier/issues)
-and go from there. The documentation will be translated into english in the near future, currently russian is the main language of it.
+TorrentPier is currently in active development. The goal is to remove all legacy code and rewrite the existing code to
+modern specifications. If you want to delve deep into the code, check our [issues](https://github.com/torrentpier/torrentpier/issues)
+and go from there. The documentation will be translated to English in the near future, currently Russian is the main language.
## ✨ Features
-* Rich forum browsing/moderation tools
+* Rich forum with browsing/moderation tools
* High-load capable, heavily configurable announcer
* Scrape support
* FreeLeech
@@ -39,11 +38,11 @@ and go from there. The documentation will be translated into english in the near
* BitTorrent v2 support
* Event-based invite system
* Bonus points
-* Polls system
-* PM system
-* Multilingual support (Fully supported for now only Russia and English languages)
-* Atom feeds
-* ... and MUCH MORE!
+* Polling system
+* PM/DM system
+* Multilingual support (Russian and English are currently fully supported, with others in the future)
+* Atom/RSS feeds
+* ... and so MUCH MORE!
## 🖥️ Demo
@@ -52,38 +51,38 @@ and go from there. The documentation will be translated into english in the near
* Password: `admin`
> [!NOTE]
-> Demo is resetting every 24 hours!
+> Demo resets every 24 hours!
## 🔧 Requirements
-* Apache / nginx / caddy
-* MySQL 5.5.3 or above / MariaDB 10.0 or above / Percona
-* PHP: 8.1 / 8.2 / 8.3
+* Apache / nginx ([example config](install/nginx.conf)) / caddy ([example config](install/Caddyfile))
+* MySQL 5.5.3 or above (including MySQL 8.0+) / MariaDB 10.0 or above / Percona
+* PHP: 8.2 / 8.3 / 8.4
* PHP Extensions: mbstring, gd, bcmath, intl, tidy (optional), xml, xmlwriter
* Crontab (Recommended)
## 💾 Installation
-For installation, select one of installation variants below.
+For the installation, select one of the installation variants below:
### Quick (Clean install) 🚀
Check out our [autoinstall](https://github.com/torrentpier/autoinstall) repository with detailed instructions.
-> [!IMPORTANT]
-> Thanks to [Sergei Solovev](https://github.com/SeAnSolovev) for installation script ❤️
+> [!NOTE]
+> Thanks to [Sergei Solovev](https://github.com/SeAnSolovev) for this installation script ❤️
### Quick (For web-panels) ☕️
-1. Select the folder where you want to install TorrentPier
+1. Select the folder where you want TorrentPier installed
```shell
cd /path/to/public_html
```
-2. Download latest version of TorrentPier
+2. Download the latest version of TorrentPier
```shell
sudo git clone https://github.com/torrentpier/torrentpier.git .
```
-3. After, run command below and follow the given steps
+3. After completing, execute the command below and follow the instructions
```shell
php install.php
```
@@ -92,46 +91,66 @@ Check out our [autoinstall](https://github.com/torrentpier/autoinstall) reposito
### Manual 🔩
1. Install [Composer](https://getcomposer.org/)
-2. Run command below to create TorrentPier project
+2. Run the following command to create the TorrentPier project
```shell
composer create-project torrentpier/torrentpier
```
3. [Check our system requirements](#-requirements)
-4. After, run command below on the project directory, to install Composer dependencies
+4. After, run this command in the project directory to install Composer dependencies
```shell
composer install
```
-5. Create database and import dump located at `install/sql/mysql.sql`
-6. Edit database configuration settings in the environment (`.env.example`), after, rename to `.env`
+5. Edit database configuration settings in the environment (`.env.example`), after, rename to `.env`
+6. Create a database and run migrations to set up the schema
+ ```shell
+ php vendor/bin/phinx migrate --configuration=phinx.php
+ ```
7. Provide write permissions to the specified folders:
* `data/avatars`, `data/uploads`, `data/uploads/thumbs`
* `internal_data/atom`, `internal_data/cache`, `internal_data/log`, `internal_data/triggers`
* `sitemap`
8. Voila! ✨
+> [!TIP]
+> You can automate steps 4-7 by running `php install.php` instead, which will guide you through the setup process interactively.
+
> [!IMPORTANT]
-> The specific settings depend on the server you are using, but in general case we recommend chmod **0755** for folders, and chmod **0644** for files in them.
+> The specific settings depend on the server you are using, but in general we recommend chmod **0755** for folders, and chmod **0644** for the files in them.
### Additional steps 👣
-1. Edit this files:
- * `favicon.png` (change on your own)
- * `robots.txt` (change the addresses in lines `Host` and `Sitemap` on your own)
-2. Log in to the forum with **admin/admin** login/password and finish setting up via admin panel
+1. Edit these files:
+ * `favicon.png` (change to your own)
+ * `robots.txt` (change the addresses in lines `Host` and `Sitemap` to your own)
+2. Log in to the forum using the **admin/admin** login/password, and finish setting up via admin panel. Don't forget to change your password!
## 🔐 Security vulnerabilities
If you discover a security vulnerability within TorrentPier, please follow our [security policy](https://github.com/torrentpier/torrentpier/security/policy), so we can address it promptly.
+## 🧪 Testing
+
+TorrentPier includes a comprehensive testing suite built with **Pest PHP**. Run tests to ensure code quality and system reliability:
+
+```shell
+# Run all tests
+./vendor/bin/pest
+
+# Run with coverage
+./vendor/bin/pest --coverage
+```
+
+For detailed testing documentation, see [tests/README.md](tests/README.md).
+
## 📌 Our recommendations
-* *The recommended way to run `cron.php`.* - For significant tracker speed increase may be required to replace built-in cron.php by operating system daemon.
-* *Local configuration copy.* - You can override the settings using local configuration file `library/config.local.php`.
+* *It's recommended to run `cron.php`.* - For significant tracker speed increase it may be required to replace the built-in cron.php with an operating system daemon.
+* *Local configuration copy.* - You can override the settings using the local configuration file `library/config.local.php`.
## 💚 Contributing / Contributors
-Please read our [contributing policy](CONTRIBUTING.md) and [code of conduct](CODE_OF_CONDUCT.md) for details, and the process for
-submitting pull requests to us. But we are always ready to renew your pull-request for compliance with
+Please read our [contributing policy](CONTRIBUTING.md) and [code of conduct](CODE_OF_CONDUCT.md) for details, and the process for
+submitting pull requests to us. But we are always ready to review your pull-request for compliance with
these requirements. Just send it!
@@ -142,7 +161,7 @@ Made with [contrib.rocks](https://contrib.rocks).
## 💞 Sponsoring
-Support this project by becoming a sponsor or a backer.
+Support this project by becoming a sponsor or a backer.
[](https://opencollective.com/torrentpier)
[](https://opencollective.com/torrentpier)
@@ -165,7 +184,7 @@ Support this project by becoming a sponsor or a backer.
## 📦 Versioning
-We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/torrentpier/torrentpier/tags).
+We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/torrentpier/torrentpier/tags).
## 📖 License
diff --git a/UPGRADE_GUIDE.md b/UPGRADE_GUIDE.md
new file mode 100644
index 000000000..2305e8bba
--- /dev/null
+++ b/UPGRADE_GUIDE.md
@@ -0,0 +1,1261 @@
+# 🚀 TorrentPier Upgrade Guide
+
+This guide helps you upgrade your TorrentPier installation to the latest version, covering breaking changes, new features, and migration strategies.
+
+## 📖 Table of Contents
+
+- [Database Migration System](#database-migration-system)
+- [Database Layer Migration](#database-layer-migration)
+- [Unified Cache System Migration](#unified-cache-system-migration)
+- [Configuration System Migration](#configuration-system-migration)
+- [Language System Migration](#language-system-migration)
+- [Censor System Migration](#censor-system-migration)
+- [Select System Migration](#select-system-migration)
+- [Development System Migration](#development-system-migration)
+- [Breaking Changes](#breaking-changes)
+- [Best Practices](#best-practices)
+
+## 🗄️ Database Migration System
+
+TorrentPier now includes a modern database migration system using **Phinx** (from CakePHP), replacing the legacy direct SQL import approach. This provides version-controlled database schema management with rollback capabilities.
+
+### Key Benefits
+
+- **Version Control**: Database schema changes are tracked in code
+- **Environment Consistency**: Same database structure across development, staging, and production
+- **Safe Rollbacks**: Ability to safely revert schema changes
+- **Team Collaboration**: No more merge conflicts on database changes
+- **Automated Deployments**: Database updates as part of deployment process
+
+### Migration Architecture
+
+#### Engine Strategy
+- **InnoDB**: Used for all tables for maximum data integrity and reliability
+- **ACID Compliance**: Full transaction support and crash recovery for all data
+- **Row-Level Locking**: Better concurrency for high-traffic operations
+
+#### Directory Structure
+```
+/migrations/
+ ├── 20250619000001_initial_schema.php # Complete database schema
+ ├── 20250619000002_seed_initial_data.php # Essential data seeding
+ └── future_migrations... # Your custom migrations
+/phinx.php # Migration configuration
+```
+
+### For New Installations
+
+New installations automatically use migrations instead of the legacy SQL dump:
+
+```bash
+# Fresh installation now uses migrations
+php install.php
+```
+
+The installer will:
+1. Set up environment configuration
+2. Create the database
+3. Run all migrations automatically
+4. Seed initial data (admin user, configuration, etc.)
+
+### For Existing Installations
+
+Existing installations continue to work without changes. The migration system is designed for new installations and development workflows.
+
+**Important**: Existing installations should **not** attempt to migrate to the new system without proper backup and testing procedures.
+
+### Developer Workflow
+
+#### Creating Migrations
+```bash
+# Create a new migration
+php vendor/bin/phinx create AddNewFeatureTable
+
+# Edit the generated migration file
+# /migrations/YYYYMMDDHHMMSS_add_new_feature_table.php
+```
+
+#### Running Migrations
+```bash
+# Run all pending migrations
+php vendor/bin/phinx migrate
+
+# Check migration status
+php vendor/bin/phinx status
+
+# Rollback last migration
+php vendor/bin/phinx rollback
+```
+
+#### Migration Template
+```php
+table('bb_new_feature', [
+ 'engine' => 'InnoDB',
+ 'collation' => 'utf8mb4_unicode_ci'
+ ]);
+
+ $table->addColumn('name', 'string', ['limit' => 100])
+ ->addColumn('created_at', 'timestamp', ['default' => 'CURRENT_TIMESTAMP'])
+ ->addIndex('name')
+ ->create();
+ }
+
+ // Optional: explicit up/down methods for complex operations
+ public function up()
+ {
+ // Complex data migration logic
+ }
+
+ public function down()
+ {
+ // Rollback logic
+ }
+}
+```
+
+#### Engine Guidelines
+```php
+// Use InnoDB for all tables for maximum reliability
+$table = $this->table('bb_user_posts', [
+ 'engine' => 'InnoDB',
+ 'collation' => 'utf8mb4_unicode_ci'
+]);
+
+// All tracker tables also use InnoDB for data integrity
+$table = $this->table('bb_bt_peer_stats', [
+ 'engine' => 'InnoDB',
+ 'collation' => 'utf8mb4_unicode_ci'
+]);
+
+// Buffer tables use InnoDB for consistency and reliability
+public function up() {
+ $this->execute('DROP TABLE IF EXISTS buf_temp_data');
+ // Recreate with new structure using InnoDB
+}
+```
+
+### Admin Panel Integration
+
+The admin panel includes a read-only migration status page at `/admin/admin_migrations.php`:
+
+- **Current migration version**
+- **Applied migrations history**
+- **Pending migrations list**
+- **Database statistics**
+- **Clear instructions for CLI operations**
+
+**Important**: The admin panel is **read-only** for security. All migration operations must be performed via CLI.
+
+### Complex Migration Handling
+
+For complex data transformations, create external scripts:
+
+```php
+// migrations/YYYYMMDDHHMMSS_complex_data_migration.php
+class ComplexDataMigration extends AbstractMigration
+{
+ public function up()
+ {
+ $this->output->writeln('Running complex data migration...');
+
+ // Call external script for complex operations
+ $result = shell_exec('php ' . __DIR__ . '/../scripts/migrate_torrent_data.php');
+ $this->output->writeln($result);
+
+ if (strpos($result, 'ERROR') !== false) {
+ throw new Exception('Complex migration failed');
+ }
+ }
+}
+```
+
+### Best Practices
+
+#### Migration Development
+```bash
+# 1. Create migration
+php vendor/bin/phinx create MyFeature
+
+# 2. Edit migration file
+# 3. Test locally
+php vendor/bin/phinx migrate -e development
+
+# 4. Test rollback
+php vendor/bin/phinx rollback -e development
+
+# 5. Commit to version control
+git add migrations/
+git commit -m "Add MyFeature migration"
+```
+
+#### Production Deployment
+```bash
+# Always backup database first
+mysqldump tracker_db > backup_$(date +%Y%m%d_%H%M%S).sql
+
+# Run migrations
+php vendor/bin/phinx migrate -e production
+
+# Verify application functionality
+# Monitor error logs
+```
+
+#### Team Collaboration
+- **Never modify existing migrations** that have been deployed
+- **Always create new migrations** for schema changes
+- **Test migrations on production-like data** before deployment
+- **Coordinate with team** before major schema changes
+
+### Configuration
+
+The migration system uses your existing `.env` configuration:
+
+```php
+// phinx.php automatically reads from .env
+'production' => [
+ 'adapter' => 'mysql',
+ 'host' => env('DB_HOST', 'localhost'),
+ 'port' => (int) env('DB_PORT', 3306),
+ 'name' => env('DB_DATABASE'),
+ 'user' => env('DB_USERNAME'),
+ 'pass' => env('DB_PASSWORD', ''),
+ 'charset' => 'utf8mb4',
+ 'collation' => 'utf8mb4_unicode_ci'
+]
+```
+
+### Troubleshooting
+
+#### Common Issues
+```bash
+# Migration table doesn't exist
+php vendor/bin/phinx init # Re-run if needed
+
+# Migration fails mid-way
+php vendor/bin/phinx rollback # Rollback to previous state
+
+# Check what would be applied
+php vendor/bin/phinx status # See pending migrations
+```
+
+#### Migration Recovery
+```bash
+# If migration fails, check status first
+php vendor/bin/phinx status
+
+# Rollback to known good state
+php vendor/bin/phinx rollback -t 20250619000002
+
+# Fix the migration code and re-run
+php vendor/bin/phinx migrate
+```
+
+### Legacy SQL Import Removal
+
+The legacy `install/sql/mysql.sql` approach has been replaced by migrations:
+
+- ✅ **New installations**: Use migrations automatically
+- ✅ **Development workflow**: Create migrations for all schema changes
+- ✅ **Version control**: All schema changes tracked in Git
+- ❌ **Direct SQL imports**: No longer used for new installations
+
+### Security Considerations
+
+- **CLI-only execution**: Migrations run via command line only
+- **Read-only admin interface**: Web interface shows status only
+- **Backup requirements**: Always backup before production migrations
+- **Access control**: Restrict migration command access to authorized personnel
+
+### Migration Setup for Existing Installations
+
+If you have an **existing TorrentPier installation** and want to adopt the migration system, you need to mark the initial migrations as already applied to avoid recreating your existing database schema.
+
+#### Detection: Do You Need This?
+
+You need migration setup if:
+- ✅ You have an existing TorrentPier installation with data
+- ✅ Your database already has tables like `bb_users`, `bb_forums`, etc.
+- ✅ The admin migration panel shows "Migration System: ✗ Not Initialized"
+
+#### Step-by-Step Setup Process
+
+**1. Backup Your Database**
+```bash
+mysqldump -u username -p database_name > backup_$(date +%Y%m%d_%H%M%S).sql
+```
+
+**2. Initialize Migration Table**
+```bash
+# This creates the bb_migrations table without running any migrations
+php vendor/bin/phinx init
+```
+
+**3. Mark Initial Migrations as Applied (Fake Run)**
+```bash
+# Mark the schema migration as applied without running it
+php vendor/bin/phinx migrate --fake --target=20250619000001
+
+# Mark the data seeding migration as applied without running it
+php vendor/bin/phinx migrate --fake --target=20250619000002
+```
+
+**4. Verify Setup**
+```bash
+# Check migration status
+php vendor/bin/phinx status
+```
+
+You should see both initial migrations marked as "up" (applied).
+
+#### Alternative: Manual SQL Method
+
+If you prefer manual control, you can directly insert migration records:
+
+```sql
+-- Create migration table (if phinx init didn't work)
+CREATE TABLE IF NOT EXISTS bb_migrations (
+ version bigint(20) NOT NULL,
+ migration_name varchar(100) DEFAULT NULL,
+ start_time timestamp NULL DEFAULT NULL,
+ end_time timestamp NULL DEFAULT NULL,
+ breakpoint tinyint(1) NOT NULL DEFAULT '0',
+ PRIMARY KEY (version)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
+
+-- Mark initial migrations as applied
+INSERT INTO bb_migrations (version, migration_name, start_time, end_time, breakpoint)
+VALUES
+('20250619000001', 'InitialSchema', NOW(), NOW(), 0),
+('20250619000002', 'SeedInitialData', NOW(), NOW(), 0);
+```
+
+#### Post-Setup Workflow
+
+After setup, your existing installation will work exactly like a fresh installation:
+
+```bash
+# Create new migrations
+php vendor/bin/phinx create AddNewFeature
+
+# Run new migrations
+php vendor/bin/phinx migrate
+
+# Check status
+php vendor/bin/phinx status
+```
+
+#### Troubleshooting
+
+**Migration table already exists:**
+- Check if you've already set up migrations: `php vendor/bin/phinx status`
+- If it shows errors, you may need to recreate: `DROP TABLE bb_migrations;` then restart
+
+**"Nothing to migrate" message:**
+- This is normal after fake runs - it means setup was successful
+- New migrations will appear when you create them
+
+**Admin panel shows "Needs Setup":**
+- Follow the setup process above
+- Refresh the admin panel after completion
+
+## 🗄️ Database Layer Migration
+
+TorrentPier has completely replaced its legacy database layer (SqlDb/Dbs) with a modern implementation using Nette Database while maintaining 100% backward compatibility.
+
+### No Code Changes Required
+
+**Important**: All existing `DB()->method()` calls continue to work exactly as before. This is an internal modernization that requires **zero code changes** in your application.
+
+```php
+// ✅ All existing code continues to work unchanged
+$user = DB()->fetch_row("SELECT * FROM users WHERE id = ?", 123);
+$users = DB()->fetch_rowset("SELECT * FROM users");
+$affected = DB()->affected_rows();
+$result = DB()->sql_query("UPDATE users SET status = ? WHERE id = ?", 1, 123);
+$escaped = DB()->escape($userInput);
+```
+
+### Key Improvements
+
+#### Modern Foundation
+- **Nette Database v3.2**: Modern, actively maintained database layer
+- **PDO-based**: Improved security and performance
+- **Type Safety**: Better error detection and IDE support
+- **Singleton Pattern**: Efficient connection management
+
+#### Enhanced Reliability
+- **Automatic Resource Cleanup**: Better memory management
+- **Improved Error Handling**: More detailed error information
+- **Connection Stability**: Better handling of connection issues
+- **Performance Optimizations**: Reduced overhead and improved query execution
+
+#### Debugging and Development
+- **Enhanced Explain Support**: Improved query analysis
+- **Better Query Logging**: More detailed performance tracking
+- **Debug Information**: Comprehensive debugging features
+- **Memory Tracking**: Better resource usage monitoring
+
+### Multiple Database Support
+
+Multiple database servers continue to work exactly as before:
+
+```php
+// ✅ Multiple database access unchanged
+$main_db = DB('db'); // Main database
+$tracker_db = DB('tr'); // Tracker database
+$stats_db = DB('stats'); // Statistics database
+```
+
+### Error Handling
+
+All error handling patterns remain identical:
+
+```php
+// ✅ Error handling works exactly as before
+$result = DB()->sql_query("SELECT * FROM users");
+if (!$result) {
+ $error = DB()->sql_error();
+ echo "Error: " . $error['message'];
+}
+```
+
+### Debug and Explain Features
+
+All debugging functionality is preserved and enhanced:
+
+```php
+// ✅ Debug features work as before
+DB()->debug('start');
+// ... run queries ...
+DB()->debug('stop');
+
+// ✅ Explain functionality unchanged
+DB()->explain('start');
+DB()->explain('display');
+```
+
+### Performance Benefits
+
+While maintaining compatibility, you get:
+- **Faster Connection Handling**: Singleton pattern prevents connection overhead
+- **Modern Query Execution**: Nette Database optimizations
+- **Better Resource Management**: Automatic cleanup and proper connection handling
+- **Reduced Memory Usage**: More efficient object management
+
+### 📖 Detailed Documentation
+
+For comprehensive information about the database layer changes, implementation details, and technical architecture, see:
+
+**[src/Database/README.md](src/Database/README.md)**
+
+This documentation covers:
+- Complete architecture overview
+- Technical implementation details
+- Migration notes and compatibility information
+- Debugging features and usage examples
+- Performance benefits and benchmarks
+
+### Legacy Code Cleanup
+
+The following legacy files have been removed from the codebase:
+- `src/Legacy/SqlDb.php` - Original database class
+- `src/Legacy/Dbs.php` - Original database factory
+
+These were completely replaced by:
+- `src/Database/Database.php` - Modern database class with Nette Database (renamed from `DB.php`)
+- `src/Database/DatabaseFactory.php` - Modern factory with backward compatibility (renamed from `DbFactory.php`)
+- `src/Database/DatabaseDebugger.php` - Dedicated debug functionality extracted from Database class
+- `src/Database/DebugSelection.php` - Debug-enabled wrapper for Nette Database Selection
+
+### Verification
+
+To verify the migration is working correctly:
+
+```php
+// ✅ Test basic database operations
+$version = DB()->server_version();
+$testQuery = DB()->fetch_row("SELECT 1 as test");
+echo "Database version: $version, Test: " . $testQuery['test'];
+
+// ✅ Test error handling
+$result = DB()->sql_query("SELECT invalid_column FROM non_existent_table");
+if (!$result) {
+ $error = DB()->sql_error();
+ echo "Error handling works: " . $error['message'];
+}
+```
+
+## 💾 Unified Cache System Migration
+
+TorrentPier has replaced its legacy Cache and Datastore systems with a modern unified implementation using Nette Caching while maintaining 100% backward compatibility.
+
+### No Code Changes Required
+
+**Important**: All existing `CACHE()` and `$datastore` calls continue to work exactly as before. This is an internal modernization that requires **zero code changes** in your application.
+
+```php
+// ✅ All existing code continues to work unchanged
+$cache = CACHE('bb_cache');
+$value = $cache->get('key');
+$cache->set('key', $value, 3600);
+
+$datastore = datastore();
+$forums = $datastore->get('cat_forums');
+$datastore->store('custom_data', $data);
+```
+
+### Key Improvements
+
+#### Modern Foundation
+- **Nette Caching v3.3**: Modern, actively maintained caching library
+- **Unified System**: Single caching implementation instead of duplicate Cache/Datastore code
+- **Singleton Pattern**: Efficient memory usage and consistent TorrentPier architecture
+- **Advanced Features**: Dependencies, tags, bulk operations, memoization
+
+#### Enhanced Performance
+- **456,647+ operations per second**: Verified production performance
+- **Memory Optimization**: Shared storage and efficient instance management
+- **Debug Compatibility**: Full compatibility with Dev.php debugging features
+
+### Enhanced Capabilities
+
+New code can leverage advanced Nette Caching features:
+
+```php
+// ✅ Enhanced caching with dependencies
+$cache = CACHE('bb_cache');
+$forums = $cache->load('forums', function() {
+ return build_forums_data();
+}, [
+ \Nette\Caching\Cache::Expire => '1 hour',
+ \Nette\Caching\Cache::Files => ['/path/to/config.php']
+]);
+
+// ✅ Function memoization
+$result = $cache->call('expensive_function', $param);
+```
+
+### 📖 Detailed Documentation
+
+For comprehensive information about the unified cache system, advanced features, and technical architecture, see:
+
+**[src/Cache/README.md](src/Cache/README.md)**
+
+This documentation covers:
+- Complete architecture overview and singleton pattern
+- Advanced Nette Caching features and usage examples
+- Performance benchmarks and storage type comparisons
+- Critical compatibility issues resolved during implementation
+
+### Verification
+
+To verify the migration is working correctly:
+
+```php
+// ✅ Test basic cache operations
+$cache = CACHE('test_cache');
+$cache->set('test_key', 'test_value', 60);
+$value = $cache->get('test_key');
+echo "Cache test: " . ($value === 'test_value' ? 'PASSED' : 'FAILED');
+
+// ✅ Test datastore operations
+$datastore = datastore();
+$datastore->store('test_item', ['status' => 'verified']);
+$item = $datastore->get('test_item');
+echo "Datastore test: " . ($item['status'] === 'verified' ? 'PASSED' : 'FAILED');
+```
+
+## ⚙️ Configuration System Migration
+
+The new TorrentPier features a modern, centralized configuration system with full backward compatibility.
+
+### Quick Migration Overview
+
+```php
+// ❌ Old way (still works, but not recommended)
+global $bb_cfg;
+$announceUrl = $bb_cfg['bt_announce_url'];
+$dbHost = $bb_cfg['database']['host'];
+
+// ✅ New way (recommended)
+$announceUrl = config()->get('bt_announce_url');
+$dbHost = config()->get('database.host');
+```
+
+### Key Configuration Changes
+
+#### Basic Usage
+```php
+// Get configuration values using dot notation
+$siteName = config()->get('sitename');
+$dbHost = config()->get('database.host');
+$cacheTimeout = config()->get('cache.timeout');
+
+// Get with default value if key doesn't exist
+$maxUsers = config()->get('max_users_online', 100);
+$debugMode = config()->get('debug.enabled', false);
+```
+
+#### Setting Values
+```php
+// Set configuration values
+config()->set('sitename', 'My Awesome Tracker');
+config()->set('database.port', 3306);
+config()->set('cache.enabled', true);
+```
+
+#### Working with Sections
+```php
+// Get entire configuration section
+$dbConfig = config()->getSection('database');
+$trackerConfig = config()->getSection('tracker');
+
+// Check if configuration exists
+if (config()->has('bt_announce_url')) {
+ $announceUrl = config()->get('bt_announce_url');
+}
+```
+
+### Common Configuration Mappings
+
+| Old Syntax | New Syntax |
+|------------|------------|
+| `$bb_cfg['sitename']` | `config()->get('sitename')` |
+| `$bb_cfg['database']['host']` | `config()->get('database.host')` |
+| `$bb_cfg['tracker']['enabled']` | `config()->get('tracker.enabled')` |
+| `$bb_cfg['cache']['timeout']` | `config()->get('cache.timeout')` |
+| `$bb_cfg['torr_server']['url']` | `config()->get('torr_server.url')` |
+
+### Magic Methods Support
+```php
+// Magic getter
+$siteName = config()->sitename;
+$dbHost = config()->{'database.host'};
+
+// Magic setter
+config()->sitename = 'New Site Name';
+config()->{'database.port'} = 3306;
+
+// Magic isset
+if (isset(config()->bt_announce_url)) {
+ // Configuration exists
+}
+```
+
+## 🌐 Language System Migration
+
+TorrentPier has modernized its language system with a singleton pattern while maintaining 100% backward compatibility with existing global `$lang` variable.
+
+### No Code Changes Required
+
+**Important**: All existing `global $lang` calls continue to work exactly as before. This is an internal modernization that requires **zero code changes** in your application.
+
+```php
+// ✅ All existing code continues to work unchanged
+global $lang;
+echo $lang['FORUM'];
+echo $lang['DATETIME']['TODAY'];
+```
+
+### Key Improvements
+
+#### Modern Foundation
+- **Singleton Pattern**: Efficient memory usage and consistent TorrentPier architecture
+- **Centralized Management**: Single point of control for language loading and switching
+- **Type Safety**: Better error detection and IDE support
+- **Dot Notation Support**: Access nested language arrays with simple syntax
+
+#### Enhanced Functionality
+- **Automatic Fallback**: Source language fallback for missing translations
+- **Dynamic Loading**: Load additional language files for modules/extensions
+- **Runtime Modification**: Add or modify language strings at runtime
+- **Locale Management**: Automatic locale setting based on language selection
+
+### Enhanced Capabilities
+
+New code can leverage the modern Language singleton features with convenient shorthand functions:
+
+```php
+// ✅ Convenient shorthand functions (recommended for frequent use)
+echo __('FORUM'); // Same as lang()->get('FORUM')
+echo __('DATETIME.TODAY'); // Dot notation for nested arrays
+_e('WELCOME_MESSAGE'); // Echo shorthand
+$message = __('CUSTOM_MESSAGE', 'Default'); // With default value
+
+// ✅ Full singleton access (for advanced features)
+echo lang()->get('FORUM');
+echo lang()->get('DATETIME.TODAY'); // Dot notation for nested arrays
+
+// ✅ Check if language key exists
+if (lang()->has('ADVANCED_FEATURE')) {
+ echo __('ADVANCED_FEATURE');
+}
+
+// ✅ Get current language information
+$currentLang = lang()->getCurrentLanguage();
+$langName = lang()->getLanguageName();
+$langLocale = lang()->getLanguageLocale();
+
+// ✅ Load additional language files for modules
+lang()->loadAdditionalFile('custom_module', 'en');
+
+// ✅ Runtime language modifications
+lang()->set('CUSTOM_KEY', 'Custom Value');
+lang()->set('NESTED.KEY', 'Nested Value');
+```
+
+### Language Management
+
+#### Available Languages
+```php
+// Get all available languages from configuration
+$availableLanguages = lang()->getAvailableLanguages();
+
+// Get language display name
+$englishName = lang()->getLanguageName('en'); // Returns: "English"
+$currentName = lang()->getLanguageName(); // Current language name
+
+// Get language locale for formatting
+$locale = lang()->getLanguageLocale('ru'); // Returns: "ru_RU.UTF-8"
+```
+
+#### Dynamic Language Loading
+```php
+// Load additional language files (useful for modules/plugins)
+$success = lang()->loadAdditionalFile('torrent_management');
+if ($success) {
+ echo lang()->get('TORRENT_UPLOADED');
+}
+
+// Load from specific language
+lang()->loadAdditionalFile('admin_panel', 'de');
+```
+
+#### Runtime Modifications
+```php
+// Set custom language strings
+lang()->set('SITE_WELCOME', 'Welcome to Our Tracker!');
+lang()->set('ERRORS.INVALID_TORRENT', 'Invalid torrent file');
+
+// Modify existing strings
+lang()->set('LOGIN', 'Sign In');
+```
+
+### Backward Compatibility Features
+
+The singleton automatically maintains all global variables:
+
+```php
+// Global variable is automatically updated by the singleton
+global $lang;
+
+// When you call lang()->set(), global is updated
+lang()->set('CUSTOM', 'Value');
+echo $lang['CUSTOM']; // Outputs: "Value"
+
+// When language is initialized, $lang is populated
+// $lang contains user language + source language fallbacks
+```
+
+### Integration with User System
+
+The Language singleton integrates seamlessly with the User system:
+
+```php
+// User language is automatically detected and initialized
+// Based on user preferences, browser detection, or defaults
+
+// In User->init_userprefs(), language is now initialized with:
+lang()->initializeLanguage($userLanguage);
+
+// This replaces the old manual language file loading
+// while maintaining exact same functionality
+```
+
+### Convenient Shorthand Functions
+
+For frequent language access, TorrentPier provides convenient shorthand functions:
+
+```php
+// ✅ __() - Get language string (most common)
+echo __('FORUM'); // Returns: "Forum"
+echo __('DATETIME.TODAY'); // Nested access: "Today"
+$msg = __('MISSING_KEY', 'Default'); // With default value
+
+// ✅ _e() - Echo language string directly
+_e('WELCOME_MESSAGE'); // Same as: echo __('WELCOME_MESSAGE')
+_e('USER_ONLINE', 'Online'); // With default value
+
+// ✅ Common usage patterns
+$title = __('PAGE_TITLE', config()->get('sitename'));
+$error = __('ERROR.INVALID_INPUT', 'Invalid input');
+```
+
+These functions make language access much more convenient compared to the full `lang()->get()` syntax:
+
+```php
+// Before (verbose)
+echo lang()->get('FORUM');
+echo lang()->get('DATETIME.TODAY');
+$msg = lang()->get('WELCOME', 'Welcome');
+
+// After (concise)
+echo __('FORUM');
+echo __('DATETIME.TODAY');
+$msg = __('WELCOME', 'Welcome');
+```
+
+### Magic Methods Support
+```php
+// Magic getter (same as lang()->get())
+$welcome = lang()->WELCOME;
+$today = lang()->{'DATETIME.TODAY'};
+
+// Magic setter (same as lang()->set())
+lang()->CUSTOM_MESSAGE = 'Hello World';
+lang()->{'NESTED.KEY'} = 'Nested Value';
+
+// Magic isset
+if (isset(lang()->ADVANCED_FEATURE)) {
+ // Language key exists
+}
+```
+
+### Performance Benefits
+
+While maintaining compatibility, you get:
+- **Single Language Loading**: Languages loaded once and cached in singleton
+- **Memory Efficiency**: No duplicate language arrays across application
+- **Automatic Locale Setting**: Proper locale configuration for date/time formatting
+- **Fallback Chain**: Source language → Default language → Requested language
+
+### Verification
+
+To verify the migration is working correctly:
+
+```php
+// ✅ Test convenient shorthand functions
+echo "Forum text: " . __('FORUM');
+echo "Today text: " . __('DATETIME.TODAY');
+_e('INFORMATION'); // Echo directly
+
+// ✅ Test with default values
+echo "Custom: " . __('CUSTOM_KEY', 'Default Value');
+
+// ✅ Test full singleton access
+echo "Current language: " . lang()->getCurrentLanguage();
+echo "Language name: " . lang()->getLanguageName();
+
+// ✅ Test backward compatibility
+global $lang;
+echo "Global access: " . $lang['FORUM'];
+
+// ✅ Verify globals are synchronized
+lang()->set('TEST_KEY', 'Test Value');
+echo "Sync test: " . $lang['TEST_KEY']; // Should output: "Test Value"
+```
+
+## 🛡️ Censor System Migration
+
+The word censoring system has been refactored to use a singleton pattern, similar to the Configuration system, providing better performance and consistency.
+
+### Quick Migration Overview
+
+```php
+// ❌ Old way (still works, but not recommended)
+global $wordCensor;
+$censored = $wordCensor->censorString($text);
+
+// ✅ New way (recommended)
+$censored = censor()->censorString($text);
+```
+
+### Key Censor Changes
+
+#### Basic Usage
+```php
+// Censor a string
+$text = "This contains badword content";
+$censored = censor()->censorString($text);
+
+// Check if censoring is enabled
+if (censor()->isEnabled()) {
+ $censored = censor()->censorString($text);
+} else {
+ $censored = $text;
+}
+
+// Get count of loaded censored words
+$wordCount = censor()->getWordsCount();
+```
+
+#### Advanced Usage
+```php
+// Add runtime censored words (temporary, not saved to database)
+censor()->addWord('badword', '***');
+censor()->addWord('anotherbad*', 'replaced'); // Wildcards supported
+
+// Reload censored words from database (useful after admin updates)
+censor()->reload();
+
+// Check if censoring is enabled
+$isEnabled = censor()->isEnabled();
+```
+
+### Backward Compatibility
+
+The global `$wordCensor` variable is still available and works exactly as before:
+
+```php
+// This still works - backward compatibility maintained
+global $wordCensor;
+$censored = $wordCensor->censorString($text);
+
+// But this is now preferred
+$censored = censor()->censorString($text);
+```
+
+### Performance Benefits
+
+- **Single Instance**: Only one censor instance loads words from database
+- **Automatic Reloading**: Words are automatically reloaded when updated in admin panel
+- **Memory Efficient**: Shared instance across entire application
+- **Lazy Loading**: Words only loaded when censoring is enabled
+
+### Admin Panel Updates
+
+When you update censored words in the admin panel, the system now automatically:
+1. Updates the datastore cache
+2. Reloads the singleton instance with fresh words
+3. Applies changes immediately without requiring page refresh
+
+## 📋 Select System Migration
+
+The Select class has been moved and reorganized for better structure and consistency within the legacy system organization.
+
+### Quick Migration Overview
+
+```php
+// ❌ Old way (deprecated)
+\TorrentPier\Legacy\Select::language($new['default_lang'], 'default_lang');
+\TorrentPier\Legacy\Select::timezone('', 'timezone_type');
+\TorrentPier\Legacy\Select::template($pr_data['tpl_name'], 'tpl_name');
+
+// ✅ New way (recommended)
+\TorrentPier\Legacy\Common\Select::language($new['default_lang'], 'default_lang');
+\TorrentPier\Legacy\Common\Select::timezone('', 'timezone_type');
+\TorrentPier\Legacy\Common\Select::template($pr_data['tpl_name'], 'tpl_name');
+```
+
+#### Namespace Update
+The Select class has been moved from `\TorrentPier\Legacy\Select` to `\TorrentPier\Legacy\Common\Select` to better organize legacy components.
+
+#### Method Usage Remains Unchanged
+```php
+// Language selection dropdown
+$languageSelect = \TorrentPier\Legacy\Common\Select::language($currentLang, 'language_field');
+
+// Timezone selection dropdown
+$timezoneSelect = \TorrentPier\Legacy\Common\Select::timezone($currentTimezone, 'timezone_field');
+
+// Template selection dropdown
+$templateSelect = \TorrentPier\Legacy\Common\Select::template($currentTemplate, 'template_field');
+```
+
+#### Available Select Methods
+```php
+// All existing methods remain available:
+\TorrentPier\Legacy\Common\Select::language($selected, $name);
+\TorrentPier\Legacy\Common\Select::timezone($selected, $name);
+\TorrentPier\Legacy\Common\Select::template($selected, $name);
+```
+
+### Backward Compatibility
+
+The old class path is deprecated but still works through class aliasing:
+
+```php
+// This still works but is deprecated
+\TorrentPier\Legacy\Select::language($lang, 'default_lang');
+
+// This is the new recommended way
+\TorrentPier\Legacy\Common\Select::language($lang, 'default_lang');
+```
+
+### Migration Strategy
+
+1. **Search and Replace**: Update all references to the old namespace
+2. **Import Statements**: Update use statements if you're using them
+3. **Configuration Files**: Update any configuration that references the old class path
+
+```php
+// Update use statements
+// Old
+use TorrentPier\Legacy\Select;
+
+// New
+use TorrentPier\Legacy\Common\Select;
+```
+
+## 🛠️ Development System Migration
+
+The development and debugging system has been refactored to use a singleton pattern, providing better resource management and consistency across the application.
+
+### Quick Migration Overview
+
+```php
+// ❌ Old way (still works, but not recommended)
+$sqlLog = \TorrentPier\Dev::getSqlLog();
+$isDebugAllowed = \TorrentPier\Dev::sqlDebugAllowed();
+$shortQuery = \TorrentPier\Dev::shortQuery($sql);
+
+// ✅ New way (recommended)
+$sqlLog = dev()->getSqlDebugLog();
+$isDebugAllowed = dev()->checkSqlDebugAllowed();
+$shortQuery = dev()->formatShortQuery($sql);
+```
+
+### Key Development System Changes
+
+#### Basic Usage
+```php
+// Get SQL debug log
+$sqlLog = dev()->getSqlDebugLog();
+
+// Check if SQL debugging is allowed
+if (dev()->checkSqlDebugAllowed()) {
+ $debugInfo = dev()->getSqlDebugLog();
+}
+
+// Format SQL queries for display
+$formattedQuery = dev()->formatShortQuery($sql, true); // HTML escaped
+$plainQuery = dev()->formatShortQuery($sql, false); // Plain text
+```
+
+#### New Instance Methods
+```php
+// Access Whoops instance directly
+$whoops = dev()->getWhoops();
+
+// Check debug mode status
+if (dev()->isDebugEnabled()) {
+ // Debug mode is active
+}
+
+// Check environment
+if (dev()->isLocalEnvironment()) {
+ // Running in local development
+}
+```
+
+### Backward Compatibility
+
+All existing static method calls continue to work exactly as before:
+
+```php
+// This still works - backward compatibility maintained
+$sqlLog = \TorrentPier\Dev::getSqlLog();
+$isDebugAllowed = \TorrentPier\Dev::sqlDebugAllowed();
+$shortQuery = \TorrentPier\Dev::shortQuery($sql);
+
+// But this is now preferred
+$sqlLog = dev()->getSqlDebugLog();
+$isDebugAllowed = dev()->checkSqlDebugAllowed();
+$shortQuery = dev()->formatShortQuery($sql);
+```
+
+### Performance Benefits
+
+- **Single Instance**: Only one debugging instance across the entire application
+- **Resource Efficiency**: Whoops handlers initialized once and reused
+- **Memory Optimization**: Shared debugging state and configuration
+- **Lazy Loading**: Debug features only activated when needed
+
+### Advanced Usage
+
+```php
+// Access the singleton directly
+$devInstance = \TorrentPier\Dev::getInstance();
+
+// Initialize the system (called automatically in common.php)
+\TorrentPier\Dev::init();
+
+// Get detailed environment information
+$environment = [
+ 'debug_enabled' => dev()->isDebugEnabled(),
+ 'local_environment' => dev()->isLocalEnvironment(),
+ 'sql_debug_allowed' => dev()->sqlDebugAllowed(),
+];
+```
+
+## ⚠️ Breaking Changes
+
+### Database Layer Changes
+- **✅ No Breaking Changes**: All existing `DB()->method()` calls work exactly as before
+- **Removed Files**: `src/Legacy/SqlDb.php` and `src/Legacy/Dbs.php` (replaced by modern implementation)
+- **New Implementation**: Uses Nette Database v3.2 internally with full backward compatibility
+
+### Deprecated Functions
+- `get_config()` → Use `config()->get()`
+- `set_config()` → Use `config()->set()`
+- Direct `$bb_cfg` access → Use `config()` methods
+
+### Deprecated Patterns
+- `new TorrentPier\Censor()` → Use `censor()` global function
+- Direct `$wordCensor` access → Use `censor()` methods
+- `new TorrentPier\Dev()` → Use `dev()` global function
+- Static `Dev::` methods → Use `dev()` instance methods
+- `\TorrentPier\Legacy\Select::` → Use `\TorrentPier\Legacy\Common\Select::`
+
+### File Structure Changes
+- New `/src/Database/` directory for modern database classes
+- New `/src/` directory for modern PHP classes
+- Reorganized template structure
+
+### Template Changes
+- Updated template syntax in some areas
+- New template variables available
+- Deprecated template functions
+
+## 📋 Best Practices
+
+### Configuration Management
+```php
+// ✅ Always provide defaults
+$timeout = config()->get('api.timeout', 30);
+
+// ✅ Use type hints
+function getMaxUploadSize(): int {
+ return (int) config()->get('upload.max_size', 10485760);
+}
+
+// ✅ Cache frequently used values
+class TrackerService {
+ private string $announceUrl;
+
+ public function __construct() {
+ $this->announceUrl = config()->get('bt_announce_url');
+ }
+}
+```
+
+### Censor Management
+```php
+// ✅ Check if censoring is enabled before processing
+function processUserInput(string $text): string {
+ if (censor()->isEnabled()) {
+ return censor()->censorString($text);
+ }
+ return $text;
+}
+
+// ✅ Use the singleton consistently
+$censoredText = censor()->censorString($input);
+```
+
+### Select Usage
+```php
+// ✅ Use the new namespace consistently
+$languageSelect = \TorrentPier\Legacy\Common\Select::language($currentLang, 'language_field');
+
+// ✅ Store frequently used selects
+class AdminPanel {
+ private string $languageSelect;
+ private string $timezoneSelect;
+
+ public function __construct() {
+ $this->languageSelect = \TorrentPier\Legacy\Common\Select::language('', 'default_lang');
+ $this->timezoneSelect = \TorrentPier\Legacy\Common\Select::timezone('', 'timezone');
+ }
+}
+```
+
+### Development and Debugging
+```php
+// ✅ Use instance methods for debugging
+if (dev()->checkSqlDebugAllowed()) {
+ $debugLog = dev()->getSqlDebugLog();
+}
+
+// ✅ Access debugging utilities consistently
+function formatSqlForDisplay(string $sql): string {
+ return dev()->formatShortQuery($sql, true);
+}
+
+// ✅ Check environment properly
+if (dev()->isLocalEnvironment()) {
+ // Development-specific code
+}
+class ForumPost {
+ public function getDisplayText(): string {
+ return censor()->censorString($this->text);
+ }
+}
+
+// ✅ Add runtime words when needed
+function setupCustomCensoring(): void {
+ if (isCustomModeEnabled()) {
+ censor()->addWord('custombad*', '[censored]');
+ }
+}
+```
+
+### Error Handling
+```php
+// ✅ Graceful error handling
+try {
+ $dbConfig = config()->getSection('database');
+ // Database operations
+} catch (Exception $e) {
+ error_log("Database configuration error: " . $e->getMessage());
+ // Fallback behavior
+}
+```
+
+### Performance Optimization
+```php
+// ✅ Minimize configuration calls in loops
+$cacheEnabled = config()->get('cache.enabled', false);
+for ($i = 0; $i < 1000; $i++) {
+ if ($cacheEnabled) {
+ // Use cached value
+ }
+}
+```
+
+### Security Considerations
+```php
+// ✅ Validate configuration values
+$maxFileSize = min(
+ config()->get('upload.max_size', 1048576),
+ 1048576 * 100 // Hard limit: 100MB
+);
+
+// ✅ Sanitize user-configurable values
+$siteName = htmlspecialchars(config()->get('sitename', 'TorrentPier'));
+```
+
+### Testing and Quality Assurance
+```bash
+# ✅ Run tests before deploying changes
+./vendor/bin/pest
+
+# ✅ Validate test coverage for new components
+./vendor/bin/pest --coverage
+```
+
+For comprehensive testing documentation and best practices, see [tests/README.md](tests/README.md).
+
+---
+
+**Important**: Always test the upgrade process in a staging environment before applying it to production. Keep backups of your database and files until you're confident the upgrade was successful.
+
+For additional support, visit our [Official Forum](https://torrentpier.com) or check our [GitHub Repository](https://github.com/torrentpier/torrentpier) for the latest updates and community discussions.
diff --git a/_cleanup.php b/_cleanup.php
new file mode 100644
index 000000000..d9802822a
--- /dev/null
+++ b/_cleanup.php
@@ -0,0 +1,57 @@
+php ' . basename(__FILE__) . ' in CLI mode');
+}
+
+// Get all constants
+require_once BB_ROOT . 'library/defines.php';
+
+// Include CLI functions
+require INC_DIR . '/functions_cli.php';
+
+// Welcoming message
+out("--- Release creation tool ---\n", 'info');
+
+$configFile = BB_PATH . '/library/config.php';
+
+if (!is_file($configFile)) {
+ out('- Config file ' . basename($configFile) . ' not found', 'error');
+ exit;
+}
+if (!is_readable($configFile)) {
+ out('- Config file ' . basename($configFile) . ' is not readable', 'error');
+ exit;
+}
+if (!is_writable($configFile)) {
+ out('- Config file ' . basename($configFile) . ' is not writable', 'error');
+ exit;
+}
+
+// Ask for version
+fwrite(STDOUT, 'Enter version number (e.g, v2.4.0): ');
+$version = trim(fgets(STDIN));
+
+if (empty($version)) {
+ out("- Version cannot be empty. Please enter a valid version number", 'error');
+ exit;
+} else {
+ // Add 'v' prefix if missing
+ if (!str_starts_with($version, 'v')) {
+ $version = 'v' . $version;
+ }
+
+ out("- Using version: $version", 'info');
+}
+
+// Ask for version emoji
+fwrite(STDOUT, 'Enter version emoji: ');
+$versionEmoji = trim(fgets(STDIN));
+
+if (!empty($versionEmoji)) {
+ out("- Using version emoji: $versionEmoji", 'info');
+}
+
+// Ask for release date or use today's date
+fwrite(STDOUT, "Enter release date (e.g. 25-05-2025), leave empty to use today's date: ");
+$date = trim(fgets(STDIN));
+
+if (empty($date)) {
+ $date = date('d-m-Y');
+ out("- Using current date: $date", 'info');
+} else {
+ // Validate date format (dd-mm-yyyy)
+ $dateObj = DateTime::createFromFormat('d-m-Y', $date);
+ if (!$dateObj || $dateObj->format('d-m-Y') !== $date) {
+ out("- Invalid date format. Expected format: DD-MM-YYYY", 'error');
+ exit;
+ }
+
+ out("- Using date: $date", 'info');
+}
+
+// Read config file content
+$content = file_get_contents($configFile);
+
+// Update version
+$content = preg_replace(
+ "/\\\$bb_cfg\['tp_version'\]\s*=\s*'[^']*';/",
+ "\$bb_cfg['tp_version'] = '$version';",
+ $content
+);
+
+// Update release date
+$content = preg_replace(
+ "/\\\$bb_cfg\['tp_release_date'\]\s*=\s*'[^']*';/",
+ "\$bb_cfg['tp_release_date'] = '$date';",
+ $content
+);
+
+// Save updated config
+$bytesWritten = file_put_contents($configFile, $content);
+
+if ($bytesWritten === false) {
+ out("- Failed to write to config file", 'error');
+ exit;
+}
+
+if ($bytesWritten === 0) {
+ out("- Config file was not updated (0 bytes written)", 'error');
+ exit;
+}
+
+out("\n- Config file has been updated!", 'success');
+
+// Update CHANGELOG.md
+runProcess('npx git-cliff v2.4.6-alpha.4.. --config cliff.toml --tag "' . $version . '" > CHANGELOG.md');
+
+// Git add & commit
+runProcess('git add -A && git commit -m "release: ' . escapeshellarg($version) . (!empty($versionEmoji) ? (' ' . $versionEmoji) : '') . '"');
+
+// Git tag
+runProcess("git tag -a \"$version\" -m \"Release $version\"");
+runProcess("git tag -v \"$version\"");
+
+// Git push
+runProcess("git push origin master");
+runProcess("git push origin $version");
+
+out("\n- Release $version has been successfully prepared, committed and pushed!", 'success');
diff --git a/admin/admin_attach_cp.php b/admin/admin_attach_cp.php
index 6928a253b..a7f1ab498 100644
--- a/admin/admin_attach_cp.php
+++ b/admin/admin_attach_cp.php
@@ -69,44 +69,44 @@ $order_by = '';
if ($view === 'username') {
switch ($mode) {
case 'username':
- $order_by = 'ORDER BY u.username ' . $sort_order . ' LIMIT ' . $start . ', ' . $bb_cfg['topics_per_page'];
+ $order_by = 'ORDER BY u.username ' . $sort_order . ' LIMIT ' . $start . ', ' . config()->get('topics_per_page');
break;
case 'attachments':
- $order_by = 'ORDER BY total_attachments ' . $sort_order . ' LIMIT ' . $start . ', ' . $bb_cfg['topics_per_page'];
+ $order_by = 'ORDER BY total_attachments ' . $sort_order . ' LIMIT ' . $start . ', ' . config()->get('topics_per_page');
break;
case 'filesize':
- $order_by = 'ORDER BY total_size ' . $sort_order . ' LIMIT ' . $start . ', ' . $bb_cfg['topics_per_page'];
+ $order_by = 'ORDER BY total_size ' . $sort_order . ' LIMIT ' . $start . ', ' . config()->get('topics_per_page');
break;
default:
$mode = 'attachments';
$sort_order = 'DESC';
- $order_by = 'ORDER BY total_attachments ' . $sort_order . ' LIMIT ' . $start . ', ' . $bb_cfg['topics_per_page'];
+ $order_by = 'ORDER BY total_attachments ' . $sort_order . ' LIMIT ' . $start . ', ' . config()->get('topics_per_page');
break;
}
} elseif ($view === 'attachments') {
switch ($mode) {
case 'real_filename':
- $order_by = 'ORDER BY a.real_filename ' . $sort_order . ' LIMIT ' . $start . ', ' . $bb_cfg['topics_per_page'];
+ $order_by = 'ORDER BY a.real_filename ' . $sort_order . ' LIMIT ' . $start . ', ' . config()->get('topics_per_page');
break;
case 'comment':
- $order_by = 'ORDER BY a.comment ' . $sort_order . ' LIMIT ' . $start . ', ' . $bb_cfg['topics_per_page'];
+ $order_by = 'ORDER BY a.comment ' . $sort_order . ' LIMIT ' . $start . ', ' . config()->get('topics_per_page');
break;
case 'extension':
- $order_by = 'ORDER BY a.extension ' . $sort_order . ' LIMIT ' . $start . ', ' . $bb_cfg['topics_per_page'];
+ $order_by = 'ORDER BY a.extension ' . $sort_order . ' LIMIT ' . $start . ', ' . config()->get('topics_per_page');
break;
case 'filesize':
- $order_by = 'ORDER BY a.filesize ' . $sort_order . ' LIMIT ' . $start . ', ' . $bb_cfg['topics_per_page'];
+ $order_by = 'ORDER BY a.filesize ' . $sort_order . ' LIMIT ' . $start . ', ' . config()->get('topics_per_page');
break;
case 'downloads':
- $order_by = 'ORDER BY a.download_count ' . $sort_order . ' LIMIT ' . $start . ', ' . $bb_cfg['topics_per_page'];
+ $order_by = 'ORDER BY a.download_count ' . $sort_order . ' LIMIT ' . $start . ', ' . config()->get('topics_per_page');
break;
case 'post_time':
- $order_by = 'ORDER BY a.filetime ' . $sort_order . ' LIMIT ' . $start . ', ' . $bb_cfg['topics_per_page'];
+ $order_by = 'ORDER BY a.filetime ' . $sort_order . ' LIMIT ' . $start . ', ' . config()->get('topics_per_page');
break;
default:
$mode = 'a.real_filename';
$sort_order = 'ASC';
- $order_by = 'ORDER BY a.real_filename ' . $sort_order . ' LIMIT ' . $start . ', ' . $bb_cfg['topics_per_page'];
+ $order_by = 'ORDER BY a.real_filename ' . $sort_order . ' LIMIT ' . $start . ', ' . config()->get('topics_per_page');
break;
}
}
@@ -470,8 +470,8 @@ if ($view === 'attachments') {
}
// Generate Pagination
-if ($do_pagination && $total_rows > $bb_cfg['topics_per_page']) {
- generate_pagination('admin_attach_cp.php?view=' . $view . '&mode=' . $mode . '&order=' . $sort_order . '&uid=' . $uid, $total_rows, $bb_cfg['topics_per_page'], $start);
+if ($do_pagination && $total_rows > config()->get('topics_per_page')) {
+ generate_pagination('admin_attach_cp.php?view=' . $view . '&mode=' . $mode . '&order=' . $sort_order . '&uid=' . $uid, $total_rows, config()->get('topics_per_page'), $start);
}
print_page('admin_attach_cp.tpl', 'admin');
diff --git a/admin/admin_board.php b/admin/admin_board.php
index b836ff29f..191666675 100644
--- a/admin/admin_board.php
+++ b/admin/admin_board.php
@@ -136,8 +136,8 @@ switch ($mode) {
'POSTS_PER_PAGE' => $new['posts_per_page'],
'HOT_TOPIC' => $new['hot_threshold'],
'DEFAULT_DATEFORMAT' => $new['default_dateformat'],
- 'LANG_SELECT' => \TorrentPier\Legacy\Select::language($new['default_lang'], 'default_lang'),
- 'TIMEZONE_SELECT' => \TorrentPier\Legacy\Select::timezone($new['board_timezone'], 'board_timezone'),
+ 'LANG_SELECT' => \TorrentPier\Legacy\Common\Select::language($new['default_lang'], 'default_lang'),
+ 'TIMEZONE_SELECT' => \TorrentPier\Legacy\Common\Select::timezone($new['board_timezone'], 'board_timezone'),
'MAX_LOGIN_ATTEMPTS' => $new['max_login_attempts'],
'LOGIN_RESET_TIME' => $new['login_reset_time'],
'PRUNE_ENABLE' => (bool)$new['prune_enable'],
diff --git a/admin/admin_forumauth.php b/admin/admin_forumauth.php
index 797842a0a..fec7aa909 100644
--- a/admin/admin_forumauth.php
+++ b/admin/admin_forumauth.php
@@ -123,6 +123,7 @@ if ($submit) {
}
$datastore->update('cat_forums');
+ CACHE('bb_cache')->rm();
bb_die($lang['FORUM_AUTH_UPDATED'] . '
' . sprintf($lang['CLICK_RETURN_FORUMAUTH'], '', ''));
}
diff --git a/admin/admin_forumauth_list.php b/admin/admin_forumauth_list.php
index c45aa0092..37c49d251 100644
--- a/admin/admin_forumauth_list.php
+++ b/admin/admin_forumauth_list.php
@@ -153,6 +153,7 @@ if ($submit) {
}
$datastore->update('cat_forums');
+ CACHE('bb_cache')->rm();
bb_die($lang['FORUM_AUTH_UPDATED'] . '
' . sprintf($lang['CLICK_RETURN_FORUMAUTH'], '', ''));
} // End of submit
diff --git a/admin/admin_log.php b/admin/admin_log.php
index 517a4b9bb..89f0e8b0b 100644
--- a/admin/admin_log.php
+++ b/admin/admin_log.php
@@ -151,7 +151,7 @@ if ($var =& $_REQUEST[$daysback_key] && $var != $def_days) {
$url = url_arg($url, $daysback_key, $daysback_val);
}
if ($var =& $_REQUEST[$datetime_key] && $var != $def_datetime) {
- $tz = TIMENOW + (3600 * $bb_cfg['board_timezone']);
+ $tz = TIMENOW + (3600 * config()->get('board_timezone'));
if (($tmp_timestamp = strtotime($var, $tz)) > 0) {
$datetime_val = $tmp_timestamp;
$url = url_arg($url, $datetime_key, date($dt_format, $datetime_val));
diff --git a/admin/admin_mass_email.php b/admin/admin_mass_email.php
index d2765f9d6..51902d960 100644
--- a/admin/admin_mass_email.php
+++ b/admin/admin_mass_email.php
@@ -14,7 +14,7 @@ if (!empty($setmodules)) {
require __DIR__ . '/pagestart.php';
-if (!$bb_cfg['emailer']['enabled']) {
+if (!config()->get('emailer.enabled')) {
bb_die($lang['EMAILER_DISABLED']);
}
@@ -23,7 +23,7 @@ set_time_limit(1200);
$subject = trim(request_var('subject', ''));
$message = (string)request_var('message', '');
$group_id = (int)request_var(POST_GROUPS_URL, 0);
-$reply_to = (string)request_var('reply_to', $bb_cfg['board_email']);
+$reply_to = (string)request_var('reply_to', config()->get('board_email'));
$message_type = (string)request_var('message_type', '');
$errors = $user_id_sql = [];
diff --git a/admin/admin_migrations.php b/admin/admin_migrations.php
new file mode 100644
index 000000000..e416d81fb
--- /dev/null
+++ b/admin/admin_migrations.php
@@ -0,0 +1,79 @@
+getMigrationStatus();
+$schemaInfo = $migrationStatus->getSchemaInfo();
+
+// Template variables
+$template->assign_vars([
+ 'PAGE_TITLE' => __('MIGRATIONS_STATUS'),
+ 'CURRENT_TIME' => date('Y-m-d H:i:s'),
+
+ // Migration status individual fields
+ 'MIGRATION_TABLE_EXISTS' => $status['table_exists'],
+ 'MIGRATION_CURRENT_VERSION' => $status['current_version'],
+ 'MIGRATION_APPLIED_COUNT' => count($status['applied_migrations']),
+ 'MIGRATION_PENDING_COUNT' => count($status['pending_migrations']),
+
+ // Setup status fields
+ 'SETUP_REQUIRES_SETUP' => $status['requires_setup'] ?? false,
+ 'SETUP_TYPE' => $status['setup_status']['type'] ?? __('UNKNOWN'),
+ 'SETUP_MESSAGE' => $status['setup_status']['message'] ?? '',
+ 'SETUP_ACTION_REQUIRED' => $status['setup_status']['action_required'] ?? false,
+ 'SETUP_INSTRUCTIONS' => $status['setup_status']['instructions'] ?? '',
+
+ // Schema info individual fields
+ 'SCHEMA_DATABASE_NAME' => $schemaInfo['database_name'],
+ 'SCHEMA_TABLE_COUNT' => $schemaInfo['table_count'],
+ 'SCHEMA_SIZE_MB' => $schemaInfo['size_mb'],
+]);
+
+// Assign migration data for template
+if (!empty($status['applied_migrations'])) {
+ foreach ($status['applied_migrations'] as $i => $migration) {
+ $template->assign_block_vars('applied_migrations', [
+ 'VERSION' => $migration['version'],
+ 'NAME' => $migration['migration_name'] ?? __('UNKNOWN'),
+ 'START_TIME' => $migration['start_time'] ?? __('UNKNOWN'),
+ 'END_TIME' => $migration['end_time'] ?? __('UNKNOWN'),
+ 'ROW_CLASS' => ($i % 2) ? 'row1' : 'row2'
+ ]);
+ }
+}
+
+if (!empty($status['pending_migrations'])) {
+ foreach ($status['pending_migrations'] as $i => $migration) {
+ $template->assign_block_vars('pending_migrations', [
+ 'VERSION' => $migration['version'],
+ 'NAME' => $migration['name'],
+ 'FILENAME' => $migration['filename'],
+ 'ROW_CLASS' => ($i % 2) ? 'row1' : 'row2'
+ ]);
+ }
+}
+
+// Output template using standard admin pattern
+print_page('admin_migrations.tpl', 'admin');
diff --git a/admin/admin_ranks.php b/admin/admin_ranks.php
index 366668301..03b63d5b2 100644
--- a/admin/admin_ranks.php
+++ b/admin/admin_ranks.php
@@ -29,6 +29,10 @@ if (isset($_GET['mode']) || isset($_POST['mode'])) {
}
}
+if ($mode == 'delete' && isset($_POST['cancel'])) {
+ $mode = '';
+}
+
if ($mode != '') {
if ($mode == 'edit' || $mode == 'add') {
//
@@ -123,29 +127,40 @@ if ($mode != '') {
// Ok, they want to delete their rank
//
+ $confirmed = isset($_POST['confirm']);
if (isset($_POST['id']) || isset($_GET['id'])) {
$rank_id = isset($_POST['id']) ? (int)$_POST['id'] : (int)$_GET['id'];
} else {
$rank_id = 0;
}
- if ($rank_id) {
- $sql = 'DELETE FROM ' . BB_RANKS . " WHERE rank_id = $rank_id";
+ if ($confirmed) {
+ if ($rank_id) {
+ $sql = 'DELETE FROM ' . BB_RANKS . " WHERE rank_id = $rank_id";
- if (!$result = DB()->sql_query($sql)) {
- bb_die('Could not delete rank data');
+ if (!$result = DB()->sql_query($sql)) {
+ bb_die('Could not delete rank data');
+ }
+
+ $sql = 'UPDATE ' . BB_USERS . " SET user_rank = 0 WHERE user_rank = $rank_id";
+ if (!$result = DB()->sql_query($sql)) {
+ bb_die($lang['NO_UPDATE_RANKS']);
+ }
+
+ $datastore->update('ranks');
+
+ bb_die($lang['RANK_REMOVED'] . '
' . sprintf($lang['CLICK_RETURN_RANKADMIN'], '', '') . '
' . sprintf($lang['CLICK_RETURN_ADMIN_INDEX'], '', ''));
+ } else {
+ bb_die($lang['MUST_SELECT_RANK']);
}
-
- $sql = 'UPDATE ' . BB_USERS . " SET user_rank = 0 WHERE user_rank = $rank_id";
- if (!$result = DB()->sql_query($sql)) {
- bb_die($lang['NO_UPDATE_RANKS']);
- }
-
- $datastore->update('ranks');
-
- bb_die($lang['RANK_REMOVED'] . '
' . sprintf($lang['CLICK_RETURN_RANKADMIN'], '', '') . '
' . sprintf($lang['CLICK_RETURN_ADMIN_INDEX'], '', ''));
} else {
- bb_die($lang['MUST_SELECT_RANK']);
+ $hidden_fields = '';
+ $hidden_fields .= '';
+
+ print_confirmation([
+ 'FORM_ACTION' => 'admin_ranks.php',
+ 'HIDDEN_FIELDS' => $hidden_fields,
+ ]);
}
} else {
bb_die('Invalid mode');
diff --git a/admin/admin_robots.php b/admin/admin_robots.php
new file mode 100644
index 000000000..44d73d52b
--- /dev/null
+++ b/admin/admin_robots.php
@@ -0,0 +1,45 @@
+
' . sprintf($lang['CLICK_RETURN_ROBOTS_TXT_CONFIG'], '', '') . '
' . sprintf($lang['CLICK_RETURN_ADMIN_INDEX'], '', ''));
+}
+
+$current_content = '';
+if (is_file($robots_file)) {
+ $current_content = file_get_contents($robots_file);
+}
+
+$template->assign_vars([
+ 'S_ACTION' => 'admin_robots.php',
+ 'ROBOTS_TXT' => htmlCHR($current_content),
+]);
+
+print_page('admin_robots.tpl', 'admin');
diff --git a/admin/admin_sitemap.php b/admin/admin_sitemap.php
index e40ebd307..66e2f800b 100644
--- a/admin/admin_sitemap.php
+++ b/admin/admin_sitemap.php
@@ -14,7 +14,7 @@ if (!empty($setmodules)) {
require __DIR__ . '/pagestart.php';
-$sql = 'SELECT * FROM ' . BB_CONFIG;
+$sql = "SELECT * FROM " . BB_CONFIG . " WHERE config_name IN('sitemap_time', 'static_sitemap')";
if (!$result = DB()->sql_query($sql)) {
bb_die('Could not query config information in admin_sitemap');
@@ -39,7 +39,7 @@ if (!$result = DB()->sql_query($sql)) {
}
}
-$s_mess = $lang['SITEMAP_CREATED'] . ': ' . bb_date($new['sitemap_time'], $bb_cfg['post_date_format']) . ' ' . $lang['SITEMAP_AVAILABLE'] . ': ' . make_url('sitemap/sitemap.xml') . '';
+$s_mess = $lang['SITEMAP_CREATED'] . ': ' . bb_date($new['sitemap_time'], config()->get('post_date_format')) . ' ' . $lang['SITEMAP_AVAILABLE'] . ': ' . make_url('sitemap/sitemap.xml') . '';
$message = is_file(SITEMAP_DIR . '/sitemap.xml') ? $s_mess : $lang['SITEMAP_NOT_CREATED'];
$template->assign_vars([
diff --git a/admin/admin_smilies.php b/admin/admin_smilies.php
index c91723a5e..9e84c3ea0 100644
--- a/admin/admin_smilies.php
+++ b/admin/admin_smilies.php
@@ -22,7 +22,11 @@ if (isset($_POST['mode']) || isset($_GET['mode'])) {
$mode = '';
}
-$pathToSmilesDir = BB_ROOT . $bb_cfg['smilies_path'];
+if ($mode == 'delete' && isset($_POST['cancel'])) {
+ $mode = '';
+}
+
+$pathToSmilesDir = BB_ROOT . config()->get('smilies_path');
$delimeter = '=+:';
$s_hidden_fields = '';
$smiley_paks = $smiley_images = [];
@@ -174,17 +178,28 @@ if (isset($_GET['import_pack']) || isset($_POST['import_pack'])) {
} elseif ($mode != '') {
switch ($mode) {
case 'delete':
+ $confirmed = isset($_POST['confirm']);
$smiley_id = (!empty($_POST['id'])) ? $_POST['id'] : $_GET['id'];
$smiley_id = (int)$smiley_id;
- $sql = 'DELETE FROM ' . BB_SMILIES . ' WHERE smilies_id = ' . $smiley_id;
- $result = DB()->sql_query($sql);
- if (!$result) {
- bb_die('Could not delete smiley');
- }
- $datastore->update('smile_replacements');
+ if ($confirmed) {
+ $sql = 'DELETE FROM ' . BB_SMILIES . ' WHERE smilies_id = ' . $smiley_id;
+ $result = DB()->sql_query($sql);
+ if (!$result) {
+ bb_die('Could not delete smiley');
+ }
- bb_die($lang['SMILEY_DEL_SUCCESS'] . '
' . sprintf($lang['CLICK_RETURN_SMILEADMIN'], '', '') . '
' . sprintf($lang['CLICK_RETURN_ADMIN_INDEX'], '', ''));
+ $datastore->update('smile_replacements');
+ bb_die($lang['SMILEY_DEL_SUCCESS'] . '
' . sprintf($lang['CLICK_RETURN_SMILEADMIN'], '', '') . '
' . sprintf($lang['CLICK_RETURN_ADMIN_INDEX'], '', ''));
+ } else {
+ $hidden_fields = '';
+ $hidden_fields .= '';
+
+ print_confirmation([
+ 'FORM_ACTION' => 'admin_smilies.php',
+ 'HIDDEN_FIELDS' => $hidden_fields,
+ ]);
+ }
break;
case 'edit':
diff --git a/admin/admin_terms.php b/admin/admin_terms.php
index 37d57da17..45acd875c 100644
--- a/admin/admin_terms.php
+++ b/admin/admin_terms.php
@@ -17,15 +17,15 @@ require INC_DIR . '/bbcode.php';
$preview = isset($_POST['preview']);
-if (isset($_POST['post']) && ($bb_cfg['terms'] !== $_POST['message'])) {
+if (isset($_POST['post']) && (config()->get('terms') !== $_POST['message'])) {
bb_update_config(['terms' => $_POST['message']]);
- bb_die($lang['CONFIG_UPDATED']);
+ bb_die($lang['TERMS_UPDATED_SUCCESSFULLY'] . '
' . sprintf($lang['CLICK_RETURN_TERMS_CONFIG'], '', '') . '
' . sprintf($lang['CLICK_RETURN_ADMIN_INDEX'], '', ''));
}
$template->assign_vars([
'S_ACTION' => 'admin_terms.php',
- 'EXT_LINK_NW' => $bb_cfg['ext_link_new_win'],
- 'MESSAGE' => $preview ? $_POST['message'] : $bb_cfg['terms'],
+ 'EXT_LINK_NW' => config()->get('ext_link_new_win'),
+ 'MESSAGE' => $preview ? $_POST['message'] : config()->get('terms'),
'PREVIEW_HTML' => $preview ? bbcode2html($_POST['message']) : '',
]);
diff --git a/admin/admin_ug_auth.php b/admin/admin_ug_auth.php
index b6914f4dd..7cef20864 100644
--- a/admin/admin_ug_auth.php
+++ b/admin/admin_ug_auth.php
@@ -20,9 +20,9 @@ $max_forum_name_length = 50;
$yes_sign = '√';
$no_sign = 'x';
-$group_id = isset($_REQUEST['g']) ? (int)$_REQUEST['g'] : 0;
-$user_id = isset($_REQUEST['u']) ? (int)$_REQUEST['u'] : 0;
-$cat_id = isset($_REQUEST['c']) ? (int)$_REQUEST['c'] : 0;
+$group_id = isset($_REQUEST[POST_GROUPS_URL]) ? (int)$_REQUEST[POST_GROUPS_URL] : 0;
+$user_id = isset($_REQUEST[POST_USERS_URL]) ? (int)$_REQUEST[POST_USERS_URL] : 0;
+$cat_id = isset($_REQUEST[POST_CAT_URL]) ? (int)$_REQUEST[POST_CAT_URL] : 0;
$mode = isset($_REQUEST['mode']) ? (string)$_REQUEST['mode'] : '';
$submit = isset($_REQUEST['submit']);
@@ -200,7 +200,7 @@ if ($mode == 'user' && (!empty($_POST['username']) || $user_id)) {
'CAT_HREF' => "$base_url&" . POST_CAT_URL . "=$c_id",
));
- if (!$c =& $_REQUEST['c'] or !in_array($c, array('all', $c_id)) or empty($c_data['forums'])) {
+ if (!$c =& $_REQUEST[POST_CAT_URL] or !in_array($c, array('all', $c_id)) or empty($c_data['forums'])) {
continue;
}
@@ -316,7 +316,7 @@ if ($mode == 'user' && (!empty($_POST['username']) || $user_id)) {
'CAT_HREF' => "$base_url&" . POST_CAT_URL . "=$c_id",
));
- if (!($c =& $_REQUEST['c']) || !in_array($c, array('all', $c_id)) || empty($c_data['forums'])) {
+ if (!($c =& $_REQUEST[POST_CAT_URL]) || !in_array($c, array('all', $c_id)) || empty($c_data['forums'])) {
continue;
}
diff --git a/admin/admin_user_search.php b/admin/admin_user_search.php
index 4a29d0e06..d383e5a29 100644
--- a/admin/admin_user_search.php
+++ b/admin/admin_user_search.php
@@ -52,8 +52,8 @@ if (!isset($_REQUEST['dosearch'])) {
}
}
- $language_list = \TorrentPier\Legacy\Select::language('', 'language_type');
- $timezone_list = \TorrentPier\Legacy\Select::timezone('', 'timezone_type');
+ $language_list = \TorrentPier\Legacy\Common\Select::language('', 'language_type');
+ $timezone_list = \TorrentPier\Legacy\Common\Select::timezone('', 'timezone_type');
$sql = 'SELECT f.forum_id, f.forum_name, f.forum_parent, c.cat_id, c.cat_title
FROM ( ' . BB_FORUMS . ' AS f INNER JOIN ' . BB_CATEGORIES . ' AS c ON c.cat_id = f.cat_id )
@@ -841,10 +841,10 @@ if (!isset($_REQUEST['dosearch'])) {
if ($page == 1) {
$offset = 0;
} else {
- $offset = (($page - 1) * $bb_cfg['topics_per_page']);
+ $offset = (($page - 1) * config()->get('topics_per_page'));
}
- $limit = "LIMIT $offset, " . $bb_cfg['topics_per_page'];
+ $limit = "LIMIT $offset, " . config()->get('topics_per_page');
$select_sql .= " $limit";
@@ -859,7 +859,7 @@ if (!isset($_REQUEST['dosearch'])) {
bb_die($lang['SEARCH_NO_RESULTS']);
}
}
- $num_pages = ceil($total_pages['total'] / $bb_cfg['topics_per_page']);
+ $num_pages = ceil($total_pages['total'] / config()->get('topics_per_page'));
$pagination = '';
diff --git a/admin/admin_words.php b/admin/admin_words.php
index 919afb64b..94f11caba 100644
--- a/admin/admin_words.php
+++ b/admin/admin_words.php
@@ -14,8 +14,8 @@ if (!empty($setmodules)) {
require __DIR__ . '/pagestart.php';
-if (!$bb_cfg['use_word_censor']) {
- bb_die('Word censor disabled
($bb_cfg[\'use_word_censor\'] in config.php)');
+if (!config()->get('use_word_censor')) {
+ bb_die('Word censor disabled
(use_word_censor in config.php)');
}
$mode = request_var('mode', '');
@@ -81,6 +81,7 @@ if ($mode != '') {
}
$datastore->update('censor');
+ censor()->reload(); // Reload the singleton instance with updated words
$message .= '
' . sprintf($lang['CLICK_RETURN_WORDADMIN'], '', '') . '
' . sprintf($lang['CLICK_RETURN_ADMIN_INDEX'], '', '');
bb_die($message);
@@ -95,6 +96,7 @@ if ($mode != '') {
}
$datastore->update('censor');
+ censor()->reload(); // Reload the singleton instance with updated words
bb_die($lang['WORD_REMOVED'] . '
' . sprintf($lang['CLICK_RETURN_WORDADMIN'], '', '') . '
' . sprintf($lang['CLICK_RETURN_ADMIN_INDEX'], '', ''));
} else {
diff --git a/admin/index.php b/admin/index.php
index 0acf53868..33cb3411d 100644
--- a/admin/index.php
+++ b/admin/index.php
@@ -15,12 +15,6 @@ if (!$stats = $datastore->get('stats')) {
$stats = $datastore->get('stats');
}
-// Files integrity check
-if (!$files_integrity_data = $datastore->get('files_integrity')) {
- $datastore->update('files_integrity');
- $files_integrity_data = $datastore->get('files_integrity');
-}
-
// Check for updates
if (!$update_data = $datastore->get('check_updates')) {
$datastore->update('check_updates');
@@ -84,20 +78,10 @@ if (isset($_GET['pane']) && $_GET['pane'] == 'left') {
} elseif (isset($_GET['pane']) && $_GET['pane'] == 'right') {
$template->assign_vars([
'TPL_ADMIN_MAIN' => true,
- 'ADMIN_LOCK' => (bool)$bb_cfg['board_disable'],
+ 'ADMIN_LOCK' => (bool)config()->get('board_disable'),
'ADMIN_LOCK_CRON' => is_file(BB_DISABLED),
]);
- // Files integrity check results
- if (!empty($files_integrity_data)) {
- $template->assign_block_vars('integrity_check', [
- 'INTEGRITY_SUCCESS' => (bool)$files_integrity_data['success'],
- 'INTEGRITY_WRONG_FILES_LIST' => implode("\n\n
{$lang['TR_STATS'][$i]} | $row | "; } @@ -39,7 +40,7 @@ foreach ($sql as $i => $query) { echo '
'; -echo 'gen time: ' . sprintf('%.4f', array_sum(explode(' ', microtime())) - TIMESTART) . " sec\n"; +echo 'gen time: ' . sprintf('%.3f', array_sum(explode(' ', microtime())) - TIMESTART) . " sec\n"; echo '
Simple stats for clients are being cached for one hour.
' : ''; echo ''; -echo 'gen time: ' . sprintf('%.4f', array_sum(explode(' ', microtime())) - TIMESTART) . " sec\n"; +echo 'gen time: ' . sprintf('%.3f', array_sum(explode(' ', microtime())) - TIMESTART) . " sec\n"; echo '