diff --git a/customer_index.php b/customer_index.php index b7e9ec89..c2d3cc86 100644 --- a/customer_index.php +++ b/customer_index.php @@ -49,8 +49,8 @@ if ($page == 'overview') { $domain_stmt = Database::prepare("SELECT `domain` FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `customerid` = :customerid AND `parentdomainid` = '0' - AND `id` <> :standardsubdomain" - ); + AND `id` <> :standardsubdomain + "); Database::pexecute($domain_stmt, array("customerid" => $userinfo['customerid'], "standardsubdomain" => $userinfo['standardsubdomain'])); $domains = ''; @@ -62,6 +62,19 @@ if ($page == 'overview') { natsort($domainArray); $domains = implode(',
', $domainArray); + + // standard-subdomain + $stdsubdomain = ''; + if ($userinfo['standardsubdomain'] != '0') { + $std_domain_stmt = Database::prepare(" + SELECT `domain` FROM `" . TABLE_PANEL_DOMAINS . "` + WHERE `customerid` = :customerid + AND `id` = :standardsubdomain + "); + $std_domain = Database::pexecute_first($std_domain_stmt, array("customerid" => $userinfo['customerid'], "standardsubdomain" => $userinfo['standardsubdomain'])); + $stdsubdomain = $std_domain['domain']; + } + $userinfo['email'] = $idna_convert->decode($userinfo['email']); $yesterday = time() - (60 * 60 * 24); $month = date('M Y', $yesterday); diff --git a/templates/Froxlor/customer/index/index.tpl b/templates/Froxlor/customer/index/index.tpl index bbd80bf8..9e62aa81 100644 --- a/templates/Froxlor/customer/index/index.tpl +++ b/templates/Froxlor/customer/index/index.tpl @@ -21,6 +21,12 @@ $header {$lng['customer']['domains']}: $domains + + + {$lng['admin']['stdsubdomain']}: + $stdsubdomain + + {$lng['customer']['subdomains']} ({$lng['customer']['usedmax']}): {$userinfo['subdomains_used']}/{$userinfo['subdomains']} diff --git a/templates/Sparkle/customer/index/index.tpl b/templates/Sparkle/customer/index/index.tpl index c47e9f23..c1f053db 100644 --- a/templates/Sparkle/customer/index/index.tpl +++ b/templates/Sparkle/customer/index/index.tpl @@ -188,6 +188,12 @@ $header {$lng['customer']['domains']}: $domains + + + {$lng['admin']['stdsubdomain']}: + $stdsubdomain + + {$lng['customer']['services']}: $services_enabled