aboutsummaryrefslogblamecommitdiffstats
path: root/mod/nojs.php
blob: c6e04a72b85a8c03a5bdce66524df723c9776bea (plain) (tree)
1
2
3
4
5
6
7
8
9
10





                                      

                                                                                              

 
<?php

function nojs_init(&$a) {

	setcookie('jsdisabled', 1, 0);
	$p = $_GET['query'];
	$hasq = strpos($p,'?');
	goaway(z_root() . (($p) ? '/' . $p : '') . (($hasq) ? '' : '?f=' ) . '&jsdisabled=1');

}