aboutsummaryrefslogblamecommitdiffstats
path: root/Zotlabs/Module/Cloud_tiles.php
blob: 9ec050c209b1593267dd3eeab33b86f9f92421ab (plain) (tree)
1
2
3
4
5
6
7
8
9







                                                   
                                                                                       



                                                     



                                                                                                     


                                                          
 
<?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)));

	}
}