2024-10-30 17:11:23 +00:00
|
|
|
|
2024-10-31 09:59:17 +00:00
|
|
|
<!-- widget "hosts" -->
|
2024-10-30 17:11:23 +00:00
|
|
|
<div class="card text-center w-75 mx-lef">
|
|
|
|
<p class="h4 card-header">Jilo configuration :: Jitsi Meet hosts</p>
|
|
|
|
<div class="card-body">
|
|
|
|
<p class="card-text">Jitsi hosts configuration
|
|
|
|
</p>
|
|
|
|
<?php foreach ($platformsAll as $platform_array) {
|
|
|
|
$hosts = $hostObject->getHostDetails($platform_array['id']);
|
|
|
|
?>
|
|
|
|
<a name="platform<?= htmlspecialchars($platform_array['id']) ?>"></a>
|
2024-11-18 12:36:37 +00:00
|
|
|
<div class="row mb-1 border <?= isset($_REQUEST['platform']) && (int)$platform_array['id'] === (int)$_REQUEST['platform'] ? 'rounded bg-light' : '' ?>" style="padding: 20px; padding-bottom: 0px;">
|
2024-10-30 17:11:23 +00:00
|
|
|
<p class="text-start">
|
|
|
|
platform <strong><?= htmlspecialchars($platform_array['name']) ?></strong>
|
|
|
|
</p>
|
2024-10-31 09:08:53 +00:00
|
|
|
<ul class="text-start" style="padding-left: 50px;">
|
2024-10-30 17:11:23 +00:00
|
|
|
<?php foreach ($hosts as $host_array) { ?>
|
2024-10-31 09:08:53 +00:00
|
|
|
<li style="padding-bottom: 10px;">
|
|
|
|
<a name="platform<?= htmlspecialchars($platform_array['id']) ?>host<?= htmlspecialchars($host_array['id']) ?>"></a>
|
2024-11-02 16:07:53 +00:00
|
|
|
<span class="<?= isset($_REQUEST['platform']) && (int)$platform_array['id'] === (int)$_REQUEST['platform'] && isset($_REQUEST['host']) && (int)$host_array['id'] === (int)$_REQUEST['host'] ? 'border rounded bg-light' : '' ?>" style="padding: 10px;">
|
2024-10-31 09:08:53 +00:00
|
|
|
<?= htmlspecialchars($host_array['address']) ?>:<?= htmlspecialchars($host_array['port']) ?>
|
|
|
|
|
|
|
|
<a class="btn btn-outline-secondary btn-sm" href="<?= htmlspecialchars($app_root) ?>?page=config&item=host&platform=<?= htmlspecialchars($host_array['platform_id']) ?>&host=<?= htmlspecialchars($host_array['id']) ?>&action=edit">edit host</a>
|
|
|
|
<a class="btn btn-outline-danger btn-sm" href="<?= htmlspecialchars($app_root) ?>?page=config&item=host&platform=<?= htmlspecialchars($host_array['platform_id']) ?>&host=<?= htmlspecialchars($host_array['id']) ?>&action=delete">delete host</a>
|
|
|
|
</span>
|
|
|
|
</li>
|
2024-10-30 17:11:23 +00:00
|
|
|
<?php } ?>
|
2024-10-31 09:08:53 +00:00
|
|
|
</ul>
|
2024-10-30 17:11:23 +00:00
|
|
|
<p class="text-start" style="padding-left: 50px;">
|
2024-10-31 09:08:53 +00:00
|
|
|
total <?= htmlspecialchars(count($hosts)) ?> jilo <?= htmlspecialchars(count($hosts)) === '1' ? 'host' : 'hosts' ?>
|
2024-10-30 17:11:23 +00:00
|
|
|
|
|
|
|
<a class="btn btn-outline-secondary btn-sm" href="<?= htmlspecialchars($app_root) ?>?page=config&item=host&platform=<?= htmlspecialchars($platform_array['id']) ?>&action=add">add new</a>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-10-31 09:59:17 +00:00
|
|
|
<!-- /widget "hosts" -->
|