예제 #1
0
	function render() {
		# Controleer de users' rechten
		$this->_spotSec->fatalPermCheck(SpotSecurity::spotsec_mark_spots_asread, '');
							  
		# en update het user record
		$spotUserSystem = new SpotUserSystem($this->_db, $this->_settings);
		
		# clear the spotstate list als dit toegestaan is
		if ($this->_spotSec->allowed(SpotSecurity::spotsec_keep_own_seenlist, '')) {
			$this->_db->clearSpotStateList(SpotDb::spotstate_Seen, $this->_currentSession['user']['userid']);
		} # if

		# we willen niet dat dit gecached wordt
		$this->sendExpireHeaders(true);
		
		# reset the lastvisit en lastread timestamp
		$spotUserSystem->resetLastVisit($this->_currentSession['user']);
		$spotUserSystem->resetReadStamp($this->_currentSession['user']);

		echo "<xml><return>ok</return></xml>";
	} # render()