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

Размер файла: 411B
  1. <?php
  2. /**********************************
  3. * @package: PerfCMS *
  4. * @year: 2012 *
  5. * @author: Artas *
  6. * @link: http://perfcms.pp.ua *
  7. **********************************/
  8. if(isset($user)) {
  9. @setcookie('uid', '');
  10. @setcookie('password','');
  11. $_SESSION['uid'] = '';
  12. $_SESSION['password'] = '';
  13. unset($user);
  14. header('Location: /');
  15. } else { header('Location: /'); }
  16. ?>