From: Jakub Vrana Date: Wed, 3 Apr 2013 01:49:32 +0000 (-0700) Subject: Plugin for displaying JSON data X-Git-Tag: v3.6.4~33 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=0cd85c1ce97a2adbadf145ef6f85c660489db7be;p=adminer.git Plugin for displaying JSON data --- diff --git a/adminer/plugin.php b/adminer/plugin.php index 534b50f1..0e94373c 100644 --- a/adminer/plugin.php +++ b/adminer/plugin.php @@ -19,6 +19,7 @@ function adminer_object() { //~ new AdminerTinymce("../externals/tinymce/jscripts/tiny_mce/tiny_mce_dev.js"), //~ new AdminerWymeditor(array("../externals/wymeditor/src/jquery/jquery.js", "../externals/wymeditor/src/wymeditor/jquery.wymeditor.js", "../externals/wymeditor/src/wymeditor/jquery.wymeditor.explorer.js", "../externals/wymeditor/src/wymeditor/jquery.wymeditor.mozilla.js", "../externals/wymeditor/src/wymeditor/jquery.wymeditor.opera.js", "../externals/wymeditor/src/wymeditor/jquery.wymeditor.safari.js")), new AdminerFileUpload(""), + new AdminerJsonColumn, new AdminerSlugify, new AdminerTranslation, new AdminerForeignSystem, diff --git a/plugins/json-column.php b/plugins/json-column.php new file mode 100644 index 00000000..2bb09770 --- /dev/null +++ b/plugins/json-column.php @@ -0,0 +1,21 @@ +"; + foreach ($json as $key => $val) { + echo "" . h($key) . "" . h(json_encode($val)) . ""; + } + echo ""; + } + } + +}