[% #---------------------------------------------------------------------- # Arguments (probably *not* a complete list!) that this template accepts: # # allow_login_autocomplete # app_name # display_locales # https # login_messages # logout # msg_code # reset_pass - should be true if either resetpass or resetpass_sub is enabled (doesn't have to be both) USE DataURI; USE JSON; USE Wbr; SET disp_apps = { 'whostmgrd' => 'WHM', 'webmaild' => 'Webmail', 'cpaneld' => 'cPanel', }; SET disp_app = disp_apps.item(app_name) || 'cPanel'; SET app_images = { 'whostmgrd' => 'whm-logo_white.svg', 'webmaild' => 'webmail-logo.svg', 'cpaneld' => 'wp-squared.svg', }; # get app modules based on $app_name SET app_image = app_images.$app_name || app_images.cpaneld; SET app_image = MagicRevision(get_theme_url("images/" _ app_image)); #If msg_code is 'link_account' we already have a separate display notice so don't need to show it twice SET shownotice = logout || msg_code; SET shownotice = msg_code == 'link_account' ? 0 : shownotice; SET shownotice = msg_code == 'max_users_exceeded' ? 0 : shownotice; SET notice_message = msg_code ? (login_messages.$msg_code || locale.maketext('An authorization error occurred. Please try again.') ) : locale.maketext('You have logged out.'); # If on WHM and IE 11 show warning banner SET show_IE_banner = app_name == 'whostmgrd' ? '' : 'display: none'; IF !contact_info || !contact_info.url || !contact_info.name; SET contact_info = { name => locale.maketext('Who is my hosting provider?'), url => 'https://go.cpanel.net/WhoIsMyHostingProvider', }; END; #Windows XP doesn't have the fancy arrows, so use ellipsis for now. SET more_locales_symbol = "…"; # Only run the display_locales function once by saving it into all_display_locales SET all_display_locales = display_locales; PROCESS "templates/external_auth_header.tmpl"; SET login_classes = []; IF reset_pass; login_classes.push('has-pw-reset'); END; UNLESS external_auth_modules; login_classes.push('no-external-auth-modules'); END; SET notice_style_ = logout ? 'success-notice' : notice_style ? notice_style : 'error-notice'; -%] [% MACRO ceil(n) GET n + (n - (n % (n + 1)) > 0 ? 1 : 0) FILTER format("%d"); %]
[% locale.maketext('Your account “[_1]” is already associated with an existing “[_2]” account. Please log in to connect a new account.' , preferred_username , disp_app); %] [% ELSE %] [% locale.maketext('Your account “[_1]” is not associated with an existing “[_2]” account. Please log in to connect the account.' , preferred_username , disp_app); %] [% END %]
[% locale.maketext('Maximum Users Exceeded.') %]
[% locale.maketext('The number of users on the server exceeds the maximum number of allowed users for your host server.') %]
[% locale.maketext('For more information, contact your hosting provider: “[output,url,_1,_2,target,_blank]”', contact_info.url, contact_info.name) %]
[% locale.maketext('If you have already updated your license, please wait a few minutes. Then try logging in again.') %]