diff --git a/core/domains/resources/dashboard/domains.php b/core/domains/resources/dashboard/domains.php new file mode 100644 index 0000000000..748c288f7a --- /dev/null +++ b/core/domains/resources/dashboard/domains.php @@ -0,0 +1,49 @@ +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 "