Permalink
Browse files

добавил файлы библиотеки

  • Loading branch information...
xBBCoder committed Sep 13, 2011
1 parent ed1c903 commit cf13c144310717b4d469e1947cecf5e901bd6483
Showing with 29,113 additions and 0 deletions.
  1. +75 −0 Xbb/Tags/A.php
  2. +35 −0 Xbb/Tags/Abbr.php
  3. +37 −0 Xbb/Tags/Acronym.php
  4. +32 −0 Xbb/Tags/Address.php
  5. +53 −0 Xbb/Tags/Align.php
  6. +41 −0 Xbb/Tags/Bbcode.php
  7. +48 −0 Xbb/Tags/Bdo.php
  8. +32 −0 Xbb/Tags/Br.php
  9. +32 −0 Xbb/Tags/Caption.php
  10. +122 −0 Xbb/Tags/Code.php
  11. +33 −0 Xbb/Tags/Color.php
  12. +55 −0 Xbb/Tags/Email.php
  13. +44 −0 Xbb/Tags/Font.php
  14. +39 −0 Xbb/Tags/Google.php
  15. +33 −0 Xbb/Tags/Hr.php
  16. +49 −0 Xbb/Tags/Img.php
  17. +36 −0 Xbb/Tags/Li.php
  18. +55 −0 Xbb/Tags/List.php
  19. +38 −0 Xbb/Tags/Nobb.php
  20. +36 −0 Xbb/Tags/P.php
  21. +40 −0 Xbb/Tags/Quote.php
  22. +41 −0 Xbb/Tags/Simple.php
  23. +49 −0 Xbb/Tags/Size.php
  24. +54 −0 Xbb/Tags/Table.php
  25. +48 −0 Xbb/Tags/Td.php
  26. +48 −0 Xbb/Tags/Th.php
  27. +36 −0 Xbb/Tags/Tr.php
  28. +83 −0 area.php
  29. +760 −0 bbcode.lib.js
  30. +1,147 −0 bbcode.lib.php
  31. +53 −0 config/editor.config.php
  32. +62 −0 config/parser.config.php
  33. +221 −0 config/tags.php
  34. +80 −0 config/xbbeditor.config.php
  35. +13 −0 i18n/default/lang.php
  36. +13 −0 i18n/ru_cp1251/lang.php
  37. +13 −0 i18n/ru_utf8/lang.php
  38. BIN images/background.gif
  39. BIN images/button_menu.gif
  40. BIN images/buttons/bold.gif
  41. BIN images/buttons/center.gif
  42. BIN images/buttons/code.gif
  43. BIN images/buttons/color.gif
  44. BIN images/buttons/font.gif
  45. BIN images/buttons/help.gif
  46. BIN images/buttons/hr.gif
  47. BIN images/buttons/image.gif
  48. BIN images/buttons/italic.gif
  49. BIN images/buttons/justify.gif
  50. BIN images/buttons/left.gif
  51. BIN images/buttons/link.gif
  52. BIN images/buttons/mail.gif
  53. BIN images/buttons/preview.gif
  54. BIN images/buttons/quote.gif
  55. BIN images/buttons/right.gif
  56. BIN images/buttons/s.gif
  57. BIN images/buttons/size.gif
  58. BIN images/buttons/smile.gif
  59. BIN images/buttons/sub.gif
  60. BIN images/buttons/sup.gif
  61. BIN images/buttons/underline.gif
  62. BIN images/left.gif
  63. BIN images/loader.gif
  64. BIN images/pixel.gif
  65. BIN images/right.gif
  66. BIN images/separator.gif
  67. BIN images/smiles/1.gif
  68. BIN images/smiles/10.gif
  69. BIN images/smiles/100.gif
  70. BIN images/smiles/11.gif
  71. BIN images/smiles/12.gif
  72. BIN images/smiles/13.gif
  73. BIN images/smiles/14.gif
  74. BIN images/smiles/15.gif
  75. BIN images/smiles/16.gif
  76. BIN images/smiles/17.gif
  77. BIN images/smiles/18.gif
  78. BIN images/smiles/19.gif
  79. BIN images/smiles/2.gif
  80. BIN images/smiles/20.gif
  81. BIN images/smiles/21.gif
  82. BIN images/smiles/22.gif
  83. BIN images/smiles/23.gif
  84. BIN images/smiles/24.gif
  85. BIN images/smiles/25.gif
  86. BIN images/smiles/26.gif
  87. BIN images/smiles/27.gif
  88. BIN images/smiles/28.gif
  89. BIN images/smiles/29.gif
  90. BIN images/smiles/3.gif
  91. BIN images/smiles/30.gif
  92. BIN images/smiles/31.gif
  93. BIN images/smiles/32.gif
  94. BIN images/smiles/33.gif
  95. BIN images/smiles/34.gif
  96. BIN images/smiles/35.gif
  97. BIN images/smiles/36.gif
  98. BIN images/smiles/37.gif
  99. BIN images/smiles/38.gif
  100. BIN images/smiles/39.gif
  101. BIN images/smiles/4.gif
  102. BIN images/smiles/40.gif
  103. BIN images/smiles/41.gif
  104. BIN images/smiles/42.gif
  105. BIN images/smiles/43.gif
  106. BIN images/smiles/44.gif
  107. BIN images/smiles/45.gif
  108. BIN images/smiles/46.gif
  109. BIN images/smiles/47.gif
  110. BIN images/smiles/48.gif
  111. BIN images/smiles/49.gif
  112. BIN images/smiles/5.gif
  113. BIN images/smiles/50.gif
  114. BIN images/smiles/51.gif
  115. BIN images/smiles/52.gif
  116. BIN images/smiles/53.gif
  117. BIN images/smiles/54.gif
  118. BIN images/smiles/55.gif
  119. BIN images/smiles/56.gif
  120. BIN images/smiles/57.gif
  121. BIN images/smiles/58.gif
  122. BIN images/smiles/59.gif
  123. BIN images/smiles/6.gif
  124. BIN images/smiles/60.gif
  125. BIN images/smiles/61.gif
  126. BIN images/smiles/62.gif
  127. BIN images/smiles/63.gif
  128. BIN images/smiles/64.gif
  129. BIN images/smiles/65.gif
  130. BIN images/smiles/66.gif
  131. BIN images/smiles/67.gif
  132. BIN images/smiles/68.gif
  133. BIN images/smiles/69.gif
  134. BIN images/smiles/7.gif
  135. BIN images/smiles/70.gif
  136. BIN images/smiles/71.gif
  137. BIN images/smiles/72.gif
  138. BIN images/smiles/73.gif
  139. BIN images/smiles/74.gif
  140. BIN images/smiles/75.gif
  141. BIN images/smiles/76.gif
  142. BIN images/smiles/77.gif
  143. BIN images/smiles/78.gif
  144. BIN images/smiles/79.gif
  145. BIN images/smiles/8.gif
  146. BIN images/smiles/80.gif
  147. BIN images/smiles/81.gif
  148. BIN images/smiles/82.gif
  149. BIN images/smiles/83.gif
  150. BIN images/smiles/84.gif
  151. BIN images/smiles/85.gif
  152. BIN images/smiles/86.gif
  153. BIN images/smiles/87.gif
  154. BIN images/smiles/88.gif
  155. BIN images/smiles/89.gif
  156. BIN images/smiles/9.gif
  157. BIN images/smiles/90.gif
  158. BIN images/smiles/91.gif
  159. BIN images/smiles/92.gif
  160. BIN images/smiles/93.gif
  161. BIN images/smiles/94.gif
  162. BIN images/smiles/95.gif
  163. BIN images/smiles/96.gif
  164. BIN images/smiles/97.gif
  165. BIN images/smiles/98.gif
  166. BIN images/smiles/99.gif
  167. +105 −0 images/smiles/Set_Smiles_YarNET.pak
  168. BIN images/xbb.jpg
  169. +107 −0 index.php
  170. +2,823 −0 lib/geshi.php
  171. +197 −0 lib/geshi/actionscript.php
  172. +133 −0 lib/geshi/ada.php
  173. +171 −0 lib/geshi/apache.php
  174. +134 −0 lib/geshi/applescript.php
  175. +198 −0 lib/geshi/asm.php
  176. +153 −0 lib/geshi/asp.php
  177. +453 −0 lib/geshi/autoit.php
  178. +135 −0 lib/geshi/bash.php
  179. +185 −0 lib/geshi/blitzbasic.php
  180. +130 −0 lib/geshi/bnf.php
  181. +142 −0 lib/geshi/c.php
  182. +174 −0 lib/geshi/c_mac.php
  183. +125 −0 lib/geshi/caddcl.php
  184. +185 −0 lib/geshi/cadlisp.php
  185. +125 −0 lib/geshi/cfdg.php
  186. +325 −0 lib/geshi/cfm.php
  187. +266 −0 lib/geshi/cpp-qt.php
  188. +170 −0 lib/geshi/cpp.php
  189. +231 −0 lib/geshi/csharp.php
  190. 0 lib/geshi/css-gen.cfg
  191. +207 −0 lib/geshi/css.php
  192. +285 −0 lib/geshi/d.php
  193. +270 −0 lib/geshi/delphi.php
  194. +184 −0 lib/geshi/diff.php
  195. +126 −0 lib/geshi/div.php
  196. +183 −0 lib/geshi/dos.php
  197. +394 −0 lib/geshi/eiffel.php
  198. +156 −0 lib/geshi/fortran.php
  199. +137 −0 lib/geshi/freebasic.php
  200. +502 −0 lib/geshi/gml.php
  201. +2,117 −0 lib/geshi/groovy.php
  202. +254 −0 lib/geshi/html4strict.php
  203. +119 −0 lib/geshi/idl.php
  204. +123 −0 lib/geshi/ini.php
  205. +213 −0 lib/geshi/inno.php
  206. +139 −0 lib/geshi/io.php
  207. +1,388 −0 lib/geshi/java.php
  208. +1,021 −0 lib/geshi/java5.php
  209. +144 −0 lib/geshi/javascript.php
  210. +189 −0 lib/geshi/latex.php
  211. +133 −0 lib/geshi/lisp.php
  212. +134 −0 lib/geshi/lua.php
  213. +867 −0 lib/geshi/matlab.php
  214. +125 −0 lib/geshi/mirc.php
  215. +158 −0 lib/geshi/mpasm.php
  216. +181 −0 lib/geshi/mysql.php
  217. +352 −0 lib/geshi/nsis.php
  218. +239 −0 lib/geshi/objc.php
  219. +112 −0 lib/geshi/ocaml-brief.php
  220. +161 −0 lib/geshi/ocaml.php
  221. +130 −0 lib/geshi/oobas.php
  222. +487 −0 lib/geshi/oracle8.php
  223. +143 −0 lib/geshi/pascal.php
  224. +167 −0 lib/geshi/perl.php
  225. +160 −0 lib/geshi/php-brief.php
  226. +354 −0 lib/geshi/php.php
  227. +256 −0 lib/geshi/plsql.php
  228. +227 −0 lib/geshi/python.php
  229. +145 −0 lib/geshi/qbasic.php
  230. +214 −0 lib/geshi/reg.php
  231. +98 −0 lib/geshi/robots.php
  232. +147 −0 lib/geshi/ruby.php
  233. +357 −0 lib/geshi/sas.php
  234. +170 −0 lib/geshi/scheme.php
  235. +161 −0 lib/geshi/sdlbasic.php
  236. +159 −0 lib/geshi/smalltalk.php
  237. +166 −0 lib/geshi/smarty.php
  238. +135 −0 lib/geshi/sql.php
  239. +181 −0 lib/geshi/tcl.php
  240. +81 −0 lib/geshi/text.php
  241. +639 −0 lib/geshi/thinbasic.php
  242. +382 −0 lib/geshi/tsql.php
  243. +148 −0 lib/geshi/vb.php
  244. +197 −0 lib/geshi/vbnet.php
  245. +138 −0 lib/geshi/vhdl.php
  246. +442 −0 lib/geshi/visualfoxpro.php
  247. +367 −0 lib/geshi/winbatch.php
  248. +145 −0 lib/geshi/xml.php
  249. +133 −0 lib/geshi/z80.php
  250. +340 −0 license.txt
  251. +56 −0 preview.php
  252. +224 −0 style.css
  253. +114 −0 xbb.js.php
  254. +884 −0 xbb.php
View
@@ -0,0 +1,75 @@
+<?php
+
+/******************************************************************************
+ * *
+ * A.php, v 0.00 2007/04/21 - This is part of xBB library *
+ * Copyright (C) 2006-2007 Dmitriy Skorobogatov dima@pc.uz *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the Free Software *
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *
+ * *
+ ******************************************************************************/
+
+// Класс для тегов [a], [anchor] и [url]
+class Xbb_Tags_A extends bbcode {
+ public $behaviour = 'a';
+ function get_html($tree = null) {
+ $this -> autolinks = false;
+ $text = '';
+ foreach ($this -> tree as $val) {
+ if ('text' == $val['type']) { $text .= $val['str']; }
+ }
+ $href = '';
+ if (isset($this -> attrib['url'])) {
+ $href = $this -> attrib['url'];
+ }
+ if (! $href && isset($this -> attrib['a'])) {
+ $href = $this -> attrib['a'];
+ }
+ if (! $href && isset($this -> attrib['href'])) {
+ $href = $this -> attrib['href'];
+ }
+ if (! $href && ! isset($this -> attrib['anchor'])) { $href = $text; }
+ $href = $this -> checkUrl($href);
+ $attr = 'class="bb"';
+ if ($href) {
+ $attr .= ' href="'.$href.'"';
+ }
+ if (isset($this -> attrib['title'])) {
+ $title = $this -> attrib['title'];
+ $attr .= ' title="'.htmlspecialchars($title).'"';
+ }
+ $id = '';
+ if (isset($this -> attrib['id'])) {
+ $id = $this -> attrib['id'];
+ }
+ if (! $id && isset($this -> attrib['name'])) {
+ $id = $this -> attrib['name'];
+ }
+ if (! $id && isset($this -> attrib['anchor'])) {
+ $id = $this -> attrib['anchor'];
+ if (! $id) { $id = $text; }
+ }
+ if ($id) {
+ if ($id{0} < 'A' || $id{0} > 'z') { $id = 'bb'.$id; }
+ $attr .= ' id="'.htmlspecialchars($id).'"';
+ }
+ if (isset($this -> attrib['target'])) {
+ $target = $this -> attrib['target'];
+ $attr .= ' target="'.htmlspecialchars($target).'"';
+ }
+ return '<a '.$attr.'>'.parent::get_html($this -> tree).'</a>';
+ }
+}
+?>
View
@@ -0,0 +1,35 @@
+<?php
+
+/******************************************************************************
+ * *
+ * Abbr.php, v 0.00 2007/04/21 - This is part of xBB library *
+ * Copyright (C) 2006-2007 Dmitriy Skorobogatov dima@pc.uz *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the Free Software *
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *
+ * *
+ ******************************************************************************/
+
+// Класс для тега [abbr]
+class Xbb_Tags_Abbr extends bbcode {
+ public $behaviour = 'span';
+ function get_html($tree = null) {
+ $attrib = 'class="bb"';
+ if ($this -> attrib['abbr']) {
+ $attrib .= ' title="'.htmlspecialchars($this -> attrib['abbr']).'"';
+ }
+ return '<abbr '.$attrib.'>'.parent::get_html($this -> tree).'</abbr>';
+ }
+}
+?>
View
@@ -0,0 +1,37 @@
+<?php
+
+/******************************************************************************
+ * *
+ * Acronym.php, v 0.00 2007/04/21 - This is part of xBB library *
+ * Copyright (C) 2006-2007 Dmitriy Skorobogatov dima@pc.uz *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the Free Software *
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *
+ * *
+ ******************************************************************************/
+
+// Класс для тега [acronym]
+class Xbb_Tags_Acronym extends bbcode {
+ public $behaviour = 'span';
+ function get_html($tree = null) {
+ $attrib = 'class="bb"';
+ if ($this -> attrib['acronym']) {
+ $attrib .= ' title="'.htmlspecialchars($this -> attrib['acronym'])
+ .'"';
+ }
+ return '<acronym '.$attrib.'>'.parent::get_html($this -> tree)
+ .'</acronym>';
+ }
+}
+?>
View
@@ -0,0 +1,32 @@
+<?php
+
+/******************************************************************************
+ * *
+ * Address.php, v 0.00 2007/04/21 - This is part of xBB library *
+ * Copyright (C) 2006-2007 Dmitriy Skorobogatov dima@pc.uz *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the Free Software *
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *
+ * *
+ ******************************************************************************/
+
+// Класс для тега [address]
+class Xbb_Tags_Address extends bbcode {
+ public $rbr = 1;
+ function get_html($tree = null) {
+ return '<address class="bb">'.parent::get_html($this -> tree)
+ .'</address>';
+ }
+}
+?>
View
@@ -0,0 +1,53 @@
+<?php
+
+/******************************************************************************
+ * *
+ * Align.php, v 0.00 2007/04/21 - This is part of xBB library *
+ * Copyright (C) 2006-2007 Dmitriy Skorobogatov dima@pc.uz *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the Free Software *
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *
+ * *
+ ******************************************************************************/
+
+// Класс для тегов [align], [center], [justify], [left] и [right]
+class Xbb_Tags_Align extends bbcode {
+ public $rbr = 1;
+ function get_html($tree = null) {
+ $align = '';
+ if (isset($this -> attrib['justify'])) { $align = 'justify'; }
+ if (isset($this -> attrib['left'])) { $align = 'left'; }
+ if (isset($this -> attrib['right'])) { $align = 'right'; }
+ if (isset($this -> attrib['center'])) { $align = 'center'; }
+ if (! $align && isset($this -> attrib['align'])) {
+ switch (strtolower($this -> attrib['align'])) {
+ case 'left':
+ $align = 'left';
+ break;
+ case 'right':
+ $align = 'right';
+ break;
+ case 'center':
+ $align = 'center';
+ break;
+ case 'justify':
+ $align = 'justify';
+ break;
+ }
+ }
+ return '<div class="bb" align="'.$align.'">'
+ .parent::get_html($this -> tree).'</div>';
+ }
+}
+?>
View
@@ -0,0 +1,41 @@
+<?php
+
+/******************************************************************************
+ * *
+ * Bbcode.php, v 0.00 2007/04/21 - This is part of xBB library *
+ * Copyright (C) 2006-2007 Dmitriy Skorobogatov dima@pc.uz *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the Free Software *
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *
+ * *
+ ******************************************************************************/
+
+// Класс для тега [bbcode]
+class Xbb_Tags_Bbcode extends bbcode {
+ public $behaviour = 'code';
+ function get_html($tree = null) {
+ $str = '';
+ foreach ($this -> tree as $item) {
+ if ('item' == $item['type']) { continue; }
+ $str .= $item['str'];
+ }
+ $bb = new bbcode();
+ $bb -> tags = $this -> tags;
+ $bb -> mnemonics = $this -> mnemonics;
+ $bb -> autolinks = $this -> autolinks;
+ $bb -> parse($str);
+ return '<code class="bb_code">'.$bb -> highlight().'</code>';
+ }
+}
+?>
View
@@ -0,0 +1,48 @@
+<?php
+
+/******************************************************************************
+ * *
+ * Bdo.php, v 0.00 2007/04/29 - This is part of xBB library *
+ * Copyright (C) 2006-2007 Dmitriy Skorobogatov dima@pc.uz *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the Free Software *
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *
+ * *
+ ******************************************************************************/
+
+// Класс для тега [bdo]
+class Xbb_Tags_Bdo extends bbcode {
+ public $behaviour = 'span';
+ function get_html($tree = null) {
+ $dir = '';
+ switch (strtolower($this->attrib['bdo'])) {
+ case 'ltr':
+ $dir = 'ltr';
+ break;
+ case 'rtl':
+ $dir = 'rtl';
+ }
+ if (! $dir) {
+ return parent::get_html();
+ }
+ /* <bdo> может иметь следующие атрибуты: dir, lang, id, class, style,
+ title. */
+ $attr = 'dir="' . $dir . '" class="bb"';
+ if (isset($this->attrib['lang'])) {
+ $attr .= ' lang="' . htmlspecialchars($this->attrib['lang']) . '"';
+ }
+ return '<bdo ' . $attr . '>' . parent::get_html() . '</bdo>';
+ }
+}
+?>
View
@@ -0,0 +1,32 @@
+<?php
+
+/******************************************************************************
+ * *
+ * Br.php, v 0.00 2007/04/29 - This is part of xBB library *
+ * Copyright (C) 2006-2007 Dmitriy Skorobogatov dima@pc.uz *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the Free Software *
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *
+ * *
+ ******************************************************************************/
+
+// Класс для тега [br]
+class Xbb_Tags_Br extends bbcode {
+ public $is_close = true;
+ public $behaviour = 'span';
+ function get_html($tree = null) {
+ return '<br class="bb" />' . "\n";
+ }
+}
+?>
Oops, something went wrong.

0 comments on commit cf13c14

Please sign in to comment.