Copyright 2004-2007 Cool Dude 2k - http://intdb.sourceforge.net/
Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/
- $FileInfo: members.php - Last Update: 08/02/2007 SVN 62 - Author: cooldude2k $
+ $FileInfo: members.php - Last Update: 08/05/2007 SVN 68 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="members.php"||$File3Name=="/members.php") {
$NewSignature = $_GET['YourPost'];
$_GET['YourPost'] = preg_replace("/\t+/"," ",$_GET['YourPost']);
$_GET['YourPost'] = preg_replace("/\s\s+/"," ",$_GET['YourPost']);
+$_GET['YourPost'] = remove_bad_entities($_GET['YourPost']);
$Avatar = stripcslashes(htmlspecialchars($_POST['Avatar'], ENT_QUOTES));
$Avatar = preg_replace("/&#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $Avatar);
$Avatar = @remove_spaces($Avatar);
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/02/2007 SVN 62 - Author: cooldude2k $
+ $FileInfo: functions.php - Last Update: 08/05/2007 SVN 68 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="functions.php"||$File3Name=="/functions.php") {
$Text = preg_replace("/".$Smile1."/i",$Smile2,$Text); }
++$renees; } return $Text; }
// Remove the bad stuff
+function remove_bad_entities($Text) {
+$Text = preg_replace("/‮/isU","",$Text);
+return $Text; }
function remove_spaces($Text) {
$Text = preg_replace("/(^\t+|\t+$)/","",$Text);
$Text = preg_replace("/(^\n+|\n+$)/","",$Text);
$Text = preg_replace("/(\r|\n|\t)+/"," ",$Text);
$Text = preg_replace("/\s\s+/"," ",$Text);
$Text = preg_replace("/(^\s+|\s+$)/","",$Text);
+$Text = @remove_bad_entities($Text);
return $Text; }
// Fix some chars
function fixbamps($text) {
Copyright 2004-2007 Cool Dude 2k - http://intdb.sourceforge.net/
Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/
- $FileInfo: pm.php - Last Update: 08/02/2007 SVN 62 - Author: cooldude2k $
+ $FileInfo: pm.php - Last Update: 08/05/2007 SVN 68 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="pm.php"||$File3Name=="/pm.php") {
$_POST['Message'] = stripcslashes(htmlspecialchars($_POST['Message'], ENT_QUOTES));
$_POST['Message'] = preg_replace("/&#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['Message']);
//$_POST['Message'] = @remove_spaces($_POST['Message']);
+$_POST['Message'] = remove_bad_entities($_POST['Message']);
$requery = query("select * from `".$Settings['sqltable']."members` WHERE `Name`='%s'", array($_POST['SendMessageTo']));
$reresult=mysql_query($requery);
$renum=mysql_num_rows($reresult);
Copyright 2004-2007 Cool Dude 2k - http://intdb.sourceforge.net/
Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/
- $FileInfo: profilemain.php - Last Update: 08/02/2007 SVN 62 - Author: cooldude2k $
+ $FileInfo: profilemain.php - Last Update: 08/05/2007 SVN 68 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="profilemain.php"||$File3Name=="/profilemain.php") {
if($_POST['act']=="view"&&
$_SESSION['UserGroup']!=$Settings['GuestGroup']) {
$_POST['NotePad'] = htmlentities($_POST['NotePad'], ENT_QUOTES);
+ $_POST['NotePad'] = remove_bad_entities($_POST['NotePad']);
$NewDay=GMTimeStamp();
$NewIP=$_SERVER['REMOTE_ADDR'];
$querynewskin = query("update `".$Settings['sqltable']."members` set `Notes`='%s',`LastActive`=%i,`IP`='%s' WHERE `id`=%i", array($_POST['NotePad'],$NewDay,$NewIP,$_SESSION['UserID']));
$_POST['Signature'] = htmlentities($_POST['Signature'], ENT_QUOTES);
$_POST['Signature'] = preg_replace("/\t+/"," ",$_POST['Signature']);
$_POST['Signature'] = preg_replace("/\s\s+/"," ",$_POST['Signature']);
+ $_POST['Signature'] = remove_bad_entities($_POST['Signature']);
$NewDay=GMTimeStamp();
$NewIP=$_SERVER['REMOTE_ADDR'];
$querynewskin = query("update `".$Settings['sqltable']."members` set `Signature`='%s',`LastActive`=%i,`IP`='%s' WHERE `id`=%i", array($_POST['Signature'],$NewDay,$NewIP,$_SESSION['UserID']));
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: 08/05/2007 SVN 67 - Author: cooldude2k $
+ $FileInfo: replys.php - Last Update: 08/05/2007 SVN 68 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="replys.php"||$File3Name=="/replys.php") {
$QuoteReply = stripcslashes(htmlspecialchars($QuoteReply, ENT_QUOTES));
$QuoteReply = preg_replace("/&#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $QuoteReply);
//$QuoteReply = @remove_spaces($QuoteReply);
+$QuoteReply = remove_bad_entities($QuoteReply);
$QuoteDescription = str_replace("Re: ","",$QuoteDescription);
$QuoteDescription = "Re: ".$QuoteDescription;
$QuoteReply = $QuoteUserName.":\n("".$QuoteReply."")"; }
$_POST['ReplyPost'] = stripcslashes(htmlspecialchars($_POST['ReplyPost'], ENT_QUOTES));
$_POST['ReplyPost'] = preg_replace("/&#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['ReplyPost']);
//$_POST['ReplyPost'] = @remove_spaces($_POST['ReplyPost']);
+$_POST['ReplyPost'] = remove_bad_entities($_POST['ReplyPost']);
if ($_POST['ReplyDesc']==null) { $Error="Yes"; ?>
<tr style="text-align: center;">
<td style="text-align: center;"><span class="TableMessage">
$ReplyPost = stripcslashes(htmlspecialchars($ReplyPost, ENT_QUOTES));
$ReplyPost = preg_replace("/&#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $ReplyPost);
//$ReplyPost = @remove_spaces($ReplyPost);
+$ReplyPost = remove_bad_entities($ReplyPost);
$ReplyDescription=mysql_result($ersresult,0,"Description");
$ReplyDescription = stripcslashes(htmlspecialchars($ReplyDescription, ENT_QUOTES));
$ReplyDescription = preg_replace("/&#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $ReplyDescription);
$_POST['GuestName'] = @remove_spaces($_POST['GuestName']);
$_POST['ReplyPost'] = stripcslashes(htmlspecialchars($_POST['ReplyPost'], ENT_QUOTES));
$_POST['ReplyPost'] = preg_replace("/&#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['ReplyPost']);
+$_POST['ReplyPost'] = remove_bad_entities($_POST['ReplyPost']);
if($ShowEditTopic==true) {
$_POST['TopicName'] = stripcslashes(htmlspecialchars($_POST['TopicName'], ENT_QUOTES));
$_POST['TopicName'] = preg_replace("/&#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['TopicName']);
Copyright 2004-2007 Cool Dude 2k - http://intdb.sourceforge.net/
Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/
- $FileInfo: topics.php - Last Update: 08/05/2007 SVN 67 - Author: cooldude2k $
+ $FileInfo: topics.php - Last Update: 08/05/2007 SVN 68 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="topics.php"||$File3Name=="/topics.php") {
$_POST['GuestName'] = @remove_spaces($_POST['GuestName']);
$_POST['TopicPost'] = stripcslashes(htmlspecialchars($_POST['TopicPost'], ENT_QUOTES));
$_POST['TopicPost'] = preg_replace("/&#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['TopicPost']);
+$_POST['TopicPost'] = remove_bad_entities($_POST['TopicPost']);
//$_POST['TopicPost'] = @remove_spaces($_POST['TopicPost']);
if ($_POST['TopicName']==null) { $Error="Yes"; ?>
<tr style="text-align: center;">
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 67 - Author: cooldude2k $
+ $FileInfo: versioninfo.php - Last Update: 08/05/2007 SVN 68 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="versioninfo.php"||$File3Name=="/versioninfo.php") {
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 = 67; $RName = "iDB"; $SFName = "IntDB";
+$VER2[0] = "Pre-Alpha"; $VER2[1] = "PA"; $VER2[2] = "SVN"; $SubVerN = 68; $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);