ol:" title="Cool">';elseif($n===47)$this->out.='/crazy.gif" width="20" height="27" alt=":crazy:" title="Crazy">';else$this->out.='/cray.gif" width="31" height="22" alt=":cry:" title="Crying or Very sad">';elseif($n<54)if($n<52)if($n===49)$this->out.='/drinks.gif" width="51" height="28" alt=":drinks:" title="Drinks or Beer">';elseif($n===50)$this->out.='/mega_shok.gif" width="34" height="28" alt=":eek:" title="Surprised">';else$this->out.='/diablo.gif" width="39" height="34" alt=":evil:" title="Evil or Very Mad">';elseif($n===52)$this->out.='/fool.gif" width="29" height="23" alt=":fool:" title="Fool">';else$this->out.='/friends.gif" width="52" height="28" alt=":friends:" title="Friends">';elseif($n<57)if($n===54)$this->out.='/good.gif" width="26" height="23" alt=":good:" title="Good">';elseif($n===55)$this->out.='/biggrin.gif" width="20" height="20" alt=":grin:" title="Very Happy">';else$this->out.='/lol.gif" width="20" height="20" alt=":lol:" title="Laughing">';elseif($n===57)$this->out.='/aggressive.gif" width="36" height="27" alt=":mad:" title="Mad">';else$this->out.='/nea.gif" width="36" height="26" alt=":no:" title="No">';elseif($n<69)if($n<64)if($n<62)if($n===59)$this->out.='/mega_shok.gif" width="34" height="28" alt=":o" title="Surprised">';elseif($n===60)$this->out.='/blush.gif" width="25" height="25" alt=":oops:" title="Embarassed">';else$this->out.='/pardon.gif" width="36" height="26" alt=":pardon:" title="Pardon">';elseif($n===62)$this->out.='/tease.gif" width="41" height="40" alt=":razz:" title="Razz">';else$this->out.='/rolleyes.gif" width="20" height="20" alt=":roll:" title="Rolling Eyes">';elseif($n<67)if($n===64)$this->out.='/sad.gif" width="20" height="24" alt=":sad:" title="Sad">';elseif($n===65)$this->out.='/shok.gif" width="20" height="20" alt=":shock:" title="Shocked">';else$this->out.='/shout.gif" width="20" height="20" alt=":shout:" title="Shout">';elseif($n===67)$this->out.='/sorry.gif" width="24" height="22" alt=":sorry:" title="Sorry">';else$this->out.='/tongue.gif" width="20" height="20" alt=":tongue:" title="бееее">';elseif($n<74)if($n<72)if($n===69)$this->out.='/spiteful.gif" width="20" height="20" alt=":twisted:" title="Twisted Evil">';elseif($n===70)$this->out.='/unknw.gif" width="32" height="20" alt=":unknown:" title="Unknown">';else$this->out.='/wink.gif" width="20" height="20" alt=":wink:" title="Wink">';elseif($n===72)$this->out.='/aggressive.gif" width="36" height="27" alt=":x" title="Mad">';else$this->out.='/wink.gif" width="20" height="20" alt=";)" title="Wink">';elseif($n===74)$this->out.='/wink.gif" width="20" height="20" alt=";-)" title="Wink">';elseif($n===75)$this->out.='/bomb.gif" width="28" height="24" alt="=@" title="Bomb">';elseif($n===76)$this->out.='/angel.gif" width="27" height="23" alt="O:)" title="Angel">';else$this->out.='/angel.gif" width="27" height="23" alt="O:-)" title="Angel">';}else$this->out.=htmlspecialchars($node->textContent,0);elseif($tb<8)if($tb===5){$this->out.='';$this->at($node);$this->out.='';}elseif($tb===6)if(!empty($this->params['S_VIEWSMILIES']))$this->out.=''.htmlspecialchars($node->textContent,2).'';else$this->out.=htmlspecialchars($node->textContent,0);elseif(!empty($this->params['S_VIEWFLASH']))$this->out.='';else$this->at($node);elseif($tb===8){$this->out.='';$this->at($node);$this->out.='';}elseif(!empty($this->params['S_VIEWIMG']))$this->out.=''.htmlspecialchars($this->params['L_IMAGE'],2).'';else$this->at($node);elseif($tb<15)if($tb<13)if($tb===10){$this->out.='
  • ';$this->at($node);$this->out.='
  • ';}elseif($tb===11)$this->out.=htmlspecialchars($node->getAttribute('text'),0);elseif(!$node->hasAttribute('type')){$this->out.='';}elseif((strpos('upperlowerdecim',mb_substr($node->getAttribute('type'),0,5,'utf-8'))!==false)){$this->out.='
      ';$this->at($node);$this->out.='
    ';}else{$this->out.='';}elseif($tb===13){$this->out.='hasAttribute('author'))$this->out.=' class="uncited"';$this->out.='>
    ';if($node->hasAttribute('author')){$this->out.='';if($node->hasAttribute('url'))$this->out.=''.htmlspecialchars($node->getAttribute('author'),0).'';elseif($node->hasAttribute('profile_url'))$this->out.=''.htmlspecialchars($node->getAttribute('author'),0).'';else$this->out.=htmlspecialchars($node->getAttribute('author'),0);$this->out.=' '.htmlspecialchars($this->params['L_WROTE'].$this->params['L_COLON'],0);if($node->hasAttribute('post_url'))$this->out.=' ';if($node->hasAttribute('date'))$this->out.='
    '.htmlspecialchars($node->getAttribute('date'),0).'
    ';$this->out.='
    ';}$this->at($node);$this->out.='
    ';}else{$this->out.='';$this->at($node);$this->out.='';}elseif($tb<18)if($tb===15){$this->out.='';$this->at($node);$this->out.='';}elseif($tb===16){$this->out.='';$this->at($node);$this->out.='';}else$this->out.='
    ';elseif($tb===18);else{$this->out.='

    ';$this->at($node);$this->out.='

    ';} } } private static $static=array('/B'=>'','/CODE'=>'','/COLOR'=>'','/EMAIL'=>'','/I'=>'','/LI'=>'','/QUOTE'=>'','/SIZE'=>'','/U'=>'','/URL'=>'','B'=>'','I'=>'','LI'=>'
  • ','U'=>''); private static $dynamic=array('COLOR'=>array('(^[^ ]+(?> (?!color=)[^=]+="[^"]*")*(?> color="([^"]*)")?.*)s',''),'SIZE'=>array('(^[^ ]+(?> (?!size=)[^=]+="[^"]*")*(?> size="([^"]*)")?.*)s',''),'URL'=>array('(^[^ ]+(?> (?!url=)[^=]+="[^"]*")*(?> url="([^"]*)")?.*)s','')); private static $attributes; private static $quickBranches=array('/LIST'=>0,'ATTACHMENT'=>1,'CODE'=>2,'E'=>3,'EMAIL'=>4,'EMOJI'=>5,'LINK_TEXT'=>6,'LIST'=>7,'QUOTE'=>8); public $quickRenderingTest='(<(?=[FI])(?>FLASH|IMG)[ />])'; protected function renderQuick($xml) { $xml = $this->decodeSMP($xml); self::$attributes = array(); $html = preg_replace_callback( '(<(?:(?!/)((?:ATTACHMENT|E(?>MOJI)?|LINK_TEXT))(?: [^>]*)?>.*?)[^ />]+)[^>]*?(/)?)>)s', array($this, 'quick'), preg_replace( '(<[eis]>[^<]*)', '', substr($xml, 1 + strpos($xml, '>'), -4) ) ); return str_replace('
    ', '
    ', $html); } protected function quick($m) { if (isset($m[2])) { $id = $m[2]; if (isset($m[3])) { unset($m[3]); $m[0] = substr($m[0], 0, -2) . '>'; $html = $this->quick($m); $m[0] = ''; $m[2] = '/' . $id; $html .= $this->quick($m); return $html; } } else { $id = $m[1]; $lpos = 1 + strpos($m[0], '>'); $rpos = strrpos($m[0], '<'); $textContent = substr($m[0], $lpos, $rpos - $lpos); if (strpos($textContent, '<') !== false) throw new \RuntimeException; $textContent = htmlspecialchars_decode($textContent); } if (isset(self::$static[$id])) return self::$static[$id]; if (isset(self::$dynamic[$id])) { list($match, $replace) = self::$dynamic[$id]; return preg_replace($match, $replace, $m[0], 1); } if (!isset(self::$quickBranches[$id])) { if ($id[0] === '!' || $id[0] === '?' || preg_match('(^/?(?>FLASH|IMG)$)', $id)) throw new \RuntimeException; return ''; } $attributes = array(); if (strpos($m[0], '="') !== false) { preg_match_all('(([^ =]++)="([^"]*))S', substr($m[0], 0, strpos($m[0], '>')), $matches); foreach ($matches[1] as $i => $attrName) $attributes[$attrName] = $matches[2][$i]; } $qb = self::$quickBranches[$id]; if($qb<5){if($qb<3)if($qb===0){$attributes=array_pop(self::$attributes);$html='';if(!isset($attributes['type']))$html.='';elseif((strpos('upperlowerdecim',mb_substr(htmlspecialchars_decode($attributes['type']),0,5,'utf-8'))!==false))$html.='';else$html.='';}elseif($qb===1){$attributes+=array('index'=>null,'filename'=>null);$html='
    '.str_replace('"','"',$attributes['filename']).'
    ';}else$html='

    '.htmlspecialchars($this->params['L_CODE'].$this->params['L_COLON'],0).' '.htmlspecialchars($this->params['L_SELECT_ALL_CODE'],0).'

    ';elseif($qb===3){$html='';if(empty($this->params['S_VIEWSMILIES']))$html.=htmlspecialchars($textContent,0);elseif(isset(self::$bt937848B3[$textContent])){$n=self::$bt937848B3[$textContent];$html.='%)';elseif($n===1)$html.='/dirol.gif" width="21" height="21" alt="8)" title="Cool">';else$html.='/dirol.gif" width="21" height="21" alt="8-)" title="Cool">';elseif($n===3)$html.='/pleasantry.gif" width="36" height="26" alt=":"":" title="Implication">';else$html.='/sad.gif" width="20" height="24" alt=":(" title="Sad">';elseif($n<8)if($n===5)$html.='/smile.gif" width="20" height="24" alt=":)" title="Smile">';elseif($n===6)$html.='/sad.gif" width="20" height="24" alt=":-(" title="Sad">';else$html.='/smile.gif" width="20" height="24" alt=":-)" title="Smile">';elseif($n===8)$html.='/biggrin.gif" width="20" height="20" alt=":-D" title="Very Happy">';else$html.='/tease.gif" width="41" height="40" alt=":-P" title="Razz">';elseif($n<15)if($n<13)if($n===10)$html.='/mega_shok.gif" width="34" height="28" alt=":-o" title="Surprised">';elseif($n===11)$html.='/aggressive.gif" width="36" height="27" alt=":-x" title="Mad">';else$html.='/acute.gif" width="27" height="24" alt=":ACUTE:" title="Ая-яй">';elseif($n===13)$html.='/air_kiss.gif" width="23" height="26" alt=":AIR_KISS:" title="Воздушный поцелуй">';else$html.='/beee.gif" width="28" height="28" alt=":BYKA:" title="Бяка">';elseif($n<18)if($n===15)$html.='/clapping.gif" width="40" height="27" alt=":Bravo:" title="Clapping">';elseif($n===16)$html.='/pleasantry.gif" width="36" height="26" alt=":COOL:" title="Клева">';else$html.='/biggrin.gif" width="20" height="20" alt=":D" title="Very Happy">';elseif($n===18)$html.='/party.gif" width="90" height="26" alt=":DISCO:" title="Пати">';else$html.='/download.gif" width="28" height="32" alt=":DOWNLOAD:" title="Качаем">';elseif($n<30)if($n<25)if($n<23)if($n===20)$html.='/black_eye.gif" width="23" height="20" alt=":EYE_BAD:" title="Битый глаз">';elseif($n===21)$html.='/flood.gif" width="40" height="48" alt=":FLOOD:" title="Флуд">';else$html.='/heat.gif" width="33" height="29" alt=":HEAT:" title="Жара">';elseif($n===23)$html.='/laugh1.gif" width="20" height="25" alt=":LAUGH:" title="Смех 2">';else$html.='/shout.gif" width="20" height="20" alt=":O:" title="Shout">';elseif($n<28)if($n===25)$html.='/tease.gif" width="41" height="40" alt=":P" title="Razz">';elseif($n===26)$html.='/punish.gif" width="48" height="30" alt=":PUNISH:" title="Спор">';else$html.='/rofl.gif" width="29" height="25" alt=":ROFL:" title="ROFL">';elseif($n===28)$html.='/rolleyes.gif" width="20" height="20" alt=":ROLLEYES:" title="Глазищи">';else$html.='/give_rose.gif" width="30" height="26" alt=":Rose:" title="Rose">';elseif($n<35)if($n<33)if($n===30)$html.='/scare.gif" width="42" height="34" alt=":SCARE:" title="Испуг">';elseif($n===31)$html.='/search.gif" width="38" height="25" alt=":SEARCH:" title="Поиск">';else$html.='/shok.gif" width="20" height="20" alt=":SHOCK:" title="Шокирован">';elseif($n===33)$html.='/smoke.gif" width="35" height="30" alt=":SMOKE:" title="Отдых">';else$html.='/snooks.gif" width="34" height="27" alt=":SNOOKS:" title="фига!">';elseif($n===35)$html.='/sorry.gif" width="24" height="22" alt=":SORRY:" title="Провинился">';elseif($n===36)$html.='/spiteful.gif" width="20" height="20" alt=":SPITEFUL:" title="Злорадный">';elseif($n===37)$html.='/swoon.gif" width="20" height="20" alt=":SWOON:" title="Обморок">';else$html.='/search.gif" width="38" height="25" alt=":Search:" title="Search">';elseif($n<59)if($n<49)if($n<44)if($n<42)if($n===39)$html.='/thank_you.gif" width="36" height="29" alt=":THANK:" title="Спасибо большое">';elseif($n===40)$html.='/umnik.gif" width="29" height="25" alt=":UMNIK:" title="Умник">';else$html.='/mega_shok.gif" width="34" height="28" alt=":VAY:" title="Ёксель-моксель">';elseif($n===42)$html.='/yahoo.gif" width="42" height="27" alt=":Yahoo!:" title="Yahoo!">';else$html.='/angel.gif" width="27" height="23" alt=":angel:" title="Angel">';elseif($n<47)if($n===44)$html.='/bad.gif" width="21" height="21" alt=":bad:" title="Bad">';elseif($n===45)$html.='/drinks.gif" width="51" height="28" alt=":beer:" title="Drinks or Beer">';else$html.='/dirol.gif" width="21" height="21" alt=":cool:" title="Cool">';elseif($n===47)$html.='/crazy.gif" width="20" height="27" alt=":crazy:" title="Crazy">';else$html.='/cray.gif" width="31" height="22" alt=":cry:" title="Crying or Very sad">';elseif($n<54)if($n<52)if($n===49)$html.='/drinks.gif" width="51" height="28" alt=":drinks:" title="Drinks or Beer">';elseif($n===50)$html.='/mega_shok.gif" width="34" height="28" alt=":eek:" title="Surprised">';else$html.='/diablo.gif" width="39" height="34" alt=":evil:" title="Evil or Very Mad">';elseif($n===52)$html.='/fool.gif" width="29" height="23" alt=":fool:" title="Fool">';else$html.='/friends.gif" width="52" height="28" alt=":friends:" title="Friends">';elseif($n<57)if($n===54)$html.='/good.gif" width="26" height="23" alt=":good:" title="Good">';elseif($n===55)$html.='/biggrin.gif" width="20" height="20" alt=":grin:" title="Very Happy">';else$html.='/lol.gif" width="20" height="20" alt=":lol:" title="Laughing">';elseif($n===57)$html.='/aggressive.gif" width="36" height="27" alt=":mad:" title="Mad">';else$html.='/nea.gif" width="36" height="26" alt=":no:" title="No">';elseif($n<69)if($n<64)if($n<62)if($n===59)$html.='/mega_shok.gif" width="34" height="28" alt=":o" title="Surprised">';elseif($n===60)$html.='/blush.gif" width="25" height="25" alt=":oops:" title="Embarassed">';else$html.='/pardon.gif" width="36" height="26" alt=":pardon:" title="Pardon">';elseif($n===62)$html.='/tease.gif" width="41" height="40" alt=":razz:" title="Razz">';else$html.='/rolleyes.gif" width="20" height="20" alt=":roll:" title="Rolling Eyes">';elseif($n<67)if($n===64)$html.='/sad.gif" width="20" height="24" alt=":sad:" title="Sad">';elseif($n===65)$html.='/shok.gif" width="20" height="20" alt=":shock:" title="Shocked">';else$html.='/shout.gif" width="20" height="20" alt=":shout:" title="Shout">';elseif($n===67)$html.='/sorry.gif" width="24" height="22" alt=":sorry:" title="Sorry">';else$html.='/tongue.gif" width="20" height="20" alt=":tongue:" title="бееее">';elseif($n<74)if($n<72)if($n===69)$html.='/spiteful.gif" width="20" height="20" alt=":twisted:" title="Twisted Evil">';elseif($n===70)$html.='/unknw.gif" width="32" height="20" alt=":unknown:" title="Unknown">';else$html.='/wink.gif" width="20" height="20" alt=":wink:" title="Wink">';elseif($n===72)$html.='/aggressive.gif" width="36" height="27" alt=":x" title="Mad">';else$html.='/wink.gif" width="20" height="20" alt=";)" title="Wink">';elseif($n===74)$html.='/wink.gif" width="20" height="20" alt=";-)" title="Wink">';elseif($n===75)$html.='/bomb.gif" width="28" height="24" alt="=@" title="Bomb">';elseif($n===76)$html.='/angel.gif" width="27" height="23" alt="O:)" title="Angel">';else$html.='/angel.gif" width="27" height="23" alt="O:-)" title="Angel">';}else$html.=htmlspecialchars($textContent,0);}else{$attributes+=array('email'=>null,'body'=>null);$html='';}}elseif($qb===5){$attributes+=array('seq'=>null);$html='';if(!empty($this->params['S_VIEWSMILIES']))$html.=''.htmlspecialchars($textContent,2).'';else$html.=htmlspecialchars($textContent,0);}elseif($qb===6){$attributes+=array('text'=>null);$html=str_replace('"','"',$attributes['text']);}elseif($qb===7){$attributes+=array('type'=>null);$html='';if(!isset($attributes['type']))$html.='