"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Upload/inc/class_parser.php" between
mybb_1821.zip and mybb_1822.zip

About: MyBB is a multilingual, standards-compliant and free forum (discussion board) software.

class_parser.php  (mybb_1821):class_parser.php  (mybb_1822)
skipping to change at line 371 skipping to change at line 371
$callback_mycode['size_int']['regex'] = "#\[size=([0-9\+\ -]+?)\](.*?)\[/size\]#si"; $callback_mycode['size_int']['regex'] = "#\[size=([0-9\+\ -]+?)\](.*?)\[/size\]#si";
$callback_mycode['size_int']['replacement'] = array($this , 'mycode_handle_size_callback'); $callback_mycode['size_int']['replacement'] = array($this , 'mycode_handle_size_callback');
++$nestable_count; ++$nestable_count;
++$callback_count; ++$callback_count;
} }
if($mybb->settings['allowfontmycode'] == 1) if($mybb->settings['allowfontmycode'] == 1)
{ {
$nestable_mycode['font']['regex'] = "#\[font=([a-z0-9 ,\- $nestable_mycode['font']['regex'] = "#\[font=(\"?)([a-z0-
_'\"]+)\](.*?)\[/font\]#si"; 9 ,\-_']+)\\1\](.*?)\[/font\]#si";
$nestable_mycode['font']['replacement'] = "<span style=\" $nestable_mycode['font']['replacement'] = "<span style=\"
font-family: $1;\" class=\"mycode_font\">$2</span>"; font-family: $2;\" class=\"mycode_font\">$3</span>";
++$nestable_count; ++$nestable_count;
} }
if($mybb->settings['allowalignmycode'] == 1) if($mybb->settings['allowalignmycode'] == 1)
{ {
$nestable_mycode['align']['regex'] = "#\[align=(left|cent er|right|justify)\](.*?)\[/align\]#si"; $nestable_mycode['align']['regex'] = "#\[align=(left|cent er|right|justify)\](.*?)\[/align\]#si";
$nestable_mycode['align']['replacement'] = "<div style=\" text-align: $1;\" class=\"mycode_align\">$2</div>"; $nestable_mycode['align']['replacement'] = "<div style=\" text-align: $1;\" class=\"mycode_align\">$2</div>";
++$nestable_count; ++$nestable_count;
 End of changes. 1 change blocks. 
4 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)