[% IF Whostmgr.has_license_flag('dev') -%] [% SET server_details = Whostmgr.get_server_info(); -%]
[% mail_subject = server_details.hostname _ " ( " _ server_details.mainip _ ", " _ server_details.mainserverip _ " ) is using a development license in a production environment." -%] [% mail_subject = mail_subject.uri() -%]

[% locale.maketext('Development License') -%]

[% locale.maketext('This server currently uses a development license. If you are using this server in a production environment, please notify [output,url,_1,cs@cpanel.net] immediately.', "mailto:cs@cpanel.net?subject=$mail_subject") -%]
[% ELSIF Whostmgr.has_license_flag('trial') -%] [% SET server_details = Whostmgr.get_server_info(); -%] [% SET vars = Whostmgr.template_vars(); -%] [% DEFAULT analytics_for_current_user = ''; SET analytics_for_current_user = NVData.get('analytics', undef, 0, 'whm'); %] [% SET is_root_user = CPANEL.authuser == 'root'; %] [% # If is root user and in trial and analytics not set for this user IF is_root_user && analytics_for_current_user == ''; # Default it to on for this user. analytics_for_current_user = 'on'; SET default_to_on = 1; END; -%]

[% locale.maketext('Trial License') -%]

[% locale.maketext('This installation of [asis,cPanel amp() WHM] is for trial use, is limited to 30 user accounts, and will expire at the end of the trial period.') -%] [% IF is_root_user; %] [% locale.maketext('Upgrade to a paid copy of [asis,cPanel amp() WHM] to use the software after that period.') %] [% IF analytics_for_current_user == 'on' && default_to_on %]
[% locale.maketext('To help us improve our users’ experience with our products, we have enabled Interface Analytics data collection for the root user.') %]
[% END %]
[% locale.maketext('When you purchase a license, you must provide the following information:') %]
[% locale.maketext('Purchase a License') %] [% END %]
[% ELSIF Whostmgr.is_test_build() -%] [% SET expire_epoch = Whostmgr.get_expire_time(); -%]

[% locale.maketext('Test Build') -%]

[% IF expire_epoch %] [% locale.maketext('Thank you for testing this pre-release test build. This build is not intended for production use and is delivered AS-IS, with no warranties expressed or implied.') %] [% locale.maketext('This build will expire on [comment,a date][_1].', "") %] [% ELSE %] [% locale.maketext('Thank you for testing this pre-release test build. This build is not intended for production use and is delivered AS-IS, with no warranties expressed or implied.') %] [% END %] [% IF expire_epoch %] [%# We render this in localtime on the client side because it avoids loading Perl’s date localization modules on every page. %] [% END %]
[% END -%]