Viewing File: /usr/local/cpanel/base/frontend/jupiter/store/site_monitor/purchase_site_monitor_completion.html.tt
[%
USE Uapi;
USE Dumper;
SET CPANEL.CPVAR.dprefix = "../";
SET success = (FORM.order_status == 'success');
SET theme = CPANEL.CPDATA.RS.html;
SET basepath = '/frontend/' _ theme _ '/site-monitor/index.html';
IF success;
SET get_token = execute(
'Monitoring',
'get_user_status_from_store',
);
SET save_user_details = execute(
'Monitoring',
'save_user',
{
api_token => get_token.data.api_token,
user => get_token.data.email,
}
);
END;
SET redirect_url = execute(
'Monitoring',
'get_completion_url',
{
success => success,
path => basepath,
}
);
SET redirect_completion = redirect_url.data.completion_url;
%]
[% WRAPPER '_assets/master.html.tt'
app_key = 'store'
include_legacy_stylesheets = 0
include_legacy_scripts = 0
include_cjt = 0
use_master_bootstrap = 0
-%]
[% IF success %]
<meta http-equiv="refresh" content="1;url=[% redirect_completion -%]">
[% END %]
<div class="row">
<div class="col-xs-12 col-sm-6">
[% IF success %]
<div class="alert alert-success">
<span class="glyphicon glyphicon-ok-sign" aria-hidden="true"></span>
<div class="alert-message">
[% locale.maketext('The order was successful.') %]
<br>
<i id="spinner" class="fas fa-sync fa-spin" aria-hidden="true"></i>
[% locale.maketext('The system is redirecting you.') %]
<span id="redirect-link" style="display:none;">
<br>
[% locale.maketext('If the system does not redirect you, [output,url,_1,click here,target,_parent].',redirect_completion) %]
</span>
</div>
</div>
[% ELSE %]
<div class="alert alert-danger">
<span class="glyphicon glyphicon-remove-sign" aria-hidden="true"></span>
<div class="alert-message">
<strong>[% locale.maketext('Error:') %]</strong>
[% locale.maketext('The order was unsuccessful.') %]
</div>
</div>
[% END %]
</div>
</div>
<script>
var redirectLink = document.getElementById("redirect-link");
var five_seconds = 5000;
if (redirectLink) {
setTimeout(function() {
redirectLink.style.display = "block";
}, five_seconds);
}
</script>
[% END #wrapper -%]
Back to Directory
File Manager