Status Interfaces PPPOE Re-Connect Button



  • second time to create this thread … damn preview looses my work ... >:( >:( >:( >:(

    ok i added on Re-Connect Button to the Status Interface Menu cause i am to lazy to click everytime connect and then reconnect.
    (PfSense2.1)

    edit the file /usr/local/www/status_interfaces.php

    around line 40

    change this:

    if ($_GET['if']) {
    	$interface = $_GET['if'];
    	if ($_GET['action'] == "Disconnect" || $_GET['action'] == "Release") {
    		interface_bring_down($interface);
    	} else if ($_GET['action'] == "Connect" || $_GET['action'] == "Renew") {
    		interface_configure($interface); 
    	}
    	header("Location: status_interfaces.php");
    	exit;
    }
    

    to this :

    if ($_GET['if']) {
    	$interface = $_GET['if'];
    	if ($_GET['action'] == "Disconnect" || $_GET['action'] == "Release") {
    		interface_bring_down($interface);
    	} else if ($_GET['action'] == "Reconnect" || $_GET['action'] == "Renew") {
    		interface_configure($interface); 
    	}else if ($_GET['action'] == "Connect" || $_GET['action'] == "Renew") {
    		interface_configure($interface); 
    	}
    	header("Location: status_interfaces.php");
    	exit;
    }
    

    and around line 134

    
    				 [" class="formbtns" />](status_interfaces.php?action=Disconnect&if=<?php echo $ifdescr; ?>)  [" class="formbtns" />](status_interfaces.php?action=Connect&if=<?php echo $ifdescr; ?>) 
    ``` [to this :](status_interfaces.php?action=Connect&if=<?php echo $ifdescr; ?>) ```
     [](status_interfaces.php?action=Connect&if=<?php echo $ifdescr; ?>)  [" class="formbtns" />](status_interfaces.php?action=Disconnect&if=<?php echo $ifdescr; ?>)  [" class="formbtns" />](status_interfaces.php?action=Reconnect&if=<?php echo $ifdescr; ?>)  [" class="formbtns" />](status_interfaces.php?action=Connect&if=<?php echo $ifdescr; ?>)