aboutsummaryrefslogtreecommitdiffstats
path: root/mod/nojs.php
blob: 3d894d13e9964fabdd728a84248b5753af12d8dd (plain) (blame)
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 : ''));

}