From 7474635aed6064e87a5bd7b71a8b16dbb8357877 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Mon, 25 Nov 2024 20:05:43 +0700 Subject: [PATCH] Minor improvements (#1683) * Minor improvements * Update CHANGELOG.md * Updated * Updated * Update page_header.tpl * Update page_header.tpl * Update README.md * Update README.md * Update README.md * Update README.md --- CHANGELOG.md | 4 ++-- README.md | 2 -- library/config.php | 2 +- library/includes/datastore/build_files_integrity.php | 2 -- opensearch_desc.xml | 8 -------- opensearch_desc_bt.xml | 8 -------- robots.txt | 4 ++-- styles/templates/default/page_header.tpl | 6 +----- 8 files changed, 6 insertions(+), 30 deletions(-) delete mode 100644 opensearch_desc.xml delete mode 100644 opensearch_desc_bt.xml diff --git a/CHANGELOG.md b/CHANGELOG.md index b8486d0af..14c063dfc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,9 +24,9 @@ - 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)) -- 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) ([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) ([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) ([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) ([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) diff --git a/README.md b/README.md index 296a98c53..6bbb682bf 100644 --- a/README.md +++ b/README.md @@ -101,8 +101,6 @@ Check out our [autoinstall](https://github.com/torrentpier/autoinstall) reposito 2. Edit this files: * `favicon.png` (change on your own) * `robots.txt` (change the addresses in lines `Host` and `Sitemap` on your own) - * `opensearch_desc.xml` (change the description and address on your own) - * `opensearch_desc_bt.xml` (change the description and address on your own) 3. Log in to the forum with **admin/admin** login/password and finish setting up via admin panel ## 🔐 Security vulnerabilities diff --git a/library/config.php b/library/config.php index 395139ba1..4163c2c94 100644 --- a/library/config.php +++ b/library/config.php @@ -12,7 +12,7 @@ if (!defined('BB_ROOT')) { } // Server settings -$reserved_name = 'torrentpier.com'; +$reserved_name = 'example.com'; $reserved_port = 80; $bb_cfg = []; diff --git a/library/includes/datastore/build_files_integrity.php b/library/includes/datastore/build_files_integrity.php index 71d8d552e..5dd859f1f 100644 --- a/library/includes/datastore/build_files_integrity.php +++ b/library/includes/datastore/build_files_integrity.php @@ -28,8 +28,6 @@ $ignoreFiles = [ '.env.example', '.htaccess', 'robots.txt', - 'opensearch_desc.xml', - 'opensearch_desc_bt.xml', 'favicon.png', 'composer.json', 'composer.lock', diff --git a/opensearch_desc.xml b/opensearch_desc.xml deleted file mode 100644 index fd7254eb4..000000000 --- a/opensearch_desc.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - TorrentPier (Forum) - TorrentPier (Forum) - UTF-8 - https://torrentpier.com/favicon.ico - - diff --git a/opensearch_desc_bt.xml b/opensearch_desc_bt.xml deleted file mode 100644 index f809e136e..000000000 --- a/opensearch_desc_bt.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - TorrentPier (Tracker) - TorrentPier (Tracker) - UTF-8 - https://torrentpier.com/favicon.ico - - diff --git a/robots.txt b/robots.txt index 6976214a0..c1220145f 100644 --- a/robots.txt +++ b/robots.txt @@ -10,5 +10,5 @@ Disallow: /posting.php Disallow: /privmsg.php Disallow: /profile.php -Host: torrentpier.com -Sitemap: http://torrentpier.com/sitemap.xml +Host: example.com +Sitemap: http://example.com/sitemap.xml diff --git a/styles/templates/default/page_header.tpl b/styles/templates/default/page_header.tpl index 6cd69b151..97d6f268d 100644 --- a/styles/templates/default/page_header.tpl +++ b/styles/templates/default/page_header.tpl @@ -4,6 +4,7 @@ + <!-- IF HAVE_NEW_PM -->({HAVE_NEW_PM}) <!-- ENDIF --><!-- IF PAGE_TITLE -->{PAGE_TITLE} :: {SITENAME}<!-- ELSE -->{SITENAME}<!-- ENDIF --> @@ -28,11 +29,6 @@ {META} - - - - -