~ubuntu-branches/ubuntu/hardy/squirrelmail/hardy-updates

« back to all changes in this revision

Viewing changes to src/login.php

  • Committer: Bazaar Package Importer
  • Author(s): Thijs Kinkhorst
  • Date: 2006-08-11 13:53:20 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20060811135320-a54q8uf2ncuwc5es
Tags: 2:1.4.8-1
* New upstream release
  - Includes security fix: variable overwriting in compose.php
    by logged-in user [CVE-2006-4019]
  - Does not ship SquirrelMail developer's documentation anymore.

* Remove duplicate content from README.locales.
 

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 *
9
9
 * @copyright © 1999-2006 The SquirrelMail Project Team
10
10
 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
11
 
 * @version $Id: login.php,v 1.98.2.13 2006/06/02 15:51:45 tokul Exp $
 
11
 * @version $Id: login.php,v 1.98.2.14 2006/08/03 14:48:09 kink Exp $
12
12
 * @package squirrelmail
13
13
 */
14
14
 
43
43
}
44
44
$base_uri = sqm_baseuri();
45
45
 
46
 
/*
 
46
/**
47
47
 * In case the last session was not terminated properly, make sure
48
 
 * we get a new one.
 
48
 * we get a new one, but make sure we preserve session_expired_*
49
49
 */
50
50
 
51
 
sqsession_destroy();
52
 
 
 
51
if ( !empty($_SESSION['session_expired_post']) && !empty($_SESSION['session_expired_location']) ) {
 
52
    $sep = $_SESSION['session_expired_post'];
 
53
    $sel = $_SESSION['session_expired_location'];
 
54
 
 
55
    sqsession_destroy();
 
56
 
 
57
    sqsession_is_active();
 
58
    sqsession_register($sep, 'session_expired_post');
 
59
    sqsession_register($sel, 'session_expired_location');
 
60
} else {
 
61
    sqsession_destroy();
 
62
}
 
63
 
53
64
header('Pragma: no-cache');
54
65
 
55
66
do_hook('login_cookie');
179
190
 
180
191
do_hook('login_bottom');
181
192
?>
182
 
</body></html>
 
 
b'\\ No newline at end of file'
 
193
</body></html>