diff options
-rw-r--r-- | disablechat.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/disablechat.php b/disablechat.php new file mode 100644 index 000000000..38a440cf2 --- /dev/null +++ b/disablechat.php @@ -0,0 +1,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']); +?> |