| 1 | <?php |
| 2 | if (isset($_REQUEST['nlang'])) { |
| 3 | setcookie('lang',$_REQUEST['nlang'],(time()+25920000)); |
| 4 | $_COOKIE['lang'] = $_REQUEST['nlang']; |
| 5 | } |
| 6 | |
| 7 | // include common definitions |
| 8 | require_once 'diogenes.common.inc.php'; |
| 9 | require_once 'diogenes.barrel.inc.php'; |
| 10 | $page = new $globals->barrel; |
| 11 | $page->startSession(); |
| 12 | $_SESSION['session']->doAuth($page); |
| 13 | |
| 14 | $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : ""; |
| 15 | $myuid = $_SESSION['session']->uid; |
| 16 | |
| 17 | $page->assign('langs', $globals->locales); |
| 18 | $page->assign('global_prefs',$page->url('prefs.php')); |
| 19 | |
| 20 | $page->assign('page', __("User preferences")); |
| 21 | $page->assign('greeting', __("Diogenes preferences")); |
| 22 | |
| 23 | $page->assign('msg_lang', __("language")); |
| 24 | $page->assign('msg_lang_blab', __("You can select your preferred language by clicking on the appropriate language below.")); |
| 25 | |
| 26 | $page->assign('submit', __("Change")); |
| 27 | |
| 28 | $page->assign('msg_global_prefs', __("account preferences")); |
| 29 | |
| 30 | $page->display("admin-prefs.tpl"); |
| 31 | ?> |