Просмотр файла exit.php
- <?
- // Coding by Swinger
- error_reporting(0);
- include "setup.php";
- if(is_admin($config['login'], $config['pass'])){
- $_SESSION['adminlogin'] = '';
- $_SESSION['adminpass'] = '';
- setcookie('adminlogin', '');
- setcookie('adminpass', '');
- setcookie(session_name(), '');
- session_unset();
- session_destroy();
- echo "<html><meta http-equiv='Refresh' content='1; url=index.xhtml' /><body>Cookie удалены<br/>в <a href='index.xhtml'>пирамиду</a><br/></body></html>";
- exit;
- }
- header('location: index.xhtml');
- ?>