diff options
author | redmatrix <git@macgirvin.com> | 2016-04-12 22:55:26 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-04-12 22:55:26 -0700 |
commit | 91cc36514306e827c126ceed6c17486c85f5544c (patch) | |
tree | bb763fc5e2bb5e3becbce685efc977acb63b5979 /mod/nojs.php | |
parent | f4a27afee9c1dc12afd2a15adef9f33654fa5ddd (diff) | |
download | volse-hubzilla-91cc36514306e827c126ceed6c17486c85f5544c.tar.gz volse-hubzilla-91cc36514306e827c126ceed6c17486c85f5544c.tar.bz2 volse-hubzilla-91cc36514306e827c126ceed6c17486c85f5544c.zip |
reverse the logic of the jsenabled setting so that sessions without js are performance penalised instead of regular sessions.
Diffstat (limited to 'mod/nojs.php')
-rw-r--r-- | mod/nojs.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mod/nojs.php b/mod/nojs.php new file mode 100644 index 000000000..3d894d13e --- /dev/null +++ b/mod/nojs.php @@ -0,0 +1,9 @@ +<?php + +function nojs_init(&$a) { + + setcookie('jsdisabled', 1, 0); + $p = $_GET['query']; + goaway(z_root() . (($p) ? '/' . $p : '')); + +}
\ No newline at end of file |