<?php
class xpwiki_[インストールディレクトリ名]_plugin_moblog extends xpwiki_plugin_moblog {
	function plugin_moblog_init () {
		parent::plugin_moblog_init();
		
		////// 必須設定項目 ///////
		
		// 受信用メールアドレス
		$this->config['mail'] = '';
		// POPサーバー
		$this->config['host'] = 'localhost';
		// POPサーバーアカウント
		$this->config['user'] = '';
		// POPサーバーパスワード
		$this->config['pass'] = '';
		// POPサーバーポート番号
		$this->config['port'] = 110;
		
		// 送信元アドレスによって振り分けるページの指定
		// ページ名空白 '' で無視(投稿登録中止)
		$this->config['adr2page'] = array(
		//	  'メールアドレス'	 => array('ページ名', UserIDナンバー),
		//	  'hoge@example.com' => array('日記', 1),	 // 設定例
			'other'			   => array('', 0),		   // 登録メールアドレス以外
		);
		
		////// 必須設定項目終了 //////
		
		//////////////////////////////
		///// 以下はお好みで設定 /////
		
		// refプラグインの追加オプション
		$this->config['ref'] = ',left,around,mw:240,mh:240';
		
		// googlemaps の追加オプション
		$this->config['gmap'] = ',width=100%,height=300px,zoom=15,type=normal,overviewctrl=1,autozoom=1';
		
		// 最大添付量（バイト・1ファイルにつき）※超えるものは保存しない
		$this->config['maxbyte'] = "1048576"; //1MB
		
		// 本文文字制限（半角で
		$this->config['body_limit'] = 1000;
		
		// 最小自動更新間隔（分）
		$this->config['refresh_min'] = 5;
		
		// 件名がないときの題名
		$this->config['nosubject'] = "";
		
		// 投稿非許可アドレス（ログに記録しない）
		$this->config['deny'] = array('163.com','bigfoot.com','boss.com','yahoo-delivers@mail.yahoo.co.jp');
		
		// 投稿非許可メーラー(perl互換正規表現)（ログに記録しない）
		$this->config['deny_mailer'] = '/(Mail\s*Magic|Easy\s*DM|Friend\s*Mailer|Extra\s*Japan|The\s*Bat)/i';
		
		// 投稿非許可タイトル(perl互換正規表現)（ログに記録しない）
		$this->config['deny_title'] = '/((未|末)\s?承\s?(諾|認)\s?広\s?告)|相互リンク/i';
		
		// 投稿非許可キャラクターセット(perl互換正規表現)（ログに記録しない）
		$this->config['deny_lang'] = '/us-ascii|big5|euc-kr|gb2312|iso-2022-kr|ks_c_5601-1987/i';
		
		// 対応MIMEタイプ（正規表現）Content-Type: image/jpegの後ろの部分。octet-streamは危険かも
		$this->config['subtype'] = "gif|jpe?g|png|bmp|octet-stream|x-pmd|x-mld|x-mid|x-smd|x-smaf|x-mpeg";
		
		// 保存しないファイル(正規表現)
		$this->config['viri'] = ".+\.exe$|.+\.zip$|.+\.pif$|.+\.scr$";
		
		// 25字以上の下線は削除（広告区切り）
		$this->config['del_ereg'] = "[_]{25,}";
		
		// 本文から削除する文字列
		$this->config['word'][] = "http://auction.msn.co.jp/";
		$this->config['word'][] = "Do You Yahoo!?";
		$this->config['word'][] = "Yahoo! BB is Broadband by Yahoo!";
		$this->config['word'][] = "http://bb.yahoo.co.jp/";
		
		// 添付メールのみ記録する？Yes=1 No=0（本文のみはログに載せない）
		$this->config['imgonly'] = 0;
	}
}
?>