From 37dbfb8ab31e6fb1954ef5fccdad8cf2075fbe2b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 23 Jun 2025 12:23:08 +0000 Subject: [PATCH 01/14] Bump softprops/action-gh-release in the all-actions group Bumps the all-actions group with 1 update: [softprops/action-gh-release](https://github.com/softprops/action-gh-release). Updates `softprops/action-gh-release` from 2.2.2 to 2.3.2 - [Release notes](https://github.com/softprops/action-gh-release/releases) - [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md) - [Commits](https://github.com/softprops/action-gh-release/compare/v2.2.2...v2.3.2) --- updated-dependencies: - dependency-name: softprops/action-gh-release dependency-version: 2.3.2 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: all-actions ... Signed-off-by: dependabot[bot] --- .github/workflows/Create-NewReleases.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Create-NewReleases.yml b/.github/workflows/Create-NewReleases.yml index f61b0aa..2110f0f 100644 --- a/.github/workflows/Create-NewReleases.yml +++ b/.github/workflows/Create-NewReleases.yml @@ -97,7 +97,7 @@ jobs: # 7--- Publish a GitHub Release with auto-generated notes - name: Create Release with Automated Release Notes - uses: softprops/action-gh-release@v2.2.2 + uses: softprops/action-gh-release@v2.3.2 with: token: ${{ secrets.GITHUB_TOKEN }} tag_name: ${{ steps.nextver.outputs.tag }} From f0957296d8d4f1940b1fb0cf7c24b1cfc7df7e31 Mon Sep 17 00:00:00 2001 From: Martinski <119833648+Martinski4GitHub@users.noreply.github.com> Date: Mon, 21 Jul 2025 18:30:18 -0700 Subject: [PATCH 02/14] Improved Messaging Minor changes for improved messaging. --- README.md | 4 ++-- uiDivStats.sh | 30 ++++++++++++++++-------------- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 0399107..967e02f 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # uiDivStats - WebUI for Diversion statistics -## v4.0.11 -### Updated on 2025-June-21 +## v4.0.12 +### Updated on 2025-Jul-20 ## About A graphical representation of domain blocking performed by Diversion. diff --git a/uiDivStats.sh b/uiDivStats.sh index 578d3be..9e13e3e 100644 --- a/uiDivStats.sh +++ b/uiDivStats.sh @@ -13,7 +13,7 @@ ## Forked from https://github.com/jackyaz/uiDivStats ## ## ## ################################################################### -# Last Modified: 2025-Jun-21 +# Last Modified: 2025-Jul-20 #------------------------------------------------------------------ ################# Shellcheck directives ############### @@ -35,8 +35,8 @@ ### Start of script variables ### readonly SCRIPT_NAME="uiDivStats" -readonly SCRIPT_VERSION="v4.0.11" -readonly SCRIPT_VERSTAG="25062121" +readonly SCRIPT_VERSION="v4.0.12" +readonly SCRIPT_VERSTAG="25072023" SCRIPT_BRANCH="develop" SCRIPT_REPO="https://raw.githubusercontent.com/AMTM-OSR/$SCRIPT_NAME/$SCRIPT_BRANCH" readonly SCRIPT_DIR="/jffs/addons/$SCRIPT_NAME.d" @@ -68,7 +68,8 @@ readonly trimTMPOldsFile="${SCRIPT_USB_DIR}/uiDivStats_Olds.TMP" readonly scriptVersRegExp="v[0-9]{1,2}([.][0-9]{1,2})([.][0-9]{1,2})" readonly webPageFileRegExp="user([1-9]|[1-2][0-9])[.]asp" readonly webPageLineRegExp="\{url: \"$webPageFileRegExp\", tabName: \"$SCRIPT_NAME\"\}" -readonly scriptVERINFO="[${SCRIPT_VERSION}_${SCRIPT_VERSTAG}, Branch: $SCRIPT_BRANCH]" +readonly branchx_TAG="Branch: $SCRIPT_BRANCH" +readonly version_TAG="${SCRIPT_VERSION}_${SCRIPT_VERSTAG}" readonly oneKByte=1024 readonly oneMByte=1048576 @@ -99,6 +100,7 @@ readonly CLEARFORMAT="\\e[0m" readonly CLRct="\033[0m" readonly REDct="\033[1;31m" readonly GRNct="\033[1;32m" +readonly MGNTct="\e[1;35m" readonly CritIREDct="\e[41m" readonly CritBREDct="\e[30;101m" readonly PassBGRNct="\e[30;102m" @@ -956,7 +958,7 @@ Mount_WebUI() Get_WebUI_Page "$SCRIPT_DIR/uidivstats_www.asp" if [ "$MyWebPage" = "NONE" ] then - Print_Output true "**ERROR** Unable to mount $SCRIPT_NAME WebUI page, exiting" "$CRIT" + Print_Output true "**ERROR** Unable to mount $SCRIPT_NAME WebUI page." "$CRIT" Clear_Lock exit 1 fi @@ -2297,7 +2299,7 @@ _SQLGetDBLogTimeStamp_() { printf "[$(date +"$sqlDBLogDateTime")]" ; } ##----------------------------------------## -## Modified by Martinski W. [2025-Jun-21] ## +## Modified by Martinski W. [2025-Jul-20] ## ##----------------------------------------## readonly errorMsgsRegExp="Parse error|Runtime error|Error:" readonly corruptedBinExp="Illegal instruction|SQLite header and source version mismatch" @@ -2385,7 +2387,7 @@ _ApplyDatabaseSQLCmds_() fi if "$foundError" || "$foundLocked" then - Print_Output true "SQLite process ${resultStr}" "$ERR" + Print_Output true "SQLite process[$callFlag] ${resultStr}" "$ERR" fi } @@ -3450,8 +3452,8 @@ Entware_Ready() ##----------------------------------------## Show_About() { + printf "About ${MGNTct}${SCRIPT_VERS_INFO}${CLRct}\n" cat < Date: Sun, 27 Jul 2025 23:49:15 -0700 Subject: [PATCH 03/14] Code Improvements Code improvements and fine-tuning. --- README.md | 2 +- uiDivStats.sh | 36 ++++++++++++++++++++++++------------ 2 files changed, 25 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 967e02f..0570c16 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # uiDivStats - WebUI for Diversion statistics ## v4.0.12 -### Updated on 2025-Jul-20 +### Updated on 2025-Jul-27 ## About A graphical representation of domain blocking performed by Diversion. diff --git a/uiDivStats.sh b/uiDivStats.sh index 9e13e3e..010851d 100644 --- a/uiDivStats.sh +++ b/uiDivStats.sh @@ -13,7 +13,7 @@ ## Forked from https://github.com/jackyaz/uiDivStats ## ## ## ################################################################### -# Last Modified: 2025-Jul-20 +# Last Modified: 2025-Jul-27 #------------------------------------------------------------------ ################# Shellcheck directives ############### @@ -36,7 +36,7 @@ ### Start of script variables ### readonly SCRIPT_NAME="uiDivStats" readonly SCRIPT_VERSION="v4.0.12" -readonly SCRIPT_VERSTAG="25072023" +readonly SCRIPT_VERSTAG="25072723" SCRIPT_BRANCH="develop" SCRIPT_REPO="https://raw.githubusercontent.com/AMTM-OSR/$SCRIPT_NAME/$SCRIPT_BRANCH" readonly SCRIPT_DIR="/jffs/addons/$SCRIPT_NAME.d" @@ -3375,25 +3375,36 @@ Menu_Uninstall() Print_Output true "Uninstall completed" "$PASS" } +##----------------------------------------## +## Modified by Martinski W. [2025-Jul-27] ## +##----------------------------------------## NTP_Ready() { + local theSleepDelay=15 ntpMaxWaitSecs=600 ntpWaitSecs + if [ "$(nvram get ntp_ready)" -eq 0 ] then Check_Lock - ntpwaitcount=0 - while [ "$(nvram get ntp_ready)" -eq 0 ] && [ "$ntpwaitcount" -lt 600 ] + ntpWaitSecs=0 + Print_Output true "Waiting for NTP to sync..." "$WARN" + + while [ "$(nvram get ntp_ready)" -eq 0 ] && [ "$ntpWaitSecs" -lt "$ntpMaxWaitSecs" ] do - ntpwaitcount="$((ntpwaitcount + 30))" - Print_Output true "Waiting for NTP to sync..." "$WARN" - sleep 30 + if [ "$ntpWaitSecs" -gt 0 ] && [ "$((ntpWaitSecs % 30))" -eq 0 ] + then + Print_Output true "Waiting for NTP to sync [$ntpWaitSecs secs]..." "$WARN" + fi + sleep "$theSleepDelay" + ntpWaitSecs="$((ntpWaitSecs + theSleepDelay))" done - if [ "$ntpwaitcount" -ge 600 ] + + if [ "$ntpWaitSecs" -ge "$ntpMaxWaitSecs" ] then Print_Output true "NTP failed to sync after 10 minutes. Please resolve!" "$CRIT" Clear_Lock exit 1 else - Print_Output true "NTP synced, $SCRIPT_NAME will now continue" "$PASS" + Print_Output true "NTP has synced [$ntpWaitSecs secs]. $SCRIPT_NAME will now continue." "$PASS" Clear_Lock fi fi @@ -3405,7 +3416,7 @@ NTP_Ready() ##----------------------------------------## Entware_Ready() { - local theSleepDelay=5 maxSleepTimer=100 sleepTimerSecs + local theSleepDelay=5 maxSleepTimer=120 sleepTimerSecs local doExitNotFound=true if [ $# -eq 1 ] && [ "$1" = "false" ] @@ -3424,11 +3435,12 @@ Entware_Ready() do if [ "$((sleepTimerSecs % 10))" -eq 0 ] then - Print_Output true "Entware NOT found, sleeping for $theSleepDelay secs [$sleepTimerSecs secs]..." "$WARN" + Print_Output true "Entware NOT found. Wait for Entware to be ready [$sleepTimerSecs secs]..." "$WARN" fi sleep "$theSleepDelay" sleepTimerSecs="$((sleepTimerSecs + theSleepDelay))" done + if [ ! -f /opt/bin/opkg ] then if "$doExitNotFound" @@ -3440,7 +3452,7 @@ Entware_Ready() Clear_Lock ; return 1 fi else - Print_Output true "Entware found, $SCRIPT_NAME will now continue" "$PASS" + Print_Output true "Entware found [$sleepTimerSecs secs]. $SCRIPT_NAME will now continue." "$PASS" Clear_Lock fi fi From 306d9e359fa7c9c0360809ea3e8302e39bb047ce Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Aug 2025 15:10:55 +0000 Subject: [PATCH 04/14] Bump actions/checkout from 4.2.2 to 4.3.0 in the all-actions group Bumps the all-actions group with 1 update: [actions/checkout](https://github.com/actions/checkout). Updates `actions/checkout` from 4.2.2 to 4.3.0 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4.2.2...v4.3.0) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 4.3.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: all-actions ... Signed-off-by: dependabot[bot] --- .github/workflows/Create-NewReleases.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Create-NewReleases.yml b/.github/workflows/Create-NewReleases.yml index 2110f0f..06b67d8 100644 --- a/.github/workflows/Create-NewReleases.yml +++ b/.github/workflows/Create-NewReleases.yml @@ -19,7 +19,7 @@ jobs: steps: # 1--- Check out master so we tag the exact merge commit - name: Checkout source code - uses: actions/checkout@v4.2.2 + uses: actions/checkout@v4.3.0 with: fetch-depth: 0 ref: 'master' From 953625c99961a4f91ff710844fe6e96344cb4b6c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 Aug 2025 15:50:29 +0000 Subject: [PATCH 05/14] Bump actions/checkout from 4.3.0 to 5.0.0 in the all-actions group Bumps the all-actions group with 1 update: [actions/checkout](https://github.com/actions/checkout). Updates `actions/checkout` from 4.3.0 to 5.0.0 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4.3.0...v5.0.0) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 5.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: all-actions ... Signed-off-by: dependabot[bot] --- .github/workflows/Create-NewReleases.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Create-NewReleases.yml b/.github/workflows/Create-NewReleases.yml index 06b67d8..1a85661 100644 --- a/.github/workflows/Create-NewReleases.yml +++ b/.github/workflows/Create-NewReleases.yml @@ -19,7 +19,7 @@ jobs: steps: # 1--- Check out master so we tag the exact merge commit - name: Checkout source code - uses: actions/checkout@v4.3.0 + uses: actions/checkout@v5.0.0 with: fetch-depth: 0 ref: 'master' From eec962ddc3ea1b6cfc2ece7ab34c02f5a44f4fd1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 Sep 2025 10:51:31 +0000 Subject: [PATCH 06/14] Bump softprops/action-gh-release in the all-actions group Bumps the all-actions group with 1 update: [softprops/action-gh-release](https://github.com/softprops/action-gh-release). Updates `softprops/action-gh-release` from 2.3.2 to 2.3.3 - [Release notes](https://github.com/softprops/action-gh-release/releases) - [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md) - [Commits](https://github.com/softprops/action-gh-release/compare/v2.3.2...v2.3.3) --- updated-dependencies: - dependency-name: softprops/action-gh-release dependency-version: 2.3.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: all-actions ... Signed-off-by: dependabot[bot] --- .github/workflows/Create-NewReleases.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Create-NewReleases.yml b/.github/workflows/Create-NewReleases.yml index 1a85661..88ba7ad 100644 --- a/.github/workflows/Create-NewReleases.yml +++ b/.github/workflows/Create-NewReleases.yml @@ -97,7 +97,7 @@ jobs: # 7--- Publish a GitHub Release with auto-generated notes - name: Create Release with Automated Release Notes - uses: softprops/action-gh-release@v2.3.2 + uses: softprops/action-gh-release@v2.3.3 with: token: ${{ secrets.GITHUB_TOKEN }} tag_name: ${{ steps.nextver.outputs.tag }} From b4a1b71a80722569f647cc362b1c272460d9edd8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 6 Oct 2025 11:24:24 +0000 Subject: [PATCH 07/14] Bump softprops/action-gh-release in the all-actions group Bumps the all-actions group with 1 update: [softprops/action-gh-release](https://github.com/softprops/action-gh-release). Updates `softprops/action-gh-release` from 2.3.3 to 2.3.4 - [Release notes](https://github.com/softprops/action-gh-release/releases) - [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md) - [Commits](https://github.com/softprops/action-gh-release/compare/v2.3.3...v2.3.4) --- updated-dependencies: - dependency-name: softprops/action-gh-release dependency-version: 2.3.4 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: all-actions ... Signed-off-by: dependabot[bot] --- .github/workflows/Create-NewReleases.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Create-NewReleases.yml b/.github/workflows/Create-NewReleases.yml index 88ba7ad..a9fda26 100644 --- a/.github/workflows/Create-NewReleases.yml +++ b/.github/workflows/Create-NewReleases.yml @@ -97,7 +97,7 @@ jobs: # 7--- Publish a GitHub Release with auto-generated notes - name: Create Release with Automated Release Notes - uses: softprops/action-gh-release@v2.3.3 + uses: softprops/action-gh-release@v2.3.4 with: token: ${{ secrets.GITHUB_TOKEN }} tag_name: ${{ steps.nextver.outputs.tag }} From 9462bf4cd09b0fd3216f7aff3a62be590507b808 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Oct 2025 11:20:22 +0000 Subject: [PATCH 08/14] Bump softprops/action-gh-release in the all-actions group Bumps the all-actions group with 1 update: [softprops/action-gh-release](https://github.com/softprops/action-gh-release). Updates `softprops/action-gh-release` from 2.3.4 to 2.4.1 - [Release notes](https://github.com/softprops/action-gh-release/releases) - [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md) - [Commits](https://github.com/softprops/action-gh-release/compare/v2.3.4...v2.4.1) --- updated-dependencies: - dependency-name: softprops/action-gh-release dependency-version: 2.4.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: all-actions ... Signed-off-by: dependabot[bot] --- .github/workflows/Create-NewReleases.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Create-NewReleases.yml b/.github/workflows/Create-NewReleases.yml index a9fda26..3a8fdd3 100644 --- a/.github/workflows/Create-NewReleases.yml +++ b/.github/workflows/Create-NewReleases.yml @@ -97,7 +97,7 @@ jobs: # 7--- Publish a GitHub Release with auto-generated notes - name: Create Release with Automated Release Notes - uses: softprops/action-gh-release@v2.3.4 + uses: softprops/action-gh-release@v2.4.1 with: token: ${{ secrets.GITHUB_TOKEN }} tag_name: ${{ steps.nextver.outputs.tag }} From afea7f09faafbc7e364d5e2351fefc6911d323f0 Mon Sep 17 00:00:00 2001 From: Martinski4GitHub <119833648+Martinski4GitHub@users.noreply.github.com> Date: Sat, 25 Oct 2025 21:30:20 -0700 Subject: [PATCH 09/14] Update .gitattributes Updated attributes. --- .gitattributes | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitattributes b/.gitattributes index 8c1f7e2..e038a90 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,8 +1,14 @@ -*.tar.gz binary +* text eol=lf *.sh text eol=lf -*.awk text eol=lf *.md text eol=lf *.asp text eol=lf *.js text eol=lf *.css text eol=lf *.md5 text eol=lf +*.awk text eol=lf +*.gz binary +*.png binary +*.jpg binary +*.jpeg binary +*.zip binary +*.tar.gz binary From 2760db6dceb98c691c02677abfbb5ef4ff56e7fb Mon Sep 17 00:00:00 2001 From: Martinski4GitHub <119833648+Martinski4GitHub@users.noreply.github.com> Date: Sat, 25 Oct 2025 21:39:26 -0700 Subject: [PATCH 10/14] Code Improvements --- README.md | 2 +- uiDivStats.sh | 81 ++++++++++++++++++++++++++++++++++++--------------- 2 files changed, 58 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index 0570c16..8252048 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # uiDivStats - WebUI for Diversion statistics ## v4.0.12 -### Updated on 2025-Jul-27 +### Updated on 2025-Oct-25 ## About A graphical representation of domain blocking performed by Diversion. diff --git a/uiDivStats.sh b/uiDivStats.sh index 010851d..fbe8c3a 100644 --- a/uiDivStats.sh +++ b/uiDivStats.sh @@ -13,7 +13,7 @@ ## Forked from https://github.com/jackyaz/uiDivStats ## ## ## ################################################################### -# Last Modified: 2025-Jul-27 +# Last Modified: 2025-Oct-25 #------------------------------------------------------------------ ################# Shellcheck directives ############### @@ -36,7 +36,7 @@ ### Start of script variables ### readonly SCRIPT_NAME="uiDivStats" readonly SCRIPT_VERSION="v4.0.12" -readonly SCRIPT_VERSTAG="25072723" +readonly SCRIPT_VERSTAG="25102522" SCRIPT_BRANCH="develop" SCRIPT_REPO="https://raw.githubusercontent.com/AMTM-OSR/$SCRIPT_NAME/$SCRIPT_BRANCH" readonly SCRIPT_DIR="/jffs/addons/$SCRIPT_NAME.d" @@ -68,8 +68,9 @@ readonly trimTMPOldsFile="${SCRIPT_USB_DIR}/uiDivStats_Olds.TMP" readonly scriptVersRegExp="v[0-9]{1,2}([.][0-9]{1,2})([.][0-9]{1,2})" readonly webPageFileRegExp="user([1-9]|[1-2][0-9])[.]asp" readonly webPageLineRegExp="\{url: \"$webPageFileRegExp\", tabName: \"$SCRIPT_NAME\"\}" -readonly branchx_TAG="Branch: $SCRIPT_BRANCH" -readonly version_TAG="${SCRIPT_VERSION}_${SCRIPT_VERSTAG}" +readonly branchxStr_TAG="[Branch: $SCRIPT_BRANCH]" +readonly versionDev_TAG="${SCRIPT_VERSION}_${SCRIPT_VERSTAG}" +readonly versionMod_TAG="$SCRIPT_VERSION on $ROUTER_MODEL" readonly oneKByte=1024 readonly oneMByte=1048576 @@ -2754,26 +2755,55 @@ _WaitForYESorNO_() fi } +##-------------------------------------## +## Added by Martinski W. [2025-Oct-25] ## +##-------------------------------------## +_CenterTextStr_() +{ + if [ $# -lt 2 ] || [ -z "$1" ] || [ -z "$2" ] || \ + ! echo "$2" | grep -qE "^[1-9][0-9]+$" + then echo ; return 1 + fi + local stringLen="${#1}" + local space1Len="$((($2 - stringLen)/2))" + local space2Len="$space1Len" + local totalLen="$((space1Len + stringLen + space2Len))" + + if [ "$totalLen" -lt "$2" ] + then space2Len="$((space2Len + 1))" + elif [ "$totalLen" -gt "$2" ] + then space1Len="$((space1Len - 1))" + fi + if [ "$space1Len" -gt 0 ] && [ "$space2Len" -gt 0 ] + then printf "%*s%s%*s" "$space1Len" '' "$1" "$space2Len" '' + else printf "%s" "$1" + fi +} + +##----------------------------------------## +## Modified by Martinski W. [2025-Oct-25] ## +##----------------------------------------## ScriptHeader() { clear - printf "\\n" - printf "${BOLD}###################################################################${CLEARFORMAT}\\n" - printf "${BOLD}## ##${CLEARFORMAT}\\n" - printf "${BOLD}## _ _____ _ _____ _ _ ##${CLEARFORMAT}\\n" - printf "${BOLD}## (_)| __ \ (_) / ____|| | | | ##${CLEARFORMAT}\\n" - printf "${BOLD}## _ _ _ | | | | _ __ __| (___ | |_ __ _ | |_ ___ ##${CLEARFORMAT}\\n" - printf "${BOLD}## | | | || || | | || |\ \ / / \___ \ | __|/ _ || __|/ __| ##${CLEARFORMAT}\\n" - printf "${BOLD}## | |_| || || |__| || | \ V / ____) || |_| (_| || |_ \__ \ ##${CLEARFORMAT}\\n" - printf "${BOLD}## \__,_||_||_____/ |_| \_/ |_____/ \__|\__,_| \__||___/ ##${CLEARFORMAT}\\n" - printf "${BOLD}## ##${CLEARFORMAT}\\n" - printf "${BOLD}## %9s on %-18s ##${CLEARFORMAT}\n" "$SCRIPT_VERSION" "$ROUTER_MODEL" - printf "${BOLD}## ##${CLEARFORMAT}\\n" - printf "${BOLD}## https://github.com/AMTM-OSR/uiDivStats ##${CLEARFORMAT}\\n" - printf "${BOLD}## Forked from https://github.com/jackyaz/uiDivStats ##${CLEARFORMAT}\\n" - printf "${BOLD}## ##${CLEARFORMAT}\\n" - printf "${BOLD}###################################################################${CLEARFORMAT}\\n" - printf "\\n" + local spaceLen=61 colorCT + [ "$SCRIPT_BRANCH" = "master" ] && colorCT="$GRNct" || colorCT="$MGNTct" + echo + printf "${BOLD}###################################################################${CLRct}\n" + printf "${BOLD}## _ _____ _ _____ _ _ ##${CLRct}\n" + printf "${BOLD}## (_)| __ \ (_) / ____|| | | | ##${CLRct}\n" + printf "${BOLD}## _ _ _ | | | | _ __ __| (___ | |_ __ _ | |_ ___ ##${CLRct}\n" + printf "${BOLD}## | | | || || | | || |\ \ / / \___ \ | __|/ _ || __|/ __| ##${CLRct}\n" + printf "${BOLD}## | |_| || || |__| || | \ V / ____) || |_| (_| || |_ \__ \ ##${CLRct}\n" + printf "${BOLD}## \__,_||_||_____/ |_| \_/ |_____/ \__|\__,_| \__||___/ ##${CLRct}\n" + printf "${BOLD}## ##${CLRct}\n" + printf "${BOLD}## ${GRNct}%s${CLRct}${BOLD} ##${CLRct}\n" "$(_CenterTextStr_ "$versionMod_TAG" "$spaceLen")" + printf "${BOLD}## ${colorCT}%s${CLRct}${BOLD} ##${CLRct}\n" "$(_CenterTextStr_ "$branchxStr_TAG" "$spaceLen")" + printf "${BOLD}## ##${CLRct}\n" + printf "${BOLD}## https://github.com/AMTM-OSR/uiDivStats ##${CLRct}\n" + printf "${BOLD}## Forked from https://github.com/jackyaz/uiDivStats ##${CLRct}\n" + printf "${BOLD}## ##${CLRct}\n" + printf "${BOLD}###################################################################${CLRct}\n\n" } ##----------------------------------------## @@ -3167,6 +3197,7 @@ Menu_Startup() Auto_Cron delete 2>/dev/null /opt/etc/init.d/S90taildns stop >/dev/null 2>&1 fi + Set_Version_Custom_Settings local "$SCRIPT_VERSION" Auto_ServiceEvent create 2>/dev/null Shortcut_Script create Mount_WebUI @@ -3524,8 +3555,8 @@ fi _SQLCheckDBLogFileSize_ if [ "$SCRIPT_BRANCH" = "master" ] -then SCRIPT_VERS_INFO="[$branchx_TAG]" -else SCRIPT_VERS_INFO="[$version_TAG, $branchx_TAG]" +then SCRIPT_VERS_INFO="" +else SCRIPT_VERS_INFO="[$versionDev_TAG]" fi dbBackgProcsEnabled="$(_ToggleBackgroundProcsEnabled_ check)" @@ -3555,6 +3586,7 @@ then Auto_Cron delete 2>/dev/null /opt/etc/init.d/S90taildns stop >/dev/null 2>&1 fi + Set_Version_Custom_Settings local "$SCRIPT_VERSION" Auto_ServiceEvent create 2>/dev/null Shortcut_Script create _CheckFor_WebGUI_Page_ @@ -3573,7 +3605,8 @@ case "$1" in exit 0 ;; startup) - Menu_Startup "$2" + shift + Menu_Startup "$@" exit 0 ;; generate) From 9431a94364039ab07ce43c04c85efc2cc89cf06f Mon Sep 17 00:00:00 2001 From: Martinski4GitHub <119833648+Martinski4GitHub@users.noreply.github.com> Date: Thu, 30 Oct 2025 00:57:05 -0700 Subject: [PATCH 11/14] Removed Tomato JS Dependencies - Removed old Tomato JavaScript file references. (No Tomato JS functions were actually used) --- README.md | 2 +- uidivstats_www.asp | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8252048..c4ab0b7 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # uiDivStats - WebUI for Diversion statistics ## v4.0.12 -### Updated on 2025-Oct-25 +### Updated on 2025-Oct-30 ## About A graphical representation of domain blocking performed by Diversion. diff --git a/uidivstats_www.asp b/uidivstats_www.asp index f8fa9af..b19e385 100644 --- a/uidivstats_www.asp +++ b/uidivstats_www.asp @@ -26,14 +26,12 @@ p{font-weight:bolder}thead.collapsible-jquery{color:#fff;padding:0;width:100%;bo - -