PukiWiki/1.4/ちょっと便利に/特定のリモートホストからの更新時にメール通知しない
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
[[../]]
**特定のリモートホストから更新されたときはメールで通知し...
~ページが更新されたときにメールで通知している機能を愛用し...
自分で管理しているサイトを自分で更新したときは、メールで...
***変更箇所 (1.4.2に対するパッチです) [#nf19666e]
-file.php
--- file.php~ 2003-12-20 10:36:06.000000000 +0900
+++ file.php 2003-12-27 12:20:58.728482785 +0900
@@ -94,7 +94,8 @@
{
global $post,$update_exec;
global $_msg_invalidiwn;
- global $notify,$notify_diff_only,$notify_to,$not...
+ global $notify,$notify_diff_only,$notify_exclude;
+ global $notify_to,$notify_from,$notify_subject,$...
global $smtp_server,$smtp_auth;
if (!is_pagename($page))
@@ -148,6 +149,16 @@
system($update_exec.' > /dev/null &');
}
+ // notify_excludeにアドレスが一致する場合はメー...
+ foreach ($notify_exclude as $exclude) {
+ $exclude = preg_quote($exclude);
+ if (substr($exclude, -1) == ".")
+ $exclude = $exclude . "*";
+ if (preg_match("/^" . $exclude . "/", $_...
+ return;
+ }
+
+ // メールの送信
if ($notify and $dir == DIFF_DIR)
{
if ($notify_diff_only)
-pukiwiki.ini.php
--- pukiwiki.ini.php~ 2003-12-20 10:41:13.000000000 +0...
+++ pukiwiki.ini.php 2003-12-27 12:18:40.583775271 +0...
@@ -249,6 +249,10 @@
$pop_userid = '';
// POP パスワード
$pop_passwd = '';
+// 以下で指定したリモートホストから更新された場合はメー...
+$notify_exclude = array(
+// '192.168.0.',
+);
/////////////////////////////////////////////////
// 一覧・更新一覧に含めないページ名(正規表現で)
----
#comment
終了行:
[[../]]
**特定のリモートホストから更新されたときはメールで通知し...
~ページが更新されたときにメールで通知している機能を愛用し...
自分で管理しているサイトを自分で更新したときは、メールで...
***変更箇所 (1.4.2に対するパッチです) [#nf19666e]
-file.php
--- file.php~ 2003-12-20 10:36:06.000000000 +0900
+++ file.php 2003-12-27 12:20:58.728482785 +0900
@@ -94,7 +94,8 @@
{
global $post,$update_exec;
global $_msg_invalidiwn;
- global $notify,$notify_diff_only,$notify_to,$not...
+ global $notify,$notify_diff_only,$notify_exclude;
+ global $notify_to,$notify_from,$notify_subject,$...
global $smtp_server,$smtp_auth;
if (!is_pagename($page))
@@ -148,6 +149,16 @@
system($update_exec.' > /dev/null &');
}
+ // notify_excludeにアドレスが一致する場合はメー...
+ foreach ($notify_exclude as $exclude) {
+ $exclude = preg_quote($exclude);
+ if (substr($exclude, -1) == ".")
+ $exclude = $exclude . "*";
+ if (preg_match("/^" . $exclude . "/", $_...
+ return;
+ }
+
+ // メールの送信
if ($notify and $dir == DIFF_DIR)
{
if ($notify_diff_only)
-pukiwiki.ini.php
--- pukiwiki.ini.php~ 2003-12-20 10:41:13.000000000 +0...
+++ pukiwiki.ini.php 2003-12-27 12:18:40.583775271 +0...
@@ -249,6 +249,10 @@
$pop_userid = '';
// POP パスワード
$pop_passwd = '';
+// 以下で指定したリモートホストから更新された場合はメー...
+$notify_exclude = array(
+// '192.168.0.',
+);
/////////////////////////////////////////////////
// 一覧・更新一覧に含めないページ名(正規表現で)
----
#comment
ページ名: