module updates
This commit is contained in:
15
Zotlabs/Module/Nojs.php
Normal file
15
Zotlabs/Module/Nojs.php
Normal file
@@ -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');
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user