summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces_ppps_edit.php
diff options
context:
space:
mode:
authorgnhb <gnoahb@gmail.com>2010-05-09 21:35:03 +0700
committergnhb <gnoahb@gmail.com>2010-05-09 21:35:03 +0700
commit55f3ca1d848625054054f3423db8704c38716723 (patch)
tree0898b75d50504b4114a04ad4c35ed892ffcc1a52 /usr/local/www/interfaces_ppps_edit.php
parenta986f97f900b54b509776d366cd2834aca73f489 (diff)
downloadpfsense-55f3ca1d848625054054f3423db8704c38716723.zip
pfsense-55f3ca1d848625054054f3423db8704c38716723.tar.gz
Revert "Remove PPP tab these all go to the system log now."
This reverts commit 62e74b4261b4044f523ade7c3b45e4484bbd2f8d. Conflicts: usr/local/www/diag_logs_slbd.php
Diffstat (limited to 'usr/local/www/interfaces_ppps_edit.php')
-rw-r--r--usr/local/www/interfaces_ppps_edit.php14
1 files changed, 4 insertions, 10 deletions
diff --git a/usr/local/www/interfaces_ppps_edit.php b/usr/local/www/interfaces_ppps_edit.php
index 47c2901..ac5f7ba 100644
--- a/usr/local/www/interfaces_ppps_edit.php
+++ b/usr/local/www/interfaces_ppps_edit.php
@@ -373,7 +373,7 @@ if ($_POST) {
$iflist = get_configured_interface_list();
foreach ($iflist as $if) {
- if ($config['interfaces'][$if]['ptpid'] == $ppp['ptpid']){
+ if ($config['interfaces'][$if]['ptpid'] == $_POST['ptpid']){
$thisif = $if;
break;
}
@@ -385,7 +385,7 @@ if ($_POST) {
write_config();
- if (!empty($thisif)){
+ if (isset($thisif)){
interface_ppps_configure($thisif);
}
header("Location: interfaces_ppps.php");
@@ -397,7 +397,8 @@ function handle_pppoe_reset() {
global $_POST, $config, $g;
/* perform a periodic reset? */
if(empty($_POST['pppoe-reset-type'])) {
- setup_pppoe_reset_file($_POST['ptpid'], false);
+ log_error("Calling setup_pppoe_reset to unlink reset file for {$_POST['ptpid']}.");
+ setup_pppoe_reset_file($_POST['ptpid']);
return;
}
@@ -465,13 +466,6 @@ function handle_pppoe_reset() {
$config['cron']['item'][$itemhash['ID']] = $item;
else
$config['cron']['item'][] = $item;
-
- // finally install the pppoerestart file
- if (isset($_POST['pppoe-reset-type'])) {
- setup_pppoe_reset_file($_POST['ptpid'], true);
- sigkillbypid("{$g['varrun_path']}/cron.pid", "HUP");
- } else
- setup_pppoe_reset_file($_POST['ptpid'], false);
}
$closehead = false;
OpenPOWER on IntegriCloud