|
function enhance_ClientArea($params) |
|
{ |
|
$systemUrl = Setting::getValue('SystemURL'); |
|
|
|
// Replace this link with your own master login webmail login link |
|
$webmailLink = 'https://webmail.enhance.com/'; |
|
$domain = $params['domain']; |
|
$domainIP = gethostbyname($domain); |
|
$serviceId = $params['serviceid']; |
|
$analyticsURL = "https://{$domain}/traffic-reports"; |
|
|
|
// This could be your support or knowledge-base URL. |
|
// Adjust as needed to point users to password instructions. |
|
$helpURL = "https://yoursite.com/password-help"; |
|
|
|
$buttonStyle = 'display: inline-block; padding: 10px 16px; margin: 4px 6px 10px 0; background-color: #0073e6; color: #fff; border: none; border-radius: 5px; font-size: 14px; cursor: pointer; text-decoration: none; transition: background-color 0.3s ease;'; |
|
$buttonHover = 'this.style.backgroundColor=\'#005bb5\''; |
|
|
|
$code = ' |
|
<div style="border: 1px solid #ccc; padding: 15px; border-radius: 6px; background: #f9f9f9; max-width: 600px;"> |
|
<h3 style="margin: 0 0 1em; font-weight: 600;">Quick Access & Stats</h3> |
|
|
|
<form action="'.$systemUrl.'/clientarea.php" method="POST" target="_blank" style="display:inline;"> |
|
<input type="hidden" name="action" value="productdetails"> |
|
<input type="hidden" name="id" value="'.$serviceId.'"> |
|
<input type="hidden" name="dosinglesignon" value="1"> |
|
<button type="submit" style="'.$buttonStyle.'" onmouseover="'.$buttonHover.'" onmouseout="this.style.backgroundColor=\'#0073e6\'">Login to Control Panel</button> |
|
</form> |
|
|
|
<a href="'.$webmailLink.'" target="_blank" style="'.$buttonStyle.'" onmouseover="'.$buttonHover.'" onmouseout="this.style.backgroundColor=\'#0073e6\'">Login to Webmail</a> |
|
|
|
<a href="'.$analyticsURL.'" target="_blank" style="'.$buttonStyle.'" onmouseover="'.$buttonHover.'" onmouseout="this.style.backgroundColor=\'#0073e6\'">Traffic Analytics</a> |
|
|
|
<div style="margin-top: 1em;"> |
|
<p>Domain: '.$domain.'</p> |
|
<p>Server IP: '.$domainIP.'</p> |
|
<p> |
|
<a href="'.$helpURL.'" target="_blank" |
|
style="color: #0073e6; text-decoration: none; font-weight: 500;"> |
|
Where can I find or change my Analytics password? |
|
</a> |
|
</p> |
|
</div> |
|
</div> |
|
'; |
|
|
|
return $code; |
|
} |