diff options
Diffstat (limited to 'Zotlabs/Module/Nojs.php')
-rw-r--r-- | Zotlabs/Module/Nojs.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Zotlabs/Module/Nojs.php b/Zotlabs/Module/Nojs.php new file mode 100644 index 000000000..5e48c5b5f --- /dev/null +++ b/Zotlabs/Module/Nojs.php @@ -0,0 +1,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'); + + } +} |