From 1f2146707f5a7895711a538153aa3e2c9de0cb79 Mon Sep 17 00:00:00 2001 From: Kazuki Przyborowski Date: Mon, 24 Sep 2007 11:43:33 +0000 Subject: [PATCH] Small bug fix for replies. :P git-svn-id: svn://svn.code.sf.net/p/intdb/svn/trunk@109 2b68903e-0b30-0410-9a39-a2e4f3c5be39 --- inc/replys.php | 10 +++++----- inc/versioninfo.php | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/inc/replys.php b/inc/replys.php index 76743d8..3617817 100644 --- a/inc/replys.php +++ b/inc/replys.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: replys.php - Last Update: 09/13/2007 SVN 100 - Author: cooldude2k $ + $FileInfo: replys.php - Last Update: 09/24/2007 SVN 109 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="replys.php"||$File3Name=="/replys.php") { @@ -341,9 +341,9 @@ if($QuoteUserName==null) { $QuoteUserName="Guest"; } } $QuoteUserName = stripcslashes(htmlspecialchars($QuoteUserName, ENT_QUOTES)); //$QuoteUserName = preg_replace("/&#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $QuoteUserName); $QuoteUserName = @remove_spaces($QuoteUserName); -$QuoteReply = stripcslashes(htmlspecialchars($QuoteReply, ENT_QUOTES)); +/*$QuoteReply = stripcslashes(htmlspecialchars($QuoteReply, ENT_QUOTES)); $QuoteReply = preg_replace("/&#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $QuoteReply); -//$QuoteReply = @remove_spaces($QuoteReply); +//$QuoteReply = @remove_spaces($QuoteReply);*/ $QuoteReply = remove_bad_entities($QuoteReply); $QuoteDescription = str_replace("Re: ","",$QuoteDescription); $QuoteDescription = "Re: ".$QuoteDescription; @@ -686,9 +686,9 @@ redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"a ob_clean(); @header("Content-Type: text/plain; charset=".$Settings['charset']); gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @mysql_close(); die(); } $ReplyPost=mysql_result($ersresult,0,"Post"); -$ReplyPost = stripcslashes(htmlspecialchars($ReplyPost, ENT_QUOTES)); +/*$ReplyPost = stripcslashes(htmlspecialchars($ReplyPost, ENT_QUOTES)); $ReplyPost = preg_replace("/&#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $ReplyPost); -//$ReplyPost = @remove_spaces($ReplyPost); +//$ReplyPost = @remove_spaces($ReplyPost);*/ $ReplyPost = remove_bad_entities($ReplyPost); $ReplyDescription=mysql_result($ersresult,0,"Description"); $ReplyDescription = stripcslashes(htmlspecialchars($ReplyDescription, ENT_QUOTES)); diff --git a/inc/versioninfo.php b/inc/versioninfo.php index 912bfbf..0d86d83 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: 09/21/2007 SVN 108 - Author: cooldude2k $ + $FileInfo: versioninfo.php - Last Update: 09/24/2007 SVN 109 - 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] = 2; $VER1[2] = 0; $VERFull[1] = $VER1[0].".".$VER1[1].".".$VER1[2]; -$VER2[0] = "Pre-Alpha"; $VER2[1] = "PA"; $VER2[2] = "SVN"; $SubVerN = 108; $RName = "iDB"; $SFName = "IntDB"; -$SVNDay[0] = 09; $SVNDay[1] = 21; $SVNDay[2] = 2007; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2]; +$VER2[0] = "Pre-Alpha"; $VER2[1] = "PA"; $VER2[2] = "SVN"; $SubVerN = 109; $RName = "iDB"; $SFName = "IntDB"; +$SVNDay[0] = 09; $SVNDay[1] = 24; $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); $VerInfo['iDB_Full_Ver'] = version_info($RName,$VER1[0],$VER1[1],$VER1[2],$VER2[0],$SubVerN,false); -- 2.11.0