pukiwiki をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
本webシステムで使っているCMSです.
本家様[[https://pukiwiki.osdn.jp/>+https://pukiwiki.osdn....
***SELinux [#j4cb1634]
CentOS8でどうしてもSElinuxを有効にする必要が生じた。
#code(nonumber){{
SELINUX=disabled
↓
SELINUX=enforcing
}}
と変更して、再起動を行ったら、こちらのpukiwikiページが下...
なってしまった。
#code(nonumber){{
Error message :
Directory is not found or not writable (DATA_DIR)
Directory is not found or not writable (DIFF_DIR)
Directory is not found or not writable (BACKUP_DIR)
Directory is not found or not writable (CACHE_DIR)
}}
原因はhttpdが書き込みをするのでそれがSELinuxの逆鱗に触れ...
っで、SELinuxに許しを請うように下記設定を(SELinuxに)加えた
#code(nonumber){{
[root@c ~]# yum install policycoreutils-python-utils
[root@c ~]# semanage fcontext -a -t httpd_sys_rw_content_...
[root@c ~]# restorecon -R /var/www/pukiwiki-1.5/
[root@c ~]# semanage fcontext -l | grep pukiwiki
/var/www/pukiwiki-1.5/(attach|backup|cache|diff|wiki)(/.*...
[root@c ~]#
}}
これで Pukiwiki も表示ができるようになった
***カスタマイズ [#n02fd831]
ほとんどメモ
-default.ini.php
#code(diff,nonumber){{
--- ../pukiwiki-1.5.3_utf8.orig/default.ini.php 2018-04-2...
+++ default.ini.php 2022-03-18 20:35:38.311922698 +0900
@@ -43,11 +43,11 @@
/////////////////////////////////////////////////
// テキストエリアのカラム数
-$cols = 80;
+$cols = 120;
/////////////////////////////////////////////////
// テキストエリアの行数
-$rows = 20;
+$rows = 30;
/////////////////////////////////////////////////
// 大・小見出しから目次へ戻るリンクの文字
@@ -55,11 +55,11 @@
/////////////////////////////////////////////////
// 添付ファイルの一覧を常に表示する (負担がかかります)
-$attach_link = 1;
+$attach_link = 0;
/////////////////////////////////////////////////
// 関連するページのリンク一覧を常に表示する(負担がかかり...
-$related_link = 1;
+$related_link = 0;
// リンク一覧の区切り文字
$related_str = "\n ";
@@ -98,7 +98,7 @@
/////////////////////////////////////////////////
// フェイスマークを使用する
-$usefacemark = 1;
+$usefacemark = 0;
/////////////////////////////////////////////////
// ユーザ定義ルール
}}
-pukiwiki.ini.php
#code(diff,nonumber){{
--- ../pukiwiki-1.5.3_utf8.orig/pukiwiki.ini.php 2...
+++ pukiwiki.ini.php 2022-03-18 23:38:59.653138264 +0900
@@ -53,7 +53,7 @@
// argsN+1
// } }
// #memo(This makes '#memo(foo)' to this)
-define('PKWKEXP_DISABLE_MULTILINE_PLUGIN_HACK', 1); // 1...
+define('PKWKEXP_DISABLE_MULTILINE_PLUGIN_HACK', 0); // 1...
/////////////////////////////////////////////////
// Language / Encoding settings
@@ -110,7 +110,7 @@
/////////////////////////////////////////////////
// Title of your Wikisite (Name this)
// Also used as RSS feed's channel name etc
-$page_title = 'PukiWiki';
+$page_title = 'Chaperone';
// Specify PukiWiki URL (default: auto)
//$script = 'http://example.com/pukiwiki/';
@@ -119,13 +119,13 @@
//$script_directory_index = 'index.php';
// Site admin's name (CHANGE THIS)
-$modifier = 'anonymous';
+$modifier = '天使';
// Site admin's Web page (CHANGE THIS)
-$modifierlink = 'http://pukiwiki.example.com/';
+$modifierlink = 'http://web.chaperone.jp/contact/';
// Default page name
-$defaultpage = 'FrontPage'; // Top / Default page
+$defaultpage = 'chaperone'; // Top / Default page
$whatsnew = 'RecentChanges'; // Modified page list
$whatsdeleted = 'RecentDeleted'; // Removeed page list
$interwiki = 'InterWikiName'; // Set InterWiki defini...
@@ -157,7 +157,7 @@
/////////////////////////////////////////////////
// _Disable_ WikiName auto-linking
-$nowikiname = 0;
+$nowikiname = 1;
/////////////////////////////////////////////////
// AutoLink feature
@@ -178,7 +178,7 @@
/////////////////////////////////////////////////
// Enable Freeze / Unfreeze feature
-$function_freeze = 1;
+$function_freeze = 0;
/////////////////////////////////////////////////
// Allow to use 'Do not change timestamp' checkbox
@@ -359,7 +359,7 @@
// Show Topicpath title
// 0: Disabled
// 1: Enabled
-$topicpath_title = 1;
+$topicpath_title = 0;
/////////////////////////////////////////////////
// Output HTML meta Referrer Policy
@@ -531,7 +531,7 @@
/////////////////////////////////////////////////
// Convert linebreaks into <br />
-$line_break = 0;
+$line_break = 1;
/////////////////////////////////////////////////
// Use date-time rules (See rules.ini.php)
}}
-skin/pukiwiki.skin.php
#code(diff,nonumber){{
--- ../pukiwiki-1.5.3_utf8.orig/skin/pukiwiki.css 2...
+++ skin/pukiwiki.css 2022-03-19 00:11:56.695631450 +0900
@@ -1,4 +1,5 @@
@charset "UTF-8";
+@import "./code.css";
/*!
* PukiWiki - Yet another WikiWikiWeb clone.
@@ -152,7 +153,7 @@
.style_table {
padding:0;
border:0;
- margin:auto;
+ margin:1em auto 1em 0;
text-align:left;
color:inherit;
background-color:#ccd5dd;
@@ -373,12 +374,14 @@
div#menubar {
min-width:12em;
max-width:12em;
- padding:0;
+ padding:2px;
margin:4px;
font-size:90%;
overflow:hidden;
order:1;
flex-grow:0;
+ word-break:break-all;
+ background-color:#FFF0DD;
}
div#menubar ul {
margin:0 0 0 1em;
@@ -400,6 +403,8 @@
overflow:hidden;
order:3;
flex-grow:0;
+ word-break:break-all;
+ background-color:#FFF0DD;
}
#rightbar ul {
margin:0 0 0 1em;
@@ -816,3 +821,22 @@
display:none;
}
}
+.img_ext {
+border:none;
+vertical-align:middle;
+padding: 0px 5px 0px 5px;
+}
+object.iframe
+{
+ height:500px;
+ width:100%;
+ margin-left:auto;
+ margin-right:auto;
+}
+iframe.iframe
+{
+ height:500px;
+ width:100%;
+ margin-left:auto;
+ margin-right:auto;
+}
}}
-skin/pukiwiki.skin.php
#code(diff,nonumber){{
--- ../pukiwiki-1.5.3_utf8.orig/skin/pukiwiki.skin.php 2...
+++ skin/pukiwiki.skin.php 2022-03-18 20:40:10.23270...
@@ -12,14 +12,14 @@
// Settings (define before here, if you want)
// Set site identities
-$_IMAGE['skin']['logo'] = 'pukiwiki.png';
+$_IMAGE['skin']['logo'] = 'picc.png';
$_IMAGE['skin']['favicon'] = ''; // Sample: 'image/favi...
// SKIN_DEFAULT_DISABLE_TOPICPATH
// 1 = Show reload URL
// 0 = Show topicpath
if (! defined('SKIN_DEFAULT_DISABLE_TOPICPATH'))
- define('SKIN_DEFAULT_DISABLE_TOPICPATH', 1); // 1...
+ define('SKIN_DEFAULT_DISABLE_TOPICPATH', 0); // 1...
// Show / Hide navigation bar UI at your choice
// NOTE: This is not stop their functionalities!
@@ -84,7 +84,7 @@
<div id="header">
<a href="<?php echo $link['top'] ?>"><img id="logo" src...
- <h1 class="title"><?php echo $page ?></h1>
+ <h1 class="title"><?php echo $title ?></h1>
<?php if ($is_page) { ?>
<?php if(SKIN_DEFAULT_DISABLE_TOPICPATH) { ?>
}}
-codeplugin
codeplugin_0.6.1.zip
[[https://github.com/hai-fun/pukiwiki/tree/main/plugins/c...
zipを展開すると「image」「option」「plugin」「skin」「wik...
「image」「plugin」「skin」の中身をpukiwikiの各同名のフォ...
それと「pukiwiki.ini.php」の「PKWKEXP_DISABLE_MULTILINE_P...
-iframe
ページの中に別のwebページを組み込みたいので.
「wget http://svn.sourceforge.jp/svnroot/lsx/plugin/ifram...
その後にskin/pukiwiki.cssに「object.iframe」と「iframe.if...
-テーブルの左寄せ
skin/pukiwiki.cssの「.style_table」で「margin:1em auto 1e...
***ユーザ認証 [#cb8e3c9a]
pukiwiki自身でユーザ管理表を持って対応するのもあるけど、s...
設定方法は[[LDAP/memberOf]]参照
終了行:
本webシステムで使っているCMSです.
本家様[[https://pukiwiki.osdn.jp/>+https://pukiwiki.osdn....
***SELinux [#j4cb1634]
CentOS8でどうしてもSElinuxを有効にする必要が生じた。
#code(nonumber){{
SELINUX=disabled
↓
SELINUX=enforcing
}}
と変更して、再起動を行ったら、こちらのpukiwikiページが下...
なってしまった。
#code(nonumber){{
Error message :
Directory is not found or not writable (DATA_DIR)
Directory is not found or not writable (DIFF_DIR)
Directory is not found or not writable (BACKUP_DIR)
Directory is not found or not writable (CACHE_DIR)
}}
原因はhttpdが書き込みをするのでそれがSELinuxの逆鱗に触れ...
っで、SELinuxに許しを請うように下記設定を(SELinuxに)加えた
#code(nonumber){{
[root@c ~]# yum install policycoreutils-python-utils
[root@c ~]# semanage fcontext -a -t httpd_sys_rw_content_...
[root@c ~]# restorecon -R /var/www/pukiwiki-1.5/
[root@c ~]# semanage fcontext -l | grep pukiwiki
/var/www/pukiwiki-1.5/(attach|backup|cache|diff|wiki)(/.*...
[root@c ~]#
}}
これで Pukiwiki も表示ができるようになった
***カスタマイズ [#n02fd831]
ほとんどメモ
-default.ini.php
#code(diff,nonumber){{
--- ../pukiwiki-1.5.3_utf8.orig/default.ini.php 2018-04-2...
+++ default.ini.php 2022-03-18 20:35:38.311922698 +0900
@@ -43,11 +43,11 @@
/////////////////////////////////////////////////
// テキストエリアのカラム数
-$cols = 80;
+$cols = 120;
/////////////////////////////////////////////////
// テキストエリアの行数
-$rows = 20;
+$rows = 30;
/////////////////////////////////////////////////
// 大・小見出しから目次へ戻るリンクの文字
@@ -55,11 +55,11 @@
/////////////////////////////////////////////////
// 添付ファイルの一覧を常に表示する (負担がかかります)
-$attach_link = 1;
+$attach_link = 0;
/////////////////////////////////////////////////
// 関連するページのリンク一覧を常に表示する(負担がかかり...
-$related_link = 1;
+$related_link = 0;
// リンク一覧の区切り文字
$related_str = "\n ";
@@ -98,7 +98,7 @@
/////////////////////////////////////////////////
// フェイスマークを使用する
-$usefacemark = 1;
+$usefacemark = 0;
/////////////////////////////////////////////////
// ユーザ定義ルール
}}
-pukiwiki.ini.php
#code(diff,nonumber){{
--- ../pukiwiki-1.5.3_utf8.orig/pukiwiki.ini.php 2...
+++ pukiwiki.ini.php 2022-03-18 23:38:59.653138264 +0900
@@ -53,7 +53,7 @@
// argsN+1
// } }
// #memo(This makes '#memo(foo)' to this)
-define('PKWKEXP_DISABLE_MULTILINE_PLUGIN_HACK', 1); // 1...
+define('PKWKEXP_DISABLE_MULTILINE_PLUGIN_HACK', 0); // 1...
/////////////////////////////////////////////////
// Language / Encoding settings
@@ -110,7 +110,7 @@
/////////////////////////////////////////////////
// Title of your Wikisite (Name this)
// Also used as RSS feed's channel name etc
-$page_title = 'PukiWiki';
+$page_title = 'Chaperone';
// Specify PukiWiki URL (default: auto)
//$script = 'http://example.com/pukiwiki/';
@@ -119,13 +119,13 @@
//$script_directory_index = 'index.php';
// Site admin's name (CHANGE THIS)
-$modifier = 'anonymous';
+$modifier = '天使';
// Site admin's Web page (CHANGE THIS)
-$modifierlink = 'http://pukiwiki.example.com/';
+$modifierlink = 'http://web.chaperone.jp/contact/';
// Default page name
-$defaultpage = 'FrontPage'; // Top / Default page
+$defaultpage = 'chaperone'; // Top / Default page
$whatsnew = 'RecentChanges'; // Modified page list
$whatsdeleted = 'RecentDeleted'; // Removeed page list
$interwiki = 'InterWikiName'; // Set InterWiki defini...
@@ -157,7 +157,7 @@
/////////////////////////////////////////////////
// _Disable_ WikiName auto-linking
-$nowikiname = 0;
+$nowikiname = 1;
/////////////////////////////////////////////////
// AutoLink feature
@@ -178,7 +178,7 @@
/////////////////////////////////////////////////
// Enable Freeze / Unfreeze feature
-$function_freeze = 1;
+$function_freeze = 0;
/////////////////////////////////////////////////
// Allow to use 'Do not change timestamp' checkbox
@@ -359,7 +359,7 @@
// Show Topicpath title
// 0: Disabled
// 1: Enabled
-$topicpath_title = 1;
+$topicpath_title = 0;
/////////////////////////////////////////////////
// Output HTML meta Referrer Policy
@@ -531,7 +531,7 @@
/////////////////////////////////////////////////
// Convert linebreaks into <br />
-$line_break = 0;
+$line_break = 1;
/////////////////////////////////////////////////
// Use date-time rules (See rules.ini.php)
}}
-skin/pukiwiki.skin.php
#code(diff,nonumber){{
--- ../pukiwiki-1.5.3_utf8.orig/skin/pukiwiki.css 2...
+++ skin/pukiwiki.css 2022-03-19 00:11:56.695631450 +0900
@@ -1,4 +1,5 @@
@charset "UTF-8";
+@import "./code.css";
/*!
* PukiWiki - Yet another WikiWikiWeb clone.
@@ -152,7 +153,7 @@
.style_table {
padding:0;
border:0;
- margin:auto;
+ margin:1em auto 1em 0;
text-align:left;
color:inherit;
background-color:#ccd5dd;
@@ -373,12 +374,14 @@
div#menubar {
min-width:12em;
max-width:12em;
- padding:0;
+ padding:2px;
margin:4px;
font-size:90%;
overflow:hidden;
order:1;
flex-grow:0;
+ word-break:break-all;
+ background-color:#FFF0DD;
}
div#menubar ul {
margin:0 0 0 1em;
@@ -400,6 +403,8 @@
overflow:hidden;
order:3;
flex-grow:0;
+ word-break:break-all;
+ background-color:#FFF0DD;
}
#rightbar ul {
margin:0 0 0 1em;
@@ -816,3 +821,22 @@
display:none;
}
}
+.img_ext {
+border:none;
+vertical-align:middle;
+padding: 0px 5px 0px 5px;
+}
+object.iframe
+{
+ height:500px;
+ width:100%;
+ margin-left:auto;
+ margin-right:auto;
+}
+iframe.iframe
+{
+ height:500px;
+ width:100%;
+ margin-left:auto;
+ margin-right:auto;
+}
}}
-skin/pukiwiki.skin.php
#code(diff,nonumber){{
--- ../pukiwiki-1.5.3_utf8.orig/skin/pukiwiki.skin.php 2...
+++ skin/pukiwiki.skin.php 2022-03-18 20:40:10.23270...
@@ -12,14 +12,14 @@
// Settings (define before here, if you want)
// Set site identities
-$_IMAGE['skin']['logo'] = 'pukiwiki.png';
+$_IMAGE['skin']['logo'] = 'picc.png';
$_IMAGE['skin']['favicon'] = ''; // Sample: 'image/favi...
// SKIN_DEFAULT_DISABLE_TOPICPATH
// 1 = Show reload URL
// 0 = Show topicpath
if (! defined('SKIN_DEFAULT_DISABLE_TOPICPATH'))
- define('SKIN_DEFAULT_DISABLE_TOPICPATH', 1); // 1...
+ define('SKIN_DEFAULT_DISABLE_TOPICPATH', 0); // 1...
// Show / Hide navigation bar UI at your choice
// NOTE: This is not stop their functionalities!
@@ -84,7 +84,7 @@
<div id="header">
<a href="<?php echo $link['top'] ?>"><img id="logo" src...
- <h1 class="title"><?php echo $page ?></h1>
+ <h1 class="title"><?php echo $title ?></h1>
<?php if ($is_page) { ?>
<?php if(SKIN_DEFAULT_DISABLE_TOPICPATH) { ?>
}}
-codeplugin
codeplugin_0.6.1.zip
[[https://github.com/hai-fun/pukiwiki/tree/main/plugins/c...
zipを展開すると「image」「option」「plugin」「skin」「wik...
「image」「plugin」「skin」の中身をpukiwikiの各同名のフォ...
それと「pukiwiki.ini.php」の「PKWKEXP_DISABLE_MULTILINE_P...
-iframe
ページの中に別のwebページを組み込みたいので.
「wget http://svn.sourceforge.jp/svnroot/lsx/plugin/ifram...
その後にskin/pukiwiki.cssに「object.iframe」と「iframe.if...
-テーブルの左寄せ
skin/pukiwiki.cssの「.style_table」で「margin:1em auto 1e...
***ユーザ認証 [#cb8e3c9a]
pukiwiki自身でユーザ管理表を持って対応するのもあるけど、s...
設定方法は[[LDAP/memberOf]]参照
ページ名:
1