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