diff --git a/app/pages/config.php b/app/pages/config.php index cf93467..2142cbc 100644 --- a/app/pages/config.php +++ b/app/pages/config.php @@ -110,19 +110,24 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') { } else { switch ($item) { - case 'platforms': - $mode = $_REQUEST['mode'] ?? ''; - $raw = ($mode === 'raw'); - $platformConfigjs = $configObject->getPlatformConfigjs($platformDetails[0]['jitsi_url'], $raw); - include '../app/templates/config-list-configjs.php'; + case 'platform': + if (isset($action) && $action === 'edit') { + include '../app/templates/config-platform-edit.php'; + } else { + if ($userObject->hasRight($user_id, 'view config file')) { + include '../app/templates/config-platform.php'; + } else { + include '../app/templates/error-unauthorized.php'; + } + } break; - case 'hosts': + case 'host': $mode = $_REQUEST['mode'] ?? ''; $raw = ($mode === 'raw'); $platformInterfaceConfigjs = $configObject->getPlatformInterfaceConfigjs($platformDetails[0]['jitsi_url'], $raw); include '../app/templates/config-list-interfaceconfigjs.php'; break; - case 'endpoints': + case 'endpoint': $mode = $_REQUEST['mode'] ?? ''; $raw = ($mode === 'raw'); $platformInterfaceConfigjs = $configObject->getPlatformInterfaceConfigjs($platformDetails[0]['jitsi_url'], $raw); diff --git a/app/templates/config-edit-platform.php b/app/templates/config-platform-edit.php similarity index 100% rename from app/templates/config-edit-platform.php rename to app/templates/config-platform-edit.php diff --git a/app/templates/config-platform.php b/app/templates/config-platform.php new file mode 100644 index 0000000..d082d35 --- /dev/null +++ b/app/templates/config-platform.php @@ -0,0 +1,52 @@ + + +
Jilo configuration :: Jitsi Meet platforms
+Jitsi platforms configuration add new
+getAgentDetails($platform_array['id']); +?> + ++ platform id = htmlspecialchars($platform_array['id']) ?> - = htmlspecialchars($platform_array['name']) ?> + + edit platform + + delete platform + + delete platform + +
+