From: Kazuki Przyborowski Date: Sun, 5 Aug 2007 10:27:19 +0000 (+0000) Subject: Another bug fix. :P X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=d0a4ffddf017da7646a064585128125bd50a43b2;p=idb%2FiDB.git.git Another bug fix. :P git-svn-id: svn://svn.code.sf.net/p/intdb/svn/trunk@69 2b68903e-0b30-0410-9a39-a2e4f3c5be39 --- diff --git a/inc/misc/functions.php b/inc/misc/functions.php index b7b3cca..73906bc 100644 --- a/inc/misc/functions.php +++ b/inc/misc/functions.php @@ -11,7 +11,7 @@ Copyright 2004-2007 Cool Dude 2k - http://intdb.sourceforge.net/ Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/ - $FileInfo: functions.php - Last Update: 08/05/2007 SVN 68 - Author: cooldude2k $ + $FileInfo: functions.php - Last Update: 08/05/2007 SVN 69 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="functions.php"||$File3Name=="/functions.php") { @@ -153,10 +153,36 @@ if($ReplaceType=="yes") { $Smile1 = preg_quote($SmileText,"/"); $Text = preg_replace("/".$Smile1."/i",$Smile2,$Text); } ++$renees; } return $Text; } -// Remove the bad stuff +// Removes the bad stuff function remove_bad_entities($Text) { +//HTML Entities Dec Version $Text = preg_replace("/‮/isU","",$Text); +$Text = preg_replace("/ /isU","",$Text); +$Text = preg_replace("/ /isU","",$Text); +$Text = preg_replace("/ /isU","",$Text); +$Text = preg_replace("/‌/isU","",$Text); +$Text = preg_replace("/‍/isU","",$Text); +$Text = preg_replace("/‎/isU","",$Text); +$Text = preg_replace("/‏/isU","",$Text); +//HTML Entities Hex Version +$Text = preg_replace("/‮/isU","",$Text); +$Text = preg_replace("/ /isU","",$Text); +$Text = preg_replace("/ /isU","",$Text); +$Text = preg_replace("/ /isU","",$Text); +$Text = preg_replace("/‌/isU","",$Text); +$Text = preg_replace("/‍/isU","",$Text); +$Text = preg_replace("/‎/isU","",$Text); +$Text = preg_replace("/‏/isU","",$Text); +//HTML Entities Name Version +$Text = preg_replace("/ /isU","",$Text); +$Text = preg_replace("/ /isU","",$Text); +$Text = preg_replace("/ /isU","",$Text); +$Text = preg_replace("/‌/isU","",$Text); +$Text = preg_replace("/‍/isU","",$Text); +$Text = preg_replace("/‎/isU","",$Text); +$Text = preg_replace("/‏/isU","",$Text); return $Text; } +// Remove the bad stuff function remove_spaces($Text) { $Text = preg_replace("/(^\t+|\t+$)/","",$Text); $Text = preg_replace("/(^\n+|\n+$)/","",$Text); diff --git a/inc/versioninfo.php b/inc/versioninfo.php index 3b30576..322d1bc 100644 --- a/inc/versioninfo.php +++ b/inc/versioninfo.php @@ -11,7 +11,7 @@ Copyright 2004-2007 Cool Dude 2k - http://intdb.sourceforge.net/ Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/ - $FileInfo: versioninfo.php - Last Update: 08/05/2007 SVN 68 - Author: cooldude2k $ + $FileInfo: versioninfo.php - Last Update: 08/05/2007 SVN 69 - 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] = 1; $VER1[2] = 8; $VERFull[1] = $VER1[0].".".$VER1[1].".".$VER1[2]; -$VER2[0] = "Pre-Alpha"; $VER2[1] = "PA"; $VER2[2] = "SVN"; $SubVerN = 68; $RName = "iDB"; $SFName = "IntDB"; +$VER2[0] = "Pre-Alpha"; $VER2[1] = "PA"; $VER2[2] = "SVN"; $SubVerN = 69; $RName = "iDB"; $SFName = "IntDB"; $SVNDay[0] = 08; $SVNDay[1] = 05; $SVNDay[2] = 2007; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2]; $VerInfo['iDB_Ver'] = version_info($RName,$VER1[0],$VER1[1],$VER1[2],$VER2[1],$SubVerN,false); $VerInfo['iDB_Ver_SVN'] = version_info($RName,$VER1[0],$VER1[1],$VER1[2],$VER2[1],$SubVerN,true);