X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Flogout.php;h=791ca6e4e8e52c48ca5cb2070b54f469a4d309b7;hp=f2ebbaf00199c43842624d6d94810817cd94d8bd;hb=c581cd05476d07f0fd17dab41cbb211a443fd57f;hpb=924f395a39eeccbcd54d540613e440cbedd6ba3d diff --git a/include/logout.php b/include/logout.php index f2ebbaf..791ca6e 100644 --- a/include/logout.php +++ b/include/logout.php @@ -1,13 +1,32 @@ + * + * This file is part of e-DoKo. + * + * e-DoKo is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * e-DoKo is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with e-DoKo. If not, see . + * + */ + +/* make sure that we are not called from outside the scripts, * use a variable defined in config.php to check this */ if(!isset($HOST)) exit; -/* distroy the session */ +/* to log a player out, all we need to do is to distroy the session */ session_unset(); session_destroy(); $_SESSION = array(); - + ?> \ No newline at end of file