File manager - Edit - /usr/local/cpanel/base/frontend/jupiter/security/tls_wizard/index.html.tt
Back
[% USE Geo; USE SSL; USE Uapi; 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; IF SSL.should_show_unified_ssl_ui(); SET page_title_text = locale.maketext('SSL/TLS Certificates'); ELSE; SET page_title_text = locale.maketext('SSL/TLS Wizard'); END; %] [% WRAPPER '_assets/master.html.tt' app_key = 'tls_wizard' use_master_bootstrap = 0 page_title = page_title_text embed_stylesheets = ['css/ssl.css'] page_stylesheets = ['security/tls_wizard/index.css'] -%] [% PROCESS '_assets/_ssl_tls_tabs.html.tt' active_tab = 'wizard' %] [%- SET show_unified = SSL.should_show_unified_ssl_ui(); SET has_required_features = CPANEL.feature('sslinstall') && CPANEL.feature('tls_wizard') && CPANEL.feature('market'); # The unified UI waives the tls_wizard and market requirements but sslinstall is always mandatory SET has_access = CPANEL.feature('sslinstall') && (show_unified || has_required_features); -%] [% IF !has_access -%] <div id="notAvailableError" class="alert alert-danger"> <span id="notAvailableErrorImg" class="glyphicon glyphicon-remove-sign"></span> <div id="notAvailableErrorMsg" class="alert-message"> [% locale.maketext('This feature is not available to your account.') -%] </div> </div> [% ELSE -%] [% SET has_market = CPANEL.feature('market') ? 1 : 0; SET has_tls_wizard_feature = CPANEL.feature('tls_wizard') ? 1 : 0; IF has_market && has_tls_wizard_feature; 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; ELSE; SET pending_certificates = []; SET products_api = {}; SET products = []; END; SET cpanel_store_enabled = products.size ? 1 : 0; SET has_autossl = CPANEL.feature('autossl'); SET autossl_provider = SSL.get_autossl_provider(); SET autossl_provider_is_letsencrypt = autossl_provider == 'LetsEncrypt' ? 1 : 0; SET autossl_provider_tos_url = SSL.get_autossl_provider_tos_url(); # Check if user has already acknowledged Let's Encrypt terms SET letsencrypt_terms_acknowledged = 0; IF autossl_provider_tos_url; SET nvdata_key = "letsencrypt_terms_acknowledged"; SET acknowledgment_value = Uapi.exec('Personalization', 'get', { names = [nvdata_key] }).data.personalization.$nvdata_key.value || ''; IF acknowledgment_value; SET letsencrypt_terms_acknowledged = 1; END; END; # The wizard has content if there are store products or if LE AutoSSL is available. # The unified UI flag bypasses the feature gate above, not the content check. SET wizard_has_content = products.size || (has_autossl && autossl_provider_is_letsencrypt); %] <section id="txtPageDescription" class="description"> [% IF cpanel_store_enabled -%] [% locale.maketext('You can use this interface to purchase and install [output,abbr,SSL,Secure Sockets Layer] certificates for your account.') %] [%- ELSE -%] [% locale.maketext('You can use this interface to issue and install [output,abbr,SSL,Secure Sockets Layer] certificates for your account.') %] [%- END %] [% 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") %] </section> [% IF has_market && products_api.messages.size -%] <div class="alert alert-warning"> <span class="glyphicon glyphicon-exclamation-sign"></span> <div class="alert-message"> [% FOR msg = products_api.messages -%] <p>[% msg.html() -%]</p> [% END -%] </div> </div> [% END -%] [% IF wizard_has_content %] [% SET domains = execute('WebVhosts','list_ssl_capable_domains', { 'hide_temporary_domains' => 1 }).data; IF domains.size; %] <div ng-controller="BaseController" class="ng-cloak" ng-cloak id="app_tlsWizard"> <div class="loading" ng-show="loading"> <div class="callout callout-info"> <span class="fas fa-spinner fa-lg fa-spin"></span> [% locale.maketext('Loading …') %] </div> </div> <div ng-class="{'view-disabled':loading}" class="animate-view" ng-view></div> <cp-alert-list alert-group="'tlsWizard'"></cp-alert-list> <div growl></div> </div> <script type="text/javascript"> CPANEL.namespace("CPANEL"); CPANEL.PAGE = {}; CPANEL.PAGE.countries = [% countries.json() %]; CPANEL.PAGE.guessed_country_code = [% Geo.guess_country_code().json() %]; CPANEL.PAGE.products = [% products.json() %]; CPANEL.PAGE.domains = [% domains.json() %]; CPANEL.PAGE.pending_certificates = [% pending_certificates.json() %]; CPANEL.PAGE.has_market = [% has_market ? 'true' : 'false' %]; CPANEL.PAGE.has_autossl = [% has_autossl ? 1 : 0 %]; CPANEL.PAGE.autossl_provider = [% autossl_provider.json() %]; CPANEL.PAGE.autossl_provider_is_letsencrypt = [% autossl_provider_is_letsencrypt ? 'true' : 'false' %]; CPANEL.PAGE.autossl_provider_tos_url = [% autossl_provider_tos_url.json() %]; CPANEL.PAGE.letsencrypt_terms_acknowledged = [% letsencrypt_terms_acknowledged ? 'true' : 'false' %]; CPANEL.PAGE.cpanel_store_enabled = [% cpanel_store_enabled ? 'true' : 'false' %]; CPANEL.PAGE.has_tls_wizard_feature = [% has_tls_wizard_feature ? 'true' : 'false' %]; </script> [% PROCESS '_assets/cjt2_header_include.tt' %] [% ELSE %] <div class="alert alert-info"> <span class="glyphicon glyphicon-info-sign"></span> <div class="alert-message"> <p><strong>Info:</strong></p> <p>[% locale.maketext('This account does not have access to any domains that can be used with this interface.') %]</p> <p>[% 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") %]</p> </div> </div> [% END %] [% ELSE %] <div class="alert alert-info"> <span class="glyphicon glyphicon-info-sign"></span> <div class="alert-message"> <p><strong>Info:</strong></p> <p>[% 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.') %]</p> <p>[% 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") %]</p> </div> </div> [% END %] [% END -%] [% END #wrapper %]
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.05 |
proxy
|
phpinfo
|
Settings