mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Processed with phpcs for PSR-2 coding standard
This commit is contained in:
parent
5b041e6899
commit
9cb564a15f
@ -40,5 +40,3 @@ if(isset($_POST['generate'])) {
|
|||||||
}
|
}
|
||||||
echo json_encode($output);
|
echo json_encode($output);
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -4,4 +4,3 @@
|
|||||||
|
|
||||||
exec("ls /sys/class/net | grep -v lo", $interfaces);
|
exec("ls /sys/class/net | grep -v lo", $interfaces);
|
||||||
echo json_encode($interfaces);
|
echo json_encode($interfaces);
|
||||||
?>
|
|
||||||
|
@ -17,9 +17,7 @@ if(isset($_POST['interface'])) {
|
|||||||
echo json_encode($jsonData);
|
echo json_encode($jsonData);
|
||||||
|
|
||||||
// Todo - get dhcp lease information from `dhcpcd -U eth0` ? maybe ?
|
// Todo - get dhcp lease information from `dhcpcd -U eth0` ? maybe ?
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$jsonData = ['return'=>2,'output'=>['Error getting data']];
|
$jsonData = ['return'=>2,'output'=>['Error getting data']];
|
||||||
echo json_encode($jsonData);
|
echo json_encode($jsonData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,5 +14,3 @@ if(isset($_POST['interface'])) {
|
|||||||
$jsonData = ['return'=>2,'output'=>['Error getting data']];
|
$jsonData = ['return'=>2,'output'=>['Error getting data']];
|
||||||
echo json_encode($jsonData);
|
echo json_encode($jsonData);
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
include_once('../../includes/config.php');
|
include_once('../../includes/config.php');
|
||||||
include_once('../../includes/functions.php');
|
include_once('../../includes/functions.php');
|
||||||
|
|
||||||
if (isset($_POST['interface'])) {
|
if (isset($_POST['interface'])) {
|
||||||
$int = $_POST['interface'];
|
$int = $_POST['interface'];
|
||||||
$cfg = [];
|
$cfg = [];
|
||||||
@ -29,5 +30,5 @@
|
|||||||
} else {
|
} else {
|
||||||
$jsonData = ['return'=>2,'output'=>'Unable to detect interface'];
|
$jsonData = ['return'=>2,'output'=>'Unable to detect interface'];
|
||||||
}
|
}
|
||||||
|
|
||||||
echo json_encode($jsonData);
|
echo json_encode($jsonData);
|
||||||
?>
|
|
||||||
|
Loading…
Reference in New Issue
Block a user