reverse the logic of the jsenabled setting so that sessions without js are performance penalised instead of regular sessions.

This commit is contained in:
redmatrix
2016-04-12 22:55:26 -07:00
parent f4a27afee9
commit 91cc365143
8 changed files with 26 additions and 26 deletions

9
mod/nojs.php Normal file
View File

@@ -0,0 +1,9 @@
<?php
function nojs_init(&$a) {
setcookie('jsdisabled', 1, 0);
$p = $_GET['query'];
goaway(z_root() . (($p) ? '/' . $p : ''));
}