[% #---------------------------------------------------------------------- # 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"); %]
[% IF msg_code == 'link_account' %] [% END %] [% IF msg_code == 'max_users_exceeded' %]

[% 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.') %]

[% END %]
[% notice_message %]
[% locale.maketext('The system has detected that you are using [asis,Internet Explorer] 11. [asis,cPanel] [output,amp] [asis,WHM] no longer supports [asis,Internet Explorer] 11. For more information, read the [output,url,_1,cPanel Blog,title,cPanel Blog,target,_2].', 'https://go.cpanel.net/ie11deprecation', '_blank') %]
[% IF script_uri == "/cpsess0/scripts7/authorizesupport" %] — [% locale.maketext('To grant [asis,cPanel] Support access to your server, log in to [asis,WHM] and click the “[_1]” button.', locale.maketext('Grant Access')) %]

[% END %]
[% PROCESS "templates/external_auth.tmpl" %] [% IF linked_users.size -%] [% END -%]
[% #If we have multiple users the user must select one %] [% IF linked_users.size -%] [% #calculate left postion based on # of items with a max width of 6 %] [% SET max_width = linked_users.size < 6 ? ( linked_users.size + 1 ) * 100 : 600; %]
[% FOREACH user IN linked_users -%]
[% END -%]
[% END -%]