aboutsummaryrefslogtreecommitdiffstats
path: root/mod/nojs.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/nojs.php')
-rw-r--r--mod/nojs.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/mod/nojs.php b/mod/nojs.php
new file mode 100644
index 000000000..c6e04a72b
--- /dev/null
+++ b/mod/nojs.php
@@ -0,0 +1,10 @@
+<?php
+
+function nojs_init(&$a) {
+
+ setcookie('jsdisabled', 1, 0);
+ $p = $_GET['query'];
+ $hasq = strpos($p,'?');
+ goaway(z_root() . (($p) ? '/' . $p : '') . (($hasq) ? '' : '?f=' ) . '&jsdisabled=1');
+
+} \ No newline at end of file