MyBB Community Forums

Full Version: [1.8.29] ProStats Plugin with "suprise" code - How can removed ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello all ;D

I use the plugin Prostats 1.9.7.2 in my forum. Unfortunately, the browser now randomly displays a link to Google.  I could find out that in the code a link to a wordpress website was placed. This seems to be advertising, how can I remove this code ?

Here is the code:

Line 523
function prostats_reload()
{
	\$("#prostats_table").prepend('<div id="ps_reload_layer" class="tborder"><img src="{\$mybb->settings['bburl']}/images/spinner_big.gif" alt="spinner" /></div>');
	
	\$('#ps_reload_layer').css({
		"height": \$('#prostats_table').find('table:first').height()+'px',
		"width": \$('#prostats_table').find('table:first').width()+'px',
		"top": \$('#prostats_table').offset().top,
	}).fadeTo(0, 0.1).fadeTo("slow" , 0.8);
    \$.ajax(
    {
        type: 'POST',
        url: '{\$mybb->settings['bburl']}/xmlhttp.php?action=prostats_reload',
        dataType: 'json',
        data: { ajax: 1, my_post_key: my_post_key },
        success: prostats_done
    });
	return false;
}

function prostats_done(data)
{
	if(data.hasOwnProperty("errors"))
	{
		\$(".jGrowl").jGrowl("close");

		\$.each(data.errors, function(i, message)
		{
			\$.jGrowl(message);
		});
	}
	else if(data.html)
	{
		\$("#prostats_table").html(data.html);
	}
}

I have already tried to remove the code myself, but then it hailed only erros ...

Greetings

Bogus | GridTalk.de
The code you posted is fine; it does not contain any reference to a external source.

Search all plugin files (*.php and *.js) again.
Check your source code of the website and pick code snippets to compare with plugin file contents.
Also have a close look to templates (if the plugin comes with own templates)!

[ETS]

Edit:

Check file prostats.php and deactivate/remove al of the following code references:
- Function: prostats_g()
- Variable: $remote_msg

[ETS]