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 "
| ".$text['label-item']." | \n"; echo "".$text['label-disabled']." | \n"; echo "".$text['label-total']." | \n"; echo "
|---|---|---|
| ".$text['label-domains']." | \n"; echo "".$stats[$scope]['domains']['disabled']." | \n"; echo "".$stats[$scope]['domains']['total']." | \n"; echo "
| ".$text['label-devices']." | \n"; echo "".$stats[$scope]['devices']['disabled']." | \n"; echo "".$stats[$scope]['devices']['total']." | \n"; echo "
| ".$text['label-extensions']." | \n"; echo "".$stats[$scope]['extensions']['disabled']." | \n"; echo "".$stats[$scope]['extensions']['total']." | \n"; echo "
| ".$text['label-gateways']." | \n"; echo "".$stats[$scope]['gateways']['disabled']." | \n"; echo "".$stats[$scope]['gateways']['total']." | \n"; echo "
| ".$text['label-users']." | \n"; echo "".$stats[$scope]['users']['disabled']." | \n"; echo "".$stats[$scope]['users']['total']." | \n"; echo "
| ".$text['label-destinations']." | \n"; echo "".$stats[$scope]['destinations']['disabled']." | \n"; echo "".$stats[$scope]['destinations']['total']." | \n"; echo "
| ".$text['label-call_center_queues']." | \n"; echo "".$stats[$scope]['call_center_queues']['disabled']." | \n"; echo "".$stats[$scope]['call_center_queues']['total']." | \n"; echo "
| ".$text['label-ivr_menus']." | \n"; echo "".$stats[$scope]['ivr_menus']['disabled']." | \n"; echo "".$stats[$scope]['ivr_menus']['total']." | \n"; echo "
| ".$text['label-ring_groups']." | \n"; echo "".$stats[$scope]['ring_groups']['disabled']." | \n"; echo "".$stats[$scope]['ring_groups']['total']." | \n"; echo "
| ".$text['label-voicemail']." | \n"; echo "".$stats[$scope]['voicemails']['disabled']." | \n"; echo "".$stats[$scope]['voicemails']['total']." | \n"; echo "
| ".$text['label-item']." | \n"; echo "".$text['label-new']." | \n"; echo "".$text['label-total']." | \n"; echo "
| ".$text['label-messages']." | \n"; echo "".$stats[$scope]['messages']['new']." | \n"; echo "".$stats[$scope]['messages']['total']." | \n"; echo "