* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerDotJs {
+class AdminerDotJs extends Adminer\Plugin {
const FILENAME = "adminer.js";
function head($dark = null) {
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerBackwardKeys {
+class AdminerBackwardKeys extends Adminer\Plugin {
// this is copy-pasted from Adminer Editor
function backwardKeys($table, $tableName) {
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerBeforeUnload {
+class AdminerBeforeUnload extends Adminer\Plugin {
function head($dark = null) {
?>
<?php
-/** Use Codemirror 5 for syntax highlighting and SQL <textarea> including type-ahead of keywords and tables
+/** Use CodeMirror 5 for syntax highlighting and <textarea> including type-ahead of keywords and tables
* @link https://codemirror.net/5/
* @link https://www.adminer.org/plugins/#use
* @author Jakub Vrana, https://www.vrana.cz/
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerCodemirror {
+class AdminerCodemirror extends Adminer\Plugin {
private $root;
private $minified;
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerDarkSwitcher {
+class AdminerDarkSwitcher extends Adminer\Plugin {
function head($dark = null) {
?>
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerDatabaseHide {
+class AdminerDatabaseHide extends Adminer\Plugin {
protected $disabled;
/**
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerDesigns {
+class AdminerDesigns extends Adminer\Plugin {
protected $designs;
/**
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerDumpAlter {
+class AdminerDumpAlter extends Adminer\Plugin {
function dumpFormat() {
if (Adminer\DRIVER == 'server') {
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerDumpBz2 {
+class AdminerDumpBz2 extends Adminer\Plugin {
protected $filename, $fp;
function dumpOutput() {
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerDumpDate {
+class AdminerDumpDate extends Adminer\Plugin {
function dumpFilename($identifier) {
return Adminer\friendly_url(($identifier != "" ? $identifier : (Adminer\SERVER != "" ? Adminer\SERVER : "localhost")) . "-" . Adminer\get_val("SELECT NOW()"));
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerDumpJson {
+class AdminerDumpJson extends Adminer\Plugin {
protected $database = false;
function dumpFormat() {
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerDumpPhp {
+class AdminerDumpPhp extends Adminer\Plugin {
protected $output = array();
function dumpFormat() {
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerDumpXml {
+class AdminerDumpXml extends Adminer\Plugin {
protected $database = false;
function dumpFormat() {
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerDumpZip {
+class AdminerDumpZip extends Adminer\Plugin {
protected $filename, $data;
function dumpOutput() {
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerEditCalendar {
+class AdminerEditCalendar extends Adminer\Plugin {
protected $prepend, $langPath;
/**
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerEditForeign {
+class AdminerEditForeign extends Adminer\Plugin {
protected $limit;
function __construct($limit = 0) {
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerEditTextarea {
+class AdminerEditTextarea extends Adminer\Plugin {
function editInput($table, $field, $attrs, $value) {
if (preg_match('~char~', $field["type"])) {
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerEditorSetup {
+class AdminerEditorSetup extends Adminer\Plugin {
private $driver;
private $server;
private $database;
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerEditorViews {
+class AdminerEditorViews extends Adminer\Plugin {
function tableName($tableStatus) {
return Adminer\h($tableStatus["Comment"] != "" ? $tableStatus["Comment"] : $tableStatus["Name"]);
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerEmailTable {
+class AdminerEmailTable extends Adminer\Plugin {
protected $table, $id, $title, $subject, $message;
/**
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerEnumOption {
+class AdminerEnumOption extends Adminer\Plugin {
function editInput($table, $field, $attrs, $value) {
if ($field["type"] == "enum") {
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerFileUpload {
+class AdminerFileUpload extends Adminer\Plugin {
protected $uploadPath, $displayPath, $extensions;
/**
<?php
-/** Link system tables (in mysql and information_schema databases) by foreign keys
+/** Link system tables (in "mysql" and "information_schema" databases) by foreign keys
* @link https://www.adminer.org/plugins/#use
* @author Jakub Vrana, https://www.vrana.cz/
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerForeignSystem {
+class AdminerForeignSystem extends Adminer\Plugin {
function foreignKeys($table) {
if (Adminer\DRIVER == "server" && Adminer\DB == "mysql") {
<?php
-/** Allow using Adminer inside a frame (disables ClickJacking protection)
+/** Allow using Adminer inside a frame
* @link https://www.adminer.org/plugins/#use
* @author Jakub Vrana, https://www.vrana.cz/
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerFrames {
+class AdminerFrames extends Adminer\Plugin {
protected $sameOrigin;
/**
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerJsonColumn {
+class AdminerJsonColumn extends Adminer\Plugin {
private function testJson($value) {
if ((substr($value, 0, 1) == '{' || substr($value, 0, 1) == '[') && ($json = json_decode($value, true))) {
return $json;
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerLoginIp {
+class AdminerLoginIp extends Adminer\Plugin {
protected $ips, $forwarded_for;
/** Set allowed IP addresses
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerLoginOtp {
+class AdminerLoginOtp extends Adminer\Plugin {
protected $secret;
/**
<?php
-/** Enable login for password-less database
+/** Enable login without password
* @link https://www.adminer.org/plugins/#use
* @author Jakub Vrana, https://www.vrana.cz/
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerLoginPasswordLess {
+class AdminerLoginPasswordLess extends Adminer\Plugin {
protected $password_hash;
/** Set allowed password
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerLoginServers {
+class AdminerLoginServers extends Adminer\Plugin {
protected $servers;
/** Set supported servers
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerLoginSsl {
+class AdminerLoginSsl extends Adminer\Plugin {
protected $ssl;
/**
);
*/
-/** Authenticate a user from the login table
+/** Authenticate a user from the "login" table
* @link https://www.adminer.org/plugins/#use
* @author Jakub Vrana, https://www.vrana.cz/
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerLoginTable {
+class AdminerLoginTable extends Adminer\Plugin {
protected $database;
/** Set database of login table */
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerMasterSlave {
+class AdminerMasterSlave extends Adminer\Plugin {
private $masters = array();
/**
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerMonaco {
+class AdminerMonaco extends Adminer\Plugin {
private $root;
function __construct($root = "https://cdn.jsdelivr.net/npm/monaco-editor@0.52/min/vs") {
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerPrettyJsonColumn {
+class AdminerPrettyJsonColumn extends Adminer\Plugin {
private function testJson($value) {
if ((substr($value, 0, 1) == '{' || substr($value, 0, 1) == '[') && ($json = json_decode($value, true))) {
return $json;
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerPrism {
+class AdminerPrism extends Adminer\Plugin {
private $editorRoot;
private $minified;
private $theme;
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerSlugify {
+class AdminerSlugify extends Adminer\Plugin {
protected $from, $to;
/**
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerSqlLog {
+class AdminerSqlLog extends Adminer\Plugin {
protected $filename;
/**
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerTableIndexesStructure {
+class AdminerTableIndexesStructure extends Adminer\Plugin {
/** Print table structure in tabular format
* @param Index[] $indexes data about all indexes on a table
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerTableStructure {
+class AdminerTableStructure extends Adminer\Plugin {
/** Print table structure in tabular format
* @param Field[] $fields data about individual fields
<?php
-/** Use filter in tables list
+/** Filter names in tables list
* @link https://www.adminer.org/plugins/#use
* @author Jakub Vrana, https://www.vrana.cz/
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerTablesFilter {
+class AdminerTablesFilter extends Adminer\Plugin {
function tablesPrint($tables) {
?>
<script<?php echo Adminer\nonce(); ?>>
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerTinymce {
+class AdminerTinymce extends Adminer\Plugin {
protected $path;
function __construct(string $path = "tiny_mce/tiny_mce.js") {
);
*/
-/** Translate all table and field comments, enum and set values in Editor from the translation table (inserts new translations)
+/** Translate all table and field comments, enum and set values from the translation table (inserts new translations)
* @link https://www.adminer.org/plugins/#use
* @author Jakub Vrana, https://www.vrana.cz/
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerTranslation {
+class AdminerTranslation extends Adminer\Plugin {
private function translate($idf) {
static $translations, $lang;
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerVersionGithub {
+class AdminerVersionGithub extends Adminer\Plugin {
function head($dark = null) {
?>
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
-class AdminerVersionNoverify {
+class AdminerVersionNoverify extends Adminer\Plugin {
function head($dark = null) {
echo Adminer\script("verifyVersion = () => { };");