aboutsummaryrefslogtreecommitdiff
path: root/disablechat.php
blob: 38a440cf2771037c3c5c89b698eb10764fc6dc66 (plain)
1
2
3
4
5
6
7
8
<?php
        require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
	if (isloggedin()) {
		get_loggedin_user()->chatenabled = false;
		system_message(elgg_echo("beechat:disabled"));
	}
	forward($_SERVER['HTTP_REFERER']);
?>