aboutsummaryrefslogtreecommitdiff
path: root/disablechat.php
diff options
context:
space:
mode:
authorPablo Martin <caedes@sindominio.net>2012-10-30 12:45:58 +0000
committerroot <root@migration.vz.lan>2012-10-30 12:46:06 +0000
commit6e6f43a5b7b89c5f1091158bbb19fec20eb1c075 (patch)
tree1cbf94d1f274ff1e5e6f4a24ac2d03bba206a406 /disablechat.php
parentca9e77c5dc802efb452a22e95441f8c9f0c6892d (diff)
downloadelgg-6e6f43a5b7b89c5f1091158bbb19fec20eb1c075.tar.gz
elgg-6e6f43a5b7b89c5f1091158bbb19fec20eb1c075.tar.bz2
add disablechat url.
Diffstat (limited to 'disablechat.php')
-rw-r--r--disablechat.php8
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']);
+?>