profile and sessions
[banana.git] / install.d / session.inc.php
CommitLineData
c87d7e96 1<?php
2/********************************************************************************
3* include/session.inc.php : sessions for profile
4* -------------------------
5*
6* This file is part of the banana distribution
7* Copyright: See COPYING files that comes with this distribution
8********************************************************************************/
9
10session_start();
11
12//sets sessions variables
13if (!isset($_SESSION['profile']) && (!isset($_POST['action']) ||
14(isset($_POST['action']) && ($_POST['action']!="OK")))) {
15 require("header.inc.php");
16 require("profile_form.inc.php");
17 require("footer.inc.php");
18 exit;
19} elseif (!isset($_SESSION['profile'])) {
20 $_SESSION['name'] = $_POST['profile_name'];
21 $_SESSION['mail'] = $_POST['profile_mail'];
22 $_SESSION['org'] = $_POST['profile_org'];
23 $_SESSION['sig'] = $_POST['profile_sig'];
24 $_SESSION['login'] = $_POST['profile_login'];
25 $_SESSION['passwd'] = $_POST['profile_passwd'];
26 $_SESSION['displaytype'] = $_POST['displaytype'];
27 $_SESSION['profile'] = true;
28}
29?>