From 73c56743be36f27e08699ec1949d3634c0c5f58c Mon Sep 17 00:00:00 2001 From: noncenz Date: Wed, 24 Jul 2019 18:00:50 -0400 Subject: [PATCH] Use php for all file system access Add array for tetra / nano compatability Clean up string constants --- SSIDManager/api/module.php | 15 +++++++++------ SSIDManager/module.info | 6 +++++- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/SSIDManager/api/module.php b/SSIDManager/api/module.php index 8aebb6a..2e91e28 100644 --- a/SSIDManager/api/module.php +++ b/SSIDManager/api/module.php @@ -1,5 +1,9 @@ response = array("success" => true, "version" => "version " . $moduleInfo->version, @@ -79,7 +82,7 @@ class SSIDManager extends Module private function deleteSSIDFile() { - exec("rm -rf " . $this->SSIDDirectoryPath() ."'" . $this->request->file . "'"); + unlink($this->SSIDDirectoryPath() . $this->request->file); $this->response = array("success" => true); } diff --git a/SSIDManager/module.info b/SSIDManager/module.info index 98523e0..d0a6994 100644 --- a/SSIDManager/module.info +++ b/SSIDManager/module.info @@ -2,5 +2,9 @@ "title": "SSID Manager", "description": "Manage SSID Pools for PineAP", "version": "1.0", - "author": "noncenz" + "author": "noncenz", + "devices": [ + "nano", + "tetra" + ] } \ No newline at end of file