gpo26 Posted April 14, 2013 Share Posted April 14, 2013 (edited) . Edited January 16 by gpo26 Quote Link to comment Share on other sites More sharing options...
sniko Posted April 14, 2013 Share Posted April 14, 2013 "delete" and "where" - both sql keywords. Most likely someone has installed something to str_replace sql keywords with null. Try the following words; CREATE DROP ALTER Also, search your script. Check your database table forum_replies to see if the words are missing there, if they are, check the function that processes the reply (forums.php) Quote Link to comment Share on other sites More sharing options...
gpo26 Posted April 14, 2013 Author Share Posted April 14, 2013 (edited) . Edited January 16 by gpo26 Quote Link to comment Share on other sites More sharing options...
sniko Posted April 14, 2013 Share Posted April 14, 2013 Create, drop, and alter all appear fine. There is no forum_replies table on mine, but there is a forum_posts table. When I checked the table for the latest test post, the same two did not appear (delete and where). However, I can add "delete" and "where" to a post via MySQL. Do you have a line number I can find? There's 906 lines in forums.php and I'm not sure what to look for. Hmm, okay... Do you have Skype so I can assist better? Go to your forums, and reply to a thread. Inspect the URL and check the action value. Go to your forums source, and find the 'switch & case' section, and retrieve the function name from that (from the action value found earlier). Copy that function here Quote Link to comment Share on other sites More sharing options...
gpo26 Posted April 14, 2013 Author Share Posted April 14, 2013 (edited) . Edited January 16 by gpo26 Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted April 15, 2013 Share Posted April 15, 2013 Please post up your reply() function - it'll, most likely, be something in there Quote Link to comment Share on other sites More sharing options...
gpo26 Posted April 15, 2013 Author Share Posted April 15, 2013 (edited) . Edited January 16 by gpo26 Quote Link to comment Share on other sites More sharing options...
Djkanna Posted April 15, 2013 Share Posted April 15, 2013 Check global_func/globals .php too. No doubt it'd be something like. $_POST = array_map ( 'replaceShiz', $_POST ); Quote Link to comment Share on other sites More sharing options...
Djkanna Posted April 16, 2013 Share Posted April 16, 2013 And where the hell have you been, mister? Mordor? :eek: Quote Link to comment Share on other sites More sharing options...
gpo26 Posted April 18, 2013 Author Share Posted April 18, 2013 (edited) . Edited January 16 by gpo26 Quote Link to comment Share on other sites More sharing options...
Djkanna Posted April 18, 2013 Share Posted April 18, 2013 Thanks that's exactly what it was. That saved me quite a bit of trouble. No problem, glad you got it sorted. :) Quote Link to comment Share on other sites More sharing options...
kiz5000 Posted June 23, 2013 Share Posted June 23, 2013 Im having this exact same problem, which part did you remove from the global functions was it function Clean($Var) { if (get_magic_globals_gpc() == 1) { $Var = stripslashes($Var); } $Var = mysql_real_escape_string(htmlentities($Var)); return $Var; } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.