Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Commit

Permalink
new: adminer 4.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
b2un0 committed Jun 18, 2017
1 parent e6f8651 commit 7815802
Show file tree
Hide file tree
Showing 5 changed files with 149 additions and 51 deletions.
10 changes: 5 additions & 5 deletions media/adminer.php

Large diffs are not rendered by default.

Empty file modified media/loader.php
100644 → 100755
Empty file.
Empty file modified media/plugins/joomla.php
100644 → 100755
Empty file.
113 changes: 67 additions & 46 deletions media/plugins/plugin.php
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
<?php

/** Adminer customization allowing usage of plugins
* @link http://www.adminer.org/plugins/#use
* @author Jakub Vrana, http://www.vrana.cz/
* @link https://www.adminer.org/plugins/#use
* @author Jakub Vrana, https://www.vrana.cz/
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/

defined('_JEXEC') or die;

class AdminerPlugin extends Adminer
{
/** @access protected */
Expand All @@ -25,7 +22,7 @@ function _findRootClass($class)
/** Register plugins
* @param array object instances or null to register all classes starting by 'Adminer'
*/
function AdminerPlugin($plugins)
function __construct($plugins)
{
if ($plugins === null) {
$plugins = array();
Expand Down Expand Up @@ -106,7 +103,7 @@ function dumpOutput()
return $this->_appendPlugin(__FUNCTION__, $args);
}

function editFunctions()
function editFunctions($field)
{
$args = func_get_args();
return $this->_appendPlugin(__FUNCTION__, $args);
Expand All @@ -126,7 +123,7 @@ function credentials()
return $this->_applyPlugin(__FUNCTION__, $args);
}

function permanentLogin()
function permanentLogin($create = false)
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
Expand All @@ -138,7 +135,13 @@ function database()
return $this->_applyPlugin(__FUNCTION__, $args);
}

function databases()
function schemas()
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}

function databases($flush = true)
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
Expand Down Expand Up @@ -168,115 +171,133 @@ function loginForm()
return $this->_applyPlugin(__FUNCTION__, $args);
}

function login()
function login($login, $password)
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}

function tableName($tableStatus)
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}

function fieldName($field, $order = 0)
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}

function selectLinks($tableStatus, $set = "")
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}

function tableName()
function foreignKeys($table)
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}

function fieldName()
function backwardKeys($table, $tableName)
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}

function selectLinks()
function backwardKeysPrint($backwardKeys, $row)
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}

function foreignKeys()
function selectQuery($query, $time)
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}

function backwardKeys()
function sqlCommandQuery($query)
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}

function backwardKeysPrint()
function rowDescription($table)
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}

function selectQuery()
function rowDescriptions($rows, $foreignKeys)
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}

function rowDescription()
function selectLink($val, $field)
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}

function rowDescriptions()
function selectVal($val, $link, $field, $original)
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}

function selectLink()
function editVal($val, $field)
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}

function selectVal()
function tableStructurePrint($fields)
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}

function editVal()
function tableIndexesPrint($indexes)
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}

function selectColumnsPrint()
function selectColumnsPrint($select, $columns)
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}

function selectSearchPrint()
function selectSearchPrint($where, $columns, $indexes)
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}

function selectOrderPrint()
function selectOrderPrint($order, $columns, $indexes)
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}

function selectLimitPrint()
function selectLimitPrint($limit)
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}

function selectLengthPrint()
function selectLengthPrint($text_length)
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}

function selectActionPrint()
function selectActionPrint($indexes)
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
Expand All @@ -294,25 +315,25 @@ function selectImportPrint()
return $this->_applyPlugin(__FUNCTION__, $args);
}

function selectEmailPrint()
function selectEmailPrint($emailFields, $columns)
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}

function selectColumnsProcess()
function selectColumnsProcess($columns, $indexes)
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}

function selectSearchProcess()
function selectSearchProcess($fields, $indexes)
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}

function selectOrderProcess()
function selectOrderProcess($fields, $indexes)
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
Expand All @@ -330,61 +351,61 @@ function selectLengthProcess()
return $this->_applyPlugin(__FUNCTION__, $args);
}

function selectEmailProcess()
function selectEmailProcess($where, $foreignKeys)
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}

function selectQueryBuild()
function selectQueryBuild($select, $where, $group, $order, $limit, $page)
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}

function messageQuery()
function messageQuery($query, $time)
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}

function editInput()
function editInput($table, $field, $attrs, $value)
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}

function processInput()
function processInput($field, $value, $function = "")
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}

function dumpDatabase()
function dumpDatabase($db)
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}

function dumpTable()
function dumpTable($table, $style, $is_view = 0)
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}

function dumpData()
function dumpData($table, $style, $query)
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}

function dumpFilename()
function dumpFilename($identifier)
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}

function dumpHeaders()
function dumpHeaders($identifier, $multi_table = false)
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
Expand All @@ -396,22 +417,22 @@ function homepage()
return $this->_applyPlugin(__FUNCTION__, $args);
}

function navigation()
function navigation($missing)
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}

function databasesPrint()
function databasesPrint($missing)
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}

function tablesPrint()
function tablesPrint($tables)
{
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}

}
}
Loading

0 comments on commit 7815802

Please sign in to comment.