{"id":167,"date":"2017-01-09T12:00:49","date_gmt":"2017-01-09T03:00:49","guid":{"rendered":"https:\/\/pocolog.bass-world.net\/tech\/?p=167"},"modified":"2017-01-09T12:00:49","modified_gmt":"2017-01-09T03:00:49","slug":"fswiki-recent-update","status":"publish","type":"post","link":"https:\/\/pocolog.bass-world.net\/tech\/2017\/fswiki-recent-update\/","title":{"rendered":"FreeStyle Wiki\u306b\u66f4\u65b0\u5c65\u6b74\u3092\u8868\u793a\u3059\u308b"},"content":{"rendered":"\n<p>FreeStyle Wiki(FSWiki)\u306e\u30c8\u30c3\u30d7\u30da\u30fc\u30b8(FrontPage)\u306b\u3001\u6295\u7a3f\u306e\u66f4\u65b0\u5c65\u6b74(\u5909\u66f4\u5c65\u6b74)\u3092\u8868\u793a\u3059\u308b\u3088\u3046\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u6539\u9020\u3057\u307e\u3057\u305f\u3002<br>\u304b\u306a\u308a\u624b\u3092\u629c\u3044\u3066\u307e\u3059\u3002\u30d7\u30e9\u30b0\u30a4\u30f3\u3058\u3083\u3042\u308a\u307e\u305b\u3093\u3002patch\u30d5\u30a1\u30a4\u30eb\u306e\u63d0\u4f9b\u3082\u3042\u308a\u307e\u305b\u3093\u3002\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u76f4\u63a5\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<!--more-->\n\n\n\n<h3 class=\"wp-block-heading\">\u30da\u30fc\u30b8\u306e\u66f4\u65b0\u5c65\u6b74\u3092\u30d5\u30a1\u30a4\u30eb\u306b\u4fdd\u5b58\u3059\u308b\u3002<\/h3>\n\n\n\n<p>\u30da\u30fc\u30b8\u66f4\u65b0\u6642\u306b\u3001\u66f4\u65b0\u5c65\u6b74\u4fdd\u6301\u7528\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304d\u8fbc\u307f\u307e\u3059\u3002<br>cgi-bin\/FSWiki\/lib\/Wiki.pm\u3092\u4fee\u6b63\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<blockquote><pre><code>sub save_page {<br>\n(\u4e2d\u7565)<br>\n\t# \u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u307f\u76f4\u3059<br>\n\t$content = $self-&gt;get_CGI()-&gt;param(\"content\");<br>\n\t<br>\n\tif($self-&gt;{\"storage\"}-&gt;save_page($pagename,$content,$sage)){<br>\n\t\tif($content ne \"\"){<br>\n\t\t\t$self-&gt;do_hook(\"save_after\");<br>\n\t\t\t<em>#\u4fee\u6b63\u958b\u59cb<br>\n\t\t\tmy($d, $m, $y) = (localtime(time))[3..5];<br>\n\t\t\t$y += 1900;<br>\n\t\t\t$m++;<br><\/em>\n my $line = \"$y.$m.$d - [[$pagename]]\\n\"; #\u66f4\u65b0\u60c5\u5831\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\n\n my $exist = 0;\n open(RECENT, \"&lt;\/FULL\/PATH\/TO\/CGI-BIN\/FSWIKI\/data\/recentupdate.wiki&quot;);\n\n my @updates;\n\n @updates = ;\n\n close(RECENT);\n\n foreach my $update(@updates){\n\n if($line eq $update){\n\n $exist = 1;\n\n }\n\n }\n\n if($exist == 0){ #\u540c\u3058\u30d5\u30a1\u30a4\u30eb\u30fb\u540c\u3058\u65e5\u4ed8\u306e\u6642\u306f\u30d5\u30a1\u30a4\u30eb\u3092\u66f4\u65b0\u3057\u306a\u3044\n\n unshift(@updates, $line);\n\n open(RECENT, \"&gt;\/FULL\/PATH\/TO\/CGI-BIN\/FSWIKI\/data\/recentupdate.wiki\");\n\n print(RECENT @updates);\n\n close(RECENT);\n\n }\n\n #\u4fee\u6b63\u7d42\u4e86\n } else {\n\n $self-&gt;do_hook(\"delete\");\n\n }\n\n (\u5f8c\u7565)\n\n }\n\n}\n<\/code><\/pre><\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u3092Wiki\u4e0a\u3067\u4fee\u6b63\u3059\u308b<\/h3>\n\n\n\n<p>\u30c8\u30c3\u30d7\u30da\u30fc\u30b8(FrontPage)\u3092\u7de8\u96c6\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u5185\u5bb9\u3092\u8ffd\u8a18\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<blockquote><pre><code>!!!\u66f4\u65b0\u60c5\u5831\n{{include \"recentupdate\"}}<\/code><\/pre><\/blockquote>\n\n\n\n<p>\u3053\u308c\u3067\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u306b\u66f4\u65b0\u60c5\u5831\u304c\u8868\u793a\u3055\u308c\u308b\u306f\u305a\u3067\u3059\u3002<br>\u3082\u3057\u300c\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308a\u307e\u305b\u3093\u300d\u304c\u51fa\u305f\u3089\u3001\u300crecentupdate\u300d\u30da\u30fc\u30b8\u3092\u65b0\u898f\u3067\u4f5c\u6210\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u304a\u307e\u3051<\/h3>\n\n\n\n<p>\u66f4\u65b0\u30d5\u30a1\u30a4\u30eb\u304c\u3067\u304d\u305f\u3053\u3068\u3060\u3057\u3001\u81ea\u30b5\u30a4\u30c8\u306e\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u306b\u6700\u65b0\u5909\u66f4\u65e5\u6642\u3092\u8868\u793a\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n&lt;blockquote<code class=\"is-layout-flow wp-block-quote-is-layout-flow\">&lt;!--#flastmod virtual=\".\/<em>CGI-BIN\/FSWIKI<\/em>\/data\/recentupdate.wiki\"--&gt;<\/code><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>FreeStyle Wiki(FSWiki)\u306e\u30c8\u30c3\u30d7\u30da\u30fc\u30b8(FrontPage)\u306b\u3001\u6295\u7a3f\u306e\u66f4\u65b0\u5c65\u6b74(\u5909\u66f4\u5c65\u6b74)\u3092\u8868\u793a\u3059\u308b\u3088\u3046\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u6539\u9020\u3057\u307e\u3057\u305f\u3002\u304b\u306a\u308a\u624b\u3092\u629c\u3044\u3066\u307e\u3059\u3002\u30d7\u30e9\u30b0\u30a4\u30f3\u3058\u3083\u3042\u308a\u307e\u305b\u3093\u3002patch\u30d5\u30a1\u30a4\u30eb\u306e\u63d0 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/pocolog.bass-world.net\/tech\/2017\/fswiki-recent-update\/\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;FreeStyle Wiki\u306b\u66f4\u65b0\u5c65\u6b74\u3092\u8868\u793a\u3059\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,7,10,11,17],"tags":[],"class_list":["post-167","post","type-post","status-publish","format-standard","hentry","category-apache","category-html","category-linux","category-perl","category-17"],"_links":{"self":[{"href":"https:\/\/pocolog.bass-world.net\/tech\/wp-json\/wp\/v2\/posts\/167","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pocolog.bass-world.net\/tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pocolog.bass-world.net\/tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pocolog.bass-world.net\/tech\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pocolog.bass-world.net\/tech\/wp-json\/wp\/v2\/comments?post=167"}],"version-history":[{"count":0,"href":"https:\/\/pocolog.bass-world.net\/tech\/wp-json\/wp\/v2\/posts\/167\/revisions"}],"wp:attachment":[{"href":"https:\/\/pocolog.bass-world.net\/tech\/wp-json\/wp\/v2\/media?parent=167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pocolog.bass-world.net\/tech\/wp-json\/wp\/v2\/categories?post=167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pocolog.bass-world.net\/tech\/wp-json\/wp\/v2\/tags?post=167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}