\n";
- echo "\n";
- echo "| ".$text['label-item']." | \n";
- echo "".$text['label-disabled']." | \n";
- echo "".$text['label-total']." | \n";
- echo "
\n";
+ //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 "| ".$text['label-devices']." | \n";
+ echo "".$stats[$scope]['devices']['disabled']." | \n";
+ echo "".$stats[$scope]['devices']['total']." | \n";
+ echo "
\n";
+ $c = ($c) ? 0 : 1;
+ }
- //domains
- if (permission_exists('domain_view')) {
- $tr_link = "href='".PROJECT_PATH."/core/domains/domains.php'";
- echo "\n";
- echo "| ".$text['label-domains']." | \n";
- echo "".$stats[$scope]['domains']['disabled']." | \n";
- echo "".$stats[$scope]['domains']['total']." | \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 "| ".$text['label-extensions']." | \n";
+ echo "".$stats[$scope]['extensions']['disabled']." | \n";
+ echo "".$stats[$scope]['extensions']['total']." | \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 "| ".$text['label-devices']." | \n";
- echo "".$stats[$scope]['devices']['disabled']." | \n";
- echo "".$stats[$scope]['devices']['total']." | \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 "| ".$text['label-gateways']." | \n";
+ echo "".$stats[$scope]['gateways']['disabled']." | \n";
+ echo "".$stats[$scope]['gateways']['total']." | \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 "| ".$text['label-extensions']." | \n";
- echo "".$stats[$scope]['extensions']['disabled']." | \n";
- echo "".$stats[$scope]['extensions']['total']." | \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 "| ".$text['label-users']." | \n";
+ echo "".$stats[$scope]['users']['disabled']." | \n";
+ echo "".$stats[$scope]['users']['total']." | \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 "| ".$text['label-gateways']." | \n";
- echo "".$stats[$scope]['gateways']['disabled']." | \n";
- echo "".$stats[$scope]['gateways']['total']." | \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 "| ".$text['label-destinations']." | \n";
+ echo "".$stats[$scope]['destinations']['disabled']." | \n";
+ echo "".$stats[$scope]['destinations']['total']." | \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 "| ".$text['label-users']." | \n";
- echo "".$stats[$scope]['users']['disabled']." | \n";
- echo "".$stats[$scope]['users']['total']." | \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 "| ".$text['label-call_center_queues']." | \n";
+ echo "".$stats[$scope]['call_center_queues']['disabled']." | \n";
+ echo "".$stats[$scope]['call_center_queues']['total']." | \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 "| ".$text['label-destinations']." | \n";
- echo "".$stats[$scope]['destinations']['disabled']." | \n";
- echo "".$stats[$scope]['destinations']['total']." | \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 "| ".$text['label-ivr_menus']." | \n";
+ echo "".$stats[$scope]['ivr_menus']['disabled']." | \n";
+ echo "".$stats[$scope]['ivr_menus']['total']." | \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 "| ".$text['label-call_center_queues']." | \n";
- echo "".$stats[$scope]['call_center_queues']['disabled']." | \n";
- echo "".$stats[$scope]['call_center_queues']['total']." | \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 "| ".$text['label-ring_groups']." | \n";
+ echo "".$stats[$scope]['ring_groups']['disabled']." | \n";
+ echo "".$stats[$scope]['ring_groups']['total']." | \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 "| ".$text['label-ivr_menus']." | \n";
- echo "".$stats[$scope]['ivr_menus']['disabled']." | \n";
- echo "".$stats[$scope]['ivr_menus']['total']." | \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 "| ".$text['label-voicemail']." | \n";
+ echo "".$stats[$scope]['voicemails']['disabled']." | \n";
+ echo "".$stats[$scope]['voicemails']['total']." | \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 "| ".$text['label-ring_groups']." | \n";
- echo "".$stats[$scope]['ring_groups']['disabled']." | \n";
- echo "".$stats[$scope]['ring_groups']['total']." | \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 "| ".$text['label-item']." | \n";
+ echo "".$text['label-new']." | \n";
+ echo "".$text['label-total']." | \n";
+ echo "
\n";
- //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 "| ".$text['label-voicemail']." | \n";
- echo "".$stats[$scope]['voicemails']['disabled']." | \n";
- echo "".$stats[$scope]['voicemails']['total']." | \n";
- echo "
\n";
- $c = ($c) ? 0 : 1;
- }
+ $tr_link = "href='".PROJECT_PATH."/app/voicemails/voicemails.php'";
+ echo "\n";
+ echo "| ".$text['label-messages']." | \n";
+ echo "".$stats[$scope]['messages']['new']." | \n";
+ echo "".$stats[$scope]['messages']['total']." | \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 "| ".$text['label-item']." | \n";
- echo "".$text['label-new']." | \n";
- echo "".$text['label-total']." | \n";
- echo "
\n";
-
- $tr_link = "href='".PROJECT_PATH."/app/voicemails/voicemails.php'";
- echo "\n";
- echo "| ".$text['label-messages']." | \n";
- echo "".$stats[$scope]['messages']['new']." | \n";
- echo "".$stats[$scope]['messages']['total']." | \n";
- echo "
\n";
- $c = ($c) ? 0 : 1;
- }
-
- echo "