3
* Script to set the new language.
5
* $Horde: horde/services/language.php,v 1.5.12.1 2005/01/03 12:25:45 jan Exp $
7
* Copyright 2003-2005 Marko Djukic <marko@oblo.com>
9
* See the enclosed file COPYING for license information (LGPL). If you did not
10
* receive this file, see http://www.fsf.org/copyleft/lgpl.html.
13
@define('HORDE_BASE', dirname(__FILE__) . '/..');
14
require_once HORDE_BASE . '/lib/base.php';
16
/* Set the language. */
17
$_SESSION['horde_language'] = NLS::select();
18
$prefs->setValue('language', $_SESSION['horde_language']);
20
/* Redirect to the url or login page if none given. */
21
$url = Util::getFormData('url');
23
$url = Horde::applicationUrl('index.php', true);
25
header('Location: ' . $url);