summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@sullrich-MacBookPro.local>2009-03-18 19:51:13 -0400
committerScott Ullrich <sullrich@sullrich-MacBookPro.local>2009-03-18 19:51:13 -0400
commitbb89e5d075422014ee02406d7b5d8e53d2ec3bec (patch)
treee68d3e9f3159264b9cf6beb54782fbee3563441f /usr
parent783cdcaaa733a4415eeaea21309b0437602b3929 (diff)
downloadpfsense-bb89e5d075422014ee02406d7b5d8e53d2ec3bec.zip
pfsense-bb89e5d075422014ee02406d7b5d8e53d2ec3bec.tar.gz
Use unlink()
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/diag_logs.php2
-rwxr-xr-xusr/local/www/diag_logs_auth.php2
-rwxr-xr-xusr/local/www/diag_logs_dhcp.php2
-rwxr-xr-xusr/local/www/diag_logs_filter.php2
-rwxr-xr-xusr/local/www/diag_logs_filter_dynamic.php2
-rwxr-xr-xusr/local/www/diag_logs_ipsec.php2
-rw-r--r--usr/local/www/diag_logs_ntpd.php2
-rw-r--r--usr/local/www/diag_logs_openvpn.php2
-rwxr-xr-xusr/local/www/diag_logs_relayd.php2
-rwxr-xr-xusr/local/www/diag_logs_slbd.php2
-rwxr-xr-xusr/local/www/diag_logs_vpn.php2
11 files changed, 11 insertions, 11 deletions
diff --git a/usr/local/www/diag_logs.php b/usr/local/www/diag_logs.php
index d76bf44..6463139 100755
--- a/usr/local/www/diag_logs.php
+++ b/usr/local/www/diag_logs.php
@@ -55,7 +55,7 @@ if ($_POST['clear']) {
} else {
exec("killall syslogd");
if(file_exists("{$system_logfile}"))
- unlink_file("{$system_logfile}");
+ unlink("{$system_logfile}");
exec("/usr/sbin/fifolog_create -s 511488 {$system_logfile}");
system_syslogd_start();
}
diff --git a/usr/local/www/diag_logs_auth.php b/usr/local/www/diag_logs_auth.php
index 2c48e42..e4daf4e 100755
--- a/usr/local/www/diag_logs_auth.php
+++ b/usr/local/www/diag_logs_auth.php
@@ -51,7 +51,7 @@ if ($_POST['clear']) {
} else {
exec("killall syslogd");
if(file_exists("{$portal_logfile}"))
- unlink_file("{$portal_logfile}");
+ unlink("{$portal_logfile}");
exec("/usr/sbin/fifolog_create -s 511488 {$portal_logfile}");
}
}
diff --git a/usr/local/www/diag_logs_dhcp.php b/usr/local/www/diag_logs_dhcp.php
index 35989ba..71bd8a1 100755
--- a/usr/local/www/diag_logs_dhcp.php
+++ b/usr/local/www/diag_logs_dhcp.php
@@ -53,7 +53,7 @@ if ($_POST['clear']) {
} else {
exec("killall syslogd");
if(file_exists("{$dhcpd_logfile}"))
- unlink_file("{$dhcpd_logfile}");
+ unlink("{$dhcpd_logfile}");
exec("/usr/sbin/fifolog_create -s 511488 {$dhcpd_logfile}");
}
}
diff --git a/usr/local/www/diag_logs_filter.php b/usr/local/www/diag_logs_filter.php
index 7a605ad..b7a26e6 100755
--- a/usr/local/www/diag_logs_filter.php
+++ b/usr/local/www/diag_logs_filter.php
@@ -62,7 +62,7 @@ if ($_POST['clear']) {
} else {
exec("killall syslogd");
if(file_exists("{$filter_logfile}")
- unlink_file("{$filter_logfile}");
+ unlink("{$filter_logfile}");
exec("/usr/sbin/fifolog_create -s 511488 {$filter_logfile}");
system_syslogd_start();
}
diff --git a/usr/local/www/diag_logs_filter_dynamic.php b/usr/local/www/diag_logs_filter_dynamic.php
index 9c16124..987ab1b 100755
--- a/usr/local/www/diag_logs_filter_dynamic.php
+++ b/usr/local/www/diag_logs_filter_dynamic.php
@@ -54,7 +54,7 @@ if ($_POST['clear']) {
} else {
exec("killall syslogd");
if(file_exists("{$filter_logfile}")
- unlink_file("{$filter_logfile}");
+ unlink("{$filter_logfile}");
exec("/usr/sbin/fifolog_create -s 511488 {$filter_logfile}");
system_syslogd_start();
}
diff --git a/usr/local/www/diag_logs_ipsec.php b/usr/local/www/diag_logs_ipsec.php
index 632ca65..96b4f90 100755
--- a/usr/local/www/diag_logs_ipsec.php
+++ b/usr/local/www/diag_logs_ipsec.php
@@ -69,7 +69,7 @@ if ($_POST['clear']) {
} else {
exec("killall syslogd");
if(file_exists("{$ipsec_logfile}")
- unlink_file("{$ipsec_logfile}");
+ unlink("{$ipsec_logfile}");
exec("/usr/sbin/fifolog_create -s 511488 {$ipsec_logfile}");
system_syslogd_start();
}
diff --git a/usr/local/www/diag_logs_ntpd.php b/usr/local/www/diag_logs_ntpd.php
index 68a72bd..da325cf 100644
--- a/usr/local/www/diag_logs_ntpd.php
+++ b/usr/local/www/diag_logs_ntpd.php
@@ -51,7 +51,7 @@ if ($_POST['clear']) {
} else {
exec("killall syslogd");
if(file_exists("{$ntpd_logfile}"))
- unlink_file("{$ntpd_logfile}");
+ unlink("{$ntpd_logfile}");
exec("/usr/sbin/fifolog_create -s 511488 {$ntpd_logfile}");
system_syslogd_start();
}
diff --git a/usr/local/www/diag_logs_openvpn.php b/usr/local/www/diag_logs_openvpn.php
index 9a00822..21612a4 100644
--- a/usr/local/www/diag_logs_openvpn.php
+++ b/usr/local/www/diag_logs_openvpn.php
@@ -56,7 +56,7 @@ if ($_POST['clear']) {
} else {
exec("killall syslogd");
if(file_exists("{$openvpn_logfile}"))
- unlink_file("{$openvpn_logfile}");
+ unlink("{$openvpn_logfile}");
exec("/usr/sbin/fifolog_create -s 262144 {$openvpn_logfile}");
system_syslogd_start();
}
diff --git a/usr/local/www/diag_logs_relayd.php b/usr/local/www/diag_logs_relayd.php
index f00e493..f29246d 100755
--- a/usr/local/www/diag_logs_relayd.php
+++ b/usr/local/www/diag_logs_relayd.php
@@ -52,7 +52,7 @@ if ($_POST['clear']) {
} else {
exec("killall syslogd");
if(file_exists("{$relayd_logfile}"))
- unlink_file("{$relayd_logfile}");
+ unlink("{$relayd_logfile}");
exec("/usr/sbin/fifolog_create -s 511488 {$relayd_logfile}");
system_syslogd_start();
}
diff --git a/usr/local/www/diag_logs_slbd.php b/usr/local/www/diag_logs_slbd.php
index 42449bc..28dead5 100755
--- a/usr/local/www/diag_logs_slbd.php
+++ b/usr/local/www/diag_logs_slbd.php
@@ -52,7 +52,7 @@ if ($_POST['clear']) {
} else {
exec("killall syslogd");
if(file_exists("{$slbd_logfile}"))
- unlink_file("{$slbd_logfile}");
+ unlink("{$slbd_logfile}");
exec("/usr/sbin/fifolog_create -s 511488 {$slbd_logfile}");
system_syslogd_start();
}
diff --git a/usr/local/www/diag_logs_vpn.php b/usr/local/www/diag_logs_vpn.php
index cd5dcc6..1a552bd 100755
--- a/usr/local/www/diag_logs_vpn.php
+++ b/usr/local/www/diag_logs_vpn.php
@@ -51,7 +51,7 @@ if ($_POST['clear']) {
} else {
exec("killall syslogd");
if(file_exists("/var/log/vpn.log"))
- unlink_file("/var/log/vpn.log");
+ unlink("/var/log/vpn.log");
exec("/usr/sbin/fifolog_create -s 50688 /var/log/vpn.log");
}
/* redirect to avoid reposting form data on refresh */
OpenPOWER on IntegriCloud