PageRenderTime 54ms CodeModel.GetById 29ms RepoModel.GetById 0ms app.codeStats 0ms

/plugins/reg/exit.php

https://bitbucket.org/NoName_emaNoN/titansoft
PHP | 21 lines | 14 code | 3 blank | 4 comment | 2 complexity | bc0ebf0dc248e21381c940e868bd8740 MD5 | raw file
  1. <?php
  2. /********************************************
  3. * FILENAME : exit.php
  4. * COPYRIGHT : (C) 2006 Sergio Gogoleff
  5. ********************************************/
  6. if (!defined('IN_ENGIO'))
  7. {
  8. die('Access denied');
  9. }
  10. if ($_SESSION['SITE_USERNAME']&&$_SESSION['SITE_PASSWORD'])
  11. {
  12. unset($_SESSION['SITE_USERNAME']);
  13. unset($_SESSION['SITE_PASSWORD']);
  14. setcookie('site_user', '', time()-(3600 * 24 * 365), '/');
  15. setcookie('cookie_1894', '', time()-(3600 * 24 * 365), '/');
  16. }
  17. header('location: '.$_SERVER['HTTP_REFERER']);
  18. ?>