From 3f477e046068c53d08fbd4db195615727592fcd8 Mon Sep 17 00:00:00 2001 From: mcrane Date: Mon, 5 Oct 2009 13:54:50 -0600 Subject: DNS Blacklist update wording, improve uninstall. --- config/dnsblacklist/dnsblacklist.inc | 12 ++---------- config/dnsblacklist/dnsblacklist.tmp | 5 ++--- 2 files changed, 4 insertions(+), 13 deletions(-) (limited to 'config') diff --git a/config/dnsblacklist/dnsblacklist.inc b/config/dnsblacklist/dnsblacklist.inc index 569bcbb8..8b957776 100644 --- a/config/dnsblacklist/dnsblacklist.inc +++ b/config/dnsblacklist/dnsblacklist.inc @@ -59,16 +59,10 @@ function byte_convert( $bytes ) { function phpservice_sync_package_php() { - global $config; - conf_mount_rw(); config_unlock(); - - conf_mount_ro(); - - } @@ -122,7 +116,6 @@ function php_install_command() conf_mount_ro(); config_unlock(); - } @@ -130,12 +123,11 @@ function deinstall_command() { conf_mount_rw(); config_lock(); - exec("rm -R /usr/local/www/packages/dnsblacklist/"); - $handle = popen("/usr/local/etc/rc.d/dnsblacklist.sh stop", "r"); unlink_if_exists("/usr/local/pkg/dnsblacklist.xml"); unlink_if_exists("/usr/local/pkg/dnsblacklist.inc"); - unlink_if_exists("/usr/local/etc/rc.d/dnsblacklist.sh"); + //unlink_if_exists("/usr/local/etc/rc.d/dnsblacklist.sh"); + exec("rm -R /usr/local/www/packages/dnsblacklist"); conf_mount_ro(); config_unlock(); } diff --git a/config/dnsblacklist/dnsblacklist.tmp b/config/dnsblacklist/dnsblacklist.tmp index 4edf4683..69ace333 100644 --- a/config/dnsblacklist/dnsblacklist.tmp +++ b/config/dnsblacklist/dnsblacklist.tmp @@ -26,7 +26,6 @@ $desc_en = trim($line_array[1]); $category[$name]['desc_en'] = $desc_en; } - } //get line count for domains list @@ -120,7 +119,7 @@ if (count($_POST)>0) { write_config(); services_dnsmasq_configure(); sleep(1); - $savemsg_dnsb = "DNS Blacklist settings have been saved. Restart dnsmasq service under 'Status' then 'Services' to make the settings active."; + $savemsg_dnsb = "DNS Blacklist settings have been saved. "; conf_mount_ro(); } ?> @@ -144,7 +143,7 @@ else { Below is a scroll-box filled with categories you can select to be added to your blacklist.

Each category has a list of known domains/sites that will be denied access by users of this network. -

(Note: Using all categories at once will require 300Mb of free memory. The adult and porn categories are rather memory intensive, requiring 200Mb together.) +

(Note: Using all categories at once will require 300Mb of free memory. The adult category is rather memory intensive, requiring 200Mb together.)


-- cgit v1.2.3