]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
add disablechat url.
authorPablo Martin <caedes@sindominio.net>
Tue, 30 Oct 2012 12:45:58 +0000 (12:45 +0000)
committerroot <root@migration.vz.lan>
Tue, 30 Oct 2012 12:46:06 +0000 (12:46 +0000)
disablechat.php [new file with mode: 0644]

diff --git a/disablechat.php b/disablechat.php
new file mode 100644 (file)
index 0000000..38a440c
--- /dev/null
@@ -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']);
+?>