Adds hosts config page
parent
3c85c16480
commit
b79a0ac4da
|
@ -110,6 +110,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
switch ($item) {
|
switch ($item) {
|
||||||
|
|
||||||
case 'platform':
|
case 'platform':
|
||||||
if (isset($action) && $action === 'add') {
|
if (isset($action) && $action === 'add') {
|
||||||
include '../app/templates/config-platform-add.php';
|
include '../app/templates/config-platform-add.php';
|
||||||
|
@ -125,18 +126,27 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'host':
|
case 'host':
|
||||||
$mode = $_REQUEST['mode'] ?? '';
|
if (isset($action) && $action === 'add') {
|
||||||
$raw = ($mode === 'raw');
|
include '../app/templates/config-host-add.php';
|
||||||
$platformInterfaceConfigjs = $configObject->getPlatformInterfaceConfigjs($platformDetails[0]['jitsi_url'], $raw);
|
} elseif (isset($action) && $action === 'edit') {
|
||||||
include '../app/templates/config-list-interfaceconfigjs.php';
|
include '../app/templates/config-host-edit.php';
|
||||||
|
} elseif (isset($action) && $action === 'delete') {
|
||||||
|
include '../app/templates/config-host-delete.php';
|
||||||
|
} else {
|
||||||
|
if ($userObject->hasRight($user_id, 'view config file')) {
|
||||||
|
include '../app/templates/config-host.php';
|
||||||
|
} else {
|
||||||
|
include '../app/templates/error-unauthorized.php';
|
||||||
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'endpoint':
|
case 'endpoint':
|
||||||
$mode = $_REQUEST['mode'] ?? '';
|
// TODO
|
||||||
$raw = ($mode === 'raw');
|
|
||||||
$platformInterfaceConfigjs = $configObject->getPlatformInterfaceConfigjs($platformDetails[0]['jitsi_url'], $raw);
|
|
||||||
include '../app/templates/config-list-interfaceconfigjs.php';
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'config_file':
|
case 'config_file':
|
||||||
if (isset($action) && $action === 'edit') {
|
if (isset($action) && $action === 'edit') {
|
||||||
include '../app/templates/config-configfile-edit.php';
|
include '../app/templates/config-configfile-edit.php';
|
||||||
|
|
Loading…
Reference in New Issue