From 842abd84f23bd88c32ceb86bbc2be79fb09f1ef9 Mon Sep 17 00:00:00 2001 From: jdarwood007 Date: Tue, 14 Nov 2023 18:31:37 -0800 Subject: [PATCH 1/2] Standardize our Index files --- Packages/backups/index.php | 4 ++-- Packages/index.php | 15 +++------------ Smileys/alienine/index.php | 4 ++-- Smileys/fugue/index.php | 4 ++-- Smileys/index.php | 15 +++------------ Sources/Actions/Admin/index.php | 9 +++++++++ Sources/Actions/Moderation/index.php | 9 +++++++++ Sources/Actions/Profile/index.php | 9 +++++++++ Sources/Actions/index.php | 9 +++++++++ Sources/Cache/APIs/index.php | 4 ++-- Sources/Cache/index.php | 4 ++-- Sources/Db/APIs/index.php | 4 ++-- Sources/Db/index.php | 4 ++-- Sources/Graphics/Gif/index.php | 4 ++-- Sources/Graphics/index.php | 4 ++-- Sources/PackageManager/index.php | 4 ++-- Sources/PersonalMessage/index.php | 9 +++++++++ Sources/ReCaptcha/RequestMethod/index.php | 4 ++-- Sources/ReCaptcha/index.php | 4 ++-- Sources/Search/APIs/index.php | 4 ++-- Sources/Search/index.php | 4 ++-- Sources/Security.php | 15 +++------------ Sources/Subscriptions/PayPal/index.php | 4 ++-- Sources/Subscriptions/index.php | 4 ++-- Sources/TOTP/index.php | 4 ++-- Sources/Unicode/index.php | 4 ++-- Sources/WebFetch/APIs/index.php | 4 ++-- Sources/WebFetch/index.php | 4 ++-- Sources/index.php | 15 +++------------ Sources/minify/data/index.php | 4 ++-- Sources/minify/data/js/index.php | 4 ++-- Sources/minify/index.php | 4 ++-- Sources/minify/path-converter/index.php | 4 ++-- Sources/minify/path-converter/src/index.php | 4 ++-- Sources/minify/src/Exceptions/index.php | 4 ++-- Sources/minify/src/index.php | 4 ++-- Sources/random_compat/index.php | 4 ++-- Sources/tasks/index.php | 4 ++-- Themes/default/css/index.php | 4 ++-- Themes/default/fonts/AnonymousPro/index.php | 9 +++++++++ Themes/default/fonts/ConsolaMono/index.php | 9 +++++++++ Themes/default/fonts/index.php | 4 ++-- Themes/default/fonts/sound/index.php | 4 ++-- Themes/default/images/bbc/index.php | 4 ++-- Themes/default/images/icons/index.php | 4 ++-- Themes/default/images/index.php | 4 ++-- Themes/default/images/membericons/index.php | 4 ++-- Themes/default/images/post/index.php | 4 ++-- Themes/default/images/topic/index.php | 4 ++-- Themes/default/index.php | 4 ++-- Themes/default/languages/index.php | 4 ++-- Themes/default/scripts/index.php | 4 ++-- Themes/index.php | 13 +++---------- attachments/index.php | 15 +++------------ avatars/Oxygen/index.php | 4 ++-- avatars/index.php | 15 +++------------ cache/images/index.php | 9 +++++++++ cache/index.php | 13 +++---------- custom_avatar/index.php | 15 +++------------ 59 files changed, 183 insertions(+), 188 deletions(-) create mode 100644 Sources/Actions/Admin/index.php create mode 100644 Sources/Actions/Moderation/index.php create mode 100644 Sources/Actions/Profile/index.php create mode 100644 Sources/Actions/index.php create mode 100644 Sources/PersonalMessage/index.php create mode 100644 Themes/default/fonts/AnonymousPro/index.php create mode 100644 Themes/default/fonts/ConsolaMono/index.php create mode 100644 cache/images/index.php diff --git a/Packages/backups/index.php b/Packages/backups/index.php index 69278ce68e..976d292448 100644 --- a/Packages/backups/index.php +++ b/Packages/backups/index.php @@ -1,8 +1,8 @@ \ No newline at end of file diff --git a/Sources/Actions/Moderation/index.php b/Sources/Actions/Moderation/index.php new file mode 100644 index 0000000000..976d292448 --- /dev/null +++ b/Sources/Actions/Moderation/index.php @@ -0,0 +1,9 @@ + \ No newline at end of file diff --git a/Sources/Actions/Profile/index.php b/Sources/Actions/Profile/index.php new file mode 100644 index 0000000000..976d292448 --- /dev/null +++ b/Sources/Actions/Profile/index.php @@ -0,0 +1,9 @@ + \ No newline at end of file diff --git a/Sources/Actions/index.php b/Sources/Actions/index.php new file mode 100644 index 0000000000..976d292448 --- /dev/null +++ b/Sources/Actions/index.php @@ -0,0 +1,9 @@ + \ No newline at end of file diff --git a/Sources/Cache/APIs/index.php b/Sources/Cache/APIs/index.php index 69278ce68e..976d292448 100644 --- a/Sources/Cache/APIs/index.php +++ b/Sources/Cache/APIs/index.php @@ -1,8 +1,8 @@ \ No newline at end of file diff --git a/Sources/ReCaptcha/RequestMethod/index.php b/Sources/ReCaptcha/RequestMethod/index.php index 69278ce68e..976d292448 100644 --- a/Sources/ReCaptcha/RequestMethod/index.php +++ b/Sources/ReCaptcha/RequestMethod/index.php @@ -1,8 +1,8 @@ \ No newline at end of file diff --git a/Themes/default/fonts/ConsolaMono/index.php b/Themes/default/fonts/ConsolaMono/index.php new file mode 100644 index 0000000000..976d292448 --- /dev/null +++ b/Themes/default/fonts/ConsolaMono/index.php @@ -0,0 +1,9 @@ + \ No newline at end of file diff --git a/Themes/default/fonts/index.php b/Themes/default/fonts/index.php index 2cf5d33d8a..976d292448 100644 --- a/Themes/default/fonts/index.php +++ b/Themes/default/fonts/index.php @@ -1,8 +1,8 @@ \ No newline at end of file diff --git a/cache/index.php b/cache/index.php index ac65b5dff9..976d292448 100644 --- a/cache/index.php +++ b/cache/index.php @@ -1,15 +1,8 @@ Date: Wed, 15 Nov 2023 17:09:06 -0800 Subject: [PATCH 2/2] Add index check --- .github/workflows/php.yml | 1 + composer.lock | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index e8d2783af6..a08b3995b7 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -35,6 +35,7 @@ jobs: php ./vendor/simplemachines/build-tools/check-eof.php php ./vendor/simplemachines/build-tools/check-smf-license.php php ./vendor/simplemachines/build-tools/check-smf-languages.php + php ./vendor/simplemachines/build-tools/check-smf-index.php php ./vendor/simplemachines/build-tools/check-version.php lint: diff --git a/composer.lock b/composer.lock index 3bc597e22e..0ffef5929a 100644 --- a/composer.lock +++ b/composer.lock @@ -173,12 +173,12 @@ "source": { "type": "git", "url": "https://github.com/SimpleMachines/BuildTools.git", - "reference": "405df8656accc8c00a6574fc9ed55d9e3463cb0e" + "reference": "572b50419eec2e3171252e79792b76c84494d3eb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/SimpleMachines/BuildTools/zipball/405df8656accc8c00a6574fc9ed55d9e3463cb0e", - "reference": "405df8656accc8c00a6574fc9ed55d9e3463cb0e", + "url": "https://api.github.com/repos/SimpleMachines/BuildTools/zipball/572b50419eec2e3171252e79792b76c84494d3eb", + "reference": "572b50419eec2e3171252e79792b76c84494d3eb", "shasum": "" }, "require": { @@ -190,7 +190,7 @@ "source": "https://github.com/SimpleMachines/BuildTools/tree/master", "issues": "https://github.com/SimpleMachines/BuildTools/issues" }, - "time": "2023-11-04T21:07:58+00:00" + "time": "2023-11-15T04:12:13+00:00" }, { "name": "symfony/console", @@ -579,5 +579,5 @@ "platform-overrides": { "php": "7.0.2" }, - "plugin-api-version": "2.1.0" + "plugin-api-version": "2.6.0" }