reverse the logic of the jsenabled setting so that sessions without js are performance penalised instead of regular sessions.
This commit is contained in:
9
mod/nojs.php
Normal file
9
mod/nojs.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
function nojs_init(&$a) {
|
||||
|
||||
setcookie('jsdisabled', 1, 0);
|
||||
$p = $_GET['query'];
|
||||
goaway(z_root() . (($p) ? '/' . $p : ''));
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user