plg: disable header message in DefaultPageLayout.php

This commit is contained in:
ljm42
2023-11-06 17:06:11 -07:00
committed by Zack Spear
parent bf60f1e5ac
commit 032fd9853e

View File

@@ -434,6 +434,13 @@ if [[ -n $LINENUM ]]; then
head -$((LINENUM-1)) "$FILE" > "$FILE~"
echo '<unraid-i18n-host><unraid-header-os-version></unraid-header-os-version></unraid-i18n-host>' >> "$FILE~"
tail +$((LINENUM+1)) "$FILE" >> "$FILE~"
# disable these lines: <?$readme = @file_get_contents("$docroot/plugins/unRAIDServer/README.md",false,null,0,20)?:''?>
# <?$readme = @file_get_contents("$docroot/plugins/unRAIDServer/README.md",false,null,0,20)??'';?>
# <?$readme = @file_get_contents("$docroot/plugins/unRAIDServer/README.md",false,null,0,20);?>
# by replacing with: <?$readme ="removed by Connect";?>
sed -i '/unRAIDServer\/README\.md/c\<?$readme ="removed by Connect";?>' "$FILE~"
mv -f "$FILE~" "$FILE"
fi