mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
22 lines
416 B
PHP
22 lines
416 B
PHP
<?php
|
|
|
|
namespace Zotlabs\Module;
|
|
|
|
class Cloud_tiles extends \Zotlabs\Web\Controller {
|
|
|
|
function init() {
|
|
|
|
if(isset($_SESSION['cloud_tiles']) && intval($_SESSION['cloud_tiles']))
|
|
$_SESSION['cloud_tiles'] = 0;
|
|
else
|
|
$_SESSION['cloud_tiles'] = 1;
|
|
|
|
if(local_channel()) {
|
|
set_pconfig(local_channel(),'system','cloud_tiles',$_SESSION['cloud_tiles']);
|
|
}
|
|
|
|
goaway(z_root() . '/' . hex2bin(argv(1)));
|
|
|
|
}
|
|
}
|