{"id":5322,"date":"2024-04-09T16:11:56","date_gmt":"2024-04-09T07:11:56","guid":{"rendered":"https:\/\/taitan916.info\/blog\/?p=5322"},"modified":"2024-03-04T17:10:20","modified_gmt":"2024-03-04T08:10:20","slug":"post-5322","status":"publish","type":"post","link":"https:\/\/taitan916.info\/blog\/archives\/5322","title":{"rendered":"\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u7ba1\u7406\u30c4\u30fc\u30eb\u300cAdminer\u300d\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u53ca\u3073\u30c6\u30fc\u30de\u306e\u5c0e\u5165\u65b9\u6cd5"},"content":{"rendered":"<p>\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u89e6\u308b\u969b\u306fAdminer.php\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u304c\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u72b6\u614b\u3060\u3068\u5272\u3068\u30b7\u30f3\u30d7\u30eb\u306a\u30c7\u30b6\u30a4\u30f3\u306a\u306e\u3067\u30c6\u30fc\u30de\u30d5\u30a1\u30a4\u30eb\u3092\u5c0e\u5165\u3057\u3066\u898b\u305f\u76ee\u3092\u5909\u3048\u305f\u3044\u3002\u3042\u3068\u30d7\u30e9\u30b0\u30a4\u30f3\u3082\u8272\u3005\u3068\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u306a\u306e\u3067\u3053\u3061\u3089\u3082\u5c0e\u5165\u3057\u305f\u3044\u3002\u4ee5\u4e0b\u306b\u305d\u308c\u305e\u308c\u306e\u5c0e\u5165\u65b9\u6cd5\u3092\u30e1\u30e2\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>Adminer<\/h2>\n<h3>\u516c\u5f0f\u30b5\u30a4\u30c8<\/h3>\n<p><a href=\"https:\/\/www.adminer.org\/en\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.adminer.org\/en\/<\/a><\/p>\n<h3>\u30c6\u30fc\u30de<\/h3>\n<p><a href=\"https:\/\/www.adminer.org\/en\/#extras\" target=\"_blank\" rel=\"noopener\">https:\/\/www.adminer.org\/en\/#extras<\/a><\/p>\n<h3>\u30d7\u30e9\u30b0\u30a4\u30f3<\/h3>\n<p><a href=\"https:\/\/www.adminer.org\/en\/plugins\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.adminer.org\/en\/plugins\/<\/a><\/p>\n<p>&nbsp;<\/p>\n<h2>\u5c0e\u5165\u65b9\u6cd5<\/h2>\n<h3>\u30c6\u30fc\u30de<\/h3>\n<p><a href=\"https:\/\/www.adminer.org\/en\/#extras\" target=\"_blank\" rel=\"noopener\">\u516c\u5f0f\u30b5\u30a4\u30c8<\/a>\u304b\u3089\u597d\u304d\u306a\u30c6\u30fc\u30de\u3092\u9078\u629e\u3057\u3001\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u305d\u306e\u307e\u307e\u30b3\u30d4\u30fc\u3057\u3066adminer.css\u3068\u3044\u3046\u540d\u524d\u3067adminer.php\u3068\u540c\u3058\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u3067\u53cd\u6620\u3055\u308c\u308b\u7b48\u3002<\/p>\n<h3>\u30d7\u30e9\u30b0\u30a4\u30f3<\/h3>\n<h4>\u4e8b\u524d\u6e96\u5099<\/h4>\n<p>adminer.php\u3068\u540c\u3058\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u300cplugins\u300d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3059\u308b\u3002<\/p>\n<p><a href=\"https:\/\/raw.githubusercontent.com\/vrana\/adminer\/master\/plugins\/plugin.php\" target=\"_blank\" rel=\"noopener\">\u3053\u3061\u3089\u306e\u30da\u30fc\u30b8<\/a>\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u305d\u306e\u307e\u307e\u30b3\u30d4\u30fc\u3057plugins.php\u3068\u3044\u3046\u540d\u524d\u3067\u300cplugins\u300d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u3002<\/p>\n<h4>\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u5c0e\u5165<\/h4>\n<p><a href=\"https:\/\/www.adminer.org\/en\/plugins\/\" target=\"_blank\" rel=\"noopener\">\u3053\u3061\u3089\u306e\u30da\u30fc\u30b8<\/a>\u304b\u3089\u597d\u304d\u306a\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u9078\u629e\u3057\u3001\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u305d\u306e\u307e\u307e\u30b3\u30d4\u30fc\u3057\u3066\u9069\u5f53\u306a\u540d\u524d\u3092\u4ed8\u3051\u3066\u300cplugins\u300d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u3002<\/p>\n<p>\u307e\u305f\u3001\u4ee5\u4e0b\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092index.php\u3068\u3044\u3046\u540d\u524d\u3067adminer.php\u3068\u540c\u3058\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">&lt;?php\r\nfunction adminer_object() {\r\n    include_once \".\/plugins\/plugin.php\";\r\n    \r\n    foreach (glob(\"plugins\/*.php\") as $filename) {\r\n        include_once \".\/$filename\";\r\n    }\r\n\r\n    $plugins = array(\r\n        \/\/\u9078\u629e\u3057\u305f\u30d7\u30e9\u30b0\u30a4\u30f3\u306eClass\u540d\u3092\u8ffd\u8a18\u3057\u3066\u3044\u304f\r\n        new testClass(),\r\n    );\r\n\r\n    return new AdminerPlugin($plugins);\r\n}\r\n\r\n\/\/ include original Adminer or Adminer Editor\r\ninclude \".\/adminer.php\";\r\n?&gt;<\/pre>\n<p>\u3053\u3053\u307e\u3067\u3067\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u5c0e\u5165\u306f\u5b8c\u4e86\u3002\u30d6\u30e9\u30a6\u30b6\u3067\u95b2\u89a7\u3059\u308b\u969b\u306fadminer.php\u3067\u306f\u306a\u304findex.php\u3092\u958b\u304f\u3053\u3068\u3002<\/p>\n<h4>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u9020<\/h4>\n<p>\u30c6\u30fc\u30de\u3068\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u5c0e\u5165\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u9020\u306b\u306a\u308b\u7b48\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">index.php\r\nadminer.php\r\nadminer.css(\u30c6\u30fc\u30de\u30d5\u30a1\u30a4\u30eb)\r\n\u2514plugins\/\r\n\u3000\u251cplugin.php\r\n\u3000\u2514\u597d\u304d\u306a\u30d7\u30e9\u30b0\u30a4\u30f3.php<\/pre>\n<p>&nbsp;<\/p>\n<h2>\u6240\u611f<\/h2>\n<p>\u30c6\u30fc\u30de\u306f\u5206\u304b\u308a\u3084\u3059\u304b\u3063\u305f\u304c\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u5c0e\u5165\u306f\u3061\u3087\u3063\u3068\u3084\u3084\u3053\u3057\u304b\u3063\u305f\u3002<\/p>\n<p>\u30d7\u30e9\u30b0\u30a4\u30f3\u81ea\u4f53\u306f\u3082\u3061\u308d\u3093<a href=\"https:\/\/blog.capilano-fw.com\/?p=12131\" target=\"_blank\" rel=\"noopener\">\u81ea\u4f5c\u3082\u53ef\u80fd<\/a>\u306a\u3088\u3046\u306a\u306e\u3067\u4f55\u304b\u601d\u3044\u3064\u3044\u305f\u3089\u4f5c\u3063\u3066\u307f\u305f\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u89e6\u308b\u969b\u306fAdminer.php\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u304c\u3001\u30c7\u30d5\u30a9 ... <\/p>\n","protected":false},"author":1,"featured_media":5323,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[66],"tags":[],"class_list":["post-5322","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-database"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts\/5322","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/comments?post=5322"}],"version-history":[{"count":5,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts\/5322\/revisions"}],"predecessor-version":[{"id":5327,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts\/5322\/revisions\/5327"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/media\/5323"}],"wp:attachment":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/media?parent=5322"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/categories?post=5322"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/tags?post=5322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}