<?php /** * Close or open spotlight. * * @package Elgg * @subpackage Core * @author Curverider Ltd * @link http://elgg.org/ */ gatekeeper(); $closed = get_input('closed','true'); if ($closed != 'true') { $closed = false; } else { $closed = true; } $_SESSION['user']->spotlightclosed = $closed; exit;