diff --git a/app/pages/config.php b/app/pages/config.php index b333ce2..c4415fd 100644 --- a/app/pages/config.php +++ b/app/pages/config.php @@ -159,6 +159,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') { if (isset($action) && $action === 'add') { include '../app/templates/config-host-add.php'; } elseif (isset($action) && $action === 'edit') { + $hostDetails = $hostObject->getHostDetails($platform_id, $agent); include '../app/templates/config-host-edit.php'; } elseif (isset($action) && $action === 'delete') { $hostDetails = $hostObject->getHostDetails($platform_id, $agent); diff --git a/app/templates/config-configfile-edit.php b/app/templates/config-configfile-edit.php index eb67959..ce5264d 100644 --- a/app/templates/config-configfile-edit.php +++ b/app/templates/config-configfile-edit.php @@ -1,10 +1,9 @@
Jilo configuration file
+Jilo configuration file :: edit
editing the Jilo Server configuration file
this may break everything, use with extreme caution
Add new host in Jitsi platform = htmlspecialchars($platformDetails[0]['name']) ?>
Jilo configuration for Jitsi platform "= htmlspecialchars($platformDetails[0]['name']) ?>"
Jilo configuration for Jitsi platform "= htmlspecialchars($platformDetails[0]['name']) ?>"
+edit host details:
+ +platform = htmlspecialchars($platform_array['name']) ?>
- +- = htmlspecialchars($host_array['address']) ?>:= htmlspecialchars($host_array['port']) ?> - - edit host - delete host -
+- total = htmlspecialchars(count($hosts)) ?> = htmlspecialchars(count($hosts)) === 1 ? 'jilo host' : 'jilo hosts' ?> + total = htmlspecialchars(count($hosts)) ?> jilo = htmlspecialchars(count($hosts)) === '1' ? 'host' : 'hosts' ?> add new
diff --git a/app/templates/config-platform-add.php b/app/templates/config-platform-add.php index 2c18911..e9c23b9 100644 --- a/app/templates/config-platform-add.php +++ b/app/templates/config-platform-add.php @@ -1,6 +1,6 @@ -Jilo web configuration for Jitsi platform "= htmlspecialchars($platformDetails[0]['name']) ?>"
+Jilo configuration for Jitsi platform "= htmlspecialchars($platformDetails[0]['name']) ?>" :: delete
delete a platform:
Jilo web configuration for Jitsi platform "= htmlspecialchars($platformDetails[0]['name']) ?>"
+Jilo configuration for Jitsi platform "= htmlspecialchars($platformDetails[0]['name']) ?>" :: edit
edit the platform details: