owls

diff Includes/Bbcodeparser.inc.php @ 2:ab74e95a8040

added display of broken nodes; Header and Footer in Owls.php now; added logos
author "Meillo r e t u r n s <meillo@marmaro.de>"
date Thu, 07 Dec 2006 21:04:30 +0100
parents 3021ce32ee14
children 2672cd855fa2
line diff
     1.1 --- a/Includes/Bbcodeparser.inc.php	Sun Dec 03 22:32:33 2006 +0100
     1.2 +++ b/Includes/Bbcodeparser.inc.php	Thu Dec 07 21:04:30 2006 +0100
     1.3 @@ -9,6 +9,11 @@
     1.4   */
     1.5  
     1.6  
     1.7 +  define('SMILIE_DIR', 'Smilies/');  // path to smilies
     1.8 +
     1.9 +
    1.10 +
    1.11 +
    1.12    function parse_quote1($textinput,$level = 1) {                  // ohne Quelle
    1.13      $pattern = '#\[quote\](((?R)|(.*))*)\[/quote\]#isUe';
    1.14      $replacement = "'<br />[nl]<span class=\"quote0\">Zitat:</span>[nl]<div class=\"quote1\">[nl]'.parse_quote1('$1',
    1.15 @@ -25,8 +30,6 @@
    1.16    }
    1.17  
    1.18    function smilies($text) {
    1.19 -    $smilieDir = 'Pics/Smilies/';  // path to smilies
    1.20 -
    1.21      $smilies = array( ':-)'        => 'Smile.gif',
    1.22                        ':)'         => 'Smile.gif',
    1.23                        ';-)'        => 'Wink.gif',
    1.24 @@ -41,14 +44,14 @@
    1.25                        ':-S'        => 'Dontknow.gif',
    1.26                        ':dontknow:' => 'Dontknow.gif',
    1.27                        ':-@'        => 'Angry.gif',
    1.28 -                      ':cool:'        => 'Cool.gif',
    1.29 -                      '(H)'        => 'Cool.gif',
    1.30 +                      ':cool:'     => 'Cool.gif',
    1.31 +                      'B-)'        => 'Cool.gif',
    1.32                        '%-)'        => 'Crosseyed.gif',
    1.33                        '%-('        => 'Crosseyed.gif',
    1.34                        ':rolleyes:' => 'Rolleyes.gif',
    1.35                        ':eek:'      => 'Shocked.gif');
    1.36      while(list($key, $val) = each($smilies)) {
    1.37 -      $text = str_replace($key,'[img]'.$smilieDir.$val.'[/img]',$text);
    1.38 +      $text = str_replace($key,'[img]'. SMILIE_DIR . $val .'[/img]', $text);
    1.39      }
    1.40      return $text;
    1.41    }