Domain or user

This commit is contained in:
Bob Mottram 2017-04-27 15:43:09 +01:00
parent 157fe17970
commit 3cc906d35e
1 changed files with 10 additions and 10 deletions

View File

@ -1857,7 +1857,7 @@ function menu_email {
function domain_blocking_add {
data=$(tempfile 2>/dev/null)
trap "rm -f $data" 0 1 2 5 15
dialog --title $"Block a domain name" \
dialog --title $"Block a domain or user" \
--backtitle $"Freedombone Control Panel" \
--inputbox $"Enter the domain name or GNU Social/postActiv nick@domain that you wish to block" 8 60 "" 2>$data
sel=$?
@ -1883,7 +1883,7 @@ function domain_blocking_add {
function domain_blocking_remove {
data=$(tempfile 2>/dev/null)
trap "rm -f $data" 0 1 2 5 15
dialog --title $"Unblock a domain name" \
dialog --title $"Unblock a domain or user" \
--backtitle $"Freedombone Control Panel" \
--inputbox $"Enter the domain name or GNU Social/postActiv nick@domain that you wish to unblock" 8 60 "" 2>$data
sel=$?
@ -1910,13 +1910,13 @@ function domain_blocking_show {
if [ -f $FIREWALL_DOMAINS ]; then
clear
echo ''
echo $'The following domains have been blocked:'
echo $'The following domains or users have been blocked:'
echo ''
cat $FIREWALL_DOMAINS | sort
any_key
else
dialog --title $"Show blocked domains" \
--msgbox $"No domains are currently blocked" 6 40
dialog --title $"Show blocked domains or users" \
--msgbox $"No domains or users are currently blocked" 6 40
fi
}
@ -1926,11 +1926,11 @@ function domain_blocking {
data=$(tempfile 2>/dev/null)
trap "rm -f $data" 0 1 2 5 15
dialog --backtitle $"Freedombone Control Panel" \
--title $"Domain Blocking" \
--title $"Domain or User Blocking" \
--radiolist $"Choose an operation:" 12 60 4 \
1 $"Block a domain" off \
2 $"Unblock a domain" off \
3 $"Show blocked domains" off \
1 $"Block a domain or user" off \
2 $"Unblock a domain or user" off \
3 $"Show blocked domains and users" off \
4 $"Back to main menu" on 2> $data
sel=$?
case $sel in
@ -2092,7 +2092,7 @@ function menu_top_level {
9 $"Ping enable/disable" off \
10 $"Manage Users" off \
11 $"Email Menu" off \
12 $"Domain blocking" off \
12 $"Domain or User Blocking" off \
13 $"Security Settings" off \
14 $"Set the main repository (repo mirrors)" off \
15 $"Change the name of this system" off \