diff options
Diffstat (limited to 'config/dnsblacklist')
-rw-r--r-- | config/dnsblacklist/dnsblacklist.inc | 12 | ||||
-rw-r--r-- | config/dnsblacklist/dnsblacklist.tmp | 5 |
2 files changed, 4 insertions, 13 deletions
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 { <?php if ($savemsg_dnsb) print_info_box($savemsg_dnsb); ?>
Below is a scroll-box filled with categories you can select to be added to your blacklist. <br><br> Each category has a list of known domains/sites that will be denied access by users of this network.
-<br><br><i>(Note: Using all categories at once will require 300Mb of free memory. The <b>adult</b> and <b>porn</b> categories are rather memory intensive, requiring 200Mb together.)</i>
+<br><br><i>(Note: Using all categories at once will require 300Mb of free memory. The <b>adult</b> category is rather memory intensive, requiring 200Mb together.)</i>
<br><br><br>
|