get($_SESSION['domain']['language']['code'], 'core/user_settings'); //system counts //if (is_array($selected_blocks) && in_array('counts', $selected_blocks)) { $c = 0; $row_style["0"] = "row_style0"; $row_style["1"] = "row_style1"; $scope = (permission_exists('dialplan_add')) ? 'system' : 'domain'; $show_stat = true; if (permission_exists('domain_view')) { $onclick = "onclick=\"document.location.href='".PROJECT_PATH."/core/domains/domains.php'\""; $hud_stat = $stats[$scope]['domains']['total'] - $stats[$scope]['domains']['disabled']; $hud_stat_title = $text['label-active_domains']; } else if (permission_exists('extension_view') && file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/extensions/")) { $onclick = "onclick=\"document.location.href='".PROJECT_PATH."/app/extensions/extensions.php'\""; $hud_stat = $stats[$scope]['extensions']['total'] - $stats[$scope]['extensions']['disabled']; $hud_stat_title = $text['label-active_extensions']; } else if ((permission_exists('user_view') || if_group("superadmin")) && file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/core/users/")) { $onclick = "onclick=\"document.location.href='".PROJECT_PATH."/core/users/users.php'\""; $hud_stat = $stats[$scope]['users']['total'] - $stats[$scope]['users']['disabled']; $hud_stat_title = $text['label-active_users']; } else { $show_stat = false; } if ($show_stat) { echo "
"; } echo "
"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; //domains if (permission_exists('domain_view')) { $tr_link = "href='".PROJECT_PATH."/core/domains/domains.php'"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; $c = ($c) ? 0 : 1; } //devices if (permission_exists('device_view') && file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/devices/")) { $tr_link = "href='".PROJECT_PATH."/app/devices/devices.php'"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; $c = ($c) ? 0 : 1; } //extensions if (permission_exists('extension_view') && file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/extensions/")) { $tr_link = "href='".PROJECT_PATH."/app/extensions/extensions.php'"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; $c = ($c) ? 0 : 1; } //gateways if (permission_exists('gateway_view') && file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/gateways/")) { $tr_link = "href='".PROJECT_PATH."/app/gateways/gateways.php'"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; $c = ($c) ? 0 : 1; } //users if ((permission_exists('user_view') || if_group("superadmin")) && file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/core/users/")) { $tr_link = "href='".PROJECT_PATH."/core/users/users.php'"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; $c = ($c) ? 0 : 1; } //destinations if (permission_exists('destination_view') && file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/destinations/")) { $tr_link = "href='".PROJECT_PATH."/app/destinations/destinations.php'"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; $c = ($c) ? 0 : 1; } //call center queues if (permission_exists('call_center_active_view') && file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/call_centers/")) { $tr_link = "href='".PROJECT_PATH."/app/call_centers/call_center_queues.php'"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; $c = ($c) ? 0 : 1; } //ivr menus if (permission_exists('ivr_menu_view') && file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/ivr_menus/")) { $tr_link = "href='".PROJECT_PATH."/app/ivr_menus/ivr_menus.php'"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; $c = ($c) ? 0 : 1; } //ring groups if (permission_exists('ring_group_view') && file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/ring_groups/")) { $tr_link = "href='".PROJECT_PATH."/app/ring_groups/ring_groups.php'"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; $c = ($c) ? 0 : 1; } //voicemails if (permission_exists('voicemail_view') && file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/voicemails/")) { $tr_link = "href='".PROJECT_PATH."/app/voicemails/voicemails.php'"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; $c = ($c) ? 0 : 1; } //messages if (permission_exists('voicemail_message_view') && file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/voicemails/")) { echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; $tr_link = "href='".PROJECT_PATH."/app/voicemails/voicemails.php'"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; $c = ($c) ? 0 : 1; } echo "
".$text['label-item']."".$text['label-disabled']."".$text['label-total']."
".$text['label-domains']."".$stats[$scope]['domains']['disabled']."".$stats[$scope]['domains']['total']."
".$text['label-devices']."".$stats[$scope]['devices']['disabled']."".$stats[$scope]['devices']['total']."
".$text['label-extensions']."".$stats[$scope]['extensions']['disabled']."".$stats[$scope]['extensions']['total']."
".$text['label-gateways']."".$stats[$scope]['gateways']['disabled']."".$stats[$scope]['gateways']['total']."
".$text['label-users']."".$stats[$scope]['users']['disabled']."".$stats[$scope]['users']['total']."
".$text['label-destinations']."".$stats[$scope]['destinations']['disabled']."".$stats[$scope]['destinations']['total']."
".$text['label-call_center_queues']."".$stats[$scope]['call_center_queues']['disabled']."".$stats[$scope]['call_center_queues']['total']."
".$text['label-ivr_menus']."".$stats[$scope]['ivr_menus']['disabled']."".$stats[$scope]['ivr_menus']['total']."
".$text['label-ring_groups']."".$stats[$scope]['ring_groups']['disabled']."".$stats[$scope]['ring_groups']['total']."
".$text['label-voicemail']."".$stats[$scope]['voicemails']['disabled']."".$stats[$scope]['voicemails']['total']."
".$text['label-item']."".$text['label-new']."".$text['label-total']."
".$text['label-messages']."".$stats[$scope]['messages']['new']."".$stats[$scope]['messages']['total']."
\n"; echo "
"; $n++; //} echo " "; ?>