MyBB Community Forums

Full Version: What this section of code in xmlhttp is for?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi
In xmlhttp.php
What this section of code is for ?
		//die(str_replace("&", "&", $message));
		if($debug_this == 1)
		{
			$fp = fopen(MYBB_ROOT."uploads/test.log", "a");
			fwrite($fp, $message."\n\n\n");
			fclose($fp);
		}
And what if I delete it?
The world will end...

Not really, it's there for debugging purposes.
I'm pretty sure you can remove it with no harmful consequences. However, to be on the safe side you may want to comment it out first (wrap it with /* and */ ) so you can revert it if necessary.