OSDN Git Service

BugTrack2/122: tempnam() fails when open_basedir is specified in php.ini
[pukiwiki/pukiwiki.git] / plugin / br.inc.php
1 <?php
2 // PukiWiki - Yet another WikiWikiWeb clone
3 // $Id: br.inc.php,v 1.4 2005/03/19 01:26:53 henoheno Exp $
4 //
5 // Forcing a line break plugin
6
7 // Escape using <br> in <blockquote> (BugTrack/583)
8 define('PLUGIN_BR_ESCAPE_BLOCKQUOTE', 1);
9
10 // ----
11
12 define('PLUGIN_BR_TAG', '<br class="spacer" />');
13
14 function plugin_br_convert()
15 {
16         if (PLUGIN_BR_ESCAPE_BLOCKQUOTE) {
17                 return '<div class="spacer">&nbsp;</div>';
18         } else {
19                 return PLUGIN_BR_TAG;
20         }
21 }
22
23 function plugin_br_inline()
24 {
25         return PLUGIN_BR_TAG;
26 }
27 ?>