From 87296c5541cf57c11ddcda9387385e83a433504b Mon Sep 17 00:00:00 2001 From: crazy-max Date: Thu, 24 Nov 2016 19:28:44 +0100 Subject: [PATCH] Bug on PHP 7.x cause plugin.php was not updated to the latest version. (Issue #169) --- CHANGELOG.md | 4 + bin/adminer4.1.0/plugins/plugin.php | 670 ++++++++++++++-------------- bin/adminer4.2.4/plugins/plugin.php | 670 ++++++++++++++-------------- bin/adminer4.2.5/plugins/plugin.php | 670 ++++++++++++++-------------- build.properties | 2 +- releases.properties | 6 +- 6 files changed, 1013 insertions(+), 1009 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d21b573..5feb983 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ### [Check compatibility with Neard](https://github.com/crazy-max/neard/wiki/appAdminer#latest) before downloading. +## r5 (2016/11/24) + +* Bug on PHP 7.x cause plugin.php was not updated to the latest version. ([Issue #169](https://github.com/crazy-max/neard/issues/169)) + ## r4 (2016/10/07) * Handle MySQL and PostgreSQL with [login-servers-enhanced](https://github.com/crazy-max/login-servers-enhanced) plugin diff --git a/bin/adminer4.1.0/plugins/plugin.php b/bin/adminer4.1.0/plugins/plugin.php index c0a0bd5..9cab830 100644 --- a/bin/adminer4.1.0/plugins/plugin.php +++ b/bin/adminer4.1.0/plugins/plugin.php @@ -1,345 +1,345 @@ _findRootClass($class), 'Adminer')) { //! can use interface - $plugins[$class] = new $class; - } - } - } - $this->plugins = $plugins; - //! it is possible to use ReflectionObject to find out which plugins defines which methods at once - } - - function _callParent($function, $args) { - return call_user_func_array(array('parent', $function), $args); - } - - function _applyPlugin($function, $args) { - foreach ($this->plugins as $plugin) { - if (method_exists($plugin, $function)) { - switch (count($args)) { // call_user_func_array() doesn't work well with references - case 0: $return = $plugin->$function(); break; - case 1: $return = $plugin->$function($args[0]); break; - case 2: $return = $plugin->$function($args[0], $args[1]); break; - case 3: $return = $plugin->$function($args[0], $args[1], $args[2]); break; - case 4: $return = $plugin->$function($args[0], $args[1], $args[2], $args[3]); break; - case 5: $return = $plugin->$function($args[0], $args[1], $args[2], $args[3], $args[4]); break; - case 6: $return = $plugin->$function($args[0], $args[1], $args[2], $args[3], $args[4], $args[5]); break; - default: trigger_error('Too many parameters.', E_USER_WARNING); - } - if ($return !== null) { - return $return; - } - } - } - return $this->_callParent($function, $args); - } - - function _appendPlugin($function, $args) { - $return = $this->_callParent($function, $args); - foreach ($this->plugins as $plugin) { - if (method_exists($plugin, $function)) { - $return += call_user_func_array(array($plugin, $function), $args); - } - } - return $return; - } - - // appendPlugin - - function dumpFormat() { - $args = func_get_args(); - return $this->_appendPlugin(__FUNCTION__, $args); - } - - function dumpOutput() { - $args = func_get_args(); - return $this->_appendPlugin(__FUNCTION__, $args); - } - - function editFunctions() { - $args = func_get_args(); - return $this->_appendPlugin(__FUNCTION__, $args); - } - - // applyPlugin - - function name() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function credentials() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function permanentLogin() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function database() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function schemas() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function databases() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function queryTimeout() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function headers() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function head() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function loginForm() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function login() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function tableName() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function fieldName() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectLinks() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function foreignKeys() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function backwardKeys() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function backwardKeysPrint() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectQuery() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function rowDescription() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function rowDescriptions() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectLink() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectVal() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function editVal() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectColumnsPrint() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectSearchPrint() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectOrderPrint() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectLimitPrint() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectLengthPrint() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectActionPrint() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectCommandPrint() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectImportPrint() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectEmailPrint() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectColumnsProcess() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectSearchProcess() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectOrderProcess() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectLimitProcess() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectLengthProcess() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectEmailProcess() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectQueryBuild() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function messageQuery() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function editInput() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function processInput() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function dumpDatabase() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function dumpTable() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function dumpData() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function dumpFilename() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function dumpHeaders() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function homepage() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function navigation() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function databasesPrint() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function tablesPrint() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } + /** @access protected */ + var $plugins; + + function _findRootClass($class) { // is_subclass_of(string, string) is available since PHP 5.0.3 + do { + $return = $class; + } while ($class = get_parent_class($class)); + return $return; + } + + /** Register plugins + * @param array object instances or null to register all classes starting by 'Adminer' + */ + function __construct($plugins) { + if ($plugins === null) { + $plugins = array(); + foreach (get_declared_classes() as $class) { + if (preg_match('~^Adminer.~i', $class) && strcasecmp($this->_findRootClass($class), 'Adminer')) { //! can use interface + $plugins[$class] = new $class; + } + } + } + $this->plugins = $plugins; + //! it is possible to use ReflectionObject to find out which plugins defines which methods at once + } + + function _callParent($function, $args) { + return call_user_func_array(array('parent', $function), $args); + } + + function _applyPlugin($function, $args) { + foreach ($this->plugins as $plugin) { + if (method_exists($plugin, $function)) { + switch (count($args)) { // call_user_func_array() doesn't work well with references + case 0: $return = $plugin->$function(); break; + case 1: $return = $plugin->$function($args[0]); break; + case 2: $return = $plugin->$function($args[0], $args[1]); break; + case 3: $return = $plugin->$function($args[0], $args[1], $args[2]); break; + case 4: $return = $plugin->$function($args[0], $args[1], $args[2], $args[3]); break; + case 5: $return = $plugin->$function($args[0], $args[1], $args[2], $args[3], $args[4]); break; + case 6: $return = $plugin->$function($args[0], $args[1], $args[2], $args[3], $args[4], $args[5]); break; + default: trigger_error('Too many parameters.', E_USER_WARNING); + } + if ($return !== null) { + return $return; + } + } + } + return $this->_callParent($function, $args); + } + + function _appendPlugin($function, $args) { + $return = $this->_callParent($function, $args); + foreach ($this->plugins as $plugin) { + if (method_exists($plugin, $function)) { + $return += call_user_func_array(array($plugin, $function), $args); + } + } + return $return; + } + + // appendPlugin + + function dumpFormat() { + $args = func_get_args(); + return $this->_appendPlugin(__FUNCTION__, $args); + } + + function dumpOutput() { + $args = func_get_args(); + return $this->_appendPlugin(__FUNCTION__, $args); + } + + function editFunctions($field) { + $args = func_get_args(); + return $this->_appendPlugin(__FUNCTION__, $args); + } + + // applyPlugin + + function name() { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function credentials() { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function permanentLogin($create = false) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function database() { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function schemas() { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function databases($flush = true) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function queryTimeout() { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function headers() { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function head() { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function loginForm() { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + 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 foreignKeys($table) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function backwardKeys($table, $tableName) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function backwardKeysPrint($backwardKeys, $row) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectQuery($query, $time) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function rowDescription($table) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function rowDescriptions($rows, $foreignKeys) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectLink($val, $field) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectVal($val, $link, $field, $original) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function editVal($val, $field) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectColumnsPrint($select, $columns) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectSearchPrint($where, $columns, $indexes) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectOrderPrint($order, $columns, $indexes) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectLimitPrint($limit) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectLengthPrint($text_length) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectActionPrint($indexes) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectCommandPrint() { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectImportPrint() { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectEmailPrint($emailFields, $columns) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectColumnsProcess($columns, $indexes) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectSearchProcess($fields, $indexes) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectOrderProcess($fields, $indexes) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectLimitProcess() { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectLengthProcess() { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectEmailProcess($where, $foreignKeys) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectQueryBuild($select, $where, $group, $order, $limit, $page) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function messageQuery($query, $time) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function editInput($table, $field, $attrs, $value) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function processInput($field, $value, $function = "") { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function dumpDatabase($db) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function dumpTable($table, $style, $is_view = 0) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function dumpData($table, $style, $query) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function dumpFilename($identifier) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function dumpHeaders($identifier, $multi_table = false) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function homepage() { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function navigation($missing) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function databasesPrint($missing) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function tablesPrint($tables) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } } diff --git a/bin/adminer4.2.4/plugins/plugin.php b/bin/adminer4.2.4/plugins/plugin.php index c0a0bd5..9cab830 100644 --- a/bin/adminer4.2.4/plugins/plugin.php +++ b/bin/adminer4.2.4/plugins/plugin.php @@ -1,345 +1,345 @@ _findRootClass($class), 'Adminer')) { //! can use interface - $plugins[$class] = new $class; - } - } - } - $this->plugins = $plugins; - //! it is possible to use ReflectionObject to find out which plugins defines which methods at once - } - - function _callParent($function, $args) { - return call_user_func_array(array('parent', $function), $args); - } - - function _applyPlugin($function, $args) { - foreach ($this->plugins as $plugin) { - if (method_exists($plugin, $function)) { - switch (count($args)) { // call_user_func_array() doesn't work well with references - case 0: $return = $plugin->$function(); break; - case 1: $return = $plugin->$function($args[0]); break; - case 2: $return = $plugin->$function($args[0], $args[1]); break; - case 3: $return = $plugin->$function($args[0], $args[1], $args[2]); break; - case 4: $return = $plugin->$function($args[0], $args[1], $args[2], $args[3]); break; - case 5: $return = $plugin->$function($args[0], $args[1], $args[2], $args[3], $args[4]); break; - case 6: $return = $plugin->$function($args[0], $args[1], $args[2], $args[3], $args[4], $args[5]); break; - default: trigger_error('Too many parameters.', E_USER_WARNING); - } - if ($return !== null) { - return $return; - } - } - } - return $this->_callParent($function, $args); - } - - function _appendPlugin($function, $args) { - $return = $this->_callParent($function, $args); - foreach ($this->plugins as $plugin) { - if (method_exists($plugin, $function)) { - $return += call_user_func_array(array($plugin, $function), $args); - } - } - return $return; - } - - // appendPlugin - - function dumpFormat() { - $args = func_get_args(); - return $this->_appendPlugin(__FUNCTION__, $args); - } - - function dumpOutput() { - $args = func_get_args(); - return $this->_appendPlugin(__FUNCTION__, $args); - } - - function editFunctions() { - $args = func_get_args(); - return $this->_appendPlugin(__FUNCTION__, $args); - } - - // applyPlugin - - function name() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function credentials() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function permanentLogin() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function database() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function schemas() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function databases() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function queryTimeout() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function headers() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function head() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function loginForm() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function login() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function tableName() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function fieldName() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectLinks() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function foreignKeys() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function backwardKeys() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function backwardKeysPrint() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectQuery() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function rowDescription() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function rowDescriptions() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectLink() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectVal() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function editVal() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectColumnsPrint() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectSearchPrint() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectOrderPrint() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectLimitPrint() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectLengthPrint() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectActionPrint() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectCommandPrint() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectImportPrint() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectEmailPrint() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectColumnsProcess() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectSearchProcess() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectOrderProcess() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectLimitProcess() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectLengthProcess() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectEmailProcess() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectQueryBuild() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function messageQuery() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function editInput() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function processInput() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function dumpDatabase() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function dumpTable() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function dumpData() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function dumpFilename() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function dumpHeaders() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function homepage() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function navigation() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function databasesPrint() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function tablesPrint() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } + /** @access protected */ + var $plugins; + + function _findRootClass($class) { // is_subclass_of(string, string) is available since PHP 5.0.3 + do { + $return = $class; + } while ($class = get_parent_class($class)); + return $return; + } + + /** Register plugins + * @param array object instances or null to register all classes starting by 'Adminer' + */ + function __construct($plugins) { + if ($plugins === null) { + $plugins = array(); + foreach (get_declared_classes() as $class) { + if (preg_match('~^Adminer.~i', $class) && strcasecmp($this->_findRootClass($class), 'Adminer')) { //! can use interface + $plugins[$class] = new $class; + } + } + } + $this->plugins = $plugins; + //! it is possible to use ReflectionObject to find out which plugins defines which methods at once + } + + function _callParent($function, $args) { + return call_user_func_array(array('parent', $function), $args); + } + + function _applyPlugin($function, $args) { + foreach ($this->plugins as $plugin) { + if (method_exists($plugin, $function)) { + switch (count($args)) { // call_user_func_array() doesn't work well with references + case 0: $return = $plugin->$function(); break; + case 1: $return = $plugin->$function($args[0]); break; + case 2: $return = $plugin->$function($args[0], $args[1]); break; + case 3: $return = $plugin->$function($args[0], $args[1], $args[2]); break; + case 4: $return = $plugin->$function($args[0], $args[1], $args[2], $args[3]); break; + case 5: $return = $plugin->$function($args[0], $args[1], $args[2], $args[3], $args[4]); break; + case 6: $return = $plugin->$function($args[0], $args[1], $args[2], $args[3], $args[4], $args[5]); break; + default: trigger_error('Too many parameters.', E_USER_WARNING); + } + if ($return !== null) { + return $return; + } + } + } + return $this->_callParent($function, $args); + } + + function _appendPlugin($function, $args) { + $return = $this->_callParent($function, $args); + foreach ($this->plugins as $plugin) { + if (method_exists($plugin, $function)) { + $return += call_user_func_array(array($plugin, $function), $args); + } + } + return $return; + } + + // appendPlugin + + function dumpFormat() { + $args = func_get_args(); + return $this->_appendPlugin(__FUNCTION__, $args); + } + + function dumpOutput() { + $args = func_get_args(); + return $this->_appendPlugin(__FUNCTION__, $args); + } + + function editFunctions($field) { + $args = func_get_args(); + return $this->_appendPlugin(__FUNCTION__, $args); + } + + // applyPlugin + + function name() { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function credentials() { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function permanentLogin($create = false) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function database() { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function schemas() { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function databases($flush = true) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function queryTimeout() { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function headers() { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function head() { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function loginForm() { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + 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 foreignKeys($table) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function backwardKeys($table, $tableName) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function backwardKeysPrint($backwardKeys, $row) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectQuery($query, $time) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function rowDescription($table) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function rowDescriptions($rows, $foreignKeys) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectLink($val, $field) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectVal($val, $link, $field, $original) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function editVal($val, $field) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectColumnsPrint($select, $columns) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectSearchPrint($where, $columns, $indexes) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectOrderPrint($order, $columns, $indexes) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectLimitPrint($limit) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectLengthPrint($text_length) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectActionPrint($indexes) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectCommandPrint() { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectImportPrint() { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectEmailPrint($emailFields, $columns) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectColumnsProcess($columns, $indexes) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectSearchProcess($fields, $indexes) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectOrderProcess($fields, $indexes) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectLimitProcess() { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectLengthProcess() { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectEmailProcess($where, $foreignKeys) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectQueryBuild($select, $where, $group, $order, $limit, $page) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function messageQuery($query, $time) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function editInput($table, $field, $attrs, $value) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function processInput($field, $value, $function = "") { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function dumpDatabase($db) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function dumpTable($table, $style, $is_view = 0) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function dumpData($table, $style, $query) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function dumpFilename($identifier) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function dumpHeaders($identifier, $multi_table = false) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function homepage() { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function navigation($missing) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function databasesPrint($missing) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function tablesPrint($tables) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } } diff --git a/bin/adminer4.2.5/plugins/plugin.php b/bin/adminer4.2.5/plugins/plugin.php index c0a0bd5..9cab830 100644 --- a/bin/adminer4.2.5/plugins/plugin.php +++ b/bin/adminer4.2.5/plugins/plugin.php @@ -1,345 +1,345 @@ _findRootClass($class), 'Adminer')) { //! can use interface - $plugins[$class] = new $class; - } - } - } - $this->plugins = $plugins; - //! it is possible to use ReflectionObject to find out which plugins defines which methods at once - } - - function _callParent($function, $args) { - return call_user_func_array(array('parent', $function), $args); - } - - function _applyPlugin($function, $args) { - foreach ($this->plugins as $plugin) { - if (method_exists($plugin, $function)) { - switch (count($args)) { // call_user_func_array() doesn't work well with references - case 0: $return = $plugin->$function(); break; - case 1: $return = $plugin->$function($args[0]); break; - case 2: $return = $plugin->$function($args[0], $args[1]); break; - case 3: $return = $plugin->$function($args[0], $args[1], $args[2]); break; - case 4: $return = $plugin->$function($args[0], $args[1], $args[2], $args[3]); break; - case 5: $return = $plugin->$function($args[0], $args[1], $args[2], $args[3], $args[4]); break; - case 6: $return = $plugin->$function($args[0], $args[1], $args[2], $args[3], $args[4], $args[5]); break; - default: trigger_error('Too many parameters.', E_USER_WARNING); - } - if ($return !== null) { - return $return; - } - } - } - return $this->_callParent($function, $args); - } - - function _appendPlugin($function, $args) { - $return = $this->_callParent($function, $args); - foreach ($this->plugins as $plugin) { - if (method_exists($plugin, $function)) { - $return += call_user_func_array(array($plugin, $function), $args); - } - } - return $return; - } - - // appendPlugin - - function dumpFormat() { - $args = func_get_args(); - return $this->_appendPlugin(__FUNCTION__, $args); - } - - function dumpOutput() { - $args = func_get_args(); - return $this->_appendPlugin(__FUNCTION__, $args); - } - - function editFunctions() { - $args = func_get_args(); - return $this->_appendPlugin(__FUNCTION__, $args); - } - - // applyPlugin - - function name() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function credentials() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function permanentLogin() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function database() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function schemas() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function databases() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function queryTimeout() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function headers() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function head() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function loginForm() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function login() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function tableName() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function fieldName() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectLinks() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function foreignKeys() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function backwardKeys() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function backwardKeysPrint() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectQuery() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function rowDescription() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function rowDescriptions() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectLink() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectVal() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function editVal() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectColumnsPrint() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectSearchPrint() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectOrderPrint() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectLimitPrint() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectLengthPrint() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectActionPrint() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectCommandPrint() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectImportPrint() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectEmailPrint() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectColumnsProcess() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectSearchProcess() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectOrderProcess() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectLimitProcess() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectLengthProcess() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectEmailProcess() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function selectQueryBuild() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function messageQuery() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function editInput() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function processInput() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function dumpDatabase() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function dumpTable() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function dumpData() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function dumpFilename() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function dumpHeaders() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function homepage() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function navigation() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function databasesPrint() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } - - function tablesPrint() { - $args = func_get_args(); - return $this->_applyPlugin(__FUNCTION__, $args); - } + /** @access protected */ + var $plugins; + + function _findRootClass($class) { // is_subclass_of(string, string) is available since PHP 5.0.3 + do { + $return = $class; + } while ($class = get_parent_class($class)); + return $return; + } + + /** Register plugins + * @param array object instances or null to register all classes starting by 'Adminer' + */ + function __construct($plugins) { + if ($plugins === null) { + $plugins = array(); + foreach (get_declared_classes() as $class) { + if (preg_match('~^Adminer.~i', $class) && strcasecmp($this->_findRootClass($class), 'Adminer')) { //! can use interface + $plugins[$class] = new $class; + } + } + } + $this->plugins = $plugins; + //! it is possible to use ReflectionObject to find out which plugins defines which methods at once + } + + function _callParent($function, $args) { + return call_user_func_array(array('parent', $function), $args); + } + + function _applyPlugin($function, $args) { + foreach ($this->plugins as $plugin) { + if (method_exists($plugin, $function)) { + switch (count($args)) { // call_user_func_array() doesn't work well with references + case 0: $return = $plugin->$function(); break; + case 1: $return = $plugin->$function($args[0]); break; + case 2: $return = $plugin->$function($args[0], $args[1]); break; + case 3: $return = $plugin->$function($args[0], $args[1], $args[2]); break; + case 4: $return = $plugin->$function($args[0], $args[1], $args[2], $args[3]); break; + case 5: $return = $plugin->$function($args[0], $args[1], $args[2], $args[3], $args[4]); break; + case 6: $return = $plugin->$function($args[0], $args[1], $args[2], $args[3], $args[4], $args[5]); break; + default: trigger_error('Too many parameters.', E_USER_WARNING); + } + if ($return !== null) { + return $return; + } + } + } + return $this->_callParent($function, $args); + } + + function _appendPlugin($function, $args) { + $return = $this->_callParent($function, $args); + foreach ($this->plugins as $plugin) { + if (method_exists($plugin, $function)) { + $return += call_user_func_array(array($plugin, $function), $args); + } + } + return $return; + } + + // appendPlugin + + function dumpFormat() { + $args = func_get_args(); + return $this->_appendPlugin(__FUNCTION__, $args); + } + + function dumpOutput() { + $args = func_get_args(); + return $this->_appendPlugin(__FUNCTION__, $args); + } + + function editFunctions($field) { + $args = func_get_args(); + return $this->_appendPlugin(__FUNCTION__, $args); + } + + // applyPlugin + + function name() { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function credentials() { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function permanentLogin($create = false) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function database() { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function schemas() { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function databases($flush = true) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function queryTimeout() { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function headers() { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function head() { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function loginForm() { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + 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 foreignKeys($table) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function backwardKeys($table, $tableName) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function backwardKeysPrint($backwardKeys, $row) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectQuery($query, $time) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function rowDescription($table) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function rowDescriptions($rows, $foreignKeys) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectLink($val, $field) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectVal($val, $link, $field, $original) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function editVal($val, $field) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectColumnsPrint($select, $columns) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectSearchPrint($where, $columns, $indexes) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectOrderPrint($order, $columns, $indexes) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectLimitPrint($limit) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectLengthPrint($text_length) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectActionPrint($indexes) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectCommandPrint() { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectImportPrint() { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectEmailPrint($emailFields, $columns) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectColumnsProcess($columns, $indexes) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectSearchProcess($fields, $indexes) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectOrderProcess($fields, $indexes) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectLimitProcess() { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectLengthProcess() { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectEmailProcess($where, $foreignKeys) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function selectQueryBuild($select, $where, $group, $order, $limit, $page) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function messageQuery($query, $time) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function editInput($table, $field, $attrs, $value) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function processInput($field, $value, $function = "") { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function dumpDatabase($db) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function dumpTable($table, $style, $is_view = 0) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function dumpData($table, $style, $query) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function dumpFilename($identifier) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function dumpHeaders($identifier, $multi_table = false) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function homepage() { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function navigation($missing) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function databasesPrint($missing) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } + + function tablesPrint($tables) { + $args = func_get_args(); + return $this->_applyPlugin(__FUNCTION__, $args); + } } diff --git a/build.properties b/build.properties index 9c0e305..25f79cd 100644 --- a/build.properties +++ b/build.properties @@ -1,5 +1,5 @@ bundle.name = adminer -bundle.release = r4 +bundle.release = r5 bundle.type = apps bundle.format = 7z diff --git a/releases.properties b/releases.properties index 1ac355c..5973198 100644 --- a/releases.properties +++ b/releases.properties @@ -1,3 +1,3 @@ -4.1.0 = https://github.com/crazy-max/neard-app-adminer/releases/download/r4/neard-adminer-4.1.0-r4.7z -4.2.4 = https://github.com/crazy-max/neard-app-adminer/releases/download/r4/neard-adminer-4.2.4-r4.7z -4.2.5 = https://github.com/crazy-max/neard-app-adminer/releases/download/r4/neard-adminer-4.2.5-r4.7z +4.1.0 = https://github.com/crazy-max/neard-app-adminer/releases/download/r5/neard-adminer-4.1.0-r5.7z +4.2.4 = https://github.com/crazy-max/neard-app-adminer/releases/download/r5/neard-adminer-4.2.4-r5.7z +4.2.5 = https://github.com/crazy-max/neard-app-adminer/releases/download/r5/neard-adminer-4.2.5-r5.7z