1
0
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:
billz 2019-08-12 11:02:40 +01:00
parent 5b041e6899
commit 9cb564a15f
5 changed files with 42 additions and 48 deletions

View File

@ -40,5 +40,3 @@ if(isset($_POST['generate'])) {
} }
echo json_encode($output); echo json_encode($output);
} }
?>

View File

@ -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);
?>

View File

@ -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);
} }

View File

@ -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);
} }
?>

View File

@ -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);
?>