Просмотр файла modules/user/sign_out.php

Размер файла: 411B
<?php
/**********************************
*	@package: PerfCMS			  *
*	@year: 2012					  *
*	@author: Artas				  *
*	@link: http://perfcms.pp.ua	  *
**********************************/
if(isset($user)) {
		@setcookie('uid', '');
        @setcookie('password','');
		$_SESSION['uid'] = '';
		$_SESSION['password'] = '';
		unset($user);
		header('Location: /');
	} else { header('Location: /'); }
?>