<?php
/* login.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
$lostlogin = 0;
if (!empty($_GET['lostlogin'])) {
$lostlogin=$_GET['lostlogin'];
}
$email = "";
if (!empty($_POST['email'])) {
$email=$_POST['email'];
}
if ($email == "") { $email = "--"; }
if ($lostlogin == 0) {
$post_name = $_POST['loginname'];
$post_pass = $_POST['pass'];
$http=zing_http("zhg","","login");
$news = new zHttpRequest($http,'hostergo');
$json=$news->DownloadToString();
$ret=json_decode($json,true);
$pagetoload = $ret['page'];
?>
<html>
<head>
<META HTTP-EQUIV="Refresh"
CONTENT="1; URL=index.php?<?php echo $pagetoload; ?>">
</head>
<body>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<center><h4><?php echo $ret['message']; ?></h4></center>
</body>
</html>
<?php
}
?>