OSDN Git Service

BugTrack/622: Notice: Undefined index: [pagename] lib/func.php on line 308 (Commented...
[pukiwiki/pukiwiki.git] / pukiwiki.ini.php
index 6e3d32f..275d424 100644 (file)
-<?php\r
-/////////////////////////////////////////////////\r
-// PukiWiki - Yet another WikiWikiWeb clone.\r
-//\r
-// $Id: pukiwiki.ini.php,v 1.16 2002/12/02 03:33:36 panda Exp $\r
-//\r
-// PukiWiki setting file\r
-\r
-/////////////////////////////////////////////////\r
-// ¥Ç¥£¥ì¥¯¥È¥ê»ØÄ꠺Ǹå¤Ë / ¤¬É¬Íנ°À­¤Ï 777\r
-/////////////////////////////////////////////////\r
-// ¥Ç¡¼¥¿¤Î³ÊǼ¥Ç¥£¥ì¥¯¥È¥ê\r
-define("DATA_DIR","./wiki/");\r
-/////////////////////////////////////////////////\r
-// º¹Ê¬¥Õ¥¡¥¤¥ë¤Î³ÊǼ¥Ç¥£¥ì¥¯¥È¥ê\r
-define("DIFF_DIR","./diff/");\r
-/////////////////////////////////////////////////\r
-// ¥Ð¥Ã¥¯¥¢¥Ã¥×¥Õ¥¡¥¤¥ë³ÊǼÀè¥Ç¥£¥ì¥¯¥È¥ê\r
-define("BACKUP_DIR","./backup/");\r
-/////////////////////////////////////////////////\r
-// ¥×¥é¥°¥¤¥ó¥Õ¥¡¥¤¥ë³ÊǼÀè¥Ç¥£¥ì¥¯¥È¥ê\r
-define("PLUGIN_DIR","./plugin/");\r
-\r
-/////////////////////////////////////////////////\r
-// Language\r
-define("LANG","ja");\r
-\r
-/////////////////////////////////////////////////\r
-// ¥¹¥­¥ó¥Õ¥¡¥¤¥ë¤Î¾ì½ê¡£\r
-define("SKIN_FILE","./skin/pukiwiki.skin.".LANG.".php");\r
-\r
-/////////////////////////////////////////////////\r
-// ¸À¸ì¥Õ¥¡¥¤¥ë¤ÎÆɤ߹þ¤ß(ÊÔ½¸¤·¤Ê¤¤¤Ç¤¯¤À¤µ¤¤)\r
-require(LANG.".lng");\r
-\r
-/////////////////////////////////////////////////\r
-// index.php ¤Ê¤É¤ËÊѹ¹¤·¤¿¾ì¹ç¤Î¥¹¥¯¥ê¥×¥È̾¤ÎÀßÄê\r
-// ¤È¤¯¤ËÀßÄꤷ¤Ê¤¯¤Æ¤âÌäÂê¤Ê¤·\r
-//$script = "http://hogehoge/pukiwiki/";\r
-\r
-/////////////////////////////////////////////////\r
-// ¥È¥Ã¥×¥Ú¡¼¥¸¤Î̾Á°\r
-$defaultpage = "FrontPage";\r
-/////////////////////////////////////////////////\r
-// ¹¹¿·ÍúÎò¥Ú¡¼¥¸¤Î̾Á°\r
-$whatsnew = "RecentChanges";\r
-/////////////////////////////////////////////////\r
-// InterWikiName¥Ú¡¼¥¸¤Î̾Á°\r
-$interwiki = "InterWikiName";\r
-/////////////////////////////////////////////////\r
-// ÊÔ½¸¼Ô¤Î̾Á°(¼«Í³¤ËÊѤ¨¤Æ¤¯¤À¤µ¤¤)\r
-$modifier = 'me';\r
-/////////////////////////////////////////////////\r
-// ÊÔ½¸¼Ô¤Î¥Û¡¼¥à¥Ú¡¼¥¸(¼«Í³¤ËÊѤ¨¤Æ¤¯¤À¤µ¤¤)\r
-$modifierlink = 'http://change me!/';\r
-\r
-/////////////////////////////////////////////////\r
-// ¥Û¡¼¥à¥Ú¡¼¥¸¤Î¥¿¥¤¥È¥ë(¼«Í³¤ËÊѤ¨¤Æ¤¯¤À¤µ¤¤)\r
-// RSS ¤Ë½ÐÎϤ¹¤ë¥Á¥ã¥ó¥Í¥ë̾\r
-$page_title = "PukiWiki";\r
-\r
-/////////////////////////////////////////////////\r
-// Åà·ëµ¡Ç½¤òÍ­¸ú¤Ë¤¹¤ë¤«\r
-$function_freeze = 1;\r
-/////////////////////////////////////////////////\r
-// Åà·ë²ò½üÍѤδÉÍý¼Ô¥Ñ¥¹¥ï¡¼¥É(MD5)\r
-// pukiwiki.php?md5=pass ¤Î¤è¤¦¤ËURL¤ËÆþÎϤ·\r
-// MD5¤Ë¤·¤Æ¤«¤é¤É¤¦¤¾¡£ÌÌÅݤʤé°Ê²¼¤Î¤è¤¦¤Ë¡£\r
-// $adminpass = md5("pass");\r
-// °Ê²¼¤Ï pass ¤ÎMD5¥Ñ¥¹¥ï¡¼¥É¤Ë¤Ê¤Ã¤Æ¤Þ¤¹¡£\r
-$adminpass = "21232f297a57a5a743894a0e4a801fc3";\r
-\r
-/////////////////////////////////////////////////\r
-// ¹¹¿·ÍúÎò¤òɽ¼¨¤¹¤ë¤È¤­¤ÎºÇÂç·ï¿ô\r
-$maxshow = 80;\r
-/////////////////////////////////////////////////\r
-// ÊÔ½¸¤¹¤ë¤³¤È¤Î¤Ç¤­¤Ê¤¤¥Ú¡¼¥¸¤Î̾Á° , ¤Ç¶èÀÚ¤ë\r
-$cantedit = array( $whatsnew, );\r
-\r
-/////////////////////////////////////////////////\r
-// ¥×¥ì¥Ó¥å¡¼¤òɽ¼¨¤¹¤ë¤È¤­¤Î¥Æ¡¼¥Ö¥ë¤ÎÇØ·Ê¿§\r
-$preview_color = "#F5F8FF";\r
-/////////////////////////////////////////////////\r
-// [[¥Ú¡¼¥¸]] ¤Ø¤Î¥ê¥ó¥¯»þ[[]]¤ò³°¤¹¤«\r
-$strip_link_wall = 1;\r
-/////////////////////////////////////////////////\r
-// °ìÍ÷¥Ú¡¼¥¸¤ËƬʸ»ú¥¤¥ó¥Ç¥Ã¥¯¥¹¤ò¤Ä¤±¤ë¤«\r
-$list_index = 1;\r
-/////////////////////////////////////////////////\r
-// http:// ¥ê¥ó¥¯¤Î¥¦¥£¥ó¥É¥¦Ì¾»ØÄê(_top,_blank,etc)\r
-$link_target = "_top";\r
-/////////////////////////////////////////////////\r
-// InterWikiName¤Î¥¦¥£¥ó¥É¥¦Ì¾»ØÄê(_top,_blank,etc)\r
-$interwiki_target = "_top";\r
-\r
-/////////////////////////////////////////////////\r
-// ¥ê¥¹¥È¹½Â¤¤Îº¸¥Þ¡¼¥¸¥ó\r
-$_list_left_margin = 0; // ¥ê¥¹¥È¤È²èÌ̺¸Ã¼¤È¤Î´Ö³Ö(px)\r
-$_list_margin = 16;      // ¥ê¥¹¥È¤Î³¬Áش֤δֳÖ(px)\r
-$_list_pad_str = ' class="list%d" style="padding-left:%dpx;margin-left:%dpx"';\r
-\r
-/////////////////////////////////////////////////\r
-// ¥Æ¥­¥¹¥È¥¨¥ê¥¢¤Î¥«¥é¥à¿ô\r
-$cols = 80;\r
-/////////////////////////////////////////////////\r
-// ¥Æ¥­¥¹¥È¥¨¥ê¥¢¤Î¹Ô¿ô\r
-$rows = 20;\r
-\r
-/////////////////////////////////////////////////\r
-// Â硦¾®¸«½Ð¤·¤«¤éÌܼ¡¤ØÌá¤ë¥ê¥ó¥¯¤Îʸ»ú\r
-$top = $_msg_content_back_to_top;\r
-/////////////////////////////////////////////////\r
-// ´ØÏ¢¥Ú¡¼¥¸É½¼¨¤Î¥Ú¡¼¥¸Ì¾¤Î¶èÀÚ¤êʸ»ú\r
-$related_str = " ";\r
-/////////////////////////////////////////////////\r
-// À°·Á¥ë¡¼¥ë¤Ç¤Î´ØÏ¢¥Ú¡¼¥¸É½¼¨¤Î¥Ú¡¼¥¸Ì¾¤Î¶èÀÚ¤êʸ»ú\r
-$rule_related_str = "\n<li>";\r
-/////////////////////////////////////////////////\r
-// ¿åÊ¿Àþ¤Î¥¿¥°\r
-$hr = '<hr class="full_hr">';\r
-/////////////////////////////////////////////////\r
-// Ê¸Ëö¤ÎÃí¼á¤ÎľÁ°¤Ëɽ¼¨¤¹¤ë¥¿¥°\r
-$note_hr = '<hr class="note_hr">';\r
-/////////////////////////////////////////////////\r
-// ´ØÏ¢¤¹¤ë¥ê¥ó¥¯¤ò¾ï¤Ëɽ¼¨¤¹¤ë(Ééô¤¬¤«¤«¤ê¤Þ¤¹)\r
-$related_link = 1;\r
-/////////////////////////////////////////////////\r
-// WikiName,BracketName¤Ë·Ð²á»þ´Ö¤òÉղ乤ë\r
-$show_passage = 1;\r
-\r
-/////////////////////////////////////////////////\r
-// Last-Modified ¥Ø¥Ã¥À¤ò½ÐÎϤ¹¤ë\r
-$lastmod = 0;\r
-\r
-/////////////////////////////////////////////////\r
-// ÆüÉÕ¥Õ¥©¡¼¥Þ¥Ã¥È\r
-$date_format = "Y-m-d";\r
-/////////////////////////////////////////////////\r
-// »þ¹ï¥Õ¥©¡¼¥Þ¥Ã¥È\r
-$time_format = "H:i:s";\r
-/////////////////////////////////////////////////\r
-// ÍËÆüÇÛÎó\r
-$weeklabels = $_msg_week;\r
-\r
-/////////////////////////////////////////////////\r
-// RSS ¤Ë½ÐÎϤ¹¤ë¥Ú¡¼¥¸¿ô\r
-$rss_max = 15;\r
-\r
-/////////////////////////////////////////////////\r
-// ¥Ð¥Ã¥¯¥¢¥Ã¥×¤ò¹Ô¤¦¤«»ØÄꤷ¤Þ¤¹ 0 or 1\r
-$do_backup = 1;\r
-/////////////////////////////////////////////////\r
-// ¥Ú¡¼¥¸¤òºï½ü¤·¤¿ºÝ¤Ë¥Ð¥Ã¥¯¥¢¥Ã¥×¤â¤¹¤Ù¤Æºï½ü¤¹¤ë\r
-$del_backup = 0;\r
-/////////////////////////////////////////////////\r
-// Äê´ü¥Ð¥Ã¥¯¥¢¥Ã¥×¤Î´Ö³Ö¤ò»þ´Ö(hour)¤Ç»ØÄꤷ¤Þ¤¹(0¤Ç¹¹¿·Ëè)\r
-$cycle = 6;\r
-/////////////////////////////////////////////////\r
-// ¥Ð¥Ã¥¯¥¢¥Ã¥×¤ÎºÇÂçÀ¤Âå¿ô¤ò»ØÄꤷ¤Þ¤¹\r
-$maxage = 20;\r
-/////////////////////////////////////////////////\r
-// ¥Ð¥Ã¥¯¥¢¥Ã¥×¤ÎÀ¤Âå¤ò¶èÀÚ¤ëʸ»úÎó¤ò»ØÄꤷ¤Þ¤¹\r
-// (Ä̾ï¤Ï¤³¤Î¤Þ¤Þ¤ÇÎɤ¤¤¬¡¢Ê¸¾ÏÃæ¤Ç»È¤ï¤ì¤ë²ÄǽÀ­\r
-// ¤¬¤¢¤ì¤Ð¡¢»È¤ï¤ì¤½¤¦¤Ë¤Ê¤¤Ê¸»ú¤òÀßÄꤹ¤ë)\r
-$splitter = ">>>>>>>>>>";\r
-/////////////////////////////////////////////////\r
-// ¥Ú¡¼¥¸¤Î¹¹¿·»þ¤Ë¥Ð¥Ã¥¯¥°¥é¥ó¥É¤Ç¼Â¹Ô¤µ¤ì¤ë¥³¥Þ¥ó¥É(mknmz¤Ê¤É)\r
-//$update_exec = '/usr/local/bin/mknmz -O /vhosts/www.factage.com/sng/pukiwiki/nmz -L ja -k -K /vhosts/www.factage.com/sng/pukiwiki/wiki';\r
-\r
-/////////////////////////////////////////////////\r
-// °ìÍ÷¡¦¹¹¿·°ìÍ÷¤Ë´Þ¤á¤Ê¤¤¥Ú¡¼¥¸Ì¾(Àµµ¬É½¸½¤Ç)\r
-$non_list = "^(\[\[\:)";\r
-\r
-/////////////////////////////////////////////////\r
-// ¿÷·Á¤È¤¹¤ë¥Ú¡¼¥¸¤ÎÆɤ߹þ¤ß¤òɽ¼¨¤µ¤»¤ë¤«\r
-$load_template_func = 1;\r
-\r
-/////////////////////////////////////////////////\r
-// ¥Ú¡¼¥¸Ì¾¤Ë½¾¤Ã¤Æ¼«Æ°¤Ç¡¢¿÷·Á¤È¤¹¤ë¥Ú¡¼¥¸¤ÎÆɤ߹þ¤ß\r
-$auto_template_func = 1;\r
-$auto_template_rules = array(\r
-'\[\[((.+)\/([^\/]+))\]\]' => '[[\2/template]]'\r
-);\r
-\r
-/////////////////////////////////////////////////\r
-// ¥æ¡¼¥¶ÄêµÁ¥ë¡¼¥ë\r
-//\r
-//  Àµµ¬É½¸½¤Çµ­½Ò¤·¤Æ¤¯¤À¤µ¤¤¡£?(){}-*./+\$^|¤Ê¤É\r
-//  ¤Ï \? ¤Î¤è¤¦¤Ë¥¯¥©¡¼¥È¤·¤Æ¤¯¤À¤µ¤¤¡£\r
-//  Á°¸å¤Ëɬ¤º / ¤ò´Þ¤á¤Æ¤¯¤À¤µ¤¤¡£¹ÔƬ»ØÄê¤Ï ^ ¤òƬ¤Ë¡£\r
-//  ¹ÔËö»ØÄê¤Ï $ ¤ò¸å¤í¤Ë¡£\r
-//\r
-/////////////////////////////////////////////////\r
-// ¥æ¡¼¥¶ÄêµÁ¥ë¡¼¥ë(ľÀÜ¥½¡¼¥¹¤òÃÖ´¹)\r
-$str_rules = array(\r
-"now\?" => date($date_format,UTIME)." (".$weeklabels[date("w",UTIME)].") ".date($time_format,UTIME),\r
-"date\?" => date($date_format,UTIME),\r
-"time\?" => date($time_format,UTIME),\r
-);\r
-\r
-/////////////////////////////////////////////////\r
-// ¥æ¡¼¥¶ÄêµÁ¥ë¡¼¥ë(¥³¥ó¥Ð¡¼¥È»þ¤ËÃÖ´¹¡¢Ä¾Àܤ·¤Ê¤¤)\r
-$line_rules = array(\r
-"COLOR\(([^\(\)]*)\){([^}]*)}" => "<span style=\"color:\\1\">\\2</span>",\r
-"SIZE\(([^\(\)]*)\){([^}]*)}" => "<span style=\"font-size:\\1px;display:inline-block;line-height:130%;text-indent:0px\">\\2</span>",\r
-"COLOR\(([^\(\)]*)\):((?:(?!COLOR\([^\)]+\)\:).)*)" => "<span style=\"color:\\1\">\\2</span>",\r
-"SIZE\(([^\(\)]*)\):((?:(?!SIZE\([^\)]+\)\:).)*)" => "<span class=\"size\\1\">\\2</span>",\r
-"LEFT:((?:(?!LEFT\:).)*)" => "<div style=\"text-align:left\">\\1</div>",\r
-"CENTER:((?:(?!CENTER\:).)*)" => "<div style=\"text-align:center\">\\1</div>",\r
-"RIGHT:((?:(?!RIGHT\:).)*)" => "<div style=\"text-align:right\">\\1</div>",\r
-"%%((?:(?!%%).)*)%%" => "<del>\\1</del>",\r
-"'''((?:(?!''').)*)'''" => "<em>\\1</em>",\r
-"''((?:(?!'').)*)''" => "<strong>\\1</strong>",\r
-"~((?:<\\/[a-zA-Z]+>)*)$" => "\\1<br />", /* ¹ÔËö¤Ë¥Á¥ë¥À¤Ï²þ¹Ô */\r
-"&amp;aname\(([A-Za-z][\w\-]*)\);" => "<a id=\"\\1\" name=\"\\1\"></a>",\r
-);\r
-\r
-/////////////////////////////////////////////////\r
-// ¥Õ¥§¥¤¥¹¥Þ¡¼¥¯ÄêµÁ¥ë¡¼¥ë\r
-// $usefacemark = 1¤Ê¤é¥Õ¥§¥¤¥¹¥Þ¡¼¥¯¤¬ÃÖ´¹¤µ¤ì¤Þ¤¹\r
-// Ê¸¾ÏÆâ¤ËXD¤Ê¤É¤¬Æþ¤Ã¤¿¾ì¹ç¤Ëfacemark¤ËÃÖ´¹¤µ¤ì¤Æ¤·¤Þ¤¦¤Î¤Ç\r
-// É¬ÍפΤʤ¤Êý¤Ï $usefacemark¤ò0¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£\r
-$usefacemark = 1;\r
-$facemark_rules = array(\r
-"\s(\:\))" => " <img src=\"./face/smile.gif\" alt=\"\\1\" />",\r
-"\s(\:D)" => " <img src=\"./face/bigsmile.gif\" alt=\"\\1\" />",\r
-"\s(\:p)" => " <img src=\"./face/huh.gif\" alt=\"\\1\" />",\r
-"\s(\:d)" => " <img src=\"./face/huh.gif\" alt=\"\\1\" />",\r
-"\s(XD)" => " <img src=\"./face/oh.gif\" alt=\"\\1\" />",\r
-"\s(X\()" => " <img src=\"./face/oh.gif\" alt=\"\\1\" />",\r
-"\s(;\))" => " <img src=\"./face/wink.gif\" alt=\"\\1\" />",\r
-"\s(;\()" => " <img src=\"./face/sad.gif\" alt=\"\\1\" />",\r
-"\s(\:\()" => " <img src=\"./face/sad.gif\" alt=\"\\1\" />",\r
-"(\:heart\:)" => "<img src=\"./face/heart.gif\" alt=\"\\1\" />",\r
-);\r
-\r
-?>\r
+<?php
+// PukiWiki - Yet another WikiWikiWeb clone
+// $Id: pukiwiki.ini.php,v 1.109 2005/01/25 14:17:53 henoheno Exp $
+//
+// PukiWiki main setting file
+
+/////////////////////////////////////////////////
+// Functionality settings
+
+// PKWK_OPTIMISE - Ignore verbose but understandable checking and warning
+//   If you end testing this PukiWiki, set '1'.
+//   If you feel in trouble about this PukiWiki, set '0'.
+if (! defined('PKWK_OPTIMISE'))
+       define('PKWK_OPTIMISE', 0);
+
+/////////////////////////////////////////////////
+// Security settings
+
+// PKWK_READONLY - Prohibits editing and maintain via WWW
+//   NOTE: Counter-related functions will work now (counter, attach count, etc)
+if (! defined('PKWK_READONLY'))
+       define('PKWK_READONLY', 0); // 0 or 1
+
+// PKWK_SAFE_MODE - Prohibits some unsafe(but compatible) functions 
+if (! defined('PKWK_SAFE_MODE'))
+       define('PKWK_SAFE_MODE', 0);
+
+// PKWK_QUERY_STRING_MAX
+//   Max length of GET method, prohibits some worm attack ASAP
+//   NOTE: Keep (page-name + attach-file-name) <= PKWK_QUERY_STRING_MAX
+define('PKWK_QUERY_STRING_MAX', 640);
+
+/////////////////////////////////////////////////
+// Language / Encoding settings
+
+// LANG - Internal content encoding ('en', 'ja', or ...)
+define('LANG', 'ja');
+
+// UI_LANG - Content Language for buttons, menus,  etc
+define('UI_LANG', LANG); // 'en' for Internationalized wikisite
+
+/////////////////////////////////////////////////
+// Directory settings I (ended with '/', permission '777')
+
+// You may hide these directories (from web browsers)
+// by setting DATA_HOME at index.php.
+
+define('DATA_DIR',      DATA_HOME . 'wiki/'     ); // Latest wiki texts
+define('DIFF_DIR',      DATA_HOME . 'diff/'     ); // Latest diffs
+define('BACKUP_DIR',    DATA_HOME . 'backup/'   ); // Backups
+define('CACHE_DIR',     DATA_HOME . 'cache/'    ); // Some sort of caches
+define('UPLOAD_DIR',    DATA_HOME . 'attach/'   ); // Attached files and logs
+define('COUNTER_DIR',   DATA_HOME . 'counter/'  ); // Counter plugin's counts
+define('TRACKBACK_DIR', DATA_HOME . 'trackback/'); // TrackBack logs
+define('PLUGIN_DIR',    DATA_HOME . 'plugin/'   ); // Plugin directory
+
+/////////////////////////////////////////////////
+// Directory settings II (ended with '/')
+
+// Skins / Stylesheets
+define('SKIN_DIR', 'skin/');
+// Skin files (SKIN_DIR/*.skin.php) are needed at
+// ./DATAHOME/SKIN_DIR from index.php, but
+// CSSs(*.css) and JavaScripts(*.js) are needed at
+// ./SKIN_DIR from index.php.
+
+// Static image files
+define('IMAGE_DIR', 'image/');
+// Keep this directory shown via web browsers like
+// ./IMAGE_DIR from index.php.
+
+/////////////////////////////////////////////////
+// Local time setting
+
+switch (LANG) { // or specifiy one
+case 'ja':
+       define('ZONE', 'JST');
+       define('ZONETIME', 9 * 3600); // JST = GMT + 9
+       break;
+default  :
+       define('ZONE', 'GMT');
+       define('ZONETIME', 0);
+       break;
+}
+
+/////////////////////////////////////////////////
+// Title of your Wikisite (Define this)
+// and also RSS feed's channel name
+$page_title = 'PukiWiki';
+
+// Specify PukiWiki URL (default: auto)
+//$script = 'http://example.com/pukiwiki/';
+
+// Shorten $script: Cut its file name (default: not cut)
+//$script_directory_index = 'index.php';
+
+// Site admin's name (CHANGE THIS)
+$modifier = 'anonymous';
+
+// Site admin's Web page (CHANGE THIS)
+$modifierlink = 'http://pukiwiki.example.com/';
+
+// Defautl page name
+$defaultpage  = 'FrontPage';     // Top / Default page
+$whatsnew     = 'RecentChanges'; // Modified page list
+$whatsdeleted = 'RecentDeleted'; // Removeed page list
+$interwiki    = 'InterWikiName'; // Set InterWiki definition here
+$menubar      = 'MenuBar';       // Menu
+
+/////////////////////////////////////////////////
+// Change default Document Type Definition
+
+// Some web browser's bug, and / or Java apprets may needs not-Strict DTD.
+// Some plugin (e.g. paint) set this PKWK_DTD_XHTML_1_0_TRANSITIONAL.
+
+//$pkwk_dtd = PKWK_DTD_XHTML_1_1; // Default
+//$pkwk_dtd = PKWK_DTD_XHTML_1_0_STRICT;
+//$pkwk_dtd = PKWK_DTD_XHTML_1_0_TRANSITIONAL;
+//$pkwk_dtd = PKWK_DTD_HTML_4_01_STRICT;
+//$pkwk_dtd = PKWK_DTD_HTML_4_01_TRANSITIONAL;
+
+/////////////////////////////////////////////////
+
+// PKWK_ALLOW_JAVASCRIPT - Allow using JavaScript
+define('PKWK_ALLOW_JAVASCRIPT', 0);
+
+/////////////////////////////////////////////////
+// TrackBack feature
+
+// Enable Trackback
+$trackback = 0;
+
+// Show trackbacks with an another window
+$trackback_javascript = 0;
+
+/////////////////////////////////////////////////
+// Referer list feature
+$referer = 0;
+
+/////////////////////////////////////////////////
+// _Disable_ WikiName auto-linking
+$nowikiname = 0;
+
+/////////////////////////////////////////////////
+// AutoLink feature
+
+// AutoLink minimum bytes (0 = Disable)
+$autolink = 8;
+
+/////////////////////////////////////////////////
+// Enable Freeze / Unfreeze feature
+$function_freeze = 1;
+
+/////////////////////////////////////////////////
+// Wikisite admin password
+
+// CHANGE THIS
+$adminpass = '1a1dc91c907325c69271ddf0c944bc72'; // md5('pass')
+
+/////////////////////////////////////////////////
+// Page-reading feature settings
+// (Automatically creating pronounce datas, for Kanji-included page names,
+//  to show sorted page-list correctly)
+
+// Enable page-reading feature by calling ChaSen or KAKASHI command (0:Enable, 1:Disable)
+$pagereading_enable = 0;
+
+// Specify converter as ChaSen('chasen') or KAKASI('kakasi') or None('none')
+$pagereading_kanji2kana_converter = 'none';
+
+// Specify Kanji encoding to pass data between PukiWiki and the converter
+$pagereading_kanji2kana_encoding = 'EUC'; // Default for Unix
+//$pagereading_kanji2kana_encoding = 'SJIS'; // Default for Windows
+
+// Absolute path of the converter (ChaSen)
+$pagereading_chasen_path = '/usr/local/bin/chasen';
+//$pagereading_chasen_path = 'c:\progra~1\chasen21\chasen.exe';
+
+// Absolute path of the converter (KAKASI)
+$pagereading_kakasi_path = '/usr/local/bin/kakasi';
+//$pagereading_kakasi_path = 'c:\kakasi\bin\kakasi.exe';
+
+// Page name contains pronounce data (written by the converter)
+$pagereading_config_page = ':config/PageReading';
+
+// Page name of default pronouncing dictionary, used when converter = 'none'
+$pagereading_config_dict = ':config/PageReading/dict';
+
+/////////////////////////////////////////////////
+// User definition
+$auth_users = array(
+       'foo'   => 'foo_passwd',
+       'bar'   => 'bar_passwd',
+       'hoge'  => 'hoge_passwd',
+);
+
+/////////////////////////////////////////////////
+// Authentication method
+
+// 'pagename' : by Page name
+// 'contents' : by Page contents
+$auth_method_type = 'contents';
+
+/////////////////////////////////////////////////
+// Read auth (0:Disable, 1:Enable)
+$read_auth = 0;
+
+// Read auth regex
+$read_auth_pages = array(
+       '#¤Ò¤­¤³¤â¤ë¤Û¤²#'      => 'hoge',
+       '#(¥Í¥¿¥Ð¥ì|¤Í¤¿¤Ð¤ì)#' => 'foo,bar,hoge',
+);
+
+/////////////////////////////////////////////////
+// Edit auth (0:Disable, 1:Enable)
+$edit_auth = 0;
+
+// Edit auth regex
+$edit_auth_pages = array(
+       '#Bar¤Î¸ø³«Æüµ­#'       => 'bar',
+       '#¤Ò¤­¤³¤â¤ë¤Û¤²#'      => 'hoge',
+       '#(¥Í¥¿¥Ð¥ì|¤Í¤¿¤Ð¤ì)#' => 'foo',
+);
+
+/////////////////////////////////////////////////
+// Search auth
+// 0: Disabled (Search read-prohibited page contents)
+// 1: Enabled  (Search only permitted pages for the user)
+$search_auth = 0;
+
+/////////////////////////////////////////////////
+// $whatsnew: Max number of RecentChanges
+$maxshow = 60;
+
+// $whatsdeleted: Max number of RecentDeleted
+// (0 = Disabled)
+$maxshow_deleted = 60;
+
+/////////////////////////////////////////////////
+// Page names can't be edit via PukiWiki
+$cantedit = array( $whatsnew, $whatsdeleted );
+
+/////////////////////////////////////////////////
+// HTTP: Send Last-Modified header
+$lastmod = 0;
+
+/////////////////////////////////////////////////
+// Date format
+$date_format = 'Y-m-d';
+
+// Time format
+$time_format = 'H:i:s';
+
+/////////////////////////////////////////////////
+// Max number of RSS feed
+$rss_max = 15;
+
+/////////////////////////////////////////////////
+// Backup related settings
+
+// Enable backup
+$do_backup = 1;
+
+// When a page had been removed, remove its backup too?
+$del_backup = 0;
+
+// Bacukp interval and generation
+$cycle  = 3;    // Wait N hours between backup (0 = no wait)
+$maxage = 120; // Stock latest N backups
+
+// NOTE: $cycle x $maxage / 24 = Minimum days to lost your data
+//          3   x   120   / 24 = 15
+
+// Spilitter of backup data (NOTE: Too dangerous to change)
+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/';
+
+/////////////////////////////////////////////////
+// Proxy setting (for TrackBack etc)
+
+// Use HTTP proxy server to get remote data
+$use_proxy = 0;
+
+$proxy_host = 'proxy.example.com';
+$proxy_port = 8080;
+
+// Do Basic authentication
+$need_proxy_auth = 0;
+$proxy_auth_user = 'username';
+$proxy_auth_pass = 'password';
+
+// Hosts that proxy server will not be needed
+$no_proxy = array(
+       'localhost',    // localhost
+       '127.0.0.0/8',  // loopback
+//     '10.0.0.0/8'    // private class A
+//     '172.16.0.0/12' // private class B
+//     '192.168.0.0/16'        // private class C
+//     'no-proxy.com',
+);
+
+////////////////////////////////////////////////
+// Mail related settings
+
+// Send mail per update of pages
+$notify = 0;
+
+// Send diff only
+$notify_diff_only = 1;
+
+// SMTP server (Windows only. Usually specified at php.ini)
+$smtp_server = 'localhost';
+
+$notify_to   = 'to@example.com';       // To:
+$notify_from = 'from@example.com';     // From:
+
+// Subject: ($page = Page name wll be replaced)
+$notify_subject = '[PukiWiki] $page';
+
+// Mail header
+$notify_header = "From: $notify_from\r\n" .
+       'X-Mailer: PukiWiki/' .  S_VERSION . ' PHP/' . phpversion();
+
+/////////////////////////////////////////////////
+// Mail: POP / APOP Before SMTP
+
+// Do POP/APOP authentication before send mail
+$smtp_auth = 0;
+
+$pop_server = 'localhost';
+$pop_port   = 110;
+$pop_userid = '';
+$pop_passwd = '';
+
+// Use APOP instead of POP (If server uses)
+//   Default = Auto (Use APOP if possible)
+//   1       = Always use APOP
+//   0       = Always use POP
+// $pop_auth_use_apop = 1;
+
+/////////////////////////////////////////////////
+// Ignore list
+
+// Regex of ignore pages
+$non_list = '^\:';
+
+// Search ignored pages
+$search_non_list = 1;
+
+/////////////////////////////////////////////////
+// Template setting
+
+$auto_template_func = 1;
+$auto_template_rules = array(
+       '((.+)\/([^\/]+))' => '\2/template'
+);
+
+/////////////////////////////////////////////////
+// Automatically add fixed heading anchor
+$fixed_heading_anchor = 1;
+
+/////////////////////////////////////////////////
+// Remove the first spaces from Preformatted text
+$preformat_ltrim = 1;
+
+/////////////////////////////////////////////////
+// Convert linebreaks into <br/>
+$line_break = 0;
+
+/////////////////////////////////////////////////
+// User-Agent settings
+//
+// If you want to ignore embedded browsers for rich-content-wikisite,
+// remove (or comment-out) all 'keitai' settings.
+//
+// If you want to to ignore desktop-PC browsers for simple wikisite,
+// copy keitai.ini.php to default.ini.php and customize it.
+
+$agents = array(
+// pattern: A regular-expression that matches device(browser)'s name and version
+// profile: A group of browsers
+
+    // Embedded browsers (Rich-clients for PukiWiki)
+
+       // Windows CE (Microsoft(R) Internet Explorer 5.5 for Windows(R) CE)
+       // Sample: "Mozilla/4.0 (compatible; MSIE 5.5; Windows CE; sigmarion3)" (sigmarion, Hand-held PC)
+       array('pattern'=>'#\b(?:MSIE [5-9]).*\b(Windows CE)\b#', 'profile'=>'default'),
+
+       // ACCESS "NetFront" / "Compact NetFront" and thier OEM, expects to be "Mozilla/4.0"
+       // Sample: "Mozilla/4.0 (PS2; PlayStation BB Navigator 1.0) NetFront/3.0" (PlayStation BB Navigator, for SONY PlayStation 2)
+       // Sample: "Mozilla/4.0 (PDA; PalmOS/sony/model crdb/Revision:1.1.19) NetFront/3.0" (SONY Clie series)
+       // Sample: "Mozilla/4.0 (PDA; SL-A300/1.0,Embedix/Qtopia/1.1.0) NetFront/3.0" (SHARP Zaurus)
+       array('pattern'=>'#^(?:Mozilla/4).*\b(NetFront)/([0-9\.]+)#',   'profile'=>'default'),
+
+    // Embedded browsers (Non-rich)
+
+       // Windows CE (the others)
+       // Sample: "Mozilla/2.0 (compatible; MSIE 3.02; Windows CE; 240x320 )" (GFORT, NTT DoCoMo)
+       array('pattern'=>'#\b(Windows CE)\b#', 'profile'=>'keitai'),
+
+       // ACCESS "NetFront" / "Compact NetFront" and thier OEM
+       // Sample: "Mozilla/3.0 (AveFront/2.6)" ("SUNTAC OnlineStation", USB-Modem for PlayStation 2)
+       // Sample: "Mozilla/3.0(DDIPOCKET;JRC/AH-J3001V,AH-J3002V/1.0/0100/c50)CNF/2.0" (DDI Pocket: AirH" Phone by JRC)
+       array('pattern'=>'#\b(NetFront)/([0-9\.]+)#',   'profile'=>'keitai'),
+       array('pattern'=>'#\b(CNF)/([0-9\.]+)#',        'profile'=>'keitai'),
+       array('pattern'=>'#\b(AveFront)/([0-9\.]+)#',   'profile'=>'keitai'),
+       array('pattern'=>'#\b(AVE-Front)/([0-9\.]+)#',  'profile'=>'keitai'), // The same?
+
+       // NTT-DoCoMo, i-mode (embeded Compact NetFront) and FOMA (embedded NetFront) phones
+       // Sample: "DoCoMo/1.0/F501i", "DoCoMo/1.0/N504i/c10/TB/serXXXX" // c°Ê¹ß¤Ï²ÄÊÑ
+       // Sample: "DoCoMo/2.0 MST_v_SH2101V(c100;TB;W22H12;serXXXX;iccxxxx)" // ()¤ÎÃæ¤Ï²ÄÊÑ
+       array('pattern'=>'#^(DoCoMo)/([0-9\.]+)#',      'profile'=>'keitai'),
+
+       // Vodafone's embedded browser
+       // Sample: "J-PHONE/2.0/J-T03"  // 2.0¤Ï"¥Ö¥é¥¦¥¶¤Î"¥Ð¡¼¥¸¥ç¥ó
+       // Sample: "J-PHONE/4.0/J-SH51/SNxxxx SH/0001a Profile/MIDP-1.0 Configuration/CLDC-1.0 Ext-Profile/JSCL-1.1.0"
+       array('pattern'=>'#^(J-PHONE)/([0-9\.]+)#',     'profile'=>'keitai'),
+
+       // Openwave(R) Mobile Browser (EZweb, WAP phone, etc)
+       // Sample: "OPWV-SDK/62K UP.Browser/6.2.0.5.136 (GUI) MMP/2.0"
+       array('pattern'=>'#\b(UP\.Browser)/([0-9\.]+)#',        'profile'=>'keitai'),
+
+       // Opera, dressing up as other embedded browsers
+       // Sample: "Mozilla/3.0(DDIPOCKET;KYOCERA/AH-K3001V/1.4.1.67.000000/0.1/C100) Opera 7.0" (Like CNF at 'keitai'-mode)
+       array('pattern'=>'#\bDDIPOCKET\b.+\b(Opera) ([0-9\.]+)\b#',     'profile'=>'keitai'),
+
+       // Planetweb http://www.planetweb.com/
+       // Sample: "Mozilla/3.0 (Planetweb/v1.07 Build 141; SPS JP)" ("EGBROWSER", Web browser for PlayStation 2)
+       array('pattern'=>'#\b(Planetweb)/v([0-9\.]+)#', 'profile'=>'keitai'),
+
+       // DreamPassport, Web browser for SEGA DreamCast
+       // Sample: "Mozilla/3.0 (DreamPassport/3.0)"
+       array('pattern'=>'#\b(DreamPassport)/([0-9\.]+)#',      'profile'=>'keitai'),
+
+       // Palm "Web Pro" http://www.palmone.com/us/support/accessories/webpro/
+       // Sample: "Mozilla/4.76 [en] (PalmOS; U; WebPro)"
+       array('pattern'=>'#\b(WebPro)\b#',      'profile'=>'keitai'),
+
+       // ilinx "Palmscape" / "Xiino" http://www.ilinx.co.jp/
+       // Sample: "Xiino/2.1SJ [ja] (v. 4.1; 153x130; c16/d)"
+       array('pattern'=>'#^(Palmscape)/([0-9\.]+)#',   'profile'=>'keitai'),
+       array('pattern'=>'#^(Xiino)/([0-9\.]+)#',       'profile'=>'keitai'),
+
+       // SHARP PDA Browser (SHARP Zaurus)
+       // Sample: "sharp pda browser/6.1[ja](MI-E1/1.0) "
+       array('pattern'=>'#^(sharp [a-z]+ browser)/([0-9\.]+)#',        'profile'=>'keitai'),
+
+       // WebTV
+       array('pattern'=>'#^(WebTV)/([0-9\.]+)#',       'profile'=>'keitai'),
+
+    // Desktop-PC browsers
+
+       // Opera (for desktop PC, not embedded) -- See BugTrack/743 for detail
+       // NOTE: Keep this pattern above MSIE and Mozilla
+       // Sample: "Opera/7.0 (OS; U)" (not disguise)
+       // Sample: "Mozilla/4.0 (compatible; MSIE 5.0; OS) Opera 6.0" (disguise)
+       array('pattern'=>'#\b(Opera)[/ ]([0-9\.]+)\b#', 'profile'=>'default'),
+
+       // MSIE: Microsoft Internet Explorer (or something disguised as MSIE)
+       // Sample: "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
+       array('pattern'=>'#\b(MSIE) ([0-9\.]+)\b#',     'profile'=>'default'),
+
+       // Mozilla Firefox
+       // NOTE: Keep this pattern above Mozilla
+       // Sample: "Mozilla/5.0 (Windows; U; Windows NT 5.0; ja-JP; rv:1.7) Gecko/20040803 Firefox/0.9.3"
+       array('pattern'=>'#\b(Firefox)/([0-9\.]+)\b#',  'profile'=>'default'),
+
+       // Loose default: Including something Mozilla
+       array('pattern'=>'#^([a-zA-z0-9 ]+)/([0-9\.]+)\b#',     'profile'=>'default'),
+
+       array('pattern'=>'#^#', 'profile'=>'default'),  // Sentinel
+);
+?>