From 2a3ac69748eae26fa653e2fd2723187d6fe8e774 Mon Sep 17 00:00:00 2001 From: Kazuki Przyborowski Date: Sun, 1 May 2011 06:13:41 +0000 Subject: [PATCH] Yet another small bug fix to iBBCode/iBBTags. git-svn-id: svn://svn.code.sf.net/p/intdb/svn/trunk@639 2b68903e-0b30-0410-9a39-a2e4f3c5be39 --- inc/misc/ibbcode.php | 6 ++++-- inc/versioninfo.php | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/inc/misc/ibbcode.php b/inc/misc/ibbcode.php index 4b54993..69eae34 100644 --- a/inc/misc/ibbcode.php +++ b/inc/misc/ibbcode.php @@ -11,7 +11,7 @@ Copyright 2004-2011 iDB Support - http://idb.berlios.de/ Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/ - $FileInfo: ibbcode.php - Last Update: 05/01/2011 SVN 638 - Author: cooldude2k $ + $FileInfo: ibbcode.php - Last Update: 05/01/2011 SVN 639 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="ibbcode.php"||$File3Name=="/ibbcode.php") { @@ -42,6 +42,8 @@ $text = preg_replace("/\[YouTube\]([A-Za-z0-9\.\-_]+)\[\/YouTube\]/is", "\n\n\n\n\n\n\n", $text); $text = preg_replace("/\[Vimeo\]([A-Za-z0-9\.\-_]+)\[\/Vimeo\]/is", "\n\n\n\n\n\n", $text); $text = preg_replace("/\[TinyPic\]([A-Za-z0-9\.\-_]+)\,([A-Za-z0-9\.\-_]+)\[\/TinyPic\]/is", "\"\\2\"", $text); +$text = preg_replace("/\[BR\]/is", "
", $text); +$text = preg_replace("/\[HR\]/is", "
", $text); $text = preg_replace("/\[B\](.*?)\[\/B\]/is", "\\1", $text); $text = preg_replace("/\[I\](.*?)\[\/I\]/is", "\\1", $text); $text = preg_replace("/\[S\](.*?)\[\/S\]/is", "\\1", $text); @@ -58,7 +60,7 @@ $retnum = preg_match_all("/([a-zA-Z]+)\:\/\/([a-z0-9\-\.]+)(\:[0-9]+)?\/([A-Za-z if(isset($urlcheck[0][0])) { $matches[0] = preg_replace("/\[URL\](.*?)\[\/URL\]/is", " \\1", $matches[0]); $matches[0] = preg_replace("/\[URL\=(.*?)\](.*?)\[\/URL\]/is", "\\2", $matches[0]); -$matches[0] = preg_replace("/\[IMG](.*?)\[\/IMG\]/is", "", $matches[0]); } +$matches[0] = preg_replace("/\[IMG](.*?)\[\/IMG\]/is", "\"user", $matches[0]); } return $matches[0]; } } // Sub URL and IMG tags $text = preg_replace_callback("/\[URL](.*?)\[\/URL\]/is", "urlcheck2", $text); diff --git a/inc/versioninfo.php b/inc/versioninfo.php index 8324f8e..1571733 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/01/2011 SVN 638 - Author: cooldude2k $ + $FileInfo: versioninfo.php - Last Update: 05/01/2011 SVN 639 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="versioninfo.php"||$File3Name=="/versioninfo.php") { @@ -27,7 +27,7 @@ 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] = 3; $VERFull[1] = $VER1[0].".".$VER1[1].".".$VER1[2]; -$VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 638; +$VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 639; $SVNDay[0] = 05; $SVNDay[1] = 01; $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"; -- 2.11.0