diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-11-17 21:54:34 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-11-17 21:54:34 +0000 |
commit | 199d812139217861f42b7f560f4e1fa42cee2373 (patch) | |
tree | e4451543812b1c6fc0338f39119f3282dba05270 /usr/local/www/interfaces.php | |
parent | 3931dac13177a957c761fdc9fe8c7318a7c3a357 (diff) | |
download | pfsense-199d812139217861f42b7f560f4e1fa42cee2373.zip pfsense-199d812139217861f42b7f560f4e1fa42cee2373.tar.gz |
Hrm, pppoe reset function seems to have missed review while doing whole other changes.
Diffstat (limited to 'usr/local/www/interfaces.php')
-rwxr-xr-x | usr/local/www/interfaces.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index 396ae7b..ba9bede 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -39,6 +39,8 @@ ##|*MATCH=interfaces.php* ##|-PRIV +require("guiconfig.inc"); + if ($_REQUEST['if']) $if = $_REQUEST['if']; else @@ -48,8 +50,8 @@ define("CRON_MONTHLY_PATTERN", "0 0 1 * *"); define("CRON_WEEKLY_PATTERN", "0 0 * * 0"); define("CRON_DAILY_PATTERN", "0 0 * * *"); define("CRON_HOURLY_PATTERN", "0 * * * *"); -define("CRON_PPPOE_CMD_FILE", "/etc/pppoerestart"); -define("CRON_PPPOE_CMD", "#!/bin/sh\necho '<?php require(\"interfaces.inc\"); interfaces_wan_pppoe_restart($if); services_dyndns_reset($if); ?>' | /usr/local/bin/php -q"); +define("CRON_PPPOE_CMD_FILE", "{$g['varetc_path']}/pppoe{$if}restart"); +define("CRON_PPPOE_CMD", "#!/bin/sh\n/usr/bin/touch /tmp/filter_dirty"); function getMPDCRONSettings() { global $config; @@ -83,8 +85,6 @@ function remove_bad_chars($string) { return preg_replace('/[^a-z|_|0-9]/i','',$string); } -require("guiconfig.inc"); - if (!is_array($config['gateways']['gateway_item'])) $config['gateways']['gateway_item'] = array(); $a_gateways = &$config['gateways']['gateway_item']; |