update adminer and adapt plugins to new version
This commit is contained in:
parent
5659ab8524
commit
f66a311358
15 changed files with 1411 additions and 1975 deletions
|
|
@ -1,24 +0,0 @@
|
|||
<?php
|
||||
|
||||
/** Display serialize() values as table in edit
|
||||
* @link https://www.adminer.org/plugins/#use
|
||||
* @author Pau Capó, https://www.paucapo.com/
|
||||
* @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)
|
||||
*/
|
||||
class AdminerSerializedColumn {
|
||||
|
||||
function serialized_value($data) {
|
||||
echo '<pre disabled style="max-height:300px;overflow:auto;">';
|
||||
var_export($data);
|
||||
echo '</pre>';
|
||||
}
|
||||
|
||||
function editInput($table, $field, $attrs, $value) {
|
||||
$unserialized = @unserialize($value);
|
||||
if ($unserialized && $unserialized !== $value) {
|
||||
$this->serialized_value($unserialized);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue