Просмотр файла exit.php

Размер файла: 530B
  1. <?
  2. // Coding by Swinger
  3. error_reporting(0);
  4. include "setup.php";
  5. if(is_admin($config['login'], $config['pass'])){
  6.  
  7. $_SESSION['adminlogin'] = '';
  8. $_SESSION['adminpass'] = '';
  9. setcookie('adminlogin', '');
  10. setcookie('adminpass', '');
  11. setcookie(session_name(), '');
  12. session_unset();
  13. session_destroy();
  14. echo "<html><meta http-equiv='Refresh' content='1; url=index.xhtml' /><body>Cookie удалены<br/>в <a href='index.xhtml'>пирамиду</a><br/></body></html>";
  15. exit;
  16. }
  17.  
  18. header('location: index.xhtml');
  19. ?>