get($_SESSION['domain']['language']['code'], dirname($dashboard_url)); //get the dashboard label $dashboard_label = $text['title-'.$dashboard_key]; if (empty($dashboard_label)) { $dashboard_label = $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; } //get the domain count for enabled domains $sql = "select count(*) as count from v_domains "; $sql .= "where domain_enabled = 'true'; "; $row = $database->select($sql, null, 'row'); $domain_count = $row['count']; unset($sql, $row); //dashboard icon echo "
\n"; echo "
\n"; echo " ".escape($dashboard_label).""; echo "
\n"; echo " \n"; echo " ".$domain_count."\n"; echo "
\n"; echo "
\n"; if (empty($dashboard_details_state) || $dashboard_details_state != "disabled") { echo "
".str_replace("\r", '
', escape($dashboard_content_details))."
\n"; } echo " "; echo "
\n"; ?>