<?php
/* logout.php
Copyright 2009,2010 Erik Bogaerts
Support site: http://www.hostergo.com
This file is part of Hoster.
HosterGo 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 2 of the License, or
(at your option) any later version.
HosterGo 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 Hoster; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
?>
<?php
$http=zing_http("zhg","","logout");
$news = new zHttpRequest($http,'hostergo');
$json=$news->DownloadToString();
$ret=json_decode($json,true);
unset($_SESSION['hostergo']);
?>
<html>
<head>
<META HTTP-EQUIV="Refresh" CONTENT="1; URL=<?php echo get_option('home');?>">
</head>
<body>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<center><h4><?php echo $ret['message'] ?></h4></center>
</body>
</html>