]> dev.renevier.net Git - syp.git/blob - logout.php
fixes CHANGES.txt
[syp.git] / logout.php
1 <?php
2 /* Copyright (c) 2009 Arnaud Renevier, Inc, published under the modified BSD
3    license. */
4
5 if (!@include_once ("./inc/settings.php")) {
6     header ('Location: index.php');
7 }
8
9 if (version_compare (PHP_VERSION, '5.2.0', '>=')) {
10     setcookie (sprintf ("%sauth", DBPREFIX), "", time () - 3600, "" , "",false, true);
11     setcookie (sprintf ("%suser", DBPREFIX), "", time () - 3600, "" , "",false, true);
12 } else {
13     setcookie (sprintf ("%sauth", DBPREFIX), "", time () - 3600, "" , "",false);
14     setcookie (sprintf ("%suser", DBPREFIX), "", time () - 3600, "" , "",false);
15 }
16 header ('Location: index.php');
17 ?>