mirror of
https://github.com/YunoHost-Apps/hubzilla_ynh.git
synced 2024-09-03 19:26:21 +02:00
15 lines
332 B
PHP
15 lines
332 B
PHP
<?php
|
|
namespace Zotlabs\Module;
|
|
|
|
|
|
class Nojs extends \Zotlabs\Web\Controller {
|
|
|
|
function init() {
|
|
$n = ((argc() > 1) ? intval(argv(1)) : 1);
|
|
setcookie('jsdisabled', $n, 0, '/');
|
|
$p = $_GET['redir'];
|
|
$hasq = strpos($p,'?');
|
|
goaway(z_root() . (($p) ? '/' . $p : '') . (($hasq) ? '' : '?f=' ) . '&jsdisabled=' . $n);
|
|
|
|
}
|
|
}
|