get($_SESSION['domain']['language']['code'], dirname($dashboard_url)); //get the dashboard label $dashboard_label = $text['title-'.$dashboard_key] ?? $dashboard_name; //prepare variables $dashboard_target = ($dashboard_target == 'new') ? '_blank' : '_self'; $window_parameters = ''; if (!empty($dashboard_width) && !empty($dashboard_height)) { $window_parameters .= "width=".$dashboard_width.",height=".$dashboard_height; } //channel count $esl = event_socket::create(); //registration count if ($esl->is_connected() && file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/registrations/")) { $registration = new registrations; if (permission_exists("registration_all")) { $active_registrations = $registration->show = 'all'; } $active_registrations = $registration->count(); } //get the total enabled extensions $sql = "select count(*) as count from v_extensions "; $sql .= "where enabled = 'true' "; $parameters = null; if (!permission_exists("registration_all")) { $sql .= "and domain_uuid = :domain_uuid "; $parameters['domain_uuid'] = $_SESSION['domain_uuid']; } $sql .= "and extension_type = 'default'; "; $row = $database->select($sql, $parameters, 'row'); $enabled_extensions = $row['count']; unset($sql, $row); //calculate the inactive extensions $inactive_registrations = $enabled_extensions - $active_registrations; //dashboard icon echo "