\n";
+//additional items for the dashbaord
+ if (!is_array($selected_blocks) || in_array('call_routing', $selected_blocks) || in_array('ring_groups', $selected_blocks)) {
+ echo "
\n";
- if (!is_array($selected_blocks) || in_array('call_routing', $selected_blocks)) {
- //call routing
- if (file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/calls/calls.php")) {
- if (permission_exists('follow_me') || permission_exists('call_forward') || permission_exists('do_not_disturb')) {
- $is_included = true;
- echo "
\n";
- require_once "app/calls/calls.php";
- echo "
\n";
+ if (!is_array($selected_blocks) || in_array('call_routing', $selected_blocks)) {
+ //call routing
+ if (file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/calls/calls.php")) {
+ if (permission_exists('follow_me') || permission_exists('call_forward') || permission_exists('do_not_disturb')) {
+ $is_included = true;
+ echo "
\n";
+ require_once "app/calls/calls.php";
+ echo "
\n";
+ }
}
- }
- }
+ }
- if (!is_array($selected_blocks) || in_array('ring_groups', $selected_blocks)) {
- //reload language values
- $language = new text;
- $text = $language->get();
-
- //ring group forward
- if (file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/ring_groups/ring_group_forward.php")) {
- if (permission_exists('ring_group_forward')) {
- $is_included = true;
- echo "
\n";
- require_once "app/ring_groups/ring_group_forward.php";
- echo "
";
+ if (!is_array($selected_blocks) || in_array('ring_groups', $selected_blocks)) {
+ //ring group forward
+ if (file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/ring_groups/ring_group_forward.php")) {
+ if (permission_exists('ring_group_forward')) {
+ $is_included = true;
+ echo "
\n";
+ require_once "app/ring_groups/ring_group_forward.php";
+ echo "
";
+ }
}
- }
+ }
+
+ if (!is_array($selected_blocks) || in_array('device_keys', $selected_blocks)) {
+ //device key management
+ if (file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/devices/device_dashboard.php")) {
+ if (permission_exists('device_key_edit')) {
+ $is_included = true;
+ echo "
\n";
+ require_once "app/devices/device_dashboard.php";
+ echo "
";
+ }
+ }
+ }
+ echo "