예제 #1
0
파일: index.php 프로젝트: hettema/Mindspace
    if ($_GET['go'] == 'reset_password_submit') {
        $user = new UserEntity();
        $user->resetPassword();
    } else {
        if ($_GET['go'] == 'login_submit') {
            $username = isset($_POST['username']) ? $_POST['username'] : '';
            $password = isset($_POST['password']) ? $_POST['password'] : '';
            if ($gSession->validateLogin($username, $password)) {
                $info = $gRouteInfo['home'];
            } else {
                $info = $gRouteInfo['login'];
            }
        } else {
            if ('profile_change_submit' == $_GET['go']) {
                $user = new UserEntity();
                $gSession->reloadSession($user->changeProfile($gSession->userInfo['email']));
            }
        }
    }
}
//print_r($gSession->userInfo);// "logout happening...";
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Mindspace SEO Tool</title>
<link rel="stylesheet" type="text/css" href="template/css/analyzer.css" />
<link rel="stylesheet" type="text/css" href="template/css/layout.css" />
<link rel="stylesheet" type="text/css" href="template/3rdparty/yui/reset-fonts-grids/reset-fonts-grids.css" />