aboutsummaryrefslogtreecommitdiff
path: root/mod/beechat/enablechat.php
blob: 5d3de7e2a741ef4306889fa5e7b638e1a9ffa408 (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 = true;
		system_message(elgg_echo("beechat:enabled"));
	}
	forward($_SERVER['HTTP_REFERER']);
?>