<?php
// PukiWiki - Yet another WikiWikiWeb clone.
-// $Id: file.php,v 1.67 2006/04/30 03:58:35 henoheno Exp $
+// $Id: file.php,v 1.68 2006/05/02 01:22:56 henoheno Exp $
// Copyright (C)
// 2002-2006 PukiWiki Developers Team
// 2001-2002 Originally written by yu-ji
// Output to a file
function file_write($dir, $page, $str, $notimestamp = FALSE)
{
- global $update_exec, $_msg_invalidiwn, $notify, $notify_diff_only, $notify_subject;
+ global $_msg_invalidiwn, $notify, $notify_diff_only, $notify_subject;
global $whatsdeleted, $maxshow_deleted;
if (PKWK_READONLY) return; // Do nothing
// Update RecentChanges (Add or renew the $page)
if ($timestamp === FALSE) lastmodified_add($page);
- // Execute $update_exec here
- if ($update_exec) system($update_exec . ' > /dev/null &');
+ // Command execution per update
+ if (defined(PKWK_UPDATE_EXEC))
+ system(PKWK_UPDATE_EXEC . ' > /dev/null &');
} else if ($dir == DIFF_DIR && $notify) {
if ($notify_diff_only) $str = preg_replace('/^[^-+].*\n/m', '', $str);
<?php
// PukiWiki - Yet another WikiWikiWeb clone
-// $Id: pukiwiki.ini.php,v 1.132 2006/05/01 12:33:31 henoheno Exp $
+// $Id: pukiwiki.ini.php,v 1.133 2006/05/02 01:22:56 henoheno Exp $
// Copyright (C)
// 2002-2006 PukiWiki Developers Team
// 2001-2002 Originally written by yu-ji
define('PKWK_SPLITTER', '>>>>>>>>>>');
/////////////////////////////////////////////////
-// Command executed per update
-$update_exec = '';
-//$update_exec = '/usr/bin/mknmz --media-type=text/pukiwiki -O /var/lib/namazu/index/ -L ja -c -K /var/www/wiki/';
+// Command execution per update
+
+define('PKWK_UPDATE_EXEC', '');
+
+// Sample: Namazu (Serarch engine)
+//$target = '/var/www/wiki/';
+//$mknmz = '/usr/bin/mknmz';
+//$output_dir = '/var/lib/namazu/index/';
+//define('PKWK_UPDATE_EXEC',
+// $mknmz . ' --media-type=text/pukiwiki' .
+// ' -O ' . $output_dir . ' -L ja -c -K ' . $target);
/////////////////////////////////////////////////
// HTTP proxy setting (for TrackBack etc)