X-Git-Url: https://dev.renevier.net/gitweb.cgi?p=syp.git;a=blobdiff_plain;f=logout.php;h=25d55a9878117932ee600ba16e0772d038993f3c;hp=02b4b0795ffa54fbb27795342e184cd5d605c650;hb=0fb779168df5af03f2a74b6bf1766d5a1c0f1a7e;hpb=3b38ca36fc18d34999073625a9c66dc2f05747a3 diff --git a/logout.php b/logout.php index 02b4b07..25d55a9 100644 --- a/logout.php +++ b/logout.php @@ -2,10 +2,11 @@ /* Copyright (c) 2009 Arnaud Renevier, Inc, published under the modified BSD license. */ -require_once ("./inc/settings.php"); +if (!@include_once ("./inc/settings.php")) { + header ('Location: index.php'); +} setcookie (sprintf ("%sauth", DBPREFIX), "", time () - 3600, "" , "",false, true); setcookie (sprintf ("%suser", DBPREFIX), "", time () - 3600, "" , "",false, true); header ('Location: index.php'); - ?>