aboutsummaryrefslogblamecommitdiffstats
path: root/Zotlabs/Module/Nojs.php
blob: 5e48c5b5fa50311e695711593cfffce25c9e9af6 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                                                                      
<?php
namespace Zotlabs\Module;


class Nojs extends \Zotlabs\Web\Controller {

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