1 2 3 4 5 6 7 8 9
<?php function nojs_init(&$a) { setcookie('jsdisabled', 1, 0); $p = $_GET['query']; goaway(z_root() . (($p) ? '/' . $p : '')); }