summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-07-24 17:05:33 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-07-24 18:28:00 -0300
commit71802285e56dfed514be715b4ab2d01a0b4363b8 (patch)
tree7e19a4196122f16d1d96eee018efa62c3246ab1c
parentba782be2068109536e2e17ce32e5f54e279a7820 (diff)
downloadpfsense-71802285e56dfed514be715b4ab2d01a0b4363b8.zip
pfsense-71802285e56dfed514be715b4ab2d01a0b4363b8.tar.gz
Replace exec() and system() calls by internal functions
-rw-r--r--usr/local/www/firewall_shaper_wizards.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr/local/www/firewall_shaper_wizards.php b/usr/local/www/firewall_shaper_wizards.php
index e6b67ff..54ead11 100644
--- a/usr/local/www/firewall_shaper_wizards.php
+++ b/usr/local/www/firewall_shaper_wizards.php
@@ -43,9 +43,10 @@ require("guiconfig.inc");
require_once("functions.inc");
require_once("filter.inc");
require_once("shaper.inc");
+require_once("util.inc");
if($_GET['reset'] <> "") {
- mwexec("/usr/bin/killall -9 pfctl");
+ sigkillbyname('pfctl', SIGKILL);
exit;
}
@@ -62,8 +63,8 @@ if ($_POST['apply']) {
$savemsg = $retval;
/* reset rrd queues */
- system("rm -f /var/db/rrd/*queuedrops.rrd");
- system("rm -f /var/db/rrd/*queues.rrd");
+ unlink_if_exists("/var/db/rrd/*queuedrops.rrd");
+ unlink_if_exists("/var/db/rrd/*queues.rrd");
enable_rrd_graphing();
clear_subsystem_dirty('shaper');
OpenPOWER on IntegriCloud