| Server IP : 172.67.216.113 / Your IP : 172.71.28.146 [ Web Server : Apache System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64 User : cp648411 ( 1354) PHP Version : 7.2.34 Disable Function : NONE Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/2388322/cwd/frontend/jupiter/sql/ |
Upload File : |
[% SET CPANEL.CPVAR.dprefix = "../" %]
[%
SET addhost = execute("Mysql", "add_host", {"host" => FORM.host});
IF addhost.status;
SET addnotes = execute("Mysql", "add_host_note", {"host" => RAW_FORM.host, "note" => RAW_FORM.comment});
END;
%]
[% WRAPPER '_assets/master.html.tt'
app_key = 'mysql_databases'
-%]
<div class="body-content">
[% IF addhost.status %]
<div id="addhostSuccess" class="alert alert-success">
<span id="addhostSuccessImg" class="glyphicon glyphicon-ok-sign"></span>
<div id="addhostSuccessMsg" class="alert-message wrap-text-forcefully">
[% locale.maketext("The host “[_1]” was added to the access list.",FORM.host) %]
[% IF FORM.exists('comment') AND FORM.comment.length > 0 AND addnotes.status %]
<br>[% locale.maketext("Comment:") %] [% FORM.comment %]
[% END %]
</div>
</div>
[% END %]
[% IF !addnotes.status || !addhost.status %]
<div id="addhostError" class="alert alert-danger">
<span id="addhostErrorImg" class="glyphicon glyphicon-exclamation-sign"></span>
<div id="addhostErrorMsg" class="alert-message">
[% IF !addhost.status %]
[% FOREACH addhostError = addhost.errors %]
[% addhostError %]
[% END %]
[% END %]
[% IF !addnotes.status %]
[% FOREACH addnotesError = addnotes.errors %]
[% addnotesError %]
[% END %]
[% END %]
</div>
</div>
[% END %]
[% INCLUDE _assets/return_link.html.tt return_location='managehost.html' return_link_text=locale.maketext('Go Back') %]
</div>
[% END #wrapper %]