Jump to content
MakeWebGames

Recommended Posts

Posted

When myself or others type the words "delete" or "where" (without quotations of course) in a forum post or a message, they don't show up.

For example if i typed

I need to delete some posts on the forum

it would appear as

I need to some posts on the forum.

I have checked the bbcode files but the is nothing in there about it, i have heard that it may be in the global functions file but i dont know what im looking for, anybody else experienced this problem before?

Posted

if you use notepad++ search in files for 'DELETE' or "DELETE" but it is probably in the global functions file probably using something like preg_replace or str_replace

Posted

This is located at the very top of global functions, do you think this might be the line of code im looking for

function Clean($Var) {

if (get_magic_globals_gpc() == 1) {

$Var = stripslashes($Var);

}

$Var = mysql_real_escape_string(htmlentities($Var));

return $Var;

}

Posted

hmm, the only other things i can see in global_func.php is

function make_bigint($str, $positive=1)

{

$str = (string) $str;

$ret = "";

for($i=0;$i<strlen($str);$i++)

{

if((ord($str[$i]) > 47 && ord($str[$i]) < 58) or ($str[$i]=="-" && $positive == 0)) { $ret.=$str[$i]; }

}

if(strlen($ret) == 0) { return "0"; }

return $ret;

}

 

and

function mysql_escape($str)

{

return str_replace("'","''",$str);

}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...