config / plugin / comment.inc.php


  • ../../../pukiwiki-1.4.6/plugin/comment.inc.php 2005-05-06 13:44:20.000000000 +0900
  1. comment.inc.php 2006-09-03 19:19:57.556125000 +0900 @@ -8,6 +8,15 @@
    //
    // Comment plugin
    
  1. global $comment_ng_word;
  2. /////////////////////////////////////////////////
  3. // NGワード(正規表現)
  4. $comment_ng_word = array (
  5. '/^https*\:\/\//',
  6. '/^ *<a *href="https*\:\/\//',
  7. );
  8. /////////////////////////////////////////////////
    define('PLUGIN_COMMENT_DIRECTION_DEFAULT', '1'); // 1: above 0: below
    define('PLUGIN_COMMENT_SIZE_MSG',  70);
    define('PLUGIN_COMMENT_SIZE_NAME', 15);
    @@ -22,13 +31,24 @@
    {
    	global $script, $vars, $now, $_title_updated, $_no_name;
    	global $_msg_comment_collided, $_title_comment_collided;
  9. global $comment_ng_word;
    	if (PKWK_READONLY) die_message('PKWK_READONLY prohibits editing');
    
    	if (! isset($vars['msg'])) return array('msg'=>'', 'body'=>''); // Do nothing
    
    	$vars['msg'] = str_replace("\n", '', $vars['msg']); // Cut LFs
  • $head = '';
  1. foreach(comment_ng_word as word)
  2. {
  3. if(preg_match(word,vars['msg']))
  4. {
  5. // NGワードに一致した場合は書き込めない
  6. return array('msg'=>, 'body'=>);
  7. }
  8. }
  9. $head = '';
    	$match = array();
    	if (preg_match('/^(-{1,2})-*\s*(.*)/', $vars['msg'], $match)) {
    		$head        = & $match[1];

Menu

  • よくある質問集?
  • 用語集?
  • 攻略?
  • 群雄伝?
  • デッキ?
  • カードリスト?
  • 計略リスト?
  • 戦器リスト
  • 兵法?
  • 特技?
  • 称号?
  • チーム一覧?
  • 店舗情報?
  • トレードの手引き?
  • 頂上対決記録?
  • 三国志大戦の歴史?
  • 三国志大戦.Net?
  • 三国志大戦リンク?

total:168
today:1
yesterday:0
見てる人:1