diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-07-27 10:05:23 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-07-27 10:05:23 +0200 |
| commit | 5bf66662a9bdd62c5bccab15e607cd95cfb8fcab (patch) | |
| tree | 39a1a4629749056191c05dfd899f931701b7acf3 /srcs/phpmyadmin/libraries/classes/Config/Forms/Setup | |
| parent | 5afd237bbd22028b85532b8c0b3fcead49a00764 (diff) | |
| download | ft_server-master.tar.gz ft_server-master.tar.bz2 ft_server-master.zip | |
Removed wordpress and phpmyadmin, my server doesn't handle it well and it brings shame on my famillyHEADmaster
Diffstat (limited to 'srcs/phpmyadmin/libraries/classes/Config/Forms/Setup')
9 files changed, 0 insertions, 373 deletions
diff --git a/srcs/phpmyadmin/libraries/classes/Config/Forms/Setup/ConfigForm.php b/srcs/phpmyadmin/libraries/classes/Config/Forms/Setup/ConfigForm.php deleted file mode 100644 index 6fd4515..0000000 --- a/srcs/phpmyadmin/libraries/classes/Config/Forms/Setup/ConfigForm.php +++ /dev/null @@ -1,32 +0,0 @@ -<?php -/* vim: set expandtab sw=4 ts=4 sts=4: */ -/** - * User preferences form - * - * @package PhpMyAdmin - */ -declare(strict_types=1); - -namespace PhpMyAdmin\Config\Forms\Setup; - -use PhpMyAdmin\Config\Forms\BaseForm; - -/** - * Class ConfigForm - * @package PhpMyAdmin\Config\Forms\Setup - */ -class ConfigForm extends BaseForm -{ - /** - * @return array - */ - public static function getForms() - { - return [ - 'Config' => [ - 'DefaultLang', - 'ServerDefault', - ], - ]; - } -} diff --git a/srcs/phpmyadmin/libraries/classes/Config/Forms/Setup/ExportForm.php b/srcs/phpmyadmin/libraries/classes/Config/Forms/Setup/ExportForm.php deleted file mode 100644 index adf7ce4..0000000 --- a/srcs/phpmyadmin/libraries/classes/Config/Forms/Setup/ExportForm.php +++ /dev/null @@ -1,18 +0,0 @@ -<?php -/* vim: set expandtab sw=4 ts=4 sts=4: */ -/** - * User preferences form - * - * @package PhpMyAdmin - */ -declare(strict_types=1); - -namespace PhpMyAdmin\Config\Forms\Setup; - -/** - * Class ExportForm - * @package PhpMyAdmin\Config\Forms\Setup - */ -class ExportForm extends \PhpMyAdmin\Config\Forms\User\ExportForm -{ -} diff --git a/srcs/phpmyadmin/libraries/classes/Config/Forms/Setup/FeaturesForm.php b/srcs/phpmyadmin/libraries/classes/Config/Forms/Setup/FeaturesForm.php deleted file mode 100644 index 54f6cf2..0000000 --- a/srcs/phpmyadmin/libraries/classes/Config/Forms/Setup/FeaturesForm.php +++ /dev/null @@ -1,77 +0,0 @@ -<?php -/* vim: set expandtab sw=4 ts=4 sts=4: */ -/** - * User preferences form - * - * @package PhpMyAdmin - */ -declare(strict_types=1); - -namespace PhpMyAdmin\Config\Forms\Setup; - -/** - * Class FeaturesForm - * @package PhpMyAdmin\Config\Forms\Setup - */ -class FeaturesForm extends \PhpMyAdmin\Config\Forms\User\FeaturesForm -{ - /** - * @return array - */ - public static function getForms() - { - // phpcs:disable Squiz.Arrays.ArrayDeclaration.KeySpecified,Squiz.Arrays.ArrayDeclaration.NoKeySpecified - $result = parent::getForms(); - /* Remove only_db/hide_db, we have proper Server form in setup */ - $result['Databases'] = array_diff( - $result['Databases'], - [ - 'Servers/1/only_db', - 'Servers/1/hide_db', - ] - ); - /* Following are not available to user */ - $result['Import_export'] = [ - 'UploadDir', - 'SaveDir', - 'RecodingEngine' => ':group', - 'IconvExtraParams', - ':group:end', - 'ZipDump', - 'GZipDump', - 'BZipDump', - 'CompressOnFly', - ]; - $result['Security'] = [ - 'blowfish_secret', - 'CheckConfigurationPermissions', - 'TrustedProxies', - 'AllowUserDropDatabase', - 'AllowArbitraryServer', - 'ArbitraryServerRegexp', - 'LoginCookieRecall', - 'LoginCookieStore', - 'LoginCookieDeleteAll', - 'CaptchaLoginPublicKey', - 'CaptchaLoginPrivateKey', - ]; - $result['Developer'] = [ - 'UserprefsDeveloperTab', - 'DBG/sql', - ]; - $result['Other_core_settings'] = [ - 'OBGzip', - 'PersistentConnections', - 'ExecTimeLimit', - 'MemoryLimit', - 'UseDbSearch', - 'ProxyUrl', - 'ProxyUser', - 'ProxyPass', - 'AllowThirdPartyFraming', - 'ZeroConf', - ]; - return $result; - // phpcs:enable - } -} diff --git a/srcs/phpmyadmin/libraries/classes/Config/Forms/Setup/ImportForm.php b/srcs/phpmyadmin/libraries/classes/Config/Forms/Setup/ImportForm.php deleted file mode 100644 index 06adf35..0000000 --- a/srcs/phpmyadmin/libraries/classes/Config/Forms/Setup/ImportForm.php +++ /dev/null @@ -1,18 +0,0 @@ -<?php -/* vim: set expandtab sw=4 ts=4 sts=4: */ -/** - * User preferences form - * - * @package PhpMyAdmin - */ -declare(strict_types=1); - -namespace PhpMyAdmin\Config\Forms\Setup; - -/** - * Class ImportForm - * @package PhpMyAdmin\Config\Forms\Setup - */ -class ImportForm extends \PhpMyAdmin\Config\Forms\User\ImportForm -{ -} diff --git a/srcs/phpmyadmin/libraries/classes/Config/Forms/Setup/MainForm.php b/srcs/phpmyadmin/libraries/classes/Config/Forms/Setup/MainForm.php deleted file mode 100644 index ebdc1cd..0000000 --- a/srcs/phpmyadmin/libraries/classes/Config/Forms/Setup/MainForm.php +++ /dev/null @@ -1,29 +0,0 @@ -<?php -/* vim: set expandtab sw=4 ts=4 sts=4: */ -/** - * User preferences form - * - * @package PhpMyAdmin - */ -declare(strict_types=1); - -namespace PhpMyAdmin\Config\Forms\Setup; - -/** - * Class MainForm - * @package PhpMyAdmin\Config\Forms\Setup - */ -class MainForm extends \PhpMyAdmin\Config\Forms\User\MainForm -{ - /** - * @return array - */ - public static function getForms() - { - $result = parent::getForms(); - /* Following are not available to user */ - $result['Startup'][] = 'ShowPhpInfo'; - $result['Startup'][] = 'ShowChgPassword'; - return $result; - } -} diff --git a/srcs/phpmyadmin/libraries/classes/Config/Forms/Setup/NaviForm.php b/srcs/phpmyadmin/libraries/classes/Config/Forms/Setup/NaviForm.php deleted file mode 100644 index da1e9ed..0000000 --- a/srcs/phpmyadmin/libraries/classes/Config/Forms/Setup/NaviForm.php +++ /dev/null @@ -1,18 +0,0 @@ -<?php -/* vim: set expandtab sw=4 ts=4 sts=4: */ -/** - * User preferences form - * - * @package PhpMyAdmin - */ -declare(strict_types=1); - -namespace PhpMyAdmin\Config\Forms\Setup; - -/** - * Class NaviForm - * @package PhpMyAdmin\Config\Forms\Setup - */ -class NaviForm extends \PhpMyAdmin\Config\Forms\User\NaviForm -{ -} diff --git a/srcs/phpmyadmin/libraries/classes/Config/Forms/Setup/ServersForm.php b/srcs/phpmyadmin/libraries/classes/Config/Forms/Setup/ServersForm.php deleted file mode 100644 index 553447f..0000000 --- a/srcs/phpmyadmin/libraries/classes/Config/Forms/Setup/ServersForm.php +++ /dev/null @@ -1,116 +0,0 @@ -<?php -/* vim: set expandtab sw=4 ts=4 sts=4: */ -/** - * User preferences form - * - * @package PhpMyAdmin - */ -declare(strict_types=1); - -namespace PhpMyAdmin\Config\Forms\Setup; - -use PhpMyAdmin\Config\Forms\BaseForm; - -/** - * Class ServersForm - * @package PhpMyAdmin\Config\Forms\Setup - */ -class ServersForm extends BaseForm -{ - /** - * @return array - */ - public static function getForms() - { - // phpcs:disable Squiz.Arrays.ArrayDeclaration.KeySpecified,Squiz.Arrays.ArrayDeclaration.NoKeySpecified - return [ - 'Server' => [ - 'Servers' => [ - 1 => [ - 'verbose', - 'host', - 'port', - 'socket', - 'ssl', - 'compress', - ], - ], - ], - 'Server_auth' => [ - 'Servers' => [ - 1 => [ - 'auth_type', - ':group:' . __('Config authentication'), - 'user', - 'password', - ':group:end', - ':group:' . __('HTTP authentication'), - 'auth_http_realm', - ':group:end', - ':group:' . __('Signon authentication'), - 'SignonSession', - 'SignonURL', - 'LogoutURL', - ], - ], - ], - 'Server_config' => [ - 'Servers' => [ - 1 => [ - 'only_db', - 'hide_db', - 'AllowRoot', - 'AllowNoPassword', - 'DisableIS', - 'AllowDeny/order', - 'AllowDeny/rules', - 'SessionTimeZone', - ], - ], - ], - 'Server_pmadb' => [ - 'Servers' => [ - 1 => [ - 'pmadb' => 'phpmyadmin', - 'controlhost', - 'controlport', - 'controluser', - 'controlpass', - 'bookmarktable' => 'pma__bookmark', - 'relation' => 'pma__relation', - 'userconfig' => 'pma__userconfig', - 'users' => 'pma__users', - 'usergroups' => 'pma__usergroups', - 'navigationhiding' => 'pma__navigationhiding', - 'table_info' => 'pma__table_info', - 'column_info' => 'pma__column_info', - 'history' => 'pma__history', - 'recent' => 'pma__recent', - 'favorite' => 'pma__favorite', - 'table_uiprefs' => 'pma__table_uiprefs', - 'tracking' => 'pma__tracking', - 'table_coords' => 'pma__table_coords', - 'pdf_pages' => 'pma__pdf_pages', - 'savedsearches' => 'pma__savedsearches', - 'central_columns' => 'pma__central_columns', - 'designer_settings' => 'pma__designer_settings', - 'export_templates' => 'pma__export_templates', - 'MaxTableUiprefs' => 100, - ], - ], - ], - 'Server_tracking' => [ - 'Servers' => [ - 1 => [ - 'tracking_version_auto_create', - 'tracking_default_statements', - 'tracking_add_drop_view', - 'tracking_add_drop_table', - 'tracking_add_drop_database', - ], - ], - ], - ]; - // phpcs:enable - } -} diff --git a/srcs/phpmyadmin/libraries/classes/Config/Forms/Setup/SetupFormList.php b/srcs/phpmyadmin/libraries/classes/Config/Forms/Setup/SetupFormList.php deleted file mode 100644 index 91edb27..0000000 --- a/srcs/phpmyadmin/libraries/classes/Config/Forms/Setup/SetupFormList.php +++ /dev/null @@ -1,37 +0,0 @@ -<?php -/* vim: set expandtab sw=4 ts=4 sts=4: */ -/** - * Setup preferences form - * - * @package PhpMyAdmin - */ -declare(strict_types=1); - -namespace PhpMyAdmin\Config\Forms\Setup; - -use PhpMyAdmin\Config\Forms\BaseFormList; - -/** - * Class SetupFormList - * @package PhpMyAdmin\Config\Forms\Setup - */ -class SetupFormList extends BaseFormList -{ - /** - * @var array - */ - protected static $all = [ - 'Config', - 'Export', - 'Features', - 'Import', - 'Main', - 'Navi', - 'Servers', - 'Sql', - ]; - /** - * @var string - */ - protected static $ns = '\\PhpMyAdmin\\Config\\Forms\\Setup\\'; -} diff --git a/srcs/phpmyadmin/libraries/classes/Config/Forms/Setup/SqlForm.php b/srcs/phpmyadmin/libraries/classes/Config/Forms/Setup/SqlForm.php deleted file mode 100644 index 0cc3a1c..0000000 --- a/srcs/phpmyadmin/libraries/classes/Config/Forms/Setup/SqlForm.php +++ /dev/null @@ -1,28 +0,0 @@ -<?php -/* vim: set expandtab sw=4 ts=4 sts=4: */ -/** - * User preferences form - * - * @package PhpMyAdmin - */ -declare(strict_types=1); - -namespace PhpMyAdmin\Config\Forms\Setup; - -/** - * Class SqlForm - * @package PhpMyAdmin\Config\Forms\Setup - */ -class SqlForm extends \PhpMyAdmin\Config\Forms\User\SqlForm -{ - /** - * @return array - */ - public static function getForms() - { - $result = parent::getForms(); - /* Following are not available to user */ - $result['Sql_queries'][] = 'QueryHistoryDB'; - return $result; - } -} |
