root/trunk/wifidog-auth/wifidog/include/language.php @ 595

Revision 595, 362 bytes (checked in by fproulx, 8 years ago)

2005-04-28 Fran�ois Proulx <francois.proulx@…>

  • SF.net missed one file again !
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1<?php
2require_once BASEPATH.'classes/Session.php';
3require_once BASEPATH.'classes/Locale.php';
4$session = new Session();
5
6if (!empty ($_REQUEST['lang']))
7{
8        Locale::setCurrentLocale(Locale::getObject($_REQUEST['lang']));
9}
10
11$locale = Locale::getCurrentLocale();
12$locale_id = $locale->getId();
13if (isset ($smarty))
14{
15        $smarty->assign("lang_id", $locale_id);
16}
17
18?>
Note: See TracBrowser for help on using the browser.