[% USE Api2; SET CPANEL.CPVAR.dprefix = "../"; SET php_selector_type_opt = FORM.opt; SET php_version_select = Api2.exec("LVEInfo", "processPHPVersionSelect", {lveversion=FORM.lveversion}); SET hide_if_native = Api2.exec("LVEInfo", "hideIfNative", {}).0.state; SET table_content = []; IF (php_selector_type_opt); IF !hide_if_native; SET table_content = Api2.exec("LVEInfo", "showPHPOptTable", {}); END; SET additional_script = "/3rdparty/cloudlinux/user-option-selector.js"; SET include_tmpl = "option-selector.tmpl"; SET app_key = "lvephpsel"; SET page_title = "PHP Selector | options"; SET switch_to = ["extension-selector.html", "Switch To PHP Extensions"]; END; IF (!php_selector_type_opt); IF !hide_if_native; SET table_content = Api2.exec("LVEInfo", "showPHPExtTable", {}); END; SET additional_script = "/3rdparty/cloudlinux/user-extension-selector.js"; SET include_tmpl = "extension-selector.tmpl"; SET app_key = "lvephpsel"; SET page_title = "PHP Selector | extensions"; SET switch_to = ["extension-selector.html?opt=1", "Switch To PHP Options"]; Api1.pre_exec("LVEInfo", "PHPExtDesc"); SET php_ext_desc = Api1.exec("LVEInfo", "PHPExtDesc", {}); Api1.post_exec("LVEInfo", "PHPExtDesc"); END; SET php_version_select = Api2.exec("LVEInfo", "processPHPVersionSelect", {lveversion=FORM.lveversion}); SET hide_if_native = Api2.exec("LVEInfo", "hideIfNative", {}).0.state; %] [% css_code = PROCESS style_block %] [% js_code = PROCESS js_block %] [% WRAPPER '_assets/master.html.tt' page_title = page_title page_js = js_code page_js_top = js_code_top page_styles = css_code include_legacy_stylesheets = 0 include_legacy_scripts = 1 include_cjt = 1 page_scripts = ["js/x3main_optimized.js", "/3rdparty/cloudlinux/jsonparse.js", "/3rdparty/cloudlinux/cl-message-handler.js"] page_stylesheets = ["css2-min/index.css"] hide_page_heading = 0 app_key = app_key %] [% IF !CPANEL.CPCONF.item('lve_hide_selector') %]
[% BLOCK js_block %] [% IF (!php_selector_type_opt) %] [% END %] [% END #js_block %] [% END # lve_hide_selector%] [% BLOCK style_block%] [% END %] [% END #wrapper %]