Changes adopted from version 0.5
This commit is contained in:
16
logout.php
16
logout.php
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/*****************************************************************************
|
||||
IP Reg, a PHP/MySQL IPAM tool
|
||||
Copyright (C) 2008 Wietse Warendorff
|
||||
Copyright (C) 2007-2009 Wietse Warendorff
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -20,12 +20,14 @@
|
||||
or contact me at wietsew@users.sourceforge.net
|
||||
*****************************************************************************/
|
||||
|
||||
session_start();
|
||||
// start page
|
||||
// includes
|
||||
include("includes.php");
|
||||
|
||||
// clear and destroy session
|
||||
$_SESSION = array();
|
||||
session_destroy();
|
||||
|
||||
header("Location: index.php");
|
||||
// logout
|
||||
// user logout
|
||||
$user->user_logout();
|
||||
|
||||
// redirect
|
||||
header("Location: index.php");
|
||||
?>
|
||||
Reference in New Issue
Block a user