소스 검색

Domain or user

Bob Mottram 8 년 전
부모
커밋
3cc906d35e
1개의 변경된 파일10개의 추가작업 그리고 10개의 파일을 삭제
  1. 10
    10
      src/freedombone-controlpanel

+ 10
- 10
src/freedombone-controlpanel 파일 보기

1857
 function domain_blocking_add {
1857
 function domain_blocking_add {
1858
     data=$(tempfile 2>/dev/null)
1858
     data=$(tempfile 2>/dev/null)
1859
     trap "rm -f $data" 0 1 2 5 15
1859
     trap "rm -f $data" 0 1 2 5 15
1860
-    dialog --title $"Block a domain name" \
1860
+    dialog --title $"Block a domain or user" \
1861
            --backtitle $"Freedombone Control Panel" \
1861
            --backtitle $"Freedombone Control Panel" \
1862
            --inputbox $"Enter the domain name or GNU Social/postActiv nick@domain that you wish to block" 8 60 "" 2>$data
1862
            --inputbox $"Enter the domain name or GNU Social/postActiv nick@domain that you wish to block" 8 60 "" 2>$data
1863
     sel=$?
1863
     sel=$?
1883
 function domain_blocking_remove {
1883
 function domain_blocking_remove {
1884
     data=$(tempfile 2>/dev/null)
1884
     data=$(tempfile 2>/dev/null)
1885
     trap "rm -f $data" 0 1 2 5 15
1885
     trap "rm -f $data" 0 1 2 5 15
1886
-    dialog --title $"Unblock a domain name" \
1886
+    dialog --title $"Unblock a domain or user" \
1887
            --backtitle $"Freedombone Control Panel" \
1887
            --backtitle $"Freedombone Control Panel" \
1888
            --inputbox $"Enter the domain name or GNU Social/postActiv nick@domain that you wish to unblock" 8 60 "" 2>$data
1888
            --inputbox $"Enter the domain name or GNU Social/postActiv nick@domain that you wish to unblock" 8 60 "" 2>$data
1889
     sel=$?
1889
     sel=$?
1910
     if [ -f $FIREWALL_DOMAINS ]; then
1910
     if [ -f $FIREWALL_DOMAINS ]; then
1911
         clear
1911
         clear
1912
         echo ''
1912
         echo ''
1913
-        echo $'The following domains have been blocked:'
1913
+        echo $'The following domains or users have been blocked:'
1914
         echo ''
1914
         echo ''
1915
         cat $FIREWALL_DOMAINS | sort
1915
         cat $FIREWALL_DOMAINS | sort
1916
         any_key
1916
         any_key
1917
     else
1917
     else
1918
-        dialog --title $"Show blocked domains" \
1919
-               --msgbox $"No domains are currently blocked" 6 40
1918
+        dialog --title $"Show blocked domains or users" \
1919
+               --msgbox $"No domains or users are currently blocked" 6 40
1920
     fi
1920
     fi
1921
 }
1921
 }
1922
 
1922
 
1926
         data=$(tempfile 2>/dev/null)
1926
         data=$(tempfile 2>/dev/null)
1927
         trap "rm -f $data" 0 1 2 5 15
1927
         trap "rm -f $data" 0 1 2 5 15
1928
         dialog --backtitle $"Freedombone Control Panel" \
1928
         dialog --backtitle $"Freedombone Control Panel" \
1929
-               --title $"Domain Blocking" \
1929
+               --title $"Domain or User Blocking" \
1930
                --radiolist $"Choose an operation:" 12 60 4 \
1930
                --radiolist $"Choose an operation:" 12 60 4 \
1931
-               1 $"Block a domain" off \
1932
-               2 $"Unblock a domain" off \
1933
-               3 $"Show blocked domains" off \
1931
+               1 $"Block a domain or user" off \
1932
+               2 $"Unblock a domain or user" off \
1933
+               3 $"Show blocked domains and users" off \
1934
                4 $"Back to main menu" on 2> $data
1934
                4 $"Back to main menu" on 2> $data
1935
         sel=$?
1935
         sel=$?
1936
         case $sel in
1936
         case $sel in
2092
                9 $"Ping enable/disable" off \
2092
                9 $"Ping enable/disable" off \
2093
                10 $"Manage Users" off \
2093
                10 $"Manage Users" off \
2094
                11 $"Email Menu" off \
2094
                11 $"Email Menu" off \
2095
-               12 $"Domain blocking" off \
2095
+               12 $"Domain or User Blocking" off \
2096
                13 $"Security Settings" off \
2096
                13 $"Security Settings" off \
2097
                14 $"Set the main repository (repo mirrors)" off \
2097
                14 $"Set the main repository (repo mirrors)" off \
2098
                15 $"Change the name of this system" off \
2098
                15 $"Change the name of this system" off \