[%
USE Geo;
SET CPANEL.CPVAR.dprefix = "../../";
SET spinner_url = '/images/report-spinner.gif';
SET spinner_url = MagicRevision(spinner_url);
SET countries = [];
SET locales_obj = locale.get_locales_obj();
FOR ccode = Geo.COUNTRY_CODES;
countries.push( [ ccode.upper(), locales_obj.get_territory_from_code(ccode) ] );
END;
%]
[% WRAPPER '_assets/master.html.tt'
app_key = 'tls_wizard'
use_master_bootstrap = 0
page_stylesheets = ['security/tls_wizard/index.css']
-%]
[% locale.maketext('You can use this interface to purchase and install [output,abbr,SSL,Secure Sockets Layer] certificates for your account.') %]
[% locale.maketext("For more information on this interface, read the [output,url,_1,documentation,target,_2,id,_3].", "https://go.cpanel.net/ssltlswizard", "_blank", "lnkssltlswizardDocumentation") %]
[% IF !( CPANEL.feature('sslinstall') && CPANEL.feature('tls_wizard') && CPANEL.feature('market') ) -%]
[% locale.maketext('This feature is not available to your account.') -%]
[% ELSE -%]
[%
SET pending_certificates = execute_or_die('Market', 'get_pending_ssl_certificates', {
'api.filter'=>1,
'api.filter_type'=>'ne',
'api.filter_term'=>'inactive',
'api.filter_column'=>'status'
}).data;
SET products_api = execute_or_die('Market', 'get_all_products', {
'api.filter'=>1,
'api.filter_type_0'=>'eq',
'api.filter_term_0'=>'ssl_certificate',
'api.filter_column_0'=>'product_group',
'api.filter_type_1'=>'eq',
'api.filter_term_1'=>'1',
'api.filter_column_1'=>'enabled',
"api.sort"=>1,
'api.sort_column_0' => "recommended",
"api.sort_method_0" => "numeric"
"api.sort_reverse_0" => "1"
'api.sort_column_1' => "x_price_per_domain",
"api.sort_method_1" => "numeric"
});
SET products = products_api.data;
%]
[% IF products_api.messages.size -%]
[% FOR msg = products_api.messages -%]
[% msg.html() -%]
[% END -%]
[% END -%]
[% IF products.size %]
[%
SET domains = execute('WebVhosts','list_ssl_capable_domains', { 'hide_temporary_domains' => 1 }).data;
IF domains.size;
%]
[% locale.maketext('Loading …') %]
[% PROCESS '_assets/cjt2_header_include.tt' %]
[% ELSE %]
Info:
[% locale.maketext('This account does not have access to any domains that can be used with this interface.') %]
[% locale.maketext("For more information regarding this interface, read the [output,url,_1,documentation,target,_2,id,_3].", "https://go.cpanel.net/ssltlswizard", "_blank", "lnkssltlswizardDocumentation") %]
[% END %]
[% ELSE %]
Info:
[% locale.maketext('There are no [asis,SSL/TLS] products available at this time.') %] [% locale.maketext('[asis,SSL/TLS] providers can be enabled by the server administrator.') %]
[% locale.maketext("For more information regarding this interface, read the [output,url,_1,documentation,target,_2,id,_3].", "https://go.cpanel.net/ssltlswizard", "_blank", "lnkssltlswizardDocumentation") %]
[% END %]
[% END -%]
[% END #wrapper %]