From cb90e604e8ae35527214b1416cc0104b6551bc4a Mon Sep 17 00:00:00 2001 From: DL6ER Date: Wed, 1 Feb 2023 22:59:12 +0100 Subject: [PATCH] Add system information on first tab of the settings page Signed-off-by: DL6ER --- .github/workflows/phpstan.yml | 21 -- phpstan.neon.dist | 8 - queries.php | 78 +++---- scripts/pi-hole/js/footer.js | 73 +++++- scripts/pi-hole/js/settings.js | 68 +++++- scripts/pi-hole/php/func.php | 382 -------------------------------- scripts/pi-hole/php/sidebar.php | 22 +- settings.php | 352 +++++++++++------------------ 8 files changed, 321 insertions(+), 683 deletions(-) delete mode 100644 .github/workflows/phpstan.yml delete mode 100644 phpstan.neon.dist diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml deleted file mode 100644 index adc09008..00000000 --- a/.github/workflows/phpstan.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: PHPStan - -on: - push: - pull_request: - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3.3.0 - - - name: Install composer - uses: php-actions/composer@v6 - - - name: Run PHPStan - uses: php-actions/phpstan@v3 - with: - configuration: phpstan.neon.dist - memory_limit: 256M - diff --git a/phpstan.neon.dist b/phpstan.neon.dist deleted file mode 100644 index 6f5fe642..00000000 --- a/phpstan.neon.dist +++ /dev/null @@ -1,8 +0,0 @@ -parameters: - level: 0 - excludePaths: - - vendor - scanDirectories: - - . - paths: - - . diff --git a/queries.php b/queries.php index bda2fa9b..30c45dfa 100644 --- a/queries.php +++ b/queries.php @@ -5,7 +5,7 @@ * * This file is copyright under the latest version of the EUPL. * Please see LICENSE file for your rights under this license. */ - require "scripts/pi-hole/php/header_authenticated.php"; +require 'scripts/pi-hole/php/header_authenticated.php'; ?>