diff options
author | Bill Marquette <billm@pfsense.org> | 2005-04-03 23:44:25 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2005-04-03 23:44:25 +0000 |
commit | ed7b7de42c920fe4e0e7df9ebfa40f6cbcf3905c (patch) | |
tree | d5da715e3f8dca24ace39e3c3b3f1d1e2ef7773b /usr/local | |
parent | 8160853ac4b2d70a8084617b50cedbebfbad3968 (diff) | |
download | pfsense-ed7b7de42c920fe4e0e7df9ebfa40f6cbcf3905c.zip pfsense-ed7b7de42c920fe4e0e7df9ebfa40f6cbcf3905c.tar.gz |
Remove two more hard coded paths
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/diag_logs_dhcp.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/diag_logs_dhcp.php b/usr/local/www/diag_logs_dhcp.php index 44aac4e..9e20785 100755 --- a/usr/local/www/diag_logs_dhcp.php +++ b/usr/local/www/diag_logs_dhcp.php @@ -39,7 +39,7 @@ if (!$nentries) $nentries = 50; if ($_POST['clear']) { - exec("/usr/sbin/clog -i -s 32768 /var/log/dhcpd.log"); + exec("/usr/sbin/clog -i -s 32768 {$g['varlog_path']}/dhcpd.log"); } function dump_clog($logfile, $tail, $withorig = true) { @@ -94,7 +94,7 @@ function dump_clog($logfile, $tail, $withorig = true) { <td colspan="2" class="listtopic"> Last <?=$nentries;?> DHCP service log entries</td> </tr> - <?php dump_clog("/var/log/dhcpd.log", $nentries); ?> + <?php dump_clog("{$g['varlog_path']}/dhcpd.log", $nentries); ?> </table> <br><form action="diag_logs_dhcp.php" method="post"> <input name="clear" type="submit" class="formbtn" value="Clear log"> |