[% SET CPANEL.CPVAR.dprefix = "../"; USE CpanelDB; SET dbownerprefix = ExpVar.expand('$dbownerprefix'); SET max_length = CpanelDB.MAX_MYSQL_DBUSER_LENGTH - dbownerprefix.length(); Api2.pre_exec("PasswdStrength", "get_required_strength"); SET required_strength_result = Api2.exec("PasswdStrength", "get_required_strength", {"app"=>"mysql"} ); Api2.post_exec("PasswdStrength", "get_required_strength"); SET password_strength = required_strength_result.0.strength; SET full_db = dbownerprefix _ RAW_FORM.db; IF !CPANEL.CPDATA.item('DEMO') && !(FORM.item('nocreate') == "1"); SET adddb = execute("Mysql", "create_database", {"name" => full_db}); END; %] [% js_code = PROCESS js_block %] [% WRAPPER '_assets/master.html.tt' app_key = 'mysql_database_wizard' page_js = js_code -%]
[% locale.maketext("You have created a database named “[_1]”.", full_db.html()) %]