[% USE CPBranding; USE VarCache; USE Api2; USE JSON; SET TEMPLATE_PATH = "security-policy/" _ locale.locale _ "/"; SET CPANEL.CPVAR.dprefix = "./"; SET style_sheets = []; SET scripts = []; SET user_locale = locale.get_language_tag(); SET direction = locale.get_html_dir_attr(); SET base_dir = '/usr/local/cpanel/base/unprotected/wp-squared/'; SET dark_path = get_theme_url(TEMPLATE_PATH _ "assets/wp2-logo-white-white.svg"); SET light_path = get_theme_url(TEMPLATE_PATH _ "assets/wp2-logo-sm.svg"); SET favicon_path = TEMPLATE_PATH _ "assets/favicon.ico"; SET customizations = CPBranding.get_customizations(dark_path, light_path, favicon_path, "cpanel", "wp-squared"); SET sample_questions = Api2.exec('SourceIPCheck','samplequestions'); SET selected_questions = SERVER_PORT == "2087" ? data.userquestion : Api2.exec('SourceIPCheck', 'loadsecquestions', { account => CPANEL.FORM.account }); #---------------------------------------------------- # ∨∨∨ THIS IS GENERATED CODE, DO NOT MODIFY IT ∨∨∨ #---------------------------------------------------- # scripts.push(TEMPLATE_PATH _ 'polyfills.js'); scripts.push(TEMPLATE_PATH _ 'main.js'); # ~~~INSERT ABOVE~~~ USE dir = Directory(base_dir); SET custom_variables_file = 0; FOREACH file IN dir.files; IF file.name.match("-variables-custom\.css$"); custom_variables_file = file.name; END; END; %]