From bd3b8b2ea00a289acfb034212883ecfc6ab0ab51 Mon Sep 17 00:00:00 2001 From: Kazuki Przyborowski Date: Wed, 4 May 2011 15:24:54 +0000 Subject: [PATCH] Added more BBTags. git-svn-id: svn://svn.code.sf.net/p/intdb/svn/trunk@649 2b68903e-0b30-0410-9a39-a2e4f3c5be39 --- inc/misc/ibbcode.php | 12 ++++++++++-- inc/versioninfo.php | 6 +++--- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/inc/misc/ibbcode.php b/inc/misc/ibbcode.php index eedc9bd..f9e79e3 100644 --- a/inc/misc/ibbcode.php +++ b/inc/misc/ibbcode.php @@ -12,7 +12,7 @@ Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/ iBBCode / iBBTags by Kazuki Przyborowski - http://idb.berlios.net/ - $FileInfo: ibbcode.php - Last Update: 05/02/2011 SVN 648 - Author: cooldude2k $ + $FileInfo: ibbcode.php - Last Update: 05/04/2011 SVN 649 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="ibbcode.php"||$File3Name=="/ibbcode.php") { @@ -96,11 +96,17 @@ $text = preg_replace_callback("/\{RAND\=([\-]?[0-9]+),([\-]?[0-9]+)\}/is", "bbco $text = preg_replace("/\[Entity\=([A-Za-z0-9\#]+)\]/is", "&\\1;", $text); $text = preg_replace("/\{Entity\=([A-Za-z0-9\#]+)\}/is", "&\\1;", $text); $text = preg_replace("/\[B\](.*?)\[\/B\]/is", "\\1", $text); +$text = preg_replace("/\[BOLD\](.*?)\[\/BOLD\]/is", "\\1", $text); $text = preg_replace("/\[I\](.*?)\[\/I\]/is", "\\1", $text); +$text = preg_replace("/\[ITALIC\](.*?)\[\/ITALIC\]/is", "\\1", $text); +$text = preg_replace("/\[OBLIQUE\](.*?)\[\/OBLIQUE\]/is", "\\1", $text); $text = preg_replace("/\[S\](.*?)\[\/S\]/is", "\\1", $text); +$text = preg_replace("/\[STRIKE\](.*?)\[\/STRIKE\]/is", "\\1", $text); $text = preg_replace("/\[U\](.*?)\[\/U\]/is", "\\1", $text); $text = preg_replace("/\[O\](.*?)\[\/O\]/is", "\\1", $text); $text = preg_replace("/\[CENTER\](.*?)\[\/CENTER\]/is", "\\1", $text); +$text = preg_replace("/\[LTR\](.*?)\[\/LTR\]/is", "\\1", $text); +$text = preg_replace("/\[FONT\=([A-Za-z0-9\,\s]+)\](.*?)\[\/FONT\]/is", "\\2", $text); $text = preg_replace("/\[SIZE\=([0-9]+)\](.*?)\[\/SIZE\]/is", "\\2", $text); $text = preg_replace("/\[SIZE\=([0-9]+)\%\](.*?)\[\/SIZE\]/is", "\\2", $text); $text = preg_replace("/\[SIZE\=([0-9]+)(em|pt|px)\](.*?)\[\/SIZE\]/is", "\\3", $text); @@ -116,7 +122,9 @@ $text = preg_replace("/\[COLOUR\=rgb\(([0-9\,\s]+)\)\](.*?)\[\/COLOUR\]/is", "\\2", $text); $text = preg_replace("/\[BGCOLOUR\=\#([A-Za-z0-9]+)\](.*?)\[\/BGCOLOUR\]/is", "\\2", $text); $text = preg_replace("/\[BGCOLOUR\=rgb\(([0-9\,\s]+)\)\](.*?)\[\/BGCOLOUR\]/is", "\\2", $text); -$text = preg_replace("/\[ALIGN=(.*?)\](.*?)\[\/ALIGN\]/is", "\\2", $text); +$text = preg_replace("/\[ALIGN=(left|center|right|justify)\](.*?)\[\/ALIGN\]/is", "
\\2
", $text); +$text = preg_replace("/\[VALIGN=(.*?)\](.*?)\[\/VALIGN\]/is", "
\\2
", $text); +$text = preg_replace("/\[FLOAT=(left|right)\](.*?)\[\/FLOAT\]/is", "
\\2
", $text); // Sub URL and IMG tags $text = preg_replace_callback("/\[URL](.*?)\[\/URL\]/is", "urlcheck2", $text); $text = preg_replace_callback("/\[URL\=(.*?)\](.*?)\[\/URL\]/is", "urlcheck2", $text); diff --git a/inc/versioninfo.php b/inc/versioninfo.php index fb5a510..370cd72 100644 --- a/inc/versioninfo.php +++ b/inc/versioninfo.php @@ -11,7 +11,7 @@ Copyright 2004-2011 iDB Support - http://idb.berlios.de/ Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/ - $FileInfo: versioninfo.php - Last Update: 05/03/2011 SVN 648 - Author: cooldude2k $ + $FileInfo: versioninfo.php - Last Update: 05/04/2011 SVN 649 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="versioninfo.php"||$File3Name=="/versioninfo.php") { @@ -27,8 +27,8 @@ function version_info($proname,$subver,$ver,$supver,$reltype,$svnver,$showsvn) { return $return_var; } // Version number and date stuff. :P $VER1[0] = 0; $VER1[1] = 4; $VER1[2] = 4; $VERFull[1] = $VER1[0].".".$VER1[1].".".$VER1[2]; -$VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 648; -$SVNDay[0] = 05; $SVNDay[1] = 03; $SVNDay[2] = 2011; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2]; +$VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 649; +$SVNDay[0] = 05; $SVNDay[1] = 04; $SVNDay[2] = 2011; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2]; $AltName = "RDB"; $AltName2 = "ReneeDB"; $RName = "iDB"; $SFName = "IntDB"; $RFullName = "Internet Discussion Boards"; $AltFullName = "Renee Discussion Boards"; if(!isset($Settings['usealtname'])) { $Settings['usealtname'] = "no"; } -- 2.11.4.GIT